From ef303ec1000bebd152eb548d40e6355cb19b4578 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Sun, 4 Dec 2022 19:05:09 +0000 Subject: [PATCH 001/250] Remove OpenApi CORS default support --- .../jaxrs/OpenApiDefaultPathTestCase.java | 2 +- .../vertx/OpenApiDefaultPathTestCase.java | 16 ------------- .../openapi/runtime/OpenApiHandler.java | 24 +------------------ .../openapi/runtime/OpenApiRecorder.java | 9 +------ 4 files changed, 3 insertions(+), 48 deletions(-) diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiDefaultPathTestCase.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiDefaultPathTestCase.java index b15d78db8ba31..5954bf61612b5 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiDefaultPathTestCase.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiDefaultPathTestCase.java @@ -42,6 +42,6 @@ public void testOpenApiPathAccessResource() { RestAssured.given() .when().options(OPEN_API_PATH) - .then().header("Access-Control-Allow-Methods", "GET, HEAD, OPTIONS"); + .then().header("Allow", "GET, HEAD, OPTIONS"); } } diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiDefaultPathTestCase.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiDefaultPathTestCase.java index 2e2dfa91bb219..1efed83abe595 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiDefaultPathTestCase.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiDefaultPathTestCase.java @@ -34,20 +34,4 @@ public void testOpenApiPathAccessResource() { .body("info.title", Matchers.equalTo("quarkus-smallrye-openapi-deployment API")) .body("paths", Matchers.hasKey("/resource")); } - - @Test - public void testDefaultOpenApiCorsProperties() { - // make sure default CORS properties are present - RestAssured - .given() - .header("Origin", "https://quarkus.io") - .get(OPEN_API_PATH) - .then() - .statusCode(200) - .header("access-control-allow-methods", "GET, HEAD, OPTIONS") - .header("access-control-allow-headers", "Content-Type, Authorization") - .header("access-control-max-age", "86400") - .header("access-control-allow-origin", "*") - .header("access-control-allow-credentials", "true"); - } } diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java index 9579ebce9f791..5d9e3c9a13167 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java @@ -5,12 +5,10 @@ import io.quarkus.arc.Arc; import io.smallrye.openapi.runtime.io.Format; import io.vertx.core.Handler; -import io.vertx.core.MultiMap; import io.vertx.core.buffer.Buffer; import io.vertx.core.http.HttpMethod; import io.vertx.core.http.HttpServerRequest; import io.vertx.core.http.HttpServerResponse; -import io.vertx.core.http.impl.headers.HeadersMultiMap; import io.vertx.ext.web.RoutingContext; /** @@ -21,20 +19,8 @@ public class OpenApiHandler implements Handler { private volatile OpenApiDocumentService openApiDocumentService; private static final String ALLOWED_METHODS = "GET, HEAD, OPTIONS"; private static final String QUERY_PARAM_FORMAT = "format"; - private static final MultiMap RESPONSE_HEADERS = new HeadersMultiMap(); - static { - RESPONSE_HEADERS.add("access-control-allow-origin", "*"); - RESPONSE_HEADERS.add("access-control-allow-credentials", "true"); - RESPONSE_HEADERS.add("access-control-allow-methods", ALLOWED_METHODS); - RESPONSE_HEADERS.add("access-control-allow-headers", "Content-Type, Authorization"); - RESPONSE_HEADERS.add("access-control-max-age", "86400"); - } - - final boolean corsEnabled; - - public OpenApiHandler(boolean corsEnabled) { - this.corsEnabled = corsEnabled; + public OpenApiHandler() { } @Override @@ -43,10 +29,6 @@ public void handle(RoutingContext event) { HttpServerResponse resp = event.response(); if (req.method().equals(HttpMethod.OPTIONS)) { - if (!corsEnabled) { - //if the cors filter is enabled we let it set the headers - resp.headers().addAll(RESPONSE_HEADERS); - } resp.headers().set("Allow", ALLOWED_METHODS); event.next(); } else { @@ -74,10 +56,6 @@ public void handle(RoutingContext event) { } } - if (!corsEnabled) { - //if the cors filter is enabled we let it set the headers - resp.headers().addAll(RESPONSE_HEADERS); - } resp.headers().set("Content-Type", format.getMimeType() + ";charset=UTF-8"); byte[] schemaDocument = getOpenApiDocumentService().getDocument(format); resp.end(Buffer.buffer(schemaDocument)); diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiRecorder.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiRecorder.java index 50efcc3f86ea9..41d10839c2aec 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiRecorder.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiRecorder.java @@ -11,7 +11,6 @@ import org.eclipse.microprofile.openapi.spi.OASFactoryResolver; import org.jboss.logging.Logger; -import io.quarkus.runtime.LaunchMode; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; @@ -44,13 +43,7 @@ public void accept(Route route) { public Handler handler(OpenApiRuntimeConfig runtimeConfig) { if (runtimeConfig.enable) { - if (!configuration.getValue().corsEnabled && LaunchMode.NORMAL == LaunchMode.current()) { - log.info( - "CORS filtering is disabled and cross-origin resource sharing is allowed without restriction, which is not recommended in production." - + " Please configure the CORS filter through 'quarkus.http.cors.*' properties." - + " For more information, see Quarkus HTTP CORS documentation"); - } - return new OpenApiHandler(configuration.getValue().corsEnabled); + return new OpenApiHandler(); } else { return new OpenApiNotFoundHandler(); } From b516997c79c6307a02b7b19248529711e721119c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 20 Dec 2022 11:30:41 +0100 Subject: [PATCH 002/250] Add missing Cloud Events example for Funqy Google Cloud Functions --- .../funqygooglecloudfunctions/GreetingFunctions.java | 10 ++++++++++ ...us_funqygooglecloudfunctions_GreetingFunctions.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java index 45f2d91086c94..acb7919dff865 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java @@ -2,6 +2,7 @@ import javax.inject.Inject; +import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; import io.quarkus.funqy.gcp.functions.event.PubsubMessage; import io.quarkus.funqy.gcp.functions.event.StorageEvent; @@ -23,4 +24,13 @@ public void helloGCSWorld(StorageEvent storageEvent) { System.out.println(storageEvent.name + " - " + message); } + @Funq + public void helloCloudEvent(CloudEvent cloudEvent) { + System.out.println("Receive event Id: " + cloudEvent.getId()); + System.out.println("Receive event Subject: " + cloudEvent.getSubject()); + System.out.println("Receive event Type: " + cloudEvent.getType()); + System.out.println("Receive event Data: " + new String(cloudEvent.getData().toBytes())); + System.out.println("Be polite, say " + service.hello("world")); + } + } diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java index fa3de58c328fe..28e657f4b17cd 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java @@ -2,6 +2,7 @@ import javax.inject.Inject; +import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; import io.quarkus.funqy.gcp.functions.event.PubsubMessage; import io.quarkus.funqy.gcp.functions.event.StorageEvent; @@ -23,4 +24,13 @@ public void helloGCSWorld(StorageEvent storageEvent) { System.out.println(storageEvent.name + " - " + message); } + @Funq + public void helloCloudEvent(CloudEvent cloudEvent) { + System.out.println("Receive event Id: " + cloudEvent.getId()); + System.out.println("Receive event Subject: " + cloudEvent.getSubject()); + System.out.println("Receive event Type: " + cloudEvent.getType()); + System.out.println("Receive event Data: " + new String(cloudEvent.getData().toBytes())); + System.out.println("Be polite, say " + service.hello("world")); + } + } From c37b60984dbbc2156609618697a1f4d374d9b549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 20 Dec 2022 11:40:02 +0100 Subject: [PATCH 003/250] Add tests examples to Google Cloud Functions codestart --- .../codestart.yml | 3 ++ .../HelloWorldBackgroundFunctionTest.java | 22 +++++++++++ .../HelloWorldCloudEventsFunctionTest.java | 39 +++++++++++++++++++ .../HelloWorldHttpFunctionTest.java | 22 +++++++++++ .../GoogleCloudFunctionsCodestartTest.java | 4 ++ ...ions_HelloWorldBackgroundFunctionTest.java | 22 +++++++++++ ...ons_HelloWorldCloudEventsFunctionTest.java | 39 +++++++++++++++++++ ...dfunctions_HelloWorldHttpFunctionTest.java | 22 +++++++++++ 8 files changed, 173 insertions(+) create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/codestart.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/codestart.yml index f58700dd248c8..ed176a1d70d22 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/codestart.yml +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/codestart.yml @@ -10,3 +10,6 @@ language: base: dependencies: - io.quarkus:quarkus-google-cloud-functions + test-dependencies: + - io.quarkus:quarkus-test-google-cloud-functions + - io.rest-assured:rest-assured diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java new file mode 100644 index 0000000000000..b23ec79b21331 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java @@ -0,0 +1,22 @@ +package org.acme.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(FunctionType.BACKGROUND) +class HelloWorldBackgroundFunctionTest { + @Test + public void testAccept() { + given() + .body("{\"data\":{\"name\":\"hello.txt\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java new file mode 100644 index 0000000000000..69239e60e7106 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java @@ -0,0 +1,39 @@ +package org.acme.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(FunctionType.CLOUD_EVENTS) +class HelloWorldCloudEventsFunctionTest { + @Test + public void testAccept() { + given() + .body("{\n" + + " \"bucket\": \"MY_BUCKET\",\n" + + " \"contentType\": \"text/plain\",\n" + + " \"kind\": \"storage#object\",\n" + + " \"md5Hash\": \"...\",\n" + + " \"metageneration\": \"1\",\n" + + " \"name\": \"MY_FILE.txt\",\n" + + " \"size\": \"352\",\n" + + " \"storageClass\": \"MULTI_REGIONAL\",\n" + + " \"timeCreated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"timeStorageClassUpdated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"updated\": \"2020-04-23T07:38:57.230Z\"\n" + + " }") + .header("ce-specversion", "1.0") + .header("ce-id", "1234567890") + .header("ce-type", "google.cloud.storage.object.v1.finalized") + .header("ce-source", "//storage.googleapis.com/projects/_/buckets/MY-BUCKET-NAME") + .header("ce-subject", "objects/MY_FILE.txt") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java new file mode 100644 index 0000000000000..bbbec9751c95b --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java @@ -0,0 +1,22 @@ +package org.acme.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.when; +import static org.hamcrest.Matchers.is; + +@QuarkusTest +@WithFunction(FunctionType.HTTP) +class HelloWorldHttpFunctionTest { + @Test + public void testService() { + when() + .get() + .then() + .statusCode(200) + .body(is("Hello World")); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/GoogleCloudFunctionsCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/GoogleCloudFunctionsCodestartTest.java index cb79e0227bdf6..bb68cd5a460f2 100644 --- a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/GoogleCloudFunctionsCodestartTest.java +++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/GoogleCloudFunctionsCodestartTest.java @@ -20,6 +20,10 @@ void testContent() throws Throwable { codestartTest.checkGeneratedSource("org.acme.googlecloudfunctions.HelloWorldCloudEventsFunction"); codestartTest.checkGeneratedSource("org.acme.googlecloudfunctions.HelloWorldBackgroundFunction"); codestartTest.checkGeneratedSource("org.acme.googlecloudfunctions.HelloWorldHttpFunction"); + + codestartTest.checkGeneratedTestSource("org.acme.googlecloudfunctions.HelloWorldCloudEventsFunctionTest"); + codestartTest.checkGeneratedTestSource("org.acme.googlecloudfunctions.HelloWorldBackgroundFunctionTest"); + codestartTest.checkGeneratedTestSource("org.acme.googlecloudfunctions.HelloWorldHttpFunctionTest"); } @Test diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java new file mode 100644 index 0000000000000..d1226399ee1d4 --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java @@ -0,0 +1,22 @@ +package ilove.quark.us.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(FunctionType.BACKGROUND) +class HelloWorldBackgroundFunctionTest { + @Test + public void testAccept() { + given() + .body("{\"data\":{\"name\":\"hello.txt\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java new file mode 100644 index 0000000000000..c407b7258d43f --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java @@ -0,0 +1,39 @@ +package ilove.quark.us.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(FunctionType.CLOUD_EVENTS) +class HelloWorldCloudEventsFunctionTest { + @Test + public void testAccept() { + given() + .body("{\n" + + " \"bucket\": \"MY_BUCKET\",\n" + + " \"contentType\": \"text/plain\",\n" + + " \"kind\": \"storage#object\",\n" + + " \"md5Hash\": \"...\",\n" + + " \"metageneration\": \"1\",\n" + + " \"name\": \"MY_FILE.txt\",\n" + + " \"size\": \"352\",\n" + + " \"storageClass\": \"MULTI_REGIONAL\",\n" + + " \"timeCreated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"timeStorageClassUpdated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"updated\": \"2020-04-23T07:38:57.230Z\"\n" + + " }") + .header("ce-specversion", "1.0") + .header("ce-id", "1234567890") + .header("ce-type", "google.cloud.storage.object.v1.finalized") + .header("ce-source", "//storage.googleapis.com/projects/_/buckets/MY-BUCKET-NAME") + .header("ce-subject", "objects/MY_FILE.txt") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java new file mode 100644 index 0000000000000..bdc8438f56a97 --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java @@ -0,0 +1,22 @@ +package ilove.quark.us.googlecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.when; +import static org.hamcrest.Matchers.is; + +@QuarkusTest +@WithFunction(FunctionType.HTTP) +class HelloWorldHttpFunctionTest { + @Test + public void testService() { + when() + .get() + .then() + .statusCode(200) + .body(is("Hello World")); + } +} \ No newline at end of file From fccc585a7d4b1aa0732f0f019efac50e4e950749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 20 Dec 2022 12:03:11 +0100 Subject: [PATCH 004/250] Add tests examples to Google Cloud Functions Funqy codestart --- .../codestart.yml | 3 ++ .../GreetingFunctionsCloudEventsTest.java | 40 +++++++++++++++++++ .../GreetingFunctionsPubSubTest.java | 22 ++++++++++ .../GreetingFunctionsStorageTest.java | 22 ++++++++++ ...unqyGoogleCloudFunctionsCodestartTest.java | 4 ++ ...ions_GreetingFunctionsCloudEventsTest.java | 40 +++++++++++++++++++ ...functions_GreetingFunctionsPubSubTest.java | 22 ++++++++++ ...unctions_GreetingFunctionsStorageTest.java | 22 ++++++++++ 8 files changed, 175 insertions(+) create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java create mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/codestart.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/codestart.yml index eee6f19f7669a..425fafc830f10 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/codestart.yml +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/codestart.yml @@ -10,3 +10,6 @@ language: base: dependencies: - io.quarkus:quarkus-funqy-google-cloud-functions + test-dependencies: + - io.quarkus:quarkus-test-google-cloud-functions + - io.rest-assured:rest-assured \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java new file mode 100644 index 0000000000000..ca4f54b69ae9a --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java @@ -0,0 +1,40 @@ +package org.acme.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_CLOUD_EVENTS, functionName = "helloCloudEvent") +class GreetingFunctionsCloudEventsTest { + @Test + public void testHelloCloudEvent() { + given() + .body("{\n" + + " \"bucket\": \"MY_BUCKET\",\n" + + " \"contentType\": \"text/plain\",\n" + + " \"kind\": \"storage#object\",\n" + + " \"md5Hash\": \"...\",\n" + + " \"metageneration\": \"1\",\n" + + " \"name\": \"MY_FILE.txt\",\n" + + " \"size\": \"352\",\n" + + " \"storageClass\": \"MULTI_REGIONAL\",\n" + + " \"timeCreated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"timeStorageClassUpdated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"updated\": \"2020-04-23T07:38:57.230Z\"\n" + + " }") + .header("ce-id", "123451234512345") + .header("ce-specversion", "1.0") + .header("ce-time", "2020-01-02T12:34:56.789Z") + .header("ce-type", "google.cloud.storage.object.v1.finalized") + .header("ce-source", "//storage.googleapis.com/projects/_/buckets/MY-BUCKET-NAME") + .header("ce-subject", "objects/MY_FILE.txt") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java new file mode 100644 index 0000000000000..d01e8941c7cd3 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java @@ -0,0 +1,22 @@ +package org.acme.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloPubSubWorld") +class GreetingFunctionsPubSubTest { + @Test + public void testHelloPubSubWorld() { + given() + .body("{\"data\":{\"data\":\"world\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java new file mode 100644 index 0000000000000..7f12f32d344c7 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java @@ -0,0 +1,22 @@ +package org.acme.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloGCSWorld") +class GreetingFunctionsStorageTest { + @Test + public void testHelloGCSWorld() { + given() + .body("{\"data\":{\"name\":\"hello.txt\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyGoogleCloudFunctionsCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyGoogleCloudFunctionsCodestartTest.java index aa0b1a2b58a51..b5c5c1e75c10d 100644 --- a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyGoogleCloudFunctionsCodestartTest.java +++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/FunqyGoogleCloudFunctionsCodestartTest.java @@ -19,6 +19,10 @@ public class FunqyGoogleCloudFunctionsCodestartTest { void testContent() throws Throwable { codestartTest.checkGeneratedSource("org.acme.funqygooglecloudfunctions.GreetingFunctions"); codestartTest.checkGeneratedSource("org.acme.funqygooglecloudfunctions.GreetingService"); + + codestartTest.checkGeneratedTestSource("org.acme.funqygooglecloudfunctions.GreetingFunctionsCloudEventsTest"); + codestartTest.checkGeneratedTestSource("org.acme.funqygooglecloudfunctions.GreetingFunctionsPubSubTest"); + codestartTest.checkGeneratedTestSource("org.acme.funqygooglecloudfunctions.GreetingFunctionsStorageTest"); } @Test diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java new file mode 100644 index 0000000000000..b902cb6bc535d --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java @@ -0,0 +1,40 @@ +package ilove.quark.us.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_CLOUD_EVENTS, functionName = "helloCloudEvent") +class GreetingFunctionsCloudEventsTest { + @Test + public void testHelloCloudEvent() { + given() + .body("{\n" + + " \"bucket\": \"MY_BUCKET\",\n" + + " \"contentType\": \"text/plain\",\n" + + " \"kind\": \"storage#object\",\n" + + " \"md5Hash\": \"...\",\n" + + " \"metageneration\": \"1\",\n" + + " \"name\": \"MY_FILE.txt\",\n" + + " \"size\": \"352\",\n" + + " \"storageClass\": \"MULTI_REGIONAL\",\n" + + " \"timeCreated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"timeStorageClassUpdated\": \"2020-04-23T07:38:57.230Z\",\n" + + " \"updated\": \"2020-04-23T07:38:57.230Z\"\n" + + " }") + .header("ce-id", "123451234512345") + .header("ce-specversion", "1.0") + .header("ce-time", "2020-01-02T12:34:56.789Z") + .header("ce-type", "google.cloud.storage.object.v1.finalized") + .header("ce-source", "//storage.googleapis.com/projects/_/buckets/MY-BUCKET-NAME") + .header("ce-subject", "objects/MY_FILE.txt") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java new file mode 100644 index 0000000000000..96f75c3ec6777 --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java @@ -0,0 +1,22 @@ +package ilove.quark.us.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloPubSubWorld") +class GreetingFunctionsPubSubTest { + @Test + public void testHelloPubSubWorld() { + given() + .body("{\"data\":{\"data\":\"world\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java new file mode 100644 index 0000000000000..be65eb45f9dc5 --- /dev/null +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java @@ -0,0 +1,22 @@ +package ilove.quark.us.funqygooglecloudfunctions; + +import io.quarkus.google.cloud.functions.test.FunctionType; +import io.quarkus.google.cloud.functions.test.WithFunction; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; + +@QuarkusTest +@WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloGCSWorld") +class GreetingFunctionsStorageTest { + @Test + public void testHelloGCSWorld() { + given() + .body("{\"data\":{\"name\":\"hello.txt\"}}") + .when() + .post() + .then() + .statusCode(200); + } +} \ No newline at end of file From 14001b74e303bb3fa45eb6333f2f00aeab3b6b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=B6zkan=20pakdil?= Date: Thu, 29 Dec 2022 19:46:54 +0000 Subject: [PATCH 005/250] some spelling fixes --- ACTIONS.md | 2 +- README.md | 2 +- .../io/quarkus/docs/generation/YamlMetadataGenerator.java | 4 ++-- jakarta/README.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ACTIONS.md b/ACTIONS.md index 46d59aeea3aeb..0df1caa935ea3 100644 --- a/ACTIONS.md +++ b/ACTIONS.md @@ -77,7 +77,7 @@ softwareupdate --install-rosetta --agree-to-license #### Download the runner scripts -GitHub provides an installation package of customised runner scripts for each repository. +GitHub provides an installation package of customized runner scripts for each repository. Follow [the instructions](https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners) to install the scripts for the repository to be built. diff --git a/README.md b/README.md index 6014a7f066825..c3df90e9fabc8 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Brings under one programming model non-blocking and imperative styles of develop * **Standards-based**: Based on the standards and frameworks you love and use (RESTEasy and JAX-RS, Hibernate ORM and JPA, Netty, Eclipse Vert.x, Eclipse MicroProfile, Apache Camel...). * **Microservice First**: -Brings lightning fast startup time and code turn around to Java apps. +Brings lightning fast startup time and code turnaround to Java apps. * **Developer Joy**: Development centric experience without compromise to bring your amazing apps to life in no time. diff --git a/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java b/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java index db0f19f711297..62df300c1ec64 100644 --- a/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java +++ b/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java @@ -155,7 +155,7 @@ public Index generateIndex() throws IOException { } Document doc = asciidoctor.load(str, options); - // Find position of "include::_attributes.adoc[]" + // Find the position of "include::_attributes.adoc[]" // it should be part of the document header int includeAttr = str.indexOf(INCL_ATTRIBUTES); if (includeAttr < 0) { @@ -368,7 +368,7 @@ private String getMessageforKey(String errorKey) { case "not-diataxis-type": return "Document does not follow naming conventions (type not recognized)."; case "toc": - return "A :toc: attribute is present in the Document header (remove it)"; + return "A :toc: attribute is present in the document header (remove it)"; } return errorKey; } diff --git a/jakarta/README.md b/jakarta/README.md index 6923feb965a54..36748c3913f3a 100644 --- a/jakarta/README.md +++ b/jakarta/README.md @@ -97,7 +97,7 @@ Note that this script also builds: #### OpenRewrite -The OpenRewrite transformation is done in one unique step to alleviate dependency issues we had before switching to this approach. +The OpenRewrite transformation is done in one unique step to alleviate the dependency issues we had before switching to this approach. You don't need to run OpenRewrite for the modules you add to `transform.sh`, you just need to adjust the configuration. OpenRewrite recipes are declared in the `jakarta/rewrite.yml` file. From bb402b24ce862def36347f9e0490bb21afe0a6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Mon, 2 Jan 2023 12:01:39 +0100 Subject: [PATCH 006/250] MongoDB with Panache: allow setting per collection read preference Fixes #29997 --- .../mongodb/runtime/MongoClientConfig.java | 2 +- .../mongodb/panache/common/MongoEntity.java | 6 ++++++ .../runtime/ReactiveMongoOperations.java | 17 +++++++++++++++-- .../panache/common/runtime/MongoOperations.java | 17 +++++++++++++++-- .../it/mongodb/panache/book/BookEntity.kt | 2 +- .../panache/reactive/book/ReactiveBookEntity.kt | 2 +- .../it/mongodb/panache/book/BookEntity.java | 2 +- .../reactive/book/ReactiveBookEntity.java | 2 +- 8 files changed, 41 insertions(+), 9 deletions(-) diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientConfig.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientConfig.java index acc9c7761fa68..8c631bff5bb38 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientConfig.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientConfig.java @@ -179,7 +179,7 @@ public class MongoClientConfig { public Optional readConcern; /** - * Configures the read preferences. + * Configures the read preference. * Supported values are: {@code primary|primaryPreferred|secondary|secondaryPreferred|nearest} */ @ConfigItem diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/MongoEntity.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/MongoEntity.java index 59902dcc0e69e..7fbc6ff55c917 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/MongoEntity.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/MongoEntity.java @@ -26,4 +26,10 @@ * The name of the MongoDB client (if not set the default client will be used). */ String clientName() default ""; + + /** + * Configures the read preference for the collection of this entity. + * Supported values are: {@code primary|primaryPreferred|secondary|secondaryPreferred|nearest} + */ + String readPreference() default ""; } diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/reactive/runtime/ReactiveMongoOperations.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/reactive/runtime/ReactiveMongoOperations.java index 2ba4c3a035b3f..c359c8ed4f775 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/reactive/runtime/ReactiveMongoOperations.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/reactive/runtime/ReactiveMongoOperations.java @@ -22,6 +22,7 @@ import org.bson.codecs.EncoderContext; import org.jboss.logging.Logger; +import com.mongodb.ReadPreference; import com.mongodb.client.model.InsertOneModel; import com.mongodb.client.model.ReplaceOneModel; import com.mongodb.client.model.ReplaceOptions; @@ -216,8 +217,20 @@ public Uni delete(Object entity) { public ReactiveMongoCollection mongoCollection(Class entityClass) { MongoEntity mongoEntity = entityClass.getAnnotation(MongoEntity.class); ReactiveMongoDatabase database = mongoDatabase(mongoEntity); - if (mongoEntity != null && !mongoEntity.collection().isEmpty()) { - return database.getCollection(mongoEntity.collection(), entityClass); + if (mongoEntity != null) { + ReactiveMongoCollection collection = mongoEntity.collection().isEmpty() + ? database.getCollection(entityClass.getSimpleName(), entityClass) + : database.getCollection(mongoEntity.collection(), entityClass); + if (!mongoEntity.readPreference().isEmpty()) { + try { + collection = collection.withReadPreference(ReadPreference.valueOf(mongoEntity.readPreference())); + } catch (IllegalArgumentException iae) { + throw new IllegalArgumentException("Illegal read preference " + mongoEntity.readPreference() + + " configured in the @MongoEntity annotation of " + entityClass.getName() + "." + + " Supported values are primary|primaryPreferred|secondary|secondaryPreferred|nearest"); + } + } + return collection; } return database.getCollection(entityClass.getSimpleName(), entityClass); } diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java index 27ef1a5c68452..72640961572e7 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java @@ -24,6 +24,7 @@ import org.bson.codecs.EncoderContext; import org.jboss.logging.Logger; +import com.mongodb.ReadPreference; import com.mongodb.client.ClientSession; import com.mongodb.client.MongoClient; import com.mongodb.client.MongoCollection; @@ -190,8 +191,20 @@ public void delete(Object entity) { public MongoCollection mongoCollection(Class entityClass) { MongoEntity mongoEntity = entityClass.getAnnotation(MongoEntity.class); MongoDatabase database = mongoDatabase(mongoEntity); - if (mongoEntity != null && !mongoEntity.collection().isEmpty()) { - return database.getCollection(mongoEntity.collection(), entityClass); + if (mongoEntity != null) { + MongoCollection collection = mongoEntity.collection().isEmpty() + ? database.getCollection(entityClass.getSimpleName(), entityClass) + : database.getCollection(mongoEntity.collection(), entityClass); + if (!mongoEntity.readPreference().isEmpty()) { + try { + collection = collection.withReadPreference(ReadPreference.valueOf(mongoEntity.readPreference())); + } catch (IllegalArgumentException iae) { + throw new IllegalArgumentException("Illegal read preference " + mongoEntity.readPreference() + + " configured in the @MongoEntity annotation of " + entityClass.getName() + "." + + " Supported values are primary|primaryPreferred|secondary|secondaryPreferred|nearest"); + } + } + return collection; } return database.getCollection(entityClass.getSimpleName(), entityClass); } diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntity.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntity.kt index 2ea85aaf953ab..2956c57ed2385 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntity.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntity.kt @@ -11,7 +11,7 @@ import org.bson.codecs.pojo.annotations.BsonProperty import org.bson.types.ObjectId import java.time.LocalDate -@MongoEntity(collection = "TheBookEntity", clientName = "cl2") +@MongoEntity(collection = "TheBookEntity", clientName = "cl2", readPreference = "primary") class BookEntity : PanacheMongoEntity() { companion object : PanacheMongoCompanion { override fun findById(id: ObjectId): BookEntity { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.kt index 7ed1c17287348..728875fe20dfd 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.kt @@ -11,7 +11,7 @@ import org.bson.codecs.pojo.annotations.BsonProperty import java.time.LocalDate import java.util.ArrayList -@MongoEntity(collection = "TheBookEntity", clientName = "cl2") +@MongoEntity(collection = "TheBookEntity", clientName = "cl2", readPreference = "primary") class ReactiveBookEntity : ReactivePanacheMongoEntity() { companion object : ReactivePanacheMongoCompanion diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntity.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntity.java index 6da808cd876f4..a6ff655ef97b7 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntity.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntity.java @@ -13,7 +13,7 @@ import io.quarkus.mongodb.panache.PanacheMongoEntity; import io.quarkus.mongodb.panache.common.MongoEntity; -@MongoEntity(collection = "TheBookEntity", clientName = "cl2") +@MongoEntity(collection = "TheBookEntity", clientName = "cl2", readPreference = "primary") public class BookEntity extends PanacheMongoEntity { @BsonProperty("bookTitle") private String title; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.java index 2a7437d1db7e3..2c844dbcc9550 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntity.java @@ -14,7 +14,7 @@ import io.quarkus.mongodb.panache.common.MongoEntity; import io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoEntity; -@MongoEntity(collection = "TheBookEntity", clientName = "cl2") +@MongoEntity(collection = "TheBookEntity", clientName = "cl2", readPreference = "primary") public class ReactiveBookEntity extends ReactivePanacheMongoEntity { @BsonProperty("bookTitle") private String title; From 22902d8fcb714cffdf2c44fa610dbc2c437a0df4 Mon Sep 17 00:00:00 2001 From: Antonio Jacob Costa Date: Thu, 10 Nov 2022 16:18:47 +0100 Subject: [PATCH 007/250] fix: pass quarkus args to dev mode gradle task --- .../io/quarkus/gradle/tasks/QuarkusDev.java | 1 + .../build.gradle | 38 ++++++++++ .../gradle.properties | 2 + .../settings.gradle | 15 ++++ .../src/main/java/org/acme/EntryPoint.java | 15 ++++ ...cJavaMainApplicationModuleDevModeTest.java | 70 +++++++++++++++++++ 6 files changed, 141 insertions(+) create mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle create mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties create mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle create mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java create mode 100644 integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index 9a3ebcf051b5b..3f64ea80e5d0b 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -371,6 +371,7 @@ private QuarkusDevModeLauncher newLauncher() throws Exception { .debug(System.getProperty("debug")) .debugHost(System.getProperty("debugHost")) .debugPort(System.getProperty("debugPort")) + .applicationArgs(System.getProperty("quarkus.args")) .suspend(System.getProperty("suspend")); if (System.getProperty(IO_QUARKUS_DEVMODE_ARGS) == null) { builder.jvmArgs("-Dquarkus.test.basic-console=true") diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle new file mode 100644 index 0000000000000..b5987d2fda26c --- /dev/null +++ b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle @@ -0,0 +1,38 @@ +plugins { + id 'java' + id 'io.quarkus' + id 'application' +} + +repositories { + mavenLocal { + content { + includeGroupByRegex 'io.quarkus.*' + } + } + mavenCentral() +} + +dependencies { + implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") + implementation 'io.quarkus:quarkus-arc' +} + +compileJava { + options.compilerArgs << '-parameters' +} + +application { + mainClass = 'org.acme.EntryPoint' +} + +run { + // propagate the custom local maven repo, in case it's configured + if (System.properties.containsKey('maven.repo.local')) { + systemProperty 'maven.repo.local', System.properties.get('maven.repo.local') + } +} + +test { + systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager" +} diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties new file mode 100644 index 0000000000000..ec2b6ef199c2c --- /dev/null +++ b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties @@ -0,0 +1,2 @@ +quarkusPlatformArtifactId=quarkus-bom +quarkusPlatformGroupId=io.quarkus diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle new file mode 100644 index 0000000000000..673d02a044226 --- /dev/null +++ b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle @@ -0,0 +1,15 @@ +pluginManagement { + repositories { + mavenLocal { + content { + includeGroupByRegex 'io.quarkus.*' + } + } + mavenCentral() + gradlePluginPortal() + } + plugins { + id 'io.quarkus' version "${quarkusPluginVersion}" + } +} +rootProject.name='code-with-quarkus' diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java new file mode 100644 index 0000000000000..80d6bee834580 --- /dev/null +++ b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java @@ -0,0 +1,15 @@ +package org.acme; + +import java.util.Arrays; + +import io.quarkus.runtime.Quarkus; +import io.quarkus.runtime.annotations.QuarkusMain; + +@QuarkusMain +public class EntryPoint { + + public static void main(String[] args) { + System.out.println("basic-java-main-application-project: args.length: " + args.length); + System.out.println("basic-java-main-application-project: args: " + Arrays.toString(args)); + } +} diff --git a/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java b/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java new file mode 100644 index 0000000000000..11952c4e4c790 --- /dev/null +++ b/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java @@ -0,0 +1,70 @@ +package io.quarkus.gradle.devmode; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.awaitility.Awaitility.await; + +import java.io.BufferedReader; +import java.io.File; +import java.io.RandomAccessFile; +import java.nio.file.Files; +import java.util.Arrays; +import java.util.concurrent.TimeUnit; + +public class BasicJavaMainApplicationModuleDevModeTest extends QuarkusDevGradleTestBase { + private static final String ARGS_LOG_LINE_PREFIX = "basic-java-main-application-project: args"; + + @Override + protected String projectDirectoryName() { + return "basic-java-main-application-project"; + } + + @Override + protected String[] buildArguments() { + return new String[] { "clean", "quarkusDev", "-s", "-Dquarkus.args=param1=1 param2=2" }; + } + + protected void testDevMode() throws Exception { + File logOutput = new File(projectDir, "command-output.log"); + await().atMost(30, TimeUnit.SECONDS).until(() -> { + try { + String logLine; + RandomAccessFile commandOutputLogFile = new RandomAccessFile(logOutput, "r"); + while ((logLine = commandOutputLogFile.readLine()) != null) { + if (logLine.startsWith(ARGS_LOG_LINE_PREFIX)) { + commandOutputLogFile.close(); + return true; + } + } + commandOutputLogFile.close(); + return false; + } catch (Exception e) { + System.out.println(String.format("e: , ", e.getMessage(), e.getCause())); + System.out.println("e: " + Arrays.toString(e.getStackTrace())); + return false; + } + }); + String argsLengthLogLine = null; + String argsLogLine = null; + if (logOutput.exists()) { + try (BufferedReader reader = Files.newBufferedReader(logOutput.toPath())) { + String line = reader.readLine(); + while (line != null) { + if (line.startsWith(ARGS_LOG_LINE_PREFIX)) { + if (line.contains("length")) { + argsLengthLogLine = line; + } else { + argsLogLine = line; + } + } + line = reader.readLine(); + } + } + } + assertThat(argsLengthLogLine).isNotNull(); + assertThat(argsLengthLogLine).isNotEmpty(); + assertThat(argsLogLine).isNotNull(); + assertThat(argsLogLine).isNotEmpty(); + assertThat(argsLengthLogLine).contains("basic-java-main-application-project: args.length: 2"); + assertThat(argsLogLine).contains("basic-java-main-application-project: args: [param1=1, param2=2]"); + } +} From 4511f2e36c2fbeef9680ec0f59e518fb3e0ae2b8 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Tue, 10 Jan 2023 10:14:41 +0100 Subject: [PATCH 008/250] Build metrics - collect information about produced build items --- .../java/io/quarkus/builder/BuildContext.java | 1 + .../java/io/quarkus/builder/BuildMetrics.java | 41 +++++++++++++++++-- .../BuildMetricsDevConsoleProcessor.java | 5 ++- .../main/resources/dev-templates/index.html | 6 +++ .../build-items.html | 34 +++++++++++++++ 5 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 extensions/vertx-http/deployment/src/main/resources/dev-templates/io.quarkus.quarkus-vertx-http/build-items.html diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildContext.java b/core/builder/src/main/java/io/quarkus/builder/BuildContext.java index d2bddb2f5010b..a3493fe3b0959 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildContext.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildContext.java @@ -254,6 +254,7 @@ private void doProduce(ItemId id, BuildItem value) { throw Messages.msg.cannotMulti(id); } } + execution.getMetrics().buildItemProduced(value); } void depFinished() { diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildMetrics.java b/core/builder/src/main/java/io/quarkus/builder/BuildMetrics.java index 39071ad082bbc..e7c6a45d4b14f 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildMetrics.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildMetrics.java @@ -13,6 +13,7 @@ import java.util.Collection; import java.util.Comparator; import java.util.List; +import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicInteger; @@ -21,6 +22,7 @@ import io.quarkus.builder.Json.JsonArrayBuilder; import io.quarkus.builder.Json.JsonObjectBuilder; +import io.quarkus.builder.item.BuildItem; public class BuildMetrics { @@ -30,6 +32,7 @@ public class BuildMetrics { private volatile long duration; private final String buildTargetName; private final ConcurrentMap records = new ConcurrentHashMap<>(); + private final ConcurrentMap buildItems = new ConcurrentHashMap<>(); private final AtomicInteger idGenerator; public BuildMetrics(String buildTargetName) { @@ -54,11 +57,22 @@ public void buildStepFinished(StepInfo stepInfo, String thread, LocalTime starte new BuildStepRecord(idGenerator.incrementAndGet(), stepInfo, thread, started, duration)); } + public void buildItemProduced(BuildItem buildItem) { + buildItems.compute(buildItem.getClass().getName(), this::itemProduced); + } + + private Integer itemProduced(String key, Integer val) { + if (val == null) { + return 1; + } + return val + 1; + } + public void dumpTo(Path file) throws IOException { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss.SSS"); - List sorted = new ArrayList<>(records.values()); - sorted.sort(new Comparator() { + List sortedSteps = new ArrayList<>(records.values()); + sortedSteps.sort(new Comparator() { @Override public int compare(BuildStepRecord o1, BuildStepRecord o2) { return Long.compare(o2.duration, o1.duration); @@ -72,7 +86,7 @@ public int compare(BuildStepRecord o1, BuildStepRecord o2) { JsonArrayBuilder steps = Json.array(); json.put("records", steps); - for (BuildStepRecord rec : sorted) { + for (BuildStepRecord rec : sortedSteps) { JsonObjectBuilder recObject = Json.object(); recObject.put("id", rec.id); recObject.put("stepId", rec.stepInfo.getBuildStep().getId()); @@ -91,6 +105,27 @@ public int compare(BuildStepRecord o1, BuildStepRecord o2) { recObject.put("dependents", dependentsArray); steps.add(recObject); } + + List> sortedItems = new ArrayList<>(buildItems.size()); + buildItems.entrySet().forEach(sortedItems::add); + sortedItems.sort(new Comparator>() { + @Override + public int compare(Entry o1, Entry o2) { + return Integer.compare(o2.getValue(), o1.getValue()); + } + }); + JsonArrayBuilder items = Json.array(); + json.put("items", items); + Integer itemsCount = 0; + for (Entry e : sortedItems) { + JsonObjectBuilder itemObject = Json.object(); + itemObject.put("class", e.getKey()); + itemObject.put("count", e.getValue()); + items.add(itemObject); + itemsCount += e.getValue(); + } + json.put("itemsCount", itemsCount); + try (BufferedWriter writer = new BufferedWriter(new FileWriter(file.toFile(), StandardCharsets.UTF_8))) { json.appendTo(writer); } diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/BuildMetricsDevConsoleProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/BuildMetricsDevConsoleProcessor.java index 174df44dbee5b..b72d13bff79af 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/BuildMetricsDevConsoleProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/BuildMetricsDevConsoleProcessor.java @@ -57,8 +57,8 @@ public Map get() { buildDuration = data.getLong("duration"); buildStarted = LocalDateTime .parse(data.getString("started"), DateTimeFormatter.ISO_LOCAL_DATE_TIME).toLocalTime(); - JsonArray records = data.getJsonArray("records"); + JsonArray records = data.getJsonArray("records"); for (Object record : records) { JsonObject recordObj = (JsonObject) record; recordObj.put("encodedStepId", URLEncoder.encode(recordObj.getString("stepId"), @@ -73,7 +73,10 @@ public Map get() { } steps.add(recordObj); } + metrics.put("records", records); + metrics.put("items", data.getJsonArray("items")); + metrics.put("itemsCount", data.getInteger("itemsCount")); metrics.put("duration", buildDuration); } catch (IOException e) { LOG.error(e); diff --git a/extensions/vertx-http/deployment/src/main/resources/dev-templates/index.html b/extensions/vertx-http/deployment/src/main/resources/dev-templates/index.html index 6fe4bd44f99a8..a3de5675e993c 100644 --- a/extensions/vertx-http/deployment/src/main/resources/dev-templates/index.html +++ b/extensions/vertx-http/deployment/src/main/resources/dev-templates/index.html @@ -15,6 +15,12 @@ Build Steps

+

+ + + Build Items + +

diff --git a/extensions/vertx-http/deployment/src/main/resources/dev-templates/io.quarkus.quarkus-vertx-http/build-items.html b/extensions/vertx-http/deployment/src/main/resources/dev-templates/io.quarkus.quarkus-vertx-http/build-items.html new file mode 100644 index 0000000000000..c194a34652a1c --- /dev/null +++ b/extensions/vertx-http/deployment/src/main/resources/dev-templates/io.quarkus.quarkus-vertx-http/build-items.html @@ -0,0 +1,34 @@ +{#let metrics=info:buildMetrics.get} + +{#include main fluid=true} +{#title}Build Items{/title} +{#body} +

+Produced {metrics.itemsCount} build items. +

+ + + + + + + + + + + {#for item in metrics.items} + + + + + {/for} + +
#Build ItemCount
{item_count} + {item.class} + + {item.count} +
+ +{/include} + +{/let} \ No newline at end of file From 78515802c4e723f8f8bdd0f6a462dadd987899a3 Mon Sep 17 00:00:00 2001 From: Ozan Gunalp Date: Tue, 22 Nov 2022 11:05:10 +0000 Subject: [PATCH 009/250] Keep test IT for HibernateOrmStateStore. Uses DTO for sending Kafka records Separate PUs for fruit and people entities --- docs/src/main/asciidoc/kafka.adoc | 5 +++-- .../kafka/HibernateOrmStateStore.java | 20 +++++++++++++++---- .../io/quarkus/it/kafka/KafkaEndpoint.java | 5 +++++ .../io/quarkus/it/kafka/KafkaReceivers.java | 20 +++++++++++-------- .../quarkus/it/kafka/{ => fruit}/Fruit.java | 2 +- .../io/quarkus/it/kafka/fruit/FruitDto.java | 20 +++++++++++++++++++ .../it/kafka/{ => fruit}/FruitProducer.java | 2 +- .../io/quarkus/it/kafka/package-info.java | 4 ---- .../it/kafka/{ => people}/PeopleProducer.java | 2 +- .../it/kafka/{ => people}/PeopleState.java | 2 +- .../quarkus/it/kafka/{ => people}/Person.java | 2 +- .../src/main/resources/application.properties | 5 ++++- .../quarkus/it/kafka/KafkaConnectorTest.java | 7 ++++--- 13 files changed, 69 insertions(+), 27 deletions(-) rename integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/{ => fruit}/Fruit.java (89%) create mode 100644 integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitDto.java rename integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/{ => fruit}/FruitProducer.java (94%) delete mode 100644 integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/package-info.java rename integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/{ => people}/PeopleProducer.java (93%) rename integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/{ => people}/PeopleState.java (89%) rename integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/{ => people}/Person.java (92%) diff --git a/docs/src/main/asciidoc/kafka.adoc b/docs/src/main/asciidoc/kafka.adoc index 946e61fcacbda..0937bad429616 100644 --- a/docs/src/main/asciidoc/kafka.adoc +++ b/docs/src/main/asciidoc/kafka.adoc @@ -2618,13 +2618,14 @@ public class ResourceSendingToKafka { @Transactional // <1> public CompletionStage storeAndSendToKafka(Fruit fruit) { // <2> fruit.persist(); - return emitter.send(fruit); // <3> + return emitter.send(new FruitDto(fruit)); // <3> } } ---- <1> As we are writing to the database, make sure we run inside a transaction <2> The method receives the fruit instance to persist. It returns a `CompletionStage` which is used for the transaction demarcation. The transaction is committed when the return `CompletionStage` completes. In our case, it's when the message is written to Kafka. -<3> Send the managed instance to Kafka. Make sure we wait for the message to complete before closing the transaction. +<3> Wrap the managed entity inside a Data transfer object and send it to Kafka. +This makes sure that managed entity is not impacted by the Kafka serialization. [#writing-entities-managed-by-hibernate-reactive-to-kafka] === Writing entities managed by Hibernate Reactive to Kafka diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java index dacadc1645387..9a8f75a79a7f3 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java @@ -72,19 +72,31 @@ public Uni>> fetchProcessingState(Collect Object[] ids = partitions.stream() .map(tp -> new CheckpointEntityId(consumerGroupId, tp)) .toArray(Object[]::new); - return Vertx.currentContext().executeBlocking(Uni.createFrom().item(() -> { + return Vertx.currentContext().executeBlocking(Uni.createFrom().emitter(emitter -> { List fetched = new ArrayList<>(); + Transaction tx = null; try (Session session = sf.openSession()) { + tx = session.beginTransaction(); for (Object id : ids) { CheckpointEntity entity = session.find(stateType, id); if (entity != null) { fetched.add(entity); } } + Map> stateMap = fetched.stream() + .filter(e -> e != null && CheckpointEntity.topicPartition(e) != null) + .collect(Collectors.toMap(CheckpointEntity::topicPartition, + e -> new ProcessingState<>(e, e.offset))); + session.flush(); + tx.commit(); + emitter.complete(stateMap); + } catch (Throwable t) { + if (tx != null) { + tx.rollback(); + } + emitter.fail(t); } - return fetched.stream().filter(e -> e != null && CheckpointEntity.topicPartition(e) != null) - .collect(Collectors.toMap(CheckpointEntity::topicPartition, - e -> new ProcessingState<>(e, e.offset))); + })); }); } diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index 2e5c60d7410df..362c837a90d7b 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -4,6 +4,7 @@ import javax.inject.Inject; import javax.persistence.EntityManager; +import javax.transaction.Transactional; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @@ -12,6 +13,9 @@ import org.apache.kafka.common.TopicPartition; import io.quarkus.hibernate.orm.PersistenceUnit; +import io.quarkus.it.kafka.fruit.Fruit; +import io.quarkus.it.kafka.people.PeopleState; +import io.quarkus.it.kafka.people.Person; import io.quarkus.smallrye.reactivemessaging.kafka.CheckpointEntityId; @Path("/kafka") @@ -40,6 +44,7 @@ public List getPeople() { @GET @Path("/people-state") @Produces(MediaType.APPLICATION_JSON) + @Transactional public PeopleState getPeopleState() { return entityManager.find(PeopleState.class, new CheckpointEntityId("people-checkpoint", new TopicPartition("people", 0))); diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java index 5bb200fe10450..25ea7cffa9c99 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java @@ -8,10 +8,14 @@ import javax.transaction.Transactional; import org.eclipse.microprofile.reactive.messaging.Channel; +import org.eclipse.microprofile.reactive.messaging.Emitter; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; -import io.smallrye.reactive.messaging.MutinyEmitter; +import io.quarkus.it.kafka.fruit.Fruit; +import io.quarkus.it.kafka.fruit.FruitDto; +import io.quarkus.it.kafka.people.PeopleState; +import io.quarkus.it.kafka.people.Person; import io.smallrye.reactive.messaging.kafka.commit.CheckpointMetadata; @ApplicationScoped @@ -20,13 +24,13 @@ public class KafkaReceivers { private final List people = new CopyOnWriteArrayList<>(); @Channel("fruits-persisted") - MutinyEmitter emitter; + Emitter emitter; @Incoming("fruits-in") @Transactional - public CompletionStage persist(Message fruit) { - fruit.getPayload().persist(); - return emitter.sendMessage(fruit).subscribeAsCompletionStage(); + public CompletionStage persist(Fruit fruit) { + fruit.persist(); + return emitter.send(new FruitDto(fruit)); } @Incoming("people-in") @@ -34,10 +38,10 @@ public CompletionStage consume(Message msg) { CheckpointMetadata store = CheckpointMetadata.fromMessage(msg); Person person = msg.getPayload(); store.transform(new PeopleState(), c -> { - if (c.names == null) { - c.names = person.getName(); + if (c.getNames() == null) { + c.setNames(person.getName()); } else { - c.names = c.names + ";" + person.getName(); + c.setNames(c.getNames() + ";" + person.getName()); } return c; }); diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Fruit.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java similarity index 89% rename from integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Fruit.java rename to integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java index da5f7a87c4829..acfd1f577d564 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Fruit.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java @@ -1,4 +1,4 @@ -package io.quarkus.it.kafka; +package io.quarkus.it.kafka.fruit; import javax.persistence.Entity; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitDto.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitDto.java new file mode 100644 index 0000000000000..9622a305f8ae0 --- /dev/null +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitDto.java @@ -0,0 +1,20 @@ +package io.quarkus.it.kafka.fruit; + +public class FruitDto { + String name; + + public FruitDto(Fruit fruit) { + this.name = fruit.name; + } + + public FruitDto() { + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/FruitProducer.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java similarity index 94% rename from integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/FruitProducer.java rename to integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java index 9921a1e2fd469..0be96ac8cfe21 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/FruitProducer.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java @@ -1,4 +1,4 @@ -package io.quarkus.it.kafka; +package io.quarkus.it.kafka.fruit; import javax.ws.rs.Consumes; import javax.ws.rs.POST; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/package-info.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/package-info.java deleted file mode 100644 index a9574d0fd0b3d..0000000000000 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -@PersistenceUnit("people") -package io.quarkus.it.kafka; - -import io.quarkus.hibernate.orm.PersistenceUnit; \ No newline at end of file diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleProducer.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java similarity index 93% rename from integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleProducer.java rename to integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java index def7dd4e0baff..893dbbd947b0b 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleProducer.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java @@ -1,4 +1,4 @@ -package io.quarkus.it.kafka; +package io.quarkus.it.kafka.people; import javax.enterprise.context.ApplicationScoped; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleState.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java similarity index 89% rename from integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleState.java rename to integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java index 326a001f6aa69..7005b79c15fdb 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/PeopleState.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java @@ -1,4 +1,4 @@ -package io.quarkus.it.kafka; +package io.quarkus.it.kafka.people; import javax.persistence.Entity; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Person.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/Person.java similarity index 92% rename from integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Person.java rename to integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/Person.java index 079fe366ed16c..05a673886c3f5 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/Person.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/Person.java @@ -1,4 +1,4 @@ -package io.quarkus.it.kafka; +package io.quarkus.it.kafka.people; import io.quarkus.runtime.annotations.RegisterForReflection; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/resources/application.properties b/integration-tests/reactive-messaging-hibernate-orm/src/main/resources/application.properties index 119ec25620209..ccdbd05a7e582 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/resources/application.properties +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/resources/application.properties @@ -19,10 +19,13 @@ mp.messaging.outgoing.people-out.acks=all mp.messaging.incoming.people-in.topic=people mp.messaging.incoming.people-in.commit-strategy=checkpoint mp.messaging.incoming.people-in.checkpoint.state-store=quarkus-hibernate-orm -mp.messaging.incoming.people-in.checkpoint.state-type=io.quarkus.it.kafka.PeopleState +mp.messaging.incoming.people-in.checkpoint.state-type=io.quarkus.it.kafka.people.PeopleState mp.messaging.incoming.people-in.checkpoint.quarkus-hibernate-orm.persistence-unit=people mp.messaging.incoming.people-in.auto.commit.interval.ms=500 mp.messaging.incoming.people-in.group.id=people-checkpoint +quarkus.datasource.devservices.enabled=true +quarkus.hibernate-orm.packages=io.quarkus.it.kafka.fruit quarkus.datasource."people".devservices.enabled=true quarkus.hibernate-orm."people".datasource=people +quarkus.hibernate-orm."people".packages=io.quarkus.it.kafka.people diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java b/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java index 860688a11c9ae..ae6f2071138f5 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java @@ -12,9 +12,11 @@ import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.common.serialization.StringDeserializer; import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import io.quarkus.it.kafka.fruit.Fruit; +import io.quarkus.it.kafka.people.PeopleState; +import io.quarkus.it.kafka.people.Person; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.kafka.InjectKafkaCompanion; @@ -25,7 +27,6 @@ @QuarkusTest @QuarkusTestResource(KafkaCompanionResource.class) -@Disabled public class KafkaConnectorTest { protected static final TypeRef> TYPE_REF = new TypeRef>() { @@ -69,7 +70,7 @@ public void testPeople() { PeopleState result = get("/kafka/people-state").as(PeopleState.class); Assertions.assertNotNull(result); Assertions.assertTrue(result.offset >= 6); - Assertions.assertEquals("bob;alice;tom;jerry;anna;ken", result.names); + Assertions.assertEquals("bob;alice;tom;jerry;anna;ken", result.getNames()); }); } From 8d107eea3bea3ed415113bc5856b6002d2464847 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 16 Jan 2023 09:34:57 +0200 Subject: [PATCH 010/250] Provide a way for users to customize PgPool creation Resolves: #29348 --- .../deployment/ReactivePgClientProcessor.java | 52 +++++++++ .../pg/client/LocalhostPgPoolCreator.java | 14 +++ ...tipleDataSourcesAndPgPoolCreatorsTest.java | 103 ++++++++++++++++++ ...lePgPoolCreatorsForSameDatasourceTest.java | 40 +++++++ .../reactive/pg/client/PgPoolCreatorTest.java | 30 +++++ ...-credentials-with-erroneous-url.properties | 3 + ...-datasources-with-erroneous-url.properties | 11 ++ .../reactive/pg/client/PgPoolCreator.java | 30 +++++ .../pg/client/runtime/PgPoolRecorder.java | 51 ++++++++- 9 files changed, 333 insertions(+), 1 deletion(-) create mode 100644 extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java create mode 100644 extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java create mode 100644 extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java create mode 100644 extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolCreatorTest.java create mode 100644 extensions/reactive-pg-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties create mode 100644 extensions/reactive-pg-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties create mode 100644 extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/PgPoolCreator.java diff --git a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java index 12463073eb480..1eff23617ecfd 100644 --- a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java +++ b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java @@ -1,12 +1,26 @@ package io.quarkus.reactive.pg.client.deployment; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Predicate; +import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.DotName; +import org.jboss.jandex.Type; + import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.devconsole.Name; +import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.DotNames; import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.common.runtime.DatabaseKind; @@ -34,6 +48,7 @@ import io.quarkus.reactive.datasource.runtime.DataSourceReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.pg.client.PgPoolCreator; import io.quarkus.reactive.pg.client.runtime.DataSourcesReactivePostgreSQLConfig; import io.quarkus.reactive.pg.client.runtime.PgPoolRecorder; import io.quarkus.reactive.pg.client.runtime.PostgreSQLServiceBindingConverter; @@ -121,6 +136,33 @@ void addHealthCheck( dataSourcesBuildTimeConfig.healthEnabled)); } + @BuildStep + void unremoveableBeans(BuildProducer producer) { + producer.produce(UnremovableBeanBuildItem.beanTypes(PgPoolCreator.class)); + } + + @BuildStep + void validateBeans(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + // no two PgPoolCreator beans can be associated with the same datasource + Map seen = new HashMap<>(); + for (BeanInfo beanInfo : validationPhase.getContext().beans().matchBeanTypes(new PgPoolCreatorBeanClassPredicate())) { + Set qualifiers = new TreeSet<>(); // use a TreeSet in order to get a predictable iteration order + for (AnnotationInstance qualifier : beanInfo.getQualifiers()) { + qualifiers.add(Name.from(qualifier)); + } + String qualifiersStr = qualifiers.stream().map(Name::toString).collect(Collectors.joining("_")); + if (seen.getOrDefault(qualifiersStr, false)) { + errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( + new IllegalStateException( + "There can be at most one bean of type '" + PgPoolCreator.class.getName() + + "' for each datasource."))); + } else { + seen.put(qualifiersStr, true); + } + } + } + @BuildStep void registerServiceBinding(Capabilities capabilities, BuildProducer serviceProvider, BuildProducer dbKind) { @@ -243,4 +285,14 @@ private static void addQualifiers(ExtendedBeanConfigurator configurator, String .done(); } } + + private static class PgPoolCreatorBeanClassPredicate implements Predicate> { + private static final Type PG_POOL_CREATOR = Type.create(DotName.createSimple(PgPoolCreator.class.getName()), + Type.Kind.CLASS); + + @Override + public boolean test(Set types) { + return types.contains(PG_POOL_CREATOR); + } + } } diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java new file mode 100644 index 0000000000000..4df42b98dde69 --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java @@ -0,0 +1,14 @@ +package io.quarkus.reactive.pg.client; + +import javax.inject.Singleton; + +import io.vertx.pgclient.PgPool; + +@Singleton +public class LocalhostPgPoolCreator implements PgPoolCreator { + + @Override + public PgPool create(Input input) { + return PgPool.pool(input.vertx(), input.pgConnectOptions().setHost("localhost").setPort(5431), input.poolOptions()); + } +} diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java new file mode 100644 index 0000000000000..bc5b7bfbcb5c8 --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java @@ -0,0 +1,103 @@ +package io.quarkus.reactive.pg.client; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionStage; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.pgclient.PgPool; + +public class MultipleDataSourcesAndPgPoolCreatorsTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withConfigurationResource("application-multiple-datasources-with-erroneous-url.properties") + .withApplicationRoot((jar) -> jar + .addClasses(BeanUsingDefaultDataSource.class) + .addClass(BeanUsingHibernateDataSource.class) + .addClass(DefaultPgPoolCreator.class) + .addClass(HibernatePgPoolCreator.class)); + + @Inject + BeanUsingDefaultDataSource beanUsingDefaultDataSource; + + @Inject + BeanUsingHibernateDataSource beanUsingHibernateDataSource; + + @Test + public void testMultipleDataSources() { + beanUsingDefaultDataSource.verify() + .thenCompose(v -> beanUsingHibernateDataSource.verify()) + .toCompletableFuture() + .join(); + } + + @ApplicationScoped + static class BeanUsingDefaultDataSource { + + @Inject + PgPool pgClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + pgClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @ApplicationScoped + static class BeanUsingHibernateDataSource { + + @Inject + @ReactiveDataSource("hibernate") + PgPool pgClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + pgClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @Singleton + public static class DefaultPgPoolCreator implements PgPoolCreator { + + @Override + public PgPool create(Input input) { + assertEquals(10, input.pgConnectOptions().getPipeliningLimit()); // validate that the bean has been called for the proper datasource + return PgPool.pool(input.vertx(), input.pgConnectOptions().setHost("localhost").setPort(5431), input.poolOptions()); + } + } + + @Singleton + @ReactiveDataSource("hibernate") + public static class HibernatePgPoolCreator implements PgPoolCreator { + + @Override + public PgPool create(Input input) { + assertEquals(7, input.pgConnectOptions().getPipeliningLimit()); // validate that the bean has been called for the proper datasource + return PgPool.pool(input.vertx(), input.pgConnectOptions().setHost("localhost").setPort(5431), input.poolOptions()); + } + } +} diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java new file mode 100644 index 0000000000000..325e6865a84ca --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java @@ -0,0 +1,40 @@ +package io.quarkus.reactive.pg.client; + +import static org.junit.jupiter.api.Assertions.fail; + +import javax.enterprise.inject.spi.DeploymentException; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.pgclient.PgPool; + +public class MultiplePgPoolCreatorsForSameDatasourceTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostPgPoolCreator.class) + .addClass(AnotherPgPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")) + .setExpectedException(DeploymentException.class); + + @Test + public void test() { + fail("Should never have been called"); + } + + @Singleton + public static class AnotherPgPoolCreator implements PgPoolCreator { + + @Override + public PgPool create(Input input) { + return PgPool.pool(input.vertx(), input.pgConnectOptions(), input.poolOptions()); + } + } + +} diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolCreatorTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolCreatorTest.java new file mode 100644 index 0000000000000..bc16ade4ee22b --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolCreatorTest.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.pg.client; + +import static io.restassured.RestAssured.given; + +import org.hamcrest.CoreMatchers; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class PgPoolCreatorTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostPgPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")); + + @Test + public void testConnect() { + given() + .when().get("/test") + .then() + .statusCode(200) + .body(CoreMatchers.equalTo("OK")); + } + +} diff --git a/extensions/reactive-pg-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties b/extensions/reactive-pg-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties new file mode 100644 index 0000000000000..2784de89ee990 --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties @@ -0,0 +1,3 @@ +quarkus.datasource.db-kind=postgresql +quarkus.datasource.credentials-provider=custom +quarkus.datasource.reactive.url=vertx-reactive:postgresql://test:12345/hibernate_orm_test diff --git a/extensions/reactive-pg-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties b/extensions/reactive-pg-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties new file mode 100644 index 0000000000000..1c74fbf5ecc20 --- /dev/null +++ b/extensions/reactive-pg-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties @@ -0,0 +1,11 @@ +quarkus.datasource.db-kind=postgresql +quarkus.datasource.username=hibernate_orm_test +quarkus.datasource.password=hibernate_orm_test +quarkus.datasource.reactive.url=vertx-reactive:postgresql://test:12345/hibernate_orm_test +quarkus.datasource.reactive.postgresql.pipelining-limit=10 + +quarkus.datasource."hibernate".db-kind=postgresql +quarkus.datasource."hibernate".username=hibernate_orm_test +quarkus.datasource."hibernate".password=hibernate_orm_test +quarkus.datasource."hibernate".reactive.url=vertx-reactive:postgresql://test:55555/hibernate_orm_test +quarkus.datasource."hibernate".reactive.postgresql.pipelining-limit=7 diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/PgPoolCreator.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/PgPoolCreator.java new file mode 100644 index 0000000000000..ca40189b97b6e --- /dev/null +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/PgPoolCreator.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.pg.client; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.vertx.core.Vertx; +import io.vertx.pgclient.PgConnectOptions; +import io.vertx.pgclient.PgPool; +import io.vertx.sqlclient.PoolOptions; + +/** + * This interface is an integration point that allows users to use the {@link Vertx}, {@link PoolOptions} and + * {@link PgConnectOptions} objects configured automatically by Quarkus, in addition to a custom strategy + * for creating the final {@link PgPool}. + * + * Implementations of this class are meant to be used as CDI beans. + * If a bean of this type is used without a {@link ReactiveDataSource} qualifier, then it's applied to the default datasource, + * otherwise it applies to the datasource matching the name of the annotation. + */ +public interface PgPoolCreator { + + PgPool create(Input input); + + interface Input { + + Vertx vertx(); + + PoolOptions poolOptions(); + + PgConnectOptions pgConnectOptions(); + } +} diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java index 31a5405003d3d..9c5708b440de5 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java @@ -13,14 +13,20 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; +import javax.enterprise.inject.Instance; + import org.jboss.logging.Logger; +import io.quarkus.arc.Arc; import io.quarkus.credentials.CredentialsProvider; import io.quarkus.credentials.runtime.CredentialsProviderFinder; +import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.runtime.DataSourceRuntimeConfig; import io.quarkus.datasource.runtime.DataSourcesRuntimeConfig; +import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.pg.client.PgPoolCreator; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; @@ -78,7 +84,7 @@ private PgPool initialize(Vertx vertx, log.warn( "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); } - return PgPool.pool(vertx, pgConnectOptions, poolOptions); + return createPool(vertx, poolOptions, pgConnectOptions, dataSourceName); } private PoolOptions toPoolOptions(Integer eventLoopCount, @@ -201,4 +207,47 @@ private PgConnectOptions toPgConnectOptions(DataSourceRuntimeConfig dataSourceRu return pgConnectOptions; } + + private PgPool createPool(Vertx vertx, PoolOptions poolOptions, PgConnectOptions pgConnectOptions, + String dataSourceName) { + Instance instance; + if (DataSourceUtil.isDefault(dataSourceName)) { + instance = Arc.container().select(PgPoolCreator.class); + } else { + instance = Arc.container().select(PgPoolCreator.class, + new ReactiveDataSource.ReactiveDataSourceLiteral(dataSourceName)); + } + if (instance.isResolvable()) { + PgPoolCreator.Input input = new DefaultInput(vertx, poolOptions, pgConnectOptions); + return instance.get().create(input); + } + return PgPool.pool(vertx, pgConnectOptions, poolOptions); + } + + private static class DefaultInput implements PgPoolCreator.Input { + private final Vertx vertx; + private final PoolOptions poolOptions; + private final PgConnectOptions pgConnectOptions; + + public DefaultInput(Vertx vertx, PoolOptions poolOptions, PgConnectOptions pgConnectOptions) { + this.vertx = vertx; + this.poolOptions = poolOptions; + this.pgConnectOptions = pgConnectOptions; + } + + @Override + public Vertx vertx() { + return vertx; + } + + @Override + public PoolOptions poolOptions() { + return poolOptions; + } + + @Override + public PgConnectOptions pgConnectOptions() { + return pgConnectOptions; + } + } } From c3eb6be420e6f0e096553fe9bab97bbbdca60c6c Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Wed, 18 Jan 2023 18:22:43 +0000 Subject: [PATCH 011/250] Document how to set an extension image. --- docs/src/main/asciidoc/extension-metadata.adoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/extension-metadata.adoc b/docs/src/main/asciidoc/extension-metadata.adoc index aef4817a79eb0..5a6f835c86b5d 100644 --- a/docs/src/main/asciidoc/extension-metadata.adoc +++ b/docs/src/main/asciidoc/extension-metadata.adoc @@ -32,14 +32,15 @@ metadata: - "reactive" status: "stable" <6> guide: "https://quarkus.io/guides/resteasy-reactive" <7> - codestart: <8> + icon-url: "https://quarkus.io/assets/images/about/icon-reactive.svg" <8> + codestart: <9> name: "resteasy-reactive" languages: - "java" - "kotlin" - "scala" artifact: "io.quarkus:quarkus-project-core-extension-codestarts" - config: <9> + config: <10> - "quarkus.resteasy-reactive." ---- @@ -50,8 +51,9 @@ metadata: <5> Categories the extension should appear under on https://code.quarkus.io[code.quarkus.io]. This field can be omitted, the extension will still be listed on https://code.quarkus.io[code.quarkus.io] but won't be categorized <6> Maturity status that could be `stable`, `preview`, `experimental`. It is up to extension maintainers to evaluate the maturity status and communicate it to the users <7> Link to the extension guide or documentation page -<8> https://quarkus.io/guides/extension-codestart[Codestart] information -<9> Configuration prefix +<8> Link to an externally hosted image. This is used in the Quarkus dev tools as the extension icon. Alternatively, if you https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview[set the social media preview] on your extensions source code repository, the tools will pick up that image. +<9> https://quarkus.io/guides/extension-codestart[Codestart] information +<10> Configuration prefix And here is the final version of the file included in the runtime JAR augmented with other information collected by the Quarkus Maven plugin: From 6458bffd6e04157f2b6805ace08d27b85bc26f7d Mon Sep 17 00:00:00 2001 From: Michael Mosmann Date: Fri, 13 Jan 2023 16:10:31 +0100 Subject: [PATCH 012/250] flapdoodle embed mongo dependency upgrade to 4.4.0 --- bom/application/pom.xml | 2 +- .../io/quarkus/mongodb/MongoTestBase.java | 91 +++---- .../mongodb/MongoWithReplicasTestBase.java | 203 +++++++--------- .../mongodb/reactive/MongoTestBase.java | 93 +++----- .../reactive/MongoWithReplicasTestBase.java | 207 +++++++--------- .../mongodb/MongoReplicaSetTestResource.java | 225 +++++++++--------- .../test/mongodb/MongoTestResource.java | 118 ++++----- 7 files changed, 386 insertions(+), 553 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 62e59be957142..1d98737235013 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -171,7 +171,7 @@ 3.14.9 1.17.2 0.1.1 - 3.5.3 + 4.4.0 5.2.SP7 2.1.SP2 5.3.Final diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTestBase.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTestBase.java index 5bb4d9529688b..c925e23643845 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTestBase.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTestBase.java @@ -1,28 +1,23 @@ package io.quarkus.mongodb; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; - import java.io.IOException; import org.jboss.logging.Logger; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.Defaults; -import de.flapdoodle.embed.mongo.config.MongoCmdOptions; -import de.flapdoodle.embed.mongo.config.MongodConfig; +import de.flapdoodle.embed.mongo.commands.MongodArguments; import de.flapdoodle.embed.mongo.config.Net; import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; public class MongoTestBase { private static final Logger LOGGER = Logger.getLogger(MongoTestBase.class); - private static MongodExecutable MONGO; + private static TransitionWalker.ReachedState MONGO; protected static String getConfiguredConnectionString() { return getProperty("connection_string"); @@ -42,77 +37,47 @@ protected static String getProperty(String name) { @BeforeAll public static void startMongoDatabase() throws IOException { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } + forceExtendedSocketOptionsClassInit(); + String uri = getConfiguredConnectionString(); // This switch allow testing against a running mongo database. if (uri == null) { Version.Main version = Version.Main.V4_0; int port = 27018; LOGGER.infof("Starting Mongo %s on port %s", version, port); - MongodConfig config = MongodConfig.builder() - .version(version) - .net(new Net("127.0.0.1", port, false)) - .cmdOptions(MongoCmdOptions.builder() - .useNoJournal(false) - .build()) - .build(); - MONGO = getMongodExecutable(config); - try { - MONGO.start(); - } catch (Exception e) { - //every so often mongo fails to start on CI runs - //see if this helps - try { - Thread.sleep(1000); - } catch (InterruptedException ignore) { - } - MONGO.start(); - } + MONGO = Mongod.instance() + .withNet(Start.to(Net.class).initializedWith(Net.builder() + .from(Net.defaults()) + .port(port) + .build())) + .withMongodArguments(Start.to(MongodArguments.class) + .initializedWith(MongodArguments.defaults().withUseNoJournal(false))) + .start(version); + } else { LOGGER.infof("Using existing Mongo %s", uri); } } - private static MongodExecutable getMongodExecutable(MongodConfig config) { - try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can time out so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { - - } - return doGetExecutable(config); - } - } - - private static MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); - } - @AfterAll public static void stopMongoDatabase() { if (MONGO != null) { try { - MONGO.stop(); + MONGO.close(); } catch (Exception e) { LOGGER.error("Unable to stop MongoDB", e); } } } + + public static void forceExtendedSocketOptionsClassInit() { + try { + //JDK bug workaround + //https://github.com/quarkusio/quarkus/issues/14424 + //force class init to prevent possible deadlock when done by mongo threads + Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); + } catch (ClassNotFoundException e) { + } + } } diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoWithReplicasTestBase.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoWithReplicasTestBase.java index e1dfc17fdb10a..19e609c333c5e 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoWithReplicasTestBase.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoWithReplicasTestBase.java @@ -1,15 +1,18 @@ package io.quarkus.mongodb; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; import static io.quarkus.mongodb.MongoTestBase.getConfiguredConnectionString; import static org.awaitility.Awaitility.await; +import static org.awaitility.Durations.ONE_MINUTE; +import static org.awaitility.Durations.ONE_SECOND; -import java.io.IOException; import java.net.UnknownHostException; import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.List; -import java.util.concurrent.TimeUnit; +import java.util.Map; +import org.awaitility.Awaitility; import org.bson.Document; import org.jboss.logging.Logger; import org.junit.jupiter.api.AfterAll; @@ -21,152 +24,148 @@ import com.mongodb.client.MongoClients; import com.mongodb.client.MongoDatabase; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.Defaults; -import de.flapdoodle.embed.mongo.config.ImmutableMongodConfig; -import de.flapdoodle.embed.mongo.config.MongoCmdOptions; -import de.flapdoodle.embed.mongo.config.MongodConfig; +import de.flapdoodle.embed.mongo.commands.MongodArguments; +import de.flapdoodle.embed.mongo.commands.ServerAddress; import de.flapdoodle.embed.mongo.config.Net; +import de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion; import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.embed.process.io.ProcessOutput; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; public class MongoWithReplicasTestBase { private static final Logger LOGGER = Logger.getLogger(MongoWithReplicasTestBase.class); - private static List MONGOS = new ArrayList<>(); + + private static List> startedServers = Collections.emptyList(); @BeforeAll - public static void startMongoDatabase() throws IOException { + public static void startMongoDatabase() { String uri = getConfiguredConnectionString(); + // This switch allow testing against a running mongo database. if (uri == null) { - List configs = new ArrayList<>(); - for (int i = 0; i < 2; i++) { - int port = 27018 + i; - configs.add(buildMongodConfiguration("127.0.0.1", port, true)); - } - configs.forEach(config -> { - MongodExecutable exec = getMongodExecutable(config); - MONGOS.add(exec); - try { - try { - exec.start(); - } catch (Exception e) { - //every so often mongo fails to start on CI runs - //see if this helps - try { - Thread.sleep(1000); - } catch (InterruptedException ignore) { - - } - exec.start(); - } - } catch (IOException e) { - LOGGER.error("Unable to start the mongo instance", e); - } - }); - initializeReplicaSet(configs); + startedServers = startReplicaSet(Version.Main.V4_0, 27018, "test001"); } else { LOGGER.infof("Using existing Mongo %s", uri); } } - private static MongodExecutable getMongodExecutable(MongodConfig config) { + private static Net net(String hostName, int port) { + return Net.builder() + .from(Net.defaults()) + .bindIp(hostName) + .port(port) + .build(); + } + + private static List> startReplicaSet( + IFeatureAwareVersion version, int basePort, String replicaSet) { + TransitionWalker.ReachedState firstStarted = mongodWithPort(basePort, replicaSet).start(version); try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can time out so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { + TransitionWalker.ReachedState secondStarted = mongodWithPort(basePort + 1, replicaSet) + .start(version); + try { + ServerAddress firstAddress = firstStarted.current().getServerAddress(); + ServerAddress secondAddress = secondStarted.current().getServerAddress(); + initializeReplicaSet(Arrays.asList(firstAddress, secondAddress), replicaSet); + LOGGER.infof("ReplicaSet initialized with servers - firstServer: %s , secondServer: %s", + firstAddress, secondAddress); + return Arrays.asList(firstStarted, secondStarted); + } catch (Exception ex) { + LOGGER.error("Shutting down second Mongo Server."); + secondStarted.close(); + LOGGER.errorv(ex, "Error while initializing replicaSet. Error Message %s", ex.getMessage()); + throw new RuntimeException("Error starting second server and initializing replicaset.", ex); } - return doGetExecutable(config); + } catch (RuntimeException rx) { + LOGGER.error("Shutting down first Mongo Server."); + firstStarted.close(); + throw rx; } } - private static MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); + private static Mongod mongodWithPort(int port, String replicaSet) { + return Mongod.instance().withNet(Start.to(Net.class).initializedWith(net("localhost", port))) + .withProcessOutput(Start.to(ProcessOutput.class).initializedWith(ProcessOutput.silent())) + .withMongodArguments(Start.to(MongodArguments.class).initializedWith( + MongodArguments.defaults().withArgs(Map.of("--replSet", replicaSet)).withSyncDelay(10) + .withUseSmallFiles(true).withUseNoJournal(false))); } @AfterAll public static void stopMongoDatabase() { - MONGOS.forEach(mongod -> { + for (TransitionWalker.ReachedState startedServer : startedServers) { try { - mongod.stop(); - } catch (Exception e) { - LOGGER.error("Unable to stop MongoDB", e); + startedServer.close(); + } catch (RuntimeException rx) { + LOGGER.error("startedServer.close", rx); } - }); + } } - private static void initializeReplicaSet(final List mongodConfigList) throws UnknownHostException { - final String arbitrerAddress = "mongodb://" + mongodConfigList.get(0).net().getServerAddress().getHostName() + ":" - + mongodConfigList.get(0).net().getPort(); - final MongoClientSettings mo = MongoClientSettings.builder() + private static void initializeReplicaSet(final List mongodConfigList, String replicaSet) + throws UnknownHostException { + String arbitrerAddress = "mongodb://" + mongodConfigList.get(0).getHost() + ":" + + mongodConfigList.get(0).getPort(); + MongoClientSettings mo = MongoClientSettings.builder() .applyConnectionString(new ConnectionString(arbitrerAddress)).build(); try (MongoClient mongo = MongoClients.create(mo)) { - final MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); + MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); Document cr = mongoAdminDB.runCommand(new Document("isMaster", 1)); - LOGGER.debugf("isMaster: %s", cr); + LOGGER.infof("isMaster: %s", cr); // Build replica set configuration settings - final Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList); - LOGGER.debugf("replSetSettings: %s", rsConfiguration); + Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList, replicaSet); + LOGGER.infof("replSetSettings: %s", rsConfiguration); // Initialize replica set cr = mongoAdminDB.runCommand(new Document("replSetInitiate", rsConfiguration)); - LOGGER.debugf("replSetInitiate: %s", cr); + LOGGER.infof("replSetInitiate: %s", cr); // Check replica set status before to proceed - await() - .pollInterval(100, TimeUnit.MILLISECONDS) - .atMost(1, TimeUnit.MINUTES) - .until(() -> { - Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); - LOGGER.infof("replSetGetStatus: %s", result); - return !isReplicaSetStarted(result); - }); + Awaitility.await().atMost(ONE_MINUTE).with().pollInterval(ONE_SECOND).until(() -> { + Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); + LOGGER.infof("replSetGetStatus: %s", result); + boolean replicaSetStatus = isReplicaSetStarted(result); + LOGGER.infof("replicaSet Readiness Status: %s", replicaSetStatus); + return replicaSetStatus; + }); + LOGGER.info("ReplicaSet is now ready with 2 cluster node."); } } - private static Document buildReplicaSetConfiguration(final List configList) throws UnknownHostException { - final Document replicaSetSetting = new Document(); - replicaSetSetting.append("_id", "test001"); + private static Document buildReplicaSetConfiguration(List configList, String replicaSet) + throws UnknownHostException { + Document replicaSetSetting = new Document(); + replicaSetSetting.append("_id", replicaSet); - final List members = new ArrayList<>(); + List members = new ArrayList<>(); int i = 0; - for (final MongodConfig mongoConfig : configList) { - members.add(new Document().append("_id", i++).append("host", - mongoConfig.net().getServerAddress().getHostName() + ":" + mongoConfig.net().getPort())); + for (ServerAddress mongoConfig : configList) { + members.add(new Document().append("_id", i++).append("host", mongoConfig.getHost() + ":" + mongoConfig.getPort())); } replicaSetSetting.append("members", members); + LOGGER.infof("ReplicaSet Configuration settings: %s", replicaSetSetting); return replicaSetSetting; } - private static boolean isReplicaSetStarted(final Document setting) { + private static boolean isReplicaSetStarted(Document setting) { if (!setting.containsKey("members")) { return false; } @SuppressWarnings("unchecked") - final List members = setting.get("members", List.class); - for (final Document member : members) { + List members = setting.get("members", List.class); + for (Document member : members) { LOGGER.infof("replica set member %s", member); - final int state = member.getInteger("state"); + int state = member.getInteger("state"); LOGGER.infof("state: %s", state); // 1 - PRIMARY, 2 - SECONDARY, 7 - ARBITER if (state != 1 && state != 2 && state != 7) { @@ -175,28 +174,4 @@ private static boolean isReplicaSetStarted(final Document setting) { } return true; } - - private static MongodConfig buildMongodConfiguration(String url, int port, final boolean configureReplicaSet) - throws IOException { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } - final ImmutableMongodConfig.Builder builder = MongodConfig.builder() - .version(Version.Main.V4_0) - .net(new Net(url, port, false)); - if (configureReplicaSet) { - builder.putArgs("--replSet", "test001"); - builder.cmdOptions(MongoCmdOptions.builder() - .syncDelay(10) - .useSmallFiles(true) - .useNoJournal(false) - .build()); - } - return builder.build(); - } - } diff --git a/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoTestBase.java b/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoTestBase.java index a9d5426ca3485..fff2b6e33ce48 100644 --- a/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoTestBase.java +++ b/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoTestBase.java @@ -1,7 +1,5 @@ package io.quarkus.mongodb.reactive; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; - import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -18,17 +16,13 @@ import com.mongodb.client.result.InsertOneResult; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.Defaults; -import de.flapdoodle.embed.mongo.config.MongoCmdOptions; -import de.flapdoodle.embed.mongo.config.MongodConfig; +import de.flapdoodle.embed.mongo.commands.MongodArguments; import de.flapdoodle.embed.mongo.config.Net; import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; -import de.flapdoodle.embed.process.runtime.Network; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; import io.smallrye.mutiny.Uni; public class MongoTestBase { @@ -36,7 +30,7 @@ public class MongoTestBase { private static final Logger LOGGER = Logger.getLogger(MongoTestBase.class); public static final String COLLECTION_PREFIX = "mongo-extension-test-"; public static final String DATABASE = "mongo-extension-test-db"; - private static MongodExecutable MONGO; + private static TransitionWalker.ReachedState MONGO; protected static String getConfiguredConnectionString() { return getProperty("connection_string"); @@ -56,73 +50,34 @@ protected static String getProperty(String name) { @BeforeAll public static void startMongoDatabase() throws IOException { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } + fixIssue14424(); + String uri = getConfiguredConnectionString(); // This switch allow testing against a running mongo database. if (uri == null) { Version.Main version = Version.Main.V4_0; int port = 27018; LOGGER.infof("Starting Mongo %s on port %s", version, port); - MongodConfig config = MongodConfig.builder() - .version(version) - .net(new Net(port, Network.localhostIsIPv6())) - .cmdOptions(MongoCmdOptions.builder() - .useNoJournal(false) - .build()) - .build(); - MONGO = getMongodExecutable(config); - try { - MONGO.start(); - } catch (Exception e) { - //every so often mongo fails to start on CI runs - //see if this helps - try { - Thread.sleep(1000); - } catch (InterruptedException ignore) { - } - MONGO.start(); - } - } else { - LOGGER.infof("Using existing Mongo %s", uri); - } - } - private static MongodExecutable getMongodExecutable(MongodConfig config) { - try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can time out so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { + MONGO = Mongod.instance() + .withNet(Start.to(Net.class).initializedWith(Net.builder() + .from(Net.defaults()) + .port(port) + .build())) + .withMongodArguments(Start.to(MongodArguments.class) + .initializedWith(MongodArguments.defaults().withUseNoJournal(false))) + .start(version); - } - return doGetExecutable(config); + } else { + LOGGER.infof("Using existing Mongo %s", uri); } } - private static MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); - } - @AfterAll public static void stopMongoDatabase() { if (MONGO != null) { try { - MONGO.stop(); + MONGO.close(); } catch (Exception e) { LOGGER.error("Unable to stop MongoDB", e); } @@ -221,4 +176,14 @@ protected Document createDoc(int num) { document.put("dblval", 1.23); return document; } + + public static void fixIssue14424() { + try { + //JDK bug workaround + //https://github.com/quarkusio/quarkus/issues/14424 + //force class init to prevent possible deadlock when done by mongo threads + Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); + } catch (ClassNotFoundException e) { + } + } } diff --git a/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoWithReplicasTestBase.java b/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoWithReplicasTestBase.java index dce8211bd8b3f..9d8c75626a4b6 100644 --- a/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoWithReplicasTestBase.java +++ b/extensions/mongodb-client/runtime/src/test/java/io/quarkus/mongodb/reactive/MongoWithReplicasTestBase.java @@ -1,15 +1,17 @@ package io.quarkus.mongodb.reactive; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; import static io.quarkus.mongodb.reactive.MongoTestBase.getConfiguredConnectionString; -import static org.awaitility.Awaitility.await; +import static org.awaitility.Durations.ONE_MINUTE; +import static org.awaitility.Durations.ONE_SECOND; -import java.io.IOException; import java.net.UnknownHostException; import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.List; -import java.util.concurrent.TimeUnit; +import java.util.Map; +import org.awaitility.Awaitility; import org.bson.Document; import org.jboss.logging.Logger; import org.junit.jupiter.api.AfterAll; @@ -21,94 +23,87 @@ import com.mongodb.client.MongoClients; import com.mongodb.client.MongoDatabase; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.Defaults; -import de.flapdoodle.embed.mongo.config.ImmutableMongodConfig; -import de.flapdoodle.embed.mongo.config.MongoCmdOptions; -import de.flapdoodle.embed.mongo.config.MongodConfig; +import de.flapdoodle.embed.mongo.commands.MongodArguments; +import de.flapdoodle.embed.mongo.commands.ServerAddress; import de.flapdoodle.embed.mongo.config.Net; +import de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion; import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; -import de.flapdoodle.embed.process.runtime.Network; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.embed.process.io.ProcessOutput; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; public class MongoWithReplicasTestBase { private static final Logger LOGGER = Logger.getLogger(MongoWithReplicasTestBase.class); - private static List MONGOS = new ArrayList<>(); + + private static List> startedServers = Collections.emptyList(); @BeforeAll - public static void startMongoDatabase() throws IOException { + public static void startMongoDatabase() { String uri = getConfiguredConnectionString(); + // This switch allow testing against a running mongo database. if (uri == null) { - List configs = new ArrayList<>(); - for (int i = 0; i < 2; i++) { - int port = 27018 + i; - configs.add(buildMongodConfiguration("localhost", port, true)); - } - configs.forEach(config -> { - MongodExecutable exec = getMongodExecutable(config); - MONGOS.add(exec); - try { - try { - exec.start(); - } catch (Exception e) { - //every so often mongo fails to start on CI runs - //see if this helps - try { - Thread.sleep(1000); - } catch (InterruptedException ignore) { - - } - exec.start(); - } - } catch (IOException e) { - LOGGER.error("Unable to start the mongo instance", e); - } - }); - initializeReplicaSet(configs); + startedServers = startReplicaSet(Version.Main.V4_0, 27018, "test001"); } else { LOGGER.infof("Using existing Mongo %s", uri); } } - private static MongodExecutable getMongodExecutable(MongodConfig config) { + private static Net net(String hostName, int port) { + return Net.builder() + .from(Net.defaults()) + .bindIp(hostName) + .port(port) + .build(); + } + + private static List> startReplicaSet( + IFeatureAwareVersion version, int basePort, String replicaSet) { + TransitionWalker.ReachedState firstStarted = mongodWithPort(basePort, replicaSet).start(version); try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can time out so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { + TransitionWalker.ReachedState secondStarted = mongodWithPort(basePort + 1, replicaSet) + .start(version); + try { + ServerAddress firstAddress = firstStarted.current().getServerAddress(); + ServerAddress secondAddress = secondStarted.current().getServerAddress(); + initializeReplicaSet(Arrays.asList(firstAddress, secondAddress), replicaSet); + LOGGER.infof("ReplicaSet initialized with servers - firstServer: %s , secondServer: %s", + firstAddress, secondAddress); + return Arrays.asList(secondStarted, firstStarted); + } catch (Exception ex) { + LOGGER.error("Shutting down second Mongo Server."); + secondStarted.close(); + LOGGER.errorv(ex, "Error while initializing replicaSet. Error Message %s", ex.getMessage()); + throw new RuntimeException("Error starting second server and initializing replicaset.", ex); } - return doGetExecutable(config); + } catch (RuntimeException rx) { + LOGGER.error("Shutting down first Mongo Server."); + firstStarted.close(); + throw rx; } } - private static MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); + private static Mongod mongodWithPort(int port, String replicaSet) { + return Mongod.instance().withNet(Start.to(Net.class).initializedWith(net("localhost", port))) + .withProcessOutput(Start.to(ProcessOutput.class).initializedWith(ProcessOutput.silent())) + .withMongodArguments(Start.to(MongodArguments.class).initializedWith( + MongodArguments.defaults().withArgs(Map.of("--replSet", replicaSet)).withSyncDelay(10) + .withUseSmallFiles(true).withUseNoJournal(false))); } @AfterAll public static void stopMongoDatabase() { - MONGOS.forEach(mongod -> { + for (TransitionWalker.ReachedState startedServer : startedServers) { try { - mongod.stop(); - } catch (Exception e) { - LOGGER.error("Unable to stop MongoDB", e); + startedServer.close(); + } catch (RuntimeException rx) { + LOGGER.error("startedServer.close", rx); } - }); + } } protected String getConnectionString() { @@ -119,63 +114,65 @@ protected String getConnectionString() { } } - private static void initializeReplicaSet(final List mongodConfigList) throws UnknownHostException { - final String arbiterAddress = "mongodb://" + mongodConfigList.get(0).net().getServerAddress().getHostName() + ":" - + mongodConfigList.get(0).net().getPort(); - final MongoClientSettings mo = MongoClientSettings.builder() - .applyConnectionString(new ConnectionString(arbiterAddress)).build(); + private static void initializeReplicaSet(final List mongodConfigList, String replicaSet) + throws UnknownHostException { + String arbitrerAddress = "mongodb://" + mongodConfigList.get(0).getHost() + ":" + + mongodConfigList.get(0).getPort(); + MongoClientSettings mo = MongoClientSettings.builder() + .applyConnectionString(new ConnectionString(arbitrerAddress)).build(); try (MongoClient mongo = MongoClients.create(mo)) { - final MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); + MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); Document cr = mongoAdminDB.runCommand(new Document("isMaster", 1)); - LOGGER.debugf("isMaster: %s", cr); + LOGGER.infof("isMaster: %s", cr); // Build replica set configuration settings - final Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList); - LOGGER.debugf("replSetSettings: %s", rsConfiguration); + Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList, replicaSet); + LOGGER.infof("replSetSettings: %s", rsConfiguration); // Initialize replica set cr = mongoAdminDB.runCommand(new Document("replSetInitiate", rsConfiguration)); - LOGGER.debugf("replSetInitiate: %s", cr); + LOGGER.infof("replSetInitiate: %s", cr); // Check replica set status before to proceed - await() - .pollInterval(100, TimeUnit.MILLISECONDS) - .atMost(1, TimeUnit.MINUTES) - .until(() -> { - Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); - LOGGER.infof("replSetGetStatus: %s", result); - return !isReplicaSetStarted(result); - }); + Awaitility.await().atMost(ONE_MINUTE).with().pollInterval(ONE_SECOND).until(() -> { + Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); + LOGGER.infof("replSetGetStatus: %s", result); + boolean replicaSetStatus = isReplicaSetStarted(result); + LOGGER.infof("replicaSet Readiness Status: %s", replicaSetStatus); + return replicaSetStatus; + }); + LOGGER.info("ReplicaSet is now ready with 2 cluster node."); } } - private static Document buildReplicaSetConfiguration(final List configList) throws UnknownHostException { - final Document replicaSetSetting = new Document(); - replicaSetSetting.append("_id", "test001"); + private static Document buildReplicaSetConfiguration(List configList, String replicaSet) + throws UnknownHostException { + Document replicaSetSetting = new Document(); + replicaSetSetting.append("_id", replicaSet); - final List members = new ArrayList<>(); + List members = new ArrayList<>(); int i = 0; - for (final MongodConfig mongoConfig : configList) { - members.add(new Document().append("_id", i++).append("host", - mongoConfig.net().getServerAddress().getHostName() + ":" + mongoConfig.net().getPort())); + for (ServerAddress mongoConfig : configList) { + members.add(new Document().append("_id", i++).append("host", mongoConfig.getHost() + ":" + mongoConfig.getPort())); } replicaSetSetting.append("members", members); + LOGGER.infof("ReplicaSet Configuration settings: %s", replicaSetSetting); return replicaSetSetting; } - private static boolean isReplicaSetStarted(final Document setting) { + private static boolean isReplicaSetStarted(Document setting) { if (!setting.containsKey("members")) { return false; } @SuppressWarnings("unchecked") - final List members = setting.get("members", List.class); - for (final Document member : members) { + List members = setting.get("members", List.class); + for (Document member : members) { LOGGER.infof("replica set member %s", member); - final int state = member.getInteger("state"); + int state = member.getInteger("state"); LOGGER.infof("state: %s", state); // 1 - PRIMARY, 2 - SECONDARY, 7 - ARBITER if (state != 1 && state != 2 && state != 7) { @@ -184,28 +181,4 @@ private static boolean isReplicaSetStarted(final Document setting) { } return true; } - - private static MongodConfig buildMongodConfiguration(String url, int port, final boolean configureReplicaSet) - throws IOException { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } - final ImmutableMongodConfig.Builder builder = MongodConfig.builder() - .version(Version.Main.V4_0) - .net(new Net(url, port, Network.localhostIsIPv6())); - if (configureReplicaSet) { - builder.putArgs("--replSet", "test001"); - builder.cmdOptions(MongoCmdOptions.builder() - .syncDelay(10) - .useSmallFiles(true) - .useNoJournal(false) - .build()); - } - return builder.build(); - } - } diff --git a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java index 57eeda2ab0946..1f3e3c5b26699 100644 --- a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java +++ b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java @@ -1,14 +1,9 @@ package io.quarkus.test.mongodb; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; +import static org.awaitility.Durations.*; -import java.io.IOException; import java.net.UnknownHostException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; +import java.util.*; import org.awaitility.Awaitility; import org.bson.Document; @@ -20,102 +15,91 @@ import com.mongodb.client.MongoClients; import com.mongodb.client.MongoDatabase; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.*; -import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; -import de.flapdoodle.embed.process.runtime.Network; +import de.flapdoodle.embed.mongo.commands.MongodArguments; +import de.flapdoodle.embed.mongo.commands.ServerAddress; +import de.flapdoodle.embed.mongo.config.Net; +import de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.embed.process.io.ProcessOutput; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; public class MongoReplicaSetTestResource implements QuarkusTestResourceLifecycleManager { + public static final String REPLICA_SET = "replicaSet"; + static final String DEFAULT_REPLICA_SET = "test001"; private static final Logger LOGGER = Logger.getLogger(MongoReplicaSetTestResource.class); - private static List MONGOS = new ArrayList<>(); + private Integer port; + private IFeatureAwareVersion version; - @Override - public Map start() { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } - try { - List configs = new ArrayList<>(); - for (int i = 0; i < 2; i++) { - int port = 27017 + i; - configs.add(buildMongodConfiguration("localhost", port, true)); - } - configs.forEach(config -> { - MongodExecutable exec = getMongodExecutable(config); - MONGOS.add(exec); - try { - exec.start(); - } catch (IOException e) { - LOGGER.error("Unable to start the mongo instance", e); - } - }); - initializeReplicaSet(configs); - return Collections.emptyMap(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } + private String replicaSet; - private MongodExecutable getMongodExecutable(MongodConfig config) { - try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can timeout so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { + private List> startedServers = Collections.emptyList(); - } - return doGetExecutable(config); - } + private static Net net(String hostName, int port) { + return Net.builder() + .from(Net.defaults()) + .bindIp(hostName) + .port(port) + .build(); } - private MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); + public static String setReplicaSet(Map initArgs) { + return Optional.ofNullable(initArgs.get(REPLICA_SET)).orElse(DEFAULT_REPLICA_SET); } - @Override - public void stop() { - MONGOS.forEach(mongod -> { + private static List> startReplicaSet( + IFeatureAwareVersion version, int basePort, String replicaSet) { + TransitionWalker.ReachedState firstStarted = mongodWithPort(basePort, replicaSet).start(version); + try { + TransitionWalker.ReachedState secondStarted = mongodWithPort(basePort + 1, replicaSet) + .start(version); + try { - mongod.stop(); - } catch (Exception e) { - LOGGER.error("Unable to stop MongoDB", e); + ServerAddress firstAddress = firstStarted.current().getServerAddress(); + ServerAddress secondAddress = secondStarted.current().getServerAddress(); + initializeReplicaSet(Arrays.asList(firstAddress, secondAddress), replicaSet); + LOGGER.infof("ReplicaSet initialized with servers - firstServer: %s , secondServer: %s", + firstAddress, secondAddress); + return Arrays.asList(secondStarted, firstStarted); + } catch (Exception ex) { + LOGGER.error("Shutting down second Mongo Server."); + secondStarted.close(); + LOGGER.errorv(ex, "Error while initializing replicaSet. Error Message %s", ex.getMessage()); + throw new RuntimeException("Error starting second server and initializing replicaset.", ex); } - }); + } catch (RuntimeException rx) { + LOGGER.error("Shutting down first Mongo Server."); + firstStarted.close(); + throw rx; + } + } + + private static Mongod mongodWithPort(int port, String replicaSet) { + return Mongod.instance().withNet(Start.to(Net.class).initializedWith(net("localhost", port))) + .withProcessOutput(Start.to(ProcessOutput.class).initializedWith(ProcessOutput.silent())) + .withMongodArguments(Start.to(MongodArguments.class).initializedWith( + MongodArguments.defaults().withArgs(Map.of("--replSet", replicaSet)).withSyncDelay(10) + .withUseSmallFiles(true).withUseNoJournal(false))); } - private static void initializeReplicaSet(final List mongodConfigList) throws UnknownHostException { - final String arbitrerAddress = "mongodb://" + mongodConfigList.get(0).net().getServerAddress().getHostName() + ":" - + mongodConfigList.get(0).net().getPort(); - final MongoClientSettings mo = MongoClientSettings.builder() + private static void initializeReplicaSet(final List mongodConfigList, String replicaSet) + throws UnknownHostException { + String arbitrerAddress = "mongodb://" + mongodConfigList.get(0).getHost() + + ":" + mongodConfigList.get(0).getPort(); + MongoClientSettings mo = MongoClientSettings.builder() .applyConnectionString(new ConnectionString(arbitrerAddress)).build(); try (MongoClient mongo = MongoClients.create(mo)) { - final MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); + MongoDatabase mongoAdminDB = mongo.getDatabase("admin"); Document cr = mongoAdminDB.runCommand(new Document("isMaster", 1)); LOGGER.infof("isMaster: %s", cr); // Build replica set configuration settings - final Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList); + Document rsConfiguration = buildReplicaSetConfiguration(mongodConfigList, replicaSet); LOGGER.infof("replSetSettings: %s", rsConfiguration); // Initialize replica set @@ -123,42 +107,43 @@ private static void initializeReplicaSet(final List mongodConfigLi LOGGER.infof("replSetInitiate: %s", cr); // Check replica set status before to proceed - Awaitility.await() - .pollInterval(100, TimeUnit.MILLISECONDS) - .atMost(1, TimeUnit.MINUTES) - .until(() -> { - Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); - LOGGER.infof("replSetGetStatus: %s", result); - return !isReplicaSetStarted(result); - }); + Awaitility.await().atMost(ONE_MINUTE).with().pollInterval(ONE_SECOND).until(() -> { + Document result = mongoAdminDB.runCommand(new Document("replSetGetStatus", 1)); + LOGGER.infof("replSetGetStatus: %s", result); + boolean replicaSetStatus = isReplicaSetStarted(result); + LOGGER.infof("replicaSet Readiness Status: %s", replicaSetStatus); + return replicaSetStatus; + }); + LOGGER.info("ReplicaSet is now ready with 2 cluster node."); } } - private static Document buildReplicaSetConfiguration(final List configList) throws UnknownHostException { - final Document replicaSetSetting = new Document(); - replicaSetSetting.append("_id", "test001"); + private static Document buildReplicaSetConfiguration(List configList, String replicaSet) + throws UnknownHostException { + Document replicaSetSetting = new Document(); + replicaSetSetting.append("_id", replicaSet); - final List members = new ArrayList<>(); + List members = new ArrayList<>(); int i = 0; - for (final MongodConfig mongoConfig : configList) { - members.add(new Document().append("_id", i++).append("host", - mongoConfig.net().getServerAddress().getHostName() + ":" + mongoConfig.net().getPort())); + for (ServerAddress mongoConfig : configList) { + members.add(new Document().append("_id", i++).append("host", mongoConfig.getHost() + ":" + mongoConfig.getPort())); } replicaSetSetting.append("members", members); + LOGGER.infof("ReplicaSet Configuration settings: %s", replicaSetSetting); return replicaSetSetting; } - private static boolean isReplicaSetStarted(final Document setting) { + private static boolean isReplicaSetStarted(Document setting) { if (!setting.containsKey("members")) { return false; } @SuppressWarnings("unchecked") - final List members = setting.get("members", List.class); - for (final Document member : members) { + List members = setting.get("members", List.class); + for (Document member : members) { LOGGER.infof("replica set member %s", member); - final int state = member.getInteger("state"); + int state = member.getInteger("state"); LOGGER.infof("state: %s", state); // 1 - PRIMARY, 2 - SECONDARY, 7 - ARBITER if (state != 1 && state != 2 && state != 7) { @@ -168,26 +153,30 @@ private static boolean isReplicaSetStarted(final Document setting) { return true; } - private static MongodConfig buildMongodConfiguration(String url, int port, final boolean configureReplicaSet) - throws IOException { - try { - //JDK bug workaround - //https://github.com/quarkusio/quarkus/issues/14424 - //force class init to prevent possible deadlock when done by mongo threads - Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); - } catch (ClassNotFoundException e) { - } - final ImmutableMongodConfig.Builder builder = MongodConfig.builder() - .version(Version.Main.V4_0) - .net(new Net(url, port, Network.localhostIsIPv6())); - if (configureReplicaSet) { - builder.putArgs("--replSet", "test001"); - builder.cmdOptions(MongoCmdOptions.builder() - .syncDelay(10) - .useSmallFiles(true) - .useNoJournal(false) - .build()); + @Override + public void init(Map initArgs) { + port = MongoTestResource.port(initArgs); + version = MongoTestResource.version(initArgs); + replicaSet = setReplicaSet(initArgs); + } + + @Override + public Map start() { + MongoTestResource.forceExtendedSocketOptionsClassInit(); + + startedServers = startReplicaSet(version, port, replicaSet); + + return Collections.emptyMap(); + } + + @Override + public void stop() { + LOGGER.info("Shutting down embedded mongo severs..."); + for (TransitionWalker.ReachedState startedServer : startedServers) { + LOGGER.infof("Shutting down embedded mongo server : %s", startedServer); + startedServer.close(); } - return builder.build(); + startedServers = Collections.emptyList(); } + } diff --git a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java index 351e5f8403e49..009fbae04d08e 100644 --- a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java +++ b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java @@ -1,57 +1,48 @@ package io.quarkus.test.mongodb; -import static de.flapdoodle.embed.process.config.process.ProcessOutput.builder; - -import java.io.IOException; import java.util.Collections; import java.util.Map; import java.util.Optional; import org.jboss.logging.Logger; -import de.flapdoodle.embed.mongo.Command; -import de.flapdoodle.embed.mongo.MongodExecutable; -import de.flapdoodle.embed.mongo.MongodStarter; -import de.flapdoodle.embed.mongo.config.Defaults; -import de.flapdoodle.embed.mongo.config.MongoCmdOptions; -import de.flapdoodle.embed.mongo.config.MongodConfig; +import de.flapdoodle.embed.mongo.commands.MongodArguments; import de.flapdoodle.embed.mongo.config.Net; import de.flapdoodle.embed.mongo.distribution.IFeatureAwareVersion; import de.flapdoodle.embed.mongo.distribution.Version; -import de.flapdoodle.embed.process.config.RuntimeConfig; -import de.flapdoodle.embed.process.io.Processors; -import de.flapdoodle.embed.process.runtime.Network; +import de.flapdoodle.embed.mongo.distribution.Versions; +import de.flapdoodle.embed.mongo.transitions.Mongod; +import de.flapdoodle.embed.mongo.transitions.RunningMongodProcess; +import de.flapdoodle.reverse.TransitionWalker; +import de.flapdoodle.reverse.transitions.Start; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; public class MongoTestResource implements QuarkusTestResourceLifecycleManager { public static final String PORT = "port"; public static final String VERSION = "version"; - private static final int DEFAULT_PORT = 27017; - private static MongodExecutable MONGO; + static final int DEFAULT_PORT = 27017; private static final Logger LOGGER = Logger.getLogger(MongoTestResource.class); + private Integer port; private IFeatureAwareVersion version; - @Override - public void init(Map initArgs) { - port = Optional.ofNullable(initArgs.get(PORT)).map(Integer::parseInt).orElse(DEFAULT_PORT); - version = Optional.ofNullable(initArgs.get(VERSION)).map(versionStr -> { - try { - return Version.valueOf(versionStr); - } catch (IllegalArgumentException e) { - try { - return Version.Main.valueOf(versionStr); - } catch (IllegalArgumentException ex) { - throw new IllegalArgumentException( - String.format("Unable to convert %s to a known Mongo version", versionStr)); - } - } - }).orElse(Version.Main.V4_0); + private TransitionWalker.ReachedState startedServer; + + public static int port(Map initArgs) { + return Optional.ofNullable(initArgs.get(PORT)).map(Integer::parseInt).orElse(DEFAULT_PORT); } - @Override - public Map start() { + public static IFeatureAwareVersion version(Map initArgs) { + Optional versionArg = Optional.ofNullable(initArgs.get(VERSION)); + + return versionArg. map(Version.Main::valueOf) + .orElseGet(() -> versionArg.map( + versionStr -> Versions.withFeatures(de.flapdoodle.embed.process.distribution.Version.of(versionStr))) + .orElse(Version.Main.V4_0)); + } + + public static void forceExtendedSocketOptionsClassInit() { try { //JDK bug workaround //https://github.com/quarkusio/quarkus/issues/14424 @@ -59,59 +50,34 @@ public Map start() { Class.forName("sun.net.ext.ExtendedSocketOptions", true, ClassLoader.getSystemClassLoader()); } catch (ClassNotFoundException e) { } - try { - LOGGER.infof("Starting Mongo %s on port %s", version, port); - MongodConfig config = MongodConfig.builder() - .version(version) - .net(new Net(port, Network.localhostIsIPv6())) - .cmdOptions(MongoCmdOptions.builder() - .useNoJournal(false) - .build()) - .build(); - MONGO = getMongodExecutable(config); - try { - MONGO.start(); - } catch (Exception e) { - //every so often mongo fails to start on CI runs - //see if this helps - Thread.sleep(1000); - MONGO.start(); - } - } catch (IOException | InterruptedException e) { - throw new RuntimeException(e); - } - return Collections.emptyMap(); } - private MongodExecutable getMongodExecutable(MongodConfig config) { - try { - return doGetExecutable(config); - } catch (Exception e) { - // sometimes the download process can timeout so just sleep and try again - try { - Thread.sleep(1000); - } catch (InterruptedException ignored) { - - } - return doGetExecutable(config); - } + @Override + public void init(Map initArgs) { + port = port(initArgs); + version = version(initArgs); } - private MongodExecutable doGetExecutable(MongodConfig config) { - RuntimeConfig runtimeConfig = Defaults.runtimeConfigFor(Command.MongoD) - .processOutput(builder() - .output(Processors.silent()) - .error(Processors.silent()) - .commands(Processors.silent()) - .build()) - .build(); - return MongodStarter.getInstance(runtimeConfig).prepare(config); + @Override + public Map start() { + forceExtendedSocketOptionsClassInit(); + + LOGGER.infof("Starting Mongo %s on port %s", version, port); + + startedServer = Mongod.instance().withNet(Start.to(Net.class) + .initializedWith(Net.builder().from(Net.defaults()).port(port).build())) + .withMongodArguments(Start.to(MongodArguments.class) + .initializedWith(MongodArguments.defaults().withUseNoJournal(false))) + .start(version); + + return Collections.emptyMap(); } @Override public void stop() { - if (MONGO != null) { - MONGO.stop(); + if (startedServer != null) { + startedServer.close(); + startedServer = null; } } } From 860401e1d5947fe8032cf3ad3bf11d4e0775b60a Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Fri, 20 Jan 2023 18:03:28 +0100 Subject: [PATCH 013/250] Add OraclePoolCreator --- .../ReactiveOracleClientProcessor.java | 53 +++++++++ .../client/LocalhostOraclePoolCreator.java | 16 +++ ...eDataSourcesAndOraclePoolCreatorsTest.java | 106 ++++++++++++++++++ ...aclePoolCreatorsForSameDatasourceTest.java | 41 +++++++ .../oracle/client/OraclePoolCreatorTest.java | 30 +++++ ...-credentials-with-erroneous-url.properties | 3 + ...-datasources-with-erroneous-url.properties | 9 ++ .../client/runtime/OraclePoolCreator.java | 30 +++++ .../client/runtime/OraclePoolRecorder.java | 49 +++++++- 9 files changed, 336 insertions(+), 1 deletion(-) create mode 100644 extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java create mode 100644 extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java create mode 100644 extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java create mode 100644 extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolCreatorTest.java create mode 100644 extensions/reactive-oracle-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties create mode 100644 extensions/reactive-oracle-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties create mode 100644 extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java diff --git a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java index cb5afbd310af4..0c71ce907f92f 100644 --- a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java +++ b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java @@ -1,12 +1,26 @@ package io.quarkus.reactive.oracle.client.deployment; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Predicate; +import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.DotName; +import org.jboss.jandex.Type; + import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.devconsole.Name; +import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.DotNames; import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.common.runtime.DatabaseKind; @@ -34,6 +48,7 @@ import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; import io.quarkus.reactive.oracle.client.runtime.DataSourcesReactiveOracleConfig; +import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; import io.quarkus.reactive.oracle.client.runtime.OraclePoolRecorder; import io.quarkus.reactive.oracle.client.runtime.OracleServiceBindingConverter; import io.quarkus.runtime.RuntimeValue; @@ -89,6 +104,34 @@ DevServicesDatasourceConfigurationHandlerBuildItem devDbHandler() { return DevServicesDatasourceConfigurationHandlerBuildItem.reactive(DatabaseKind.ORACLE); } + @BuildStep + void unremoveableBeans(BuildProducer producer) { + producer.produce(UnremovableBeanBuildItem.beanTypes(OraclePoolCreator.class)); + } + + @BuildStep + void validateBeans(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + // no two OraclePoolCreator beans can be associated with the same datasource + Map seen = new HashMap<>(); + for (BeanInfo beanInfo : validationPhase.getContext().beans() + .matchBeanTypes(new OraclePoolCreatorBeanClassPredicate())) { + Set qualifiers = new TreeSet<>(); // use a TreeSet in order to get a predictable iteration order + for (AnnotationInstance qualifier : beanInfo.getQualifiers()) { + qualifiers.add(Name.from(qualifier)); + } + String qualifiersStr = qualifiers.stream().map(Name::toString).collect(Collectors.joining("_")); + if (seen.getOrDefault(qualifiersStr, false)) { + errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( + new IllegalStateException( + "There can be at most one bean of type '" + OraclePoolCreator.class.getName() + + "' for each datasource."))); + } else { + seen.put(qualifiersStr, true); + } + } + } + @BuildStep void registerServiceBinding(Capabilities capabilities, BuildProducer serviceProvider, BuildProducer dbKind) { @@ -236,4 +279,14 @@ private static void addQualifiers(ExtendedBeanConfigurator configurator, String .done(); } } + + private static class OraclePoolCreatorBeanClassPredicate implements Predicate> { + private static final Type ORACLE_POOL_CREATOR = Type.create(DotName.createSimple(OraclePoolCreator.class.getName()), + Type.Kind.CLASS); + + @Override + public boolean test(Set types) { + return types.contains(ORACLE_POOL_CREATOR); + } + } } diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java new file mode 100644 index 0000000000000..68a99eae0cfc8 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java @@ -0,0 +1,16 @@ +package io.quarkus.reactive.oracle.client; + +import javax.inject.Singleton; + +import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; +import io.vertx.oracleclient.OraclePool; + +@Singleton +public class LocalhostOraclePoolCreator implements OraclePoolCreator { + + @Override + public OraclePool create(Input input) { + return OraclePool.pool(input.vertx(), input.oracleConnectOptions().setHost("localhost").setPort(1521), + input.poolOptions()); + } +} diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java new file mode 100644 index 0000000000000..1d2cdfddfe456 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java @@ -0,0 +1,106 @@ +package io.quarkus.reactive.oracle.client; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionStage; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.oracleclient.OraclePool; + +public class MultipleDataSourcesAndOraclePoolCreatorsTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withConfigurationResource("application-multiple-datasources-with-erroneous-url.properties") + .withApplicationRoot((jar) -> jar + .addClasses(BeanUsingDefaultDataSource.class) + .addClass(BeanUsingHibernateDataSource.class) + .addClass(DefaultOraclePoolCreator.class) + .addClass(HibernateOraclePoolCreator.class)); + + @Inject + BeanUsingDefaultDataSource beanUsingDefaultDataSource; + + @Inject + BeanUsingHibernateDataSource beanUsingHibernateDataSource; + + @Test + public void testMultipleDataSources() { + beanUsingDefaultDataSource.verify() + .thenCompose(v -> beanUsingHibernateDataSource.verify()) + .toCompletableFuture() + .join(); + } + + @ApplicationScoped + static class BeanUsingDefaultDataSource { + + @Inject + OraclePool oracleClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + oracleClient.query("SELECT 1 FROM DUAL").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @ApplicationScoped + static class BeanUsingHibernateDataSource { + + @Inject + @ReactiveDataSource("hibernate") + OraclePool oracleClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + oracleClient.query("SELECT 1 FROM DUAL").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @Singleton + public static class DefaultOraclePoolCreator implements OraclePoolCreator { + + @Override + public OraclePool create(Input input) { + assertEquals(12345, input.oracleConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return OraclePool.pool(input.vertx(), input.oracleConnectOptions().setHost("localhost").setPort(1521), + input.poolOptions()); + } + } + + @Singleton + @ReactiveDataSource("hibernate") + public static class HibernateOraclePoolCreator implements OraclePoolCreator { + + @Override + public OraclePool create(Input input) { + assertEquals(55555, input.oracleConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return OraclePool.pool(input.vertx(), input.oracleConnectOptions().setHost("localhost").setPort(1521), + input.poolOptions()); + } + } +} diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java new file mode 100644 index 0000000000000..522c699c61340 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java @@ -0,0 +1,41 @@ +package io.quarkus.reactive.oracle.client; + +import static org.junit.jupiter.api.Assertions.fail; + +import javax.enterprise.inject.spi.DeploymentException; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.oracleclient.OraclePool; + +public class MultipleOraclePoolCreatorsForSameDatasourceTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostOraclePoolCreator.class) + .addClass(AnotherOraclePoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")) + .setExpectedException(DeploymentException.class); + + @Test + public void test() { + fail("Should never have been called"); + } + + @Singleton + public static class AnotherOraclePoolCreator implements OraclePoolCreator { + + @Override + public OraclePool create(Input input) { + return OraclePool.pool(input.vertx(), input.oracleConnectOptions(), input.poolOptions()); + } + } + +} diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolCreatorTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolCreatorTest.java new file mode 100644 index 0000000000000..c8f268e68b435 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolCreatorTest.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.oracle.client; + +import static io.restassured.RestAssured.given; + +import org.hamcrest.CoreMatchers; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class OraclePoolCreatorTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostOraclePoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")); + + @Test + public void testConnect() { + given() + .when().get("/test") + .then() + .statusCode(200) + .body(CoreMatchers.equalTo("OK")); + } + +} diff --git a/extensions/reactive-oracle-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties b/extensions/reactive-oracle-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties new file mode 100644 index 0000000000000..df109c4000943 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties @@ -0,0 +1,3 @@ +quarkus.datasource.db-kind=oracle +quarkus.datasource.credentials-provider=custom +quarkus.datasource.reactive.url=vertx-reactive:oracle:thin:@test:12345:XE diff --git a/extensions/reactive-oracle-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties b/extensions/reactive-oracle-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties new file mode 100644 index 0000000000000..b1461c2cd52e3 --- /dev/null +++ b/extensions/reactive-oracle-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties @@ -0,0 +1,9 @@ +quarkus.datasource.db-kind=oracle +quarkus.datasource.username=SYSTEM +quarkus.datasource.password=hibernate_orm_test +quarkus.datasource.reactive.url=vertx-reactive:oracle:thin:@test:12345:XE + +quarkus.datasource."hibernate".db-kind=oracle +quarkus.datasource."hibernate".username=SYSTEM +quarkus.datasource."hibernate".password=hibernate_orm_test +quarkus.datasource."hibernate".reactive.url=vertx-reactive:oracle:thin:@test:55555:XE diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java new file mode 100644 index 0000000000000..ca7ac439b5d50 --- /dev/null +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.oracle.client.runtime; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.vertx.core.Vertx; +import io.vertx.oracleclient.OracleConnectOptions; +import io.vertx.oracleclient.OraclePool; +import io.vertx.sqlclient.PoolOptions; + +/** + * This interface is an integration point that allows users to use the {@link Vertx}, {@link PoolOptions} and + * {@link OracleConnectOptions} objects configured automatically by Quarkus, in addition to a custom strategy + * for creating the final {@link OraclePool}. + * + * Implementations of this class are meant to be used as CDI beans. + * If a bean of this type is used without a {@link ReactiveDataSource} qualifier, then it's applied to the default datasource, + * otherwise it applies to the datasource matching the name of the annotation. + */ +public interface OraclePoolCreator { + + OraclePool create(Input input); + + interface Input { + + Vertx vertx(); + + PoolOptions poolOptions(); + + OracleConnectOptions oracleConnectOptions(); + } +} diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index 316338e7b6d32..a89eb247ab65e 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -7,12 +7,17 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; +import javax.enterprise.inject.Instance; + import org.jboss.logging.Logger; +import io.quarkus.arc.Arc; import io.quarkus.credentials.CredentialsProvider; import io.quarkus.credentials.runtime.CredentialsProviderFinder; +import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.runtime.DataSourceRuntimeConfig; import io.quarkus.datasource.runtime.DataSourcesRuntimeConfig; +import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; import io.quarkus.runtime.RuntimeValue; @@ -72,7 +77,7 @@ private OraclePool initialize(Vertx vertx, log.warn( "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); } - return OraclePool.pool(vertx, oracleConnectOptions, poolOptions); + return createPool(vertx, poolOptions, oracleConnectOptions, dataSourceName); } private PoolOptions toPoolOptions(Integer eventLoopCount, @@ -151,4 +156,46 @@ private OracleConnectOptions toOracleConnectOptions(DataSourceRuntimeConfig data return oracleConnectOptions; } + private OraclePool createPool(Vertx vertx, PoolOptions poolOptions, OracleConnectOptions oracleConnectOptions, + String dataSourceName) { + Instance instance; + if (DataSourceUtil.isDefault(dataSourceName)) { + instance = Arc.container().select(OraclePoolCreator.class); + } else { + instance = Arc.container().select(OraclePoolCreator.class, + new ReactiveDataSource.ReactiveDataSourceLiteral(dataSourceName)); + } + if (instance.isResolvable()) { + OraclePoolCreator.Input input = new DefaultInput(vertx, poolOptions, oracleConnectOptions); + return instance.get().create(input); + } + return OraclePool.pool(vertx, oracleConnectOptions, poolOptions); + } + + private static class DefaultInput implements OraclePoolCreator.Input { + private final Vertx vertx; + private final PoolOptions poolOptions; + private final OracleConnectOptions oracleConnectOptions; + + public DefaultInput(Vertx vertx, PoolOptions poolOptions, OracleConnectOptions oracleConnectOptions) { + this.vertx = vertx; + this.poolOptions = poolOptions; + this.oracleConnectOptions = oracleConnectOptions; + } + + @Override + public Vertx vertx() { + return vertx; + } + + @Override + public PoolOptions poolOptions() { + return poolOptions; + } + + @Override + public OracleConnectOptions oracleConnectOptions() { + return oracleConnectOptions; + } + } } From cd6df47fe114b1eba6e9077671624e2c3526f859 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Fri, 20 Jan 2023 18:24:50 +0100 Subject: [PATCH 014/250] Move OraclePoolCreator to io.quarkus.reactive.oracle.client package --- .../oracle/client/deployment/ReactiveOracleClientProcessor.java | 2 +- .../reactive/oracle/client/LocalhostOraclePoolCreator.java | 1 - .../client/MultipleDataSourcesAndOraclePoolCreatorsTest.java | 1 - .../client/MultipleOraclePoolCreatorsForSameDatasourceTest.java | 1 - .../reactive/oracle/client/{runtime => }/OraclePoolCreator.java | 2 +- .../reactive/oracle/client/runtime/OraclePoolRecorder.java | 1 + 6 files changed, 3 insertions(+), 5 deletions(-) rename extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/{runtime => }/OraclePoolCreator.java (95%) diff --git a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java index 0c71ce907f92f..1385081e1d037 100644 --- a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java +++ b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java @@ -47,8 +47,8 @@ import io.quarkus.reactive.datasource.runtime.DataSourceReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.oracle.client.OraclePoolCreator; import io.quarkus.reactive.oracle.client.runtime.DataSourcesReactiveOracleConfig; -import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; import io.quarkus.reactive.oracle.client.runtime.OraclePoolRecorder; import io.quarkus.reactive.oracle.client.runtime.OracleServiceBindingConverter; import io.quarkus.runtime.RuntimeValue; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java index 68a99eae0cfc8..ab4b483255b6a 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java @@ -2,7 +2,6 @@ import javax.inject.Singleton; -import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; import io.vertx.oracleclient.OraclePool; @Singleton diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java index 1d2cdfddfe456..fd0cae86bc907 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java @@ -13,7 +13,6 @@ import org.junit.jupiter.api.extension.RegisterExtension; import io.quarkus.reactive.datasource.ReactiveDataSource; -import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; import io.quarkus.test.QuarkusUnitTest; import io.vertx.oracleclient.OraclePool; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java index 522c699c61340..8e0987f9ba5fa 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java @@ -8,7 +8,6 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import io.quarkus.reactive.oracle.client.runtime.OraclePoolCreator; import io.quarkus.test.QuarkusUnitTest; import io.vertx.oracleclient.OraclePool; diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/OraclePoolCreator.java similarity index 95% rename from extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java rename to extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/OraclePoolCreator.java index ca7ac439b5d50..de2441d5dda83 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolCreator.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/OraclePoolCreator.java @@ -1,4 +1,4 @@ -package io.quarkus.reactive.oracle.client.runtime; +package io.quarkus.reactive.oracle.client; import io.quarkus.reactive.datasource.ReactiveDataSource; import io.vertx.core.Vertx; diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index a89eb247ab65e..a24a80f7997bb 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -20,6 +20,7 @@ import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.oracle.client.OraclePoolCreator; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; From bd28b09eb0086beb47c83e7b4d2c3d0986f6f8a7 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Fri, 20 Jan 2023 19:13:53 +0100 Subject: [PATCH 015/250] Add MySQLPoolCreator --- .../ReactiveMySQLClientProcessor.java | 53 +++++++++ .../client/LocalhostMySQLPoolCreator.java | 15 +++ ...leDataSourcesAndMySQLPoolCreatorsTest.java | 105 ++++++++++++++++++ ...ySQLPoolCreatorsForSameDatasourceTest.java | 40 +++++++ .../mysql/client/MySQLPoolCreatorTest.java | 30 +++++ ...-credentials-with-erroneous-url.properties | 3 + ...-datasources-with-erroneous-url.properties | 9 ++ .../mysql/client/MySQLPoolCreator.java | 30 +++++ .../client/runtime/MySQLPoolRecorder.java | 50 ++++++++- 9 files changed, 334 insertions(+), 1 deletion(-) create mode 100644 extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java create mode 100644 extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java create mode 100644 extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java create mode 100644 extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolCreatorTest.java create mode 100644 extensions/reactive-mysql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties create mode 100644 extensions/reactive-mysql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties create mode 100644 extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/MySQLPoolCreator.java diff --git a/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java b/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java index 2354842e7865c..42266feac61df 100644 --- a/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java +++ b/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java @@ -1,12 +1,26 @@ package io.quarkus.reactive.mysql.client.deployment; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Predicate; +import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.DotName; +import org.jboss.jandex.Type; + import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.devconsole.Name; +import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.DotNames; import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.common.runtime.DatabaseKind; @@ -33,6 +47,7 @@ import io.quarkus.reactive.datasource.runtime.DataSourceReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.mysql.client.MySQLPoolCreator; import io.quarkus.reactive.mysql.client.runtime.DataSourcesReactiveMySQLConfig; import io.quarkus.reactive.mysql.client.runtime.MySQLPoolRecorder; import io.quarkus.reactive.mysql.client.runtime.MySQLServiceBindingConverter; @@ -89,6 +104,34 @@ List devDbHandler() { DevServicesDatasourceConfigurationHandlerBuildItem.reactive(DatabaseKind.MARIADB)); } + @BuildStep + void unremoveableBeans(BuildProducer producer) { + producer.produce(UnremovableBeanBuildItem.beanTypes(MySQLPoolCreator.class)); + } + + @BuildStep + void validateBeans(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + // no two MySQLPoolCreator beans can be associated with the same datasource + Map seen = new HashMap<>(); + for (BeanInfo beanInfo : validationPhase.getContext().beans() + .matchBeanTypes(new MySQLPoolCreatorBeanClassPredicate())) { + Set qualifiers = new TreeSet<>(); // use a TreeSet in order to get a predictable iteration order + for (AnnotationInstance qualifier : beanInfo.getQualifiers()) { + qualifiers.add(Name.from(qualifier)); + } + String qualifiersStr = qualifiers.stream().map(Name::toString).collect(Collectors.joining("_")); + if (seen.getOrDefault(qualifiersStr, false)) { + errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( + new IllegalStateException( + "There can be at most one bean of type '" + MySQLPoolCreator.class.getName() + + "' for each datasource."))); + } else { + seen.put(qualifiersStr, true); + } + } + } + @BuildStep void registerServiceBinding(Capabilities capabilities, BuildProducer serviceProvider, BuildProducer dbKind) { @@ -237,4 +280,14 @@ private static void addQualifiers(ExtendedBeanConfigurator configurator, String .done(); } } + + private static class MySQLPoolCreatorBeanClassPredicate implements Predicate> { + private static final Type MYSQL_POOL_CREATOR = Type.create(DotName.createSimple(MySQLPoolCreator.class.getName()), + Type.Kind.CLASS); + + @Override + public boolean test(Set types) { + return types.contains(MYSQL_POOL_CREATOR); + } + } } diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java new file mode 100644 index 0000000000000..ec8c7a798d0a2 --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java @@ -0,0 +1,15 @@ +package io.quarkus.reactive.mysql.client; + +import javax.inject.Singleton; + +import io.vertx.mysqlclient.MySQLPool; + +@Singleton +public class LocalhostMySQLPoolCreator implements MySQLPoolCreator { + + @Override + public MySQLPool create(Input input) { + return MySQLPool.pool(input.vertx(), input.mySQLConnectOptions().setHost("localhost").setPort(3308), + input.poolOptions()); + } +} diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java new file mode 100644 index 0000000000000..e0b5a88258f4f --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java @@ -0,0 +1,105 @@ +package io.quarkus.reactive.mysql.client; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionStage; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.mysqlclient.MySQLPool; + +public class MultipleDataSourcesAndMySQLPoolCreatorsTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withConfigurationResource("application-multiple-datasources-with-erroneous-url.properties") + .withApplicationRoot((jar) -> jar + .addClasses(BeanUsingDefaultDataSource.class) + .addClass(BeanUsingHibernateDataSource.class) + .addClass(DefaultMySQLPoolCreator.class) + .addClass(HibernateMySQLPoolCreator.class)); + + @Inject + BeanUsingDefaultDataSource beanUsingDefaultDataSource; + + @Inject + BeanUsingHibernateDataSource beanUsingHibernateDataSource; + + @Test + public void testMultipleDataSources() { + beanUsingDefaultDataSource.verify() + .thenCompose(v -> beanUsingHibernateDataSource.verify()) + .toCompletableFuture() + .join(); + } + + @ApplicationScoped + static class BeanUsingDefaultDataSource { + + @Inject + MySQLPool mySQLClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + mySQLClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @ApplicationScoped + static class BeanUsingHibernateDataSource { + + @Inject + @ReactiveDataSource("hibernate") + MySQLPool mySQLClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + mySQLClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @Singleton + public static class DefaultMySQLPoolCreator implements MySQLPoolCreator { + + @Override + public MySQLPool create(Input input) { + assertEquals(12345, input.mySQLConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return MySQLPool.pool(input.vertx(), input.mySQLConnectOptions().setHost("localhost").setPort(3308), + input.poolOptions()); + } + } + + @Singleton + @ReactiveDataSource("hibernate") + public static class HibernateMySQLPoolCreator implements MySQLPoolCreator { + + @Override + public MySQLPool create(Input input) { + assertEquals(55555, input.mySQLConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return MySQLPool.pool(input.vertx(), input.mySQLConnectOptions().setHost("localhost").setPort(3308), + input.poolOptions()); + } + } +} diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java new file mode 100644 index 0000000000000..6fd00cf2d7748 --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java @@ -0,0 +1,40 @@ +package io.quarkus.reactive.mysql.client; + +import static org.junit.jupiter.api.Assertions.fail; + +import javax.enterprise.inject.spi.DeploymentException; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.mysqlclient.MySQLPool; + +public class MultipleMySQLPoolCreatorsForSameDatasourceTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostMySQLPoolCreator.class) + .addClass(AnotherMySQLPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")) + .setExpectedException(DeploymentException.class); + + @Test + public void test() { + fail("Should never have been called"); + } + + @Singleton + public static class AnotherMySQLPoolCreator implements MySQLPoolCreator { + + @Override + public MySQLPool create(Input input) { + return MySQLPool.pool(input.vertx(), input.mySQLConnectOptions(), input.poolOptions()); + } + } + +} diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolCreatorTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolCreatorTest.java new file mode 100644 index 0000000000000..d3787cfac2901 --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolCreatorTest.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.mysql.client; + +import static io.restassured.RestAssured.given; + +import org.hamcrest.CoreMatchers; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class MySQLPoolCreatorTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostMySQLPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")); + + @Test + public void testConnect() { + given() + .when().get("/test") + .then() + .statusCode(200) + .body(CoreMatchers.equalTo("OK")); + } + +} diff --git a/extensions/reactive-mysql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties b/extensions/reactive-mysql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties new file mode 100644 index 0000000000000..bb13d3858c6f1 --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties @@ -0,0 +1,3 @@ +quarkus.datasource.db-kind=mysql +quarkus.datasource.credentials-provider=custom +quarkus.datasource.reactive.url=vertx-reactive:mysql://test:12345/hibernate_orm_test diff --git a/extensions/reactive-mysql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties b/extensions/reactive-mysql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties new file mode 100644 index 0000000000000..194f07190b185 --- /dev/null +++ b/extensions/reactive-mysql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties @@ -0,0 +1,9 @@ +quarkus.datasource.db-kind=mysql +quarkus.datasource.username=hibernate_orm_test +quarkus.datasource.password=hibernate_orm_test +quarkus.datasource.reactive.url=vertx-reactive:mysql://test:12345/hibernate_orm_test + +quarkus.datasource."hibernate".db-kind=mysql +quarkus.datasource."hibernate".username=hibernate_orm_test +quarkus.datasource."hibernate".password=hibernate_orm_test +quarkus.datasource."hibernate".reactive.url=vertx-reactive:mysql://test:55555/hibernate_orm_test diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/MySQLPoolCreator.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/MySQLPoolCreator.java new file mode 100644 index 0000000000000..43bfc3db99755 --- /dev/null +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/MySQLPoolCreator.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.mysql.client; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.vertx.core.Vertx; +import io.vertx.mysqlclient.MySQLConnectOptions; +import io.vertx.mysqlclient.MySQLPool; +import io.vertx.sqlclient.PoolOptions; + +/** + * This interface is an integration point that allows users to use the {@link Vertx}, {@link PoolOptions} and + * {@link MySQLConnectOptions} objects configured automatically by Quarkus, in addition to a custom strategy + * for creating the final {@link MySQLPool}. + * + * Implementations of this class are meant to be used as CDI beans. + * If a bean of this type is used without a {@link ReactiveDataSource} qualifier, then it's applied to the default datasource, + * otherwise it applies to the datasource matching the name of the annotation. + */ +public interface MySQLPoolCreator { + + MySQLPool create(Input input); + + interface Input { + + Vertx vertx(); + + PoolOptions poolOptions(); + + MySQLConnectOptions mySQLConnectOptions(); + } +} diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java index 11921d864bfc4..0c4b61e474b3e 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java @@ -13,14 +13,20 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; +import javax.enterprise.inject.Instance; + import org.jboss.logging.Logger; +import io.quarkus.arc.Arc; import io.quarkus.credentials.CredentialsProvider; import io.quarkus.credentials.runtime.CredentialsProviderFinder; +import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.runtime.DataSourceRuntimeConfig; import io.quarkus.datasource.runtime.DataSourcesRuntimeConfig; +import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.mysql.client.MySQLPoolCreator; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; @@ -79,7 +85,7 @@ private MySQLPool initialize(Vertx vertx, log.warn( "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); } - return MySQLPool.pool(vertx, mysqlConnectOptions, poolOptions); + return createPool(vertx, poolOptions, mysqlConnectOptions, dataSourceName); } private PoolOptions toPoolOptions(Integer eventLoopCount, @@ -213,4 +219,46 @@ private MySQLConnectOptions toMySQLConnectOptions(DataSourceRuntimeConfig dataSo return mysqlConnectOptions; } + private MySQLPool createPool(Vertx vertx, PoolOptions poolOptions, MySQLConnectOptions mySQLConnectOptions, + String dataSourceName) { + Instance instance; + if (DataSourceUtil.isDefault(dataSourceName)) { + instance = Arc.container().select(MySQLPoolCreator.class); + } else { + instance = Arc.container().select(MySQLPoolCreator.class, + new ReactiveDataSource.ReactiveDataSourceLiteral(dataSourceName)); + } + if (instance.isResolvable()) { + MySQLPoolCreator.Input input = new DefaultInput(vertx, poolOptions, mySQLConnectOptions); + return instance.get().create(input); + } + return MySQLPool.pool(vertx, mySQLConnectOptions, poolOptions); + } + + private static class DefaultInput implements MySQLPoolCreator.Input { + private final Vertx vertx; + private final PoolOptions poolOptions; + private final MySQLConnectOptions mySQLConnectOptions; + + public DefaultInput(Vertx vertx, PoolOptions poolOptions, MySQLConnectOptions mySQLConnectOptions) { + this.vertx = vertx; + this.poolOptions = poolOptions; + this.mySQLConnectOptions = mySQLConnectOptions; + } + + @Override + public Vertx vertx() { + return vertx; + } + + @Override + public PoolOptions poolOptions() { + return poolOptions; + } + + @Override + public MySQLConnectOptions mySQLConnectOptions() { + return mySQLConnectOptions; + } + } } From 5464cc2cf96a17d992c92f7e61ac187c81226e2c Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Fri, 20 Jan 2023 22:15:13 +0100 Subject: [PATCH 016/250] Add MSSQLPoolCreator --- .../ReactiveMSSQLClientProcessor.java | 53 +++++++++ .../client/LocalhostMSSQLPoolCreator.java | 15 +++ .../mssql/client/MSSQLPoolCreatorTest.java | 30 +++++ ...leDataSourcesAndMSSQLPoolCreatorsTest.java | 105 ++++++++++++++++++ ...SSQLPoolCreatorsForSameDatasourceTest.java | 40 +++++++ ...-credentials-with-erroneous-url.properties | 3 + ...-datasources-with-erroneous-url.properties | 9 ++ .../mssql/client/MSSQLPoolCreator.java | 30 +++++ .../client/runtime/MSSQLPoolRecorder.java | 50 ++++++++- 9 files changed, 334 insertions(+), 1 deletion(-) create mode 100644 extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java create mode 100644 extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreatorTest.java create mode 100644 extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java create mode 100644 extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java create mode 100644 extensions/reactive-mssql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties create mode 100644 extensions/reactive-mssql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties create mode 100644 extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreator.java diff --git a/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java b/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java index 3482082072658..15d22dc1a515d 100644 --- a/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java +++ b/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java @@ -1,12 +1,26 @@ package io.quarkus.reactive.mssql.client.deployment; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Predicate; +import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.DotName; +import org.jboss.jandex.Type; + import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.devconsole.Name; +import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.DotNames; import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.common.runtime.DatabaseKind; @@ -33,6 +47,7 @@ import io.quarkus.reactive.datasource.runtime.DataSourceReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.mssql.client.MSSQLPoolCreator; import io.quarkus.reactive.mssql.client.runtime.DataSourcesReactiveMSSQLConfig; import io.quarkus.reactive.mssql.client.runtime.MSSQLPoolRecorder; import io.quarkus.reactive.mssql.client.runtime.MsSQLServiceBindingConverter; @@ -88,6 +103,34 @@ DevServicesDatasourceConfigurationHandlerBuildItem devDbHandler() { return DevServicesDatasourceConfigurationHandlerBuildItem.reactive(DatabaseKind.MSSQL); } + @BuildStep + void unremoveableBeans(BuildProducer producer) { + producer.produce(UnremovableBeanBuildItem.beanTypes(MSSQLPoolCreator.class)); + } + + @BuildStep + void validateBeans(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + // no two MssqlPoolCreator beans can be associated with the same datasource + Map seen = new HashMap<>(); + for (BeanInfo beanInfo : validationPhase.getContext().beans() + .matchBeanTypes(new MSSQLPoolCreatorBeanClassPredicate())) { + Set qualifiers = new TreeSet<>(); // use a TreeSet in order to get a predictable iteration order + for (AnnotationInstance qualifier : beanInfo.getQualifiers()) { + qualifiers.add(Name.from(qualifier)); + } + String qualifiersStr = qualifiers.stream().map(Name::toString).collect(Collectors.joining("_")); + if (seen.getOrDefault(qualifiersStr, false)) { + errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( + new IllegalStateException( + "There can be at most one bean of type '" + MSSQLPoolCreator.class.getName() + + "' for each datasource."))); + } else { + seen.put(qualifiersStr, true); + } + } + } + @BuildStep void registerServiceBinding(Capabilities capabilities, BuildProducer serviceProvider, BuildProducer dbKind) { @@ -235,4 +278,14 @@ private static void addQualifiers(ExtendedBeanConfigurator configurator, String .done(); } } + + private static class MSSQLPoolCreatorBeanClassPredicate implements Predicate> { + private static final Type MSSQL_POOL_CREATOR = Type.create(DotName.createSimple(MSSQLPoolCreator.class.getName()), + Type.Kind.CLASS); + + @Override + public boolean test(Set types) { + return types.contains(MSSQL_POOL_CREATOR); + } + } } diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java new file mode 100644 index 0000000000000..b4a045f6255de --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java @@ -0,0 +1,15 @@ +package io.quarkus.reactive.mssql.client; + +import javax.inject.Singleton; + +import io.vertx.mssqlclient.MSSQLPool; + +@Singleton +public class LocalhostMSSQLPoolCreator implements MSSQLPoolCreator { + + @Override + public MSSQLPool create(Input input) { + return MSSQLPool.pool(input.vertx(), input.msSQLConnectOptions().setHost("localhost").setPort(1435), + input.poolOptions()); + } +} diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreatorTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreatorTest.java new file mode 100644 index 0000000000000..c80375688833b --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreatorTest.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.mssql.client; + +import static io.restassured.RestAssured.given; + +import org.hamcrest.CoreMatchers; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class MSSQLPoolCreatorTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostMSSQLPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")); + + @Test + public void testConnect() { + given() + .when().get("/test") + .then() + .statusCode(200) + .body(CoreMatchers.equalTo("OK")); + } + +} diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java new file mode 100644 index 0000000000000..f89109ab4c95f --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java @@ -0,0 +1,105 @@ +package io.quarkus.reactive.mssql.client; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.CompletionStage; + +import javax.enterprise.context.ApplicationScoped; +import javax.inject.Inject; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.mssqlclient.MSSQLPool; + +public class MultipleDataSourcesAndMSSQLPoolCreatorsTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withConfigurationResource("application-multiple-datasources-with-erroneous-url.properties") + .withApplicationRoot((jar) -> jar + .addClasses(BeanUsingDefaultDataSource.class) + .addClass(BeanUsingHibernateDataSource.class) + .addClass(DefaultMSSQLPoolCreator.class) + .addClass(HibernateMSSQLPoolCreator.class)); + + @Inject + BeanUsingDefaultDataSource beanUsingDefaultDataSource; + + @Inject + BeanUsingHibernateDataSource beanUsingHibernateDataSource; + + @Test + public void testMultipleDataSources() { + beanUsingDefaultDataSource.verify() + .thenCompose(v -> beanUsingHibernateDataSource.verify()) + .toCompletableFuture() + .join(); + } + + @ApplicationScoped + static class BeanUsingDefaultDataSource { + + @Inject + MSSQLPool mSSQLClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + mSSQLClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @ApplicationScoped + static class BeanUsingHibernateDataSource { + + @Inject + @ReactiveDataSource("hibernate") + MSSQLPool mSSQLClient; + + public CompletionStage verify() { + CompletableFuture cf = new CompletableFuture<>(); + mSSQLClient.query("SELECT 1").execute(ar -> { + if (ar.failed()) { + cf.completeExceptionally(ar.cause()); + } else { + cf.complete(null); + } + }); + return cf; + } + } + + @Singleton + public static class DefaultMSSQLPoolCreator implements MSSQLPoolCreator { + + @Override + public MSSQLPool create(Input input) { + assertEquals(12345, input.msSQLConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return MSSQLPool.pool(input.vertx(), input.msSQLConnectOptions().setHost("localhost").setPort(1435), + input.poolOptions()); + } + } + + @Singleton + @ReactiveDataSource("hibernate") + public static class HibernateMSSQLPoolCreator implements MSSQLPoolCreator { + + @Override + public MSSQLPool create(Input input) { + assertEquals(55555, input.msSQLConnectOptions().getPort()); // validate that the bean has been called for the proper datasource + return MSSQLPool.pool(input.vertx(), input.msSQLConnectOptions().setHost("localhost").setPort(1435), + input.poolOptions()); + } + } +} diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java new file mode 100644 index 0000000000000..1fb1e478b4f99 --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java @@ -0,0 +1,40 @@ +package io.quarkus.reactive.mssql.client; + +import static org.junit.jupiter.api.Assertions.fail; + +import javax.enterprise.inject.spi.DeploymentException; +import javax.inject.Singleton; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.vertx.mssqlclient.MSSQLPool; + +public class MultipleMSSQLPoolCreatorsForSameDatasourceTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(CustomCredentialsProvider.class) + .addClass(CredentialsTestResource.class) + .addClass(LocalhostMSSQLPoolCreator.class) + .addClass(AnotherMSSQLPoolCreator.class) + .addAsResource("application-credentials-with-erroneous-url.properties", "application.properties")) + .setExpectedException(DeploymentException.class); + + @Test + public void test() { + fail("Should never have been called"); + } + + @Singleton + public static class AnotherMSSQLPoolCreator implements MSSQLPoolCreator { + + @Override + public MSSQLPool create(Input input) { + return MSSQLPool.pool(input.vertx(), input.msSQLConnectOptions(), input.poolOptions()); + } + } + +} diff --git a/extensions/reactive-mssql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties b/extensions/reactive-mssql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties new file mode 100644 index 0000000000000..60e6e5bcaabdc --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/resources/application-credentials-with-erroneous-url.properties @@ -0,0 +1,3 @@ +quarkus.datasource.db-kind=mssql +quarkus.datasource.credentials-provider=custom +quarkus.datasource.reactive.url=vertx-reactive:sqlserver://test:12345 diff --git a/extensions/reactive-mssql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties b/extensions/reactive-mssql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties new file mode 100644 index 0000000000000..106938c672363 --- /dev/null +++ b/extensions/reactive-mssql-client/deployment/src/test/resources/application-multiple-datasources-with-erroneous-url.properties @@ -0,0 +1,9 @@ +quarkus.datasource.db-kind=mssql +quarkus.datasource.username=sa +quarkus.datasource.password=A_Str0ng_Required_Password +quarkus.datasource.reactive.url=vertx-reactive:sqlserver://test:12345 + +quarkus.datasource."hibernate".db-kind=mssql +quarkus.datasource."hibernate".username=sa +quarkus.datasource."hibernate".password=A_Str0ng_Required_Password +quarkus.datasource."hibernate".reactive.url=vertx-reactive:sqlserver://test:55555 diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreator.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreator.java new file mode 100644 index 0000000000000..dc2da326413e2 --- /dev/null +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/MSSQLPoolCreator.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.mssql.client; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.vertx.core.Vertx; +import io.vertx.mssqlclient.MSSQLConnectOptions; +import io.vertx.mssqlclient.MSSQLPool; +import io.vertx.sqlclient.PoolOptions; + +/** + * This interface is an integration point that allows users to use the {@link Vertx}, {@link PoolOptions} and + * {@link MSSQLConnectOptions} objects configured automatically by Quarkus, in addition to a custom strategy + * for creating the final {@link MSSQLPool}. + * + * Implementations of this class are meant to be used as CDI beans. + * If a bean of this type is used without a {@link ReactiveDataSource} qualifier, then it's applied to the default datasource, + * otherwise it applies to the datasource matching the name of the annotation. + */ +public interface MSSQLPoolCreator { + + MSSQLPool create(Input input); + + interface Input { + + Vertx vertx(); + + PoolOptions poolOptions(); + + MSSQLConnectOptions msSQLConnectOptions(); + } +} diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java index 4828688ed77c9..7c14613815975 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java @@ -13,14 +13,20 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; +import javax.enterprise.inject.Instance; + import org.jboss.logging.Logger; +import io.quarkus.arc.Arc; import io.quarkus.credentials.CredentialsProvider; import io.quarkus.credentials.runtime.CredentialsProviderFinder; +import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.runtime.DataSourceRuntimeConfig; import io.quarkus.datasource.runtime.DataSourcesRuntimeConfig; +import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.mssql.client.MSSQLPoolCreator; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; @@ -78,7 +84,7 @@ private MSSQLPool initialize(Vertx vertx, log.warn( "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); } - return MSSQLPool.pool(vertx, mssqlConnectOptions, poolOptions); + return createPool(vertx, poolOptions, mssqlConnectOptions, dataSourceName); } private PoolOptions toPoolOptions(Integer eventLoopCount, @@ -182,4 +188,46 @@ private MSSQLConnectOptions toMSSQLConnectOptions(DataSourceRuntimeConfig dataSo return mssqlConnectOptions; } + private MSSQLPool createPool(Vertx vertx, PoolOptions poolOptions, MSSQLConnectOptions mSSQLConnectOptions, + String dataSourceName) { + Instance instance; + if (DataSourceUtil.isDefault(dataSourceName)) { + instance = Arc.container().select(MSSQLPoolCreator.class); + } else { + instance = Arc.container().select(MSSQLPoolCreator.class, + new ReactiveDataSource.ReactiveDataSourceLiteral(dataSourceName)); + } + if (instance.isResolvable()) { + MSSQLPoolCreator.Input input = new DefaultInput(vertx, poolOptions, mSSQLConnectOptions); + return instance.get().create(input); + } + return MSSQLPool.pool(vertx, mSSQLConnectOptions, poolOptions); + } + + private static class DefaultInput implements MSSQLPoolCreator.Input { + private final Vertx vertx; + private final PoolOptions poolOptions; + private final MSSQLConnectOptions mSSQLConnectOptions; + + public DefaultInput(Vertx vertx, PoolOptions poolOptions, MSSQLConnectOptions mSSQLConnectOptions) { + this.vertx = vertx; + this.poolOptions = poolOptions; + this.mSSQLConnectOptions = mSSQLConnectOptions; + } + + @Override + public Vertx vertx() { + return vertx; + } + + @Override + public PoolOptions poolOptions() { + return poolOptions; + } + + @Override + public MSSQLConnectOptions msSQLConnectOptions() { + return mSSQLConnectOptions; + } + } } From 8f704fe6d29199da513b5e17d202d852c132ee40 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Fri, 20 Jan 2023 22:23:15 +0100 Subject: [PATCH 017/250] Add DB2PoolCreator --- .../ReactiveDB2ClientProcessor.java | 53 +++++++++++++++++++ .../reactive/db2/client/DB2PoolCreator.java | 30 +++++++++++ .../db2/client/runtime/DB2PoolRecorder.java | 51 +++++++++++++++++- 3 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/DB2PoolCreator.java diff --git a/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java b/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java index ca2b618b18433..10e5ddb2cf151 100644 --- a/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java +++ b/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java @@ -1,12 +1,26 @@ package io.quarkus.reactive.db2.client.deployment; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Predicate; +import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.DotName; +import org.jboss.jandex.Type; + import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.devconsole.Name; +import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.DotNames; import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.common.runtime.DatabaseKind; @@ -33,6 +47,7 @@ import io.quarkus.reactive.datasource.runtime.DataSourceReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveBuildTimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.db2.client.DB2PoolCreator; import io.quarkus.reactive.db2.client.runtime.DB2PoolRecorder; import io.quarkus.reactive.db2.client.runtime.DB2ServiceBindingConverter; import io.quarkus.reactive.db2.client.runtime.DataSourcesReactiveDB2Config; @@ -88,6 +103,34 @@ DevServicesDatasourceConfigurationHandlerBuildItem devDbHandler() { return DevServicesDatasourceConfigurationHandlerBuildItem.reactive(DatabaseKind.DB2); } + @BuildStep + void unremoveableBeans(BuildProducer producer) { + producer.produce(UnremovableBeanBuildItem.beanTypes(DB2PoolCreator.class)); + } + + @BuildStep + void validateBeans(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + // no two Db2PoolCreator beans can be associated with the same datasource + Map seen = new HashMap<>(); + for (BeanInfo beanInfo : validationPhase.getContext().beans() + .matchBeanTypes(new DB2PoolCreatorBeanClassPredicate())) { + Set qualifiers = new TreeSet<>(); // use a TreeSet in order to get a predictable iteration order + for (AnnotationInstance qualifier : beanInfo.getQualifiers()) { + qualifiers.add(Name.from(qualifier)); + } + String qualifiersStr = qualifiers.stream().map(Name::toString).collect(Collectors.joining("_")); + if (seen.getOrDefault(qualifiersStr, false)) { + errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( + new IllegalStateException( + "There can be at most one bean of type '" + DB2PoolCreator.class.getName() + + "' for each datasource."))); + } else { + seen.put(qualifiersStr, true); + } + } + } + @BuildStep void registerServiceBinding(Capabilities capabilities, BuildProducer serviceProvider, BuildProducer dbKind) { @@ -236,4 +279,14 @@ private static void addQualifiers(ExtendedBeanConfigurator configurator, String .done(); } } + + private static class DB2PoolCreatorBeanClassPredicate implements Predicate> { + private static final Type DB2_POOL_CREATOR = Type.create(DotName.createSimple(DB2PoolCreator.class.getName()), + Type.Kind.CLASS); + + @Override + public boolean test(Set types) { + return types.contains(DB2_POOL_CREATOR); + } + } } diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/DB2PoolCreator.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/DB2PoolCreator.java new file mode 100644 index 0000000000000..3538d678e8670 --- /dev/null +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/DB2PoolCreator.java @@ -0,0 +1,30 @@ +package io.quarkus.reactive.db2.client; + +import io.quarkus.reactive.datasource.ReactiveDataSource; +import io.vertx.core.Vertx; +import io.vertx.db2client.DB2ConnectOptions; +import io.vertx.db2client.DB2Pool; +import io.vertx.sqlclient.PoolOptions; + +/** + * This interface is an integration point that allows users to use the {@link Vertx}, {@link PoolOptions} and + * {@link DB2ConnectOptions} objects configured automatically by Quarkus, in addition to a custom strategy + * for creating the final {@link DB2Pool}. + * + * Implementations of this class are meant to be used as CDI beans. + * If a bean of this type is used without a {@link ReactiveDataSource} qualifier, then it's applied to the default datasource, + * otherwise it applies to the datasource matching the name of the annotation. + */ +public interface DB2PoolCreator { + + DB2Pool create(Input input); + + interface Input { + + Vertx vertx(); + + PoolOptions poolOptions(); + + DB2ConnectOptions db2ConnectOptions(); + } +} diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java index 420a286b2dc7f..ff9a794e19ef9 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java @@ -13,14 +13,20 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; +import javax.enterprise.inject.Instance; + import org.jboss.logging.Logger; +import io.quarkus.arc.Arc; import io.quarkus.credentials.CredentialsProvider; import io.quarkus.credentials.runtime.CredentialsProviderFinder; +import io.quarkus.datasource.common.runtime.DataSourceUtil; import io.quarkus.datasource.runtime.DataSourceRuntimeConfig; import io.quarkus.datasource.runtime.DataSourcesRuntimeConfig; +import io.quarkus.reactive.datasource.ReactiveDataSource; import io.quarkus.reactive.datasource.runtime.DataSourceReactiveRuntimeConfig; import io.quarkus.reactive.datasource.runtime.DataSourcesReactiveRuntimeConfig; +import io.quarkus.reactive.db2.client.DB2PoolCreator; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.ShutdownContext; import io.quarkus.runtime.annotations.Recorder; @@ -78,7 +84,7 @@ private DB2Pool initialize(Vertx vertx, log.warn( "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); } - return DB2Pool.pool(vertx, connectOptions, poolOptions); + return createPool(vertx, poolOptions, connectOptions, dataSourceName); } private PoolOptions toPoolOptions(Integer eventLoopCount, @@ -186,4 +192,47 @@ private DB2ConnectOptions toConnectOptions(DataSourceRuntimeConfig dataSourceRun return connectOptions; } + + private DB2Pool createPool(Vertx vertx, PoolOptions poolOptions, DB2ConnectOptions dB2ConnectOptions, + String dataSourceName) { + Instance instance; + if (DataSourceUtil.isDefault(dataSourceName)) { + instance = Arc.container().select(DB2PoolCreator.class); + } else { + instance = Arc.container().select(DB2PoolCreator.class, + new ReactiveDataSource.ReactiveDataSourceLiteral(dataSourceName)); + } + if (instance.isResolvable()) { + DB2PoolCreator.Input input = new DefaultInput(vertx, poolOptions, dB2ConnectOptions); + return instance.get().create(input); + } + return DB2Pool.pool(vertx, dB2ConnectOptions, poolOptions); + } + + private static class DefaultInput implements DB2PoolCreator.Input { + private final Vertx vertx; + private final PoolOptions poolOptions; + private final DB2ConnectOptions dB2ConnectOptions; + + public DefaultInput(Vertx vertx, PoolOptions poolOptions, DB2ConnectOptions dB2ConnectOptions) { + this.vertx = vertx; + this.poolOptions = poolOptions; + this.dB2ConnectOptions = dB2ConnectOptions; + } + + @Override + public Vertx vertx() { + return vertx; + } + + @Override + public PoolOptions poolOptions() { + return poolOptions; + } + + @Override + public DB2ConnectOptions db2ConnectOptions() { + return dB2ConnectOptions; + } + } } From fcca2fa1586d940dc183d03b9cc72f27e1100cad Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Mon, 23 Jan 2023 10:39:08 +0100 Subject: [PATCH 018/250] Customizing pool creation documentation --- .../main/asciidoc/reactive-sql-clients.adoc | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/docs/src/main/asciidoc/reactive-sql-clients.adoc b/docs/src/main/asciidoc/reactive-sql-clients.adoc index 92583127f3f65..98c7fbed5f234 100644 --- a/docs/src/main/asciidoc/reactive-sql-clients.adoc +++ b/docs/src/main/asciidoc/reactive-sql-clients.adoc @@ -702,6 +702,58 @@ For example, you could expire idle connections after 60 minutes: quarkus.datasource.reactive.idle-timeout=PT60M ---- +== Customizing pool creation + +Sometimes, the database connection pool cannot be configured only by declaration. + +You may need to read a specific file only present in production, or retrieve configuration data from a proprietary configuration server. + +In this case, you can customize pool creation by creating a class implementing an interface which depends on the target database: + +[cols="30,70"] +|=== +|Database |Pool creator class name + +|IBM Db2 +|`io.quarkus.reactive.db2.client.DB2PoolCreator` + +|MariaDB/MySQL +|`io.quarkus.reactive.mysql.client.MySQLPoolCreator` + +|Microsoft SQL Server +|`io.quarkus.reactive.mssql.client.MSSQLPoolCreator` + +|Oracle +|`io.quarkus.reactive.oracle.client.OraclePoolCreator` + +|PostgreSQL +|`io.quarkus.reactive.pg.client.PgPoolCreator` +|=== + +Here's an example for PostgreSQL: + +[source,java] +---- +import javax.inject.Singleton; + +import io.quarkus.reactive.pg.client.PgPoolCreator; +import io.vertx.pgclient.PgConnectOptions; +import io.vertx.pgclient.PgPool; +import io.vertx.sqlclient.PoolOptions; + +@Singleton +public class CustomPgPoolCreator implements PgPoolCreator { + + @Override + public PgPool create(Input input) { + PgConnectOptions connectOptions = input.pgConnectOptions(); + PoolOptions poolOptions = input.poolOptions(); + // Customize connectOptions, poolOptions or both, as required + return PgPool.pool(input.vertx(), connectOptions, poolOptions); + } +} +---- + == Configuration Reference === Common Datasource From 8b7ef35cc8b43cf6cea600793a86ddb69dd17c56 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Thu, 19 Jan 2023 16:27:55 +0000 Subject: [PATCH 019/250] Refactor Spring Client Config --- .../client/SpringCloudConfigProcessor.java | 21 +--- .../runtime/pom.xml | 5 + .../SpringCloudConfigClientConfig.java | 76 ++++++------ .../SpringCloudConfigClientConfigBuilder.java | 11 ++ ...gCloudConfigClientConfigSourceFactory.java | 107 ++++++++++++++++ .../SpringCloudConfigClientRecorder.java | 49 -------- ...onfigServerClientConfigSourceProvider.java | 117 ------------------ .../VertxSpringCloudConfigGateway.java | 61 ++++----- .../SpringCloudConfigClientGatewayTest.java | 35 +++--- .../spring-cloud-config-client/pom.xml | 62 +--------- .../config/server/client/ConfigResource.java | 33 +++++ .../server/client/GreetingResource.java | 18 --- .../src/main/resources/application.properties | 3 + .../src/main/resources/application.yaml | 16 --- .../mappings/a-bootiful-client-prod.json | 28 ----- .../client/runtime/GreetingResourceIT.java | 12 -- .../client/runtime/GreetingResourceTest.java | 26 ---- .../runtime/SpringCloudConfigClientIT.java | 8 ++ .../runtime/SpringCloudConfigClientTest.java | 49 ++++++++ .../SpringCloudConfigServerResource.java | 79 ++++++++++++ .../src/test/resources/config-common.json | 18 +++ .../resources/config.json} | 4 +- 22 files changed, 404 insertions(+), 434 deletions(-) create mode 100644 extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigBuilder.java create mode 100644 extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigSourceFactory.java delete mode 100644 extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientRecorder.java delete mode 100644 extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerClientConfigSourceProvider.java create mode 100644 integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java delete mode 100644 integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/GreetingResource.java create mode 100644 integration-tests/spring-cloud-config-client/src/main/resources/application.properties delete mode 100644 integration-tests/spring-cloud-config-client/src/main/resources/application.yaml delete mode 100644 integration-tests/spring-cloud-config-client/src/main/resources/mappings/a-bootiful-client-prod.json delete mode 100644 integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceIT.java delete mode 100644 integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceTest.java create mode 100644 integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientIT.java create mode 100644 integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java create mode 100644 integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerResource.java create mode 100644 integration-tests/spring-cloud-config-client/src/test/resources/config-common.json rename integration-tests/spring-cloud-config-client/src/{main/resources/__files/a-bootiful-client-prod.json => test/resources/config.json} (96%) diff --git a/extensions/spring-cloud-config-client/deployment/src/main/java/io/quarkus/spring/cloud/config/client/SpringCloudConfigProcessor.java b/extensions/spring-cloud-config-client/deployment/src/main/java/io/quarkus/spring/cloud/config/client/SpringCloudConfigProcessor.java index 5fa4dc98e27af..17f464f193253 100644 --- a/extensions/spring-cloud-config-client/deployment/src/main/java/io/quarkus/spring/cloud/config/client/SpringCloudConfigProcessor.java +++ b/extensions/spring-cloud-config-client/deployment/src/main/java/io/quarkus/spring/cloud/config/client/SpringCloudConfigProcessor.java @@ -3,17 +3,12 @@ import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.annotations.ExecutionTime; -import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.builditem.RunTimeConfigurationSourceValueBuildItem; +import io.quarkus.deployment.builditem.RunTimeConfigBuilderBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; -import io.quarkus.runtime.ApplicationConfig; -import io.quarkus.runtime.TlsConfig; import io.quarkus.spring.cloud.config.client.runtime.Response; -import io.quarkus.spring.cloud.config.client.runtime.SpringCloudConfigClientConfig; -import io.quarkus.spring.cloud.config.client.runtime.SpringCloudConfigClientRecorder; +import io.quarkus.spring.cloud.config.client.runtime.SpringCloudConfigClientConfigBuilder; public class SpringCloudConfigProcessor { @@ -34,13 +29,9 @@ public void registerForReflection(BuildProducer reflec } @BuildStep - @Record(ExecutionTime.RUNTIME_INIT) - public RunTimeConfigurationSourceValueBuildItem configure(SpringCloudConfigClientRecorder recorder, - SpringCloudConfigClientConfig springCloudConfigClientConfig, - ApplicationConfig applicationConfig, - TlsConfig tlsConfig) { - return new RunTimeConfigurationSourceValueBuildItem( - recorder.create(springCloudConfigClientConfig, applicationConfig, tlsConfig)); + public void springCloudConfigServer(BuildProducer runTimeConfigBuilder) { + runTimeConfigBuilder + .produce(new RunTimeConfigBuilderBuildItem( + SpringCloudConfigClientConfigBuilder.class.getName())); } - } diff --git a/extensions/spring-cloud-config-client/runtime/pom.xml b/extensions/spring-cloud-config-client/runtime/pom.xml index b225a9c34541f..fab921fa06699 100644 --- a/extensions/spring-cloud-config-client/runtime/pom.xml +++ b/extensions/spring-cloud-config-client/runtime/pom.xml @@ -45,6 +45,11 @@ quarkus-junit5 test + + org.mockito + mockito-core + test + com.github.tomakehurst wiremock-jre8-standalone diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfig.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfig.java index f2d81cc303649..d81b372dbd353 100644 --- a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfig.java +++ b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfig.java @@ -5,115 +5,113 @@ import java.util.Map; import java.util.Optional; -import io.quarkus.runtime.annotations.ConfigItem; import io.quarkus.runtime.annotations.ConfigPhase; import io.quarkus.runtime.annotations.ConfigRoot; - -@ConfigRoot(phase = ConfigPhase.BOOTSTRAP, name = SpringCloudConfigClientConfig.NAME) -public class SpringCloudConfigClientConfig { - - protected static final String NAME = "spring-cloud-config"; - +import io.quarkus.runtime.configuration.DurationConverter; +import io.quarkus.runtime.configuration.PathConverter; +import io.smallrye.config.ConfigMapping; +import io.smallrye.config.WithConverter; +import io.smallrye.config.WithDefault; + +@ConfigMapping(prefix = "quarkus.spring-cloud-config") +@ConfigRoot(phase = ConfigPhase.RUN_TIME) +public interface SpringCloudConfigClientConfig { /** * If enabled, will try to read the configuration from a Spring Cloud Config Server */ - @ConfigItem - public boolean enabled; + @WithDefault("false") + boolean enabled(); /** * If set to true, the application will not stand up if it cannot obtain configuration from the Config Server */ - @ConfigItem - public boolean failFast; + @WithDefault("false") + boolean failFast(); /** * The Base URI where the Spring Cloud Config Server is available */ - @ConfigItem(defaultValue = "http://localhost:8888") - public String url; + @WithDefault("http://localhost:8888") + String url(); /** * The label to be used to pull remote configuration properties. * The default is set on the Spring Cloud Config Server * (generally "master" when the server uses a Git backend). */ - @ConfigItem - public Optional label; + Optional label(); /** * The amount of time to wait when initially establishing a connection before giving up and timing out. *

* Specify `0` to wait indefinitely. */ - @ConfigItem(defaultValue = "10S") - public Duration connectionTimeout; + @WithDefault("10S") + @WithConverter(DurationConverter.class) + Duration connectionTimeout(); /** * The amount of time to wait for a read on a socket before an exception is thrown. *

* Specify `0` to wait indefinitely. */ - @ConfigItem(defaultValue = "60S") - public Duration readTimeout; + @WithDefault("60S") + @WithConverter(DurationConverter.class) + Duration readTimeout(); /** * The username to be used if the Config Server has BASIC Auth enabled */ - @ConfigItem - public Optional username; + Optional username(); /** * The password to be used if the Config Server has BASIC Auth enabled */ - @ConfigItem - public Optional password; + Optional password(); /** * TrustStore to be used containing the SSL certificate used by the Config server * Can be either a classpath resource or a file system path */ - @ConfigItem - public Optional trustStore; + @WithConverter(PathConverter.class) + Optional trustStore(); /** * Password of TrustStore to be used containing the SSL certificate used by the Config server */ - @ConfigItem - public Optional trustStorePassword; + Optional trustStorePassword(); /** * KeyStore to be used containing the SSL certificate for authentication with the Config server * Can be either a classpath resource or a file system path */ - @ConfigItem - public Optional keyStore; + @WithConverter(PathConverter.class) + Optional keyStore(); /** * Password of KeyStore to be used containing the SSL certificate for authentication with the Config server */ - @ConfigItem - public Optional keyStorePassword; + Optional keyStorePassword(); /** * Password to recover key from KeyStore for SSL client authentication with the Config server * If no value is provided, the key-store-password will be used */ - @ConfigItem - public Optional keyPassword; + Optional keyPassword(); /** * When using HTTPS and no keyStore has been specified, whether to trust all certificates */ - @ConfigItem(defaultValue = "false") - public boolean trustCerts; + @WithDefault("${quarkus.tls.trust-all:false}") + boolean trustCerts(); /** * Custom headers to pass the Spring Cloud Config Server when performing the HTTP request */ - @ConfigItem - public Map headers; + Map headers(); - public boolean usernameAndPasswordSet() { - return username.isPresent() && password.isPresent(); + /** */ + default boolean usernameAndPasswordSet() { + return username().isPresent() && password().isPresent(); } } diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigBuilder.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigBuilder.java new file mode 100644 index 0000000000000..feef047c9fb7a --- /dev/null +++ b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigBuilder.java @@ -0,0 +1,11 @@ +package io.quarkus.spring.cloud.config.client.runtime; + +import io.quarkus.runtime.configuration.ConfigBuilder; +import io.smallrye.config.SmallRyeConfigBuilder; + +public class SpringCloudConfigClientConfigBuilder implements ConfigBuilder { + @Override + public SmallRyeConfigBuilder configBuilder(final SmallRyeConfigBuilder builder) { + return builder.withSources(new SpringCloudConfigClientConfigSourceFactory()); + } +} diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigSourceFactory.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigSourceFactory.java new file mode 100644 index 0000000000000..e3c3e7a85f394 --- /dev/null +++ b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientConfigSourceFactory.java @@ -0,0 +1,107 @@ +package io.quarkus.spring.cloud.config.client.runtime; + +import static java.util.Collections.emptyList; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.eclipse.microprofile.config.spi.ConfigSource; +import org.jboss.logging.Logger; + +import io.quarkus.spring.cloud.config.client.runtime.Response.PropertySource; +import io.smallrye.config.ConfigSourceContext; +import io.smallrye.config.ConfigSourceFactory.ConfigurableConfigSourceFactory; +import io.smallrye.config.ConfigValue; +import io.smallrye.config.common.MapBackedConfigSource; + +public class SpringCloudConfigClientConfigSourceFactory + implements ConfigurableConfigSourceFactory { + private static final Logger log = Logger.getLogger(SpringCloudConfigClientConfigSourceFactory.class); + + @Override + public Iterable getConfigSources(final ConfigSourceContext context, + final SpringCloudConfigClientConfig config) { + List sources = new ArrayList<>(); + + if (!config.enabled()) { + log.debug( + "No attempt will be made to obtain configuration from the Spring Cloud Config Server because the functionality has been disabled via configuration"); + return sources; + } + + ConfigValue applicationName = context.getValue("quarkus.application.name"); + if (applicationName == null || applicationName.getValue() == null) { + log.warn( + "No attempt will be made to obtain configuration from the Spring Cloud Config Server because the application name has not been set. Consider setting it via 'quarkus.application.name'"); + return sources; + } + + boolean connectionTimeoutIsGreaterThanZero = !config.connectionTimeout().isNegative() + && !config.connectionTimeout().isZero(); + boolean readTimeoutIsGreaterThanZero = !config.readTimeout().isNegative() && !config.readTimeout().isZero(); + + VertxSpringCloudConfigGateway client = new VertxSpringCloudConfigGateway(config); + try { + List responses = new ArrayList<>(); + for (String profile : context.getProfiles()) { + Response response; + if (connectionTimeoutIsGreaterThanZero || readTimeoutIsGreaterThanZero) { + response = client.exchange(applicationName.getValue(), profile).await() + .atMost(config.connectionTimeout().plus(config.readTimeout().multipliedBy(2))); + } else { + response = client.exchange(applicationName.getValue(), profile).await().indefinitely(); + } + + if (response.getProfiles().contains(profile)) { + responses.add(response); + } + } + + int ordinal = 450; + // Profiles are looked from the highest ordinal to lowest, so we reverse the collection to build the source list + Collections.reverse(responses); + for (Response response : responses) { + List propertySources = response.getPropertySources(); + // Same reverse rule here + Collections.reverse(propertySources); + + for (PropertySource propertySource : propertySources) { + sources.add(SpringCloudPropertySource.from(propertySource, response.getProfiles(), ordinal++)); + } + } + + return sources; + + } catch (Exception e) { + final String errorMessage = "Unable to obtain configuration from Spring Cloud Config Server at " + config.url(); + if (config.failFast()) { + throw new RuntimeException(errorMessage, e); + } else { + log.error(errorMessage, e); + return emptyList(); + } + } finally { + client.close(); + } + } + + private static class SpringCloudPropertySource extends MapBackedConfigSource { + private SpringCloudPropertySource(final String name, final Map propertyMap, final int defaultOrdinal) { + super(name, propertyMap, defaultOrdinal); + } + + static SpringCloudPropertySource from(PropertySource propertySource, List profiles, int ordinal) { + Map values = new HashMap<>(); + Map source = propertySource.getSource(); + for (String profile : profiles) { + for (Map.Entry entry : source.entrySet()) { + values.put("%" + profile + "." + entry.getKey(), entry.getValue()); + } + } + return new SpringCloudPropertySource(propertySource.getName(), values, ordinal); + } + } +} diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientRecorder.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientRecorder.java deleted file mode 100644 index 7cc4cebd1b46a..0000000000000 --- a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientRecorder.java +++ /dev/null @@ -1,49 +0,0 @@ -package io.quarkus.spring.cloud.config.client.runtime; - -import java.util.Collections; - -import org.eclipse.microprofile.config.spi.ConfigSource; -import org.eclipse.microprofile.config.spi.ConfigSourceProvider; -import org.jboss.logging.Logger; - -import io.quarkus.runtime.ApplicationConfig; -import io.quarkus.runtime.RuntimeValue; -import io.quarkus.runtime.TlsConfig; -import io.quarkus.runtime.annotations.Recorder; -import io.quarkus.runtime.configuration.ProfileManager; - -@Recorder -public class SpringCloudConfigClientRecorder { - - private static final Logger log = Logger.getLogger(SpringCloudConfigClientRecorder.class); - - public RuntimeValue create(SpringCloudConfigClientConfig springCloudConfigClientConfig, - ApplicationConfig applicationConfig, TlsConfig tlsConfig) { - if (!springCloudConfigClientConfig.enabled) { - log.debug( - "No attempt will be made to obtain configuration from the Spring Cloud Config Server because the functionality has been disabled via configuration"); - return emptyRuntimeValue(); - } - - if (!applicationConfig.name.isPresent()) { - log.warn( - "No attempt will be made to obtain configuration from the Spring Cloud Config Server because the application name has not been set. Consider setting it via 'quarkus.application.name'"); - return emptyRuntimeValue(); - } - - return new RuntimeValue<>(new SpringCloudConfigServerClientConfigSourceProvider( - springCloudConfigClientConfig, applicationConfig.name.get(), ProfileManager.getActiveProfile(), tlsConfig)); - } - - private RuntimeValue emptyRuntimeValue() { - return new RuntimeValue<>(new EmptyConfigSourceProvider()); - } - - private static class EmptyConfigSourceProvider implements ConfigSourceProvider { - - @Override - public Iterable getConfigSources(ClassLoader forClassLoader) { - return Collections.emptyList(); - } - } -} diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerClientConfigSourceProvider.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerClientConfigSourceProvider.java deleted file mode 100644 index 6381d50b9d48c..0000000000000 --- a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerClientConfigSourceProvider.java +++ /dev/null @@ -1,117 +0,0 @@ -package io.quarkus.spring.cloud.config.client.runtime; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.eclipse.microprofile.config.spi.ConfigSource; -import org.eclipse.microprofile.config.spi.ConfigSourceProvider; -import org.jboss.logging.Logger; - -import io.quarkus.runtime.TlsConfig; - -public class SpringCloudConfigServerClientConfigSourceProvider implements ConfigSourceProvider { - - private static final Logger log = Logger.getLogger(SpringCloudConfigServerClientConfigSourceProvider.class); - - private final SpringCloudConfigClientConfig springCloudConfigClientConfig; - private final String applicationName; - private final String activeProfile; - - private final SpringCloudConfigClientGateway springCloudConfigClientGateway; - - public SpringCloudConfigServerClientConfigSourceProvider(SpringCloudConfigClientConfig springCloudConfigClientConfig, - String applicationName, - String activeProfile, TlsConfig tlsConfig) { - this.springCloudConfigClientConfig = springCloudConfigClientConfig; - this.applicationName = applicationName; - this.activeProfile = activeProfile; - - springCloudConfigClientGateway = new VertxSpringCloudConfigGateway(springCloudConfigClientConfig, tlsConfig); - } - - @Override - public Iterable getConfigSources(ClassLoader forClassLoader) { - List result = new ArrayList<>(); - try { - boolean connectionTimeoutIsGreaterThanZero = !springCloudConfigClientConfig.connectionTimeout.isNegative() - && !springCloudConfigClientConfig.connectionTimeout.isZero(); - boolean readTimeoutIsGreaterThanZero = !springCloudConfigClientConfig.readTimeout.isNegative() - && !springCloudConfigClientConfig.readTimeout.isZero(); - Response response; - // Check if configured timeouts are greater than zero in order to avoid an exception on atMost method - if (connectionTimeoutIsGreaterThanZero || readTimeoutIsGreaterThanZero) - response = springCloudConfigClientGateway.exchange(applicationName, activeProfile).await() - .atMost(springCloudConfigClientConfig.connectionTimeout - .plus(springCloudConfigClientConfig.readTimeout.multipliedBy(2))); - else { - response = springCloudConfigClientGateway.exchange(applicationName, activeProfile).await().indefinitely(); - } - if (response != null) { - final List propertySources = response.getPropertySources(); - Collections.reverse(propertySources); // reverse the property sources so we can increment the ordinal from lower priority to higher - for (int i = 0; i < propertySources.size(); i++) { - final Response.PropertySource propertySource = propertySources.get(i); - // Property sources obtained from Spring Cloud Config are expected to have a higher priority than even system properties - // 400 is the ordinal of SysPropConfigSource, so we use 450 here - result.add(new InMemoryConfigSource(450 + i, propertySource.getName(), - propertySource.getSource())); - } - } - } catch (Exception e) { - final String errorMessage = "Unable to obtain configuration from Spring Cloud Config Server at " - + springCloudConfigClientConfig.url; - if (springCloudConfigClientConfig.failFast) { - throw new RuntimeException(errorMessage, e); - } else { - log.error(errorMessage, e); - return Collections.emptyList(); - } - } finally { - springCloudConfigClientGateway.close(); - } - return result; - - } - - private static final class InMemoryConfigSource implements ConfigSource { - - private final Map values = new HashMap<>(); - private final int ordinal; - private final String name; - - private InMemoryConfigSource(int ordinal, String name, Map source) { - this.ordinal = ordinal; - this.name = name; - this.values.putAll(source); - } - - @Override - public Map getProperties() { - return values; - } - - @Override - public Set getPropertyNames() { - return values.keySet(); - } - - @Override - public int getOrdinal() { - return ordinal; - } - - @Override - public String getValue(String propertyName) { - return values.get(propertyName); - } - - @Override - public String getName() { - return name; - } - } -} diff --git a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/VertxSpringCloudConfigGateway.java b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/VertxSpringCloudConfigGateway.java index fee1dc0966d97..6c23a986f0063 100644 --- a/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/VertxSpringCloudConfigGateway.java +++ b/extensions/spring-cloud-config-client/runtime/src/main/java/io/quarkus/spring/cloud/config/client/runtime/VertxSpringCloudConfigGateway.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Map; import java.util.Optional; -import java.util.stream.Collectors; import org.jboss.logging.Logger; @@ -19,7 +18,6 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import io.quarkus.runtime.TlsConfig; import io.quarkus.runtime.util.ClassPathUtils; import io.smallrye.mutiny.Uni; import io.vertx.core.VertxOptions; @@ -42,21 +40,21 @@ public class VertxSpringCloudConfigGateway implements SpringCloudConfigClientGat private static final String PKS_12 = "PKS12"; private static final String JKS = "JKS"; - private final SpringCloudConfigClientConfig springCloudConfigClientConfig; + private final SpringCloudConfigClientConfig config; private final Vertx vertx; private final WebClient webClient; private final URI baseURI; - public VertxSpringCloudConfigGateway(SpringCloudConfigClientConfig springCloudConfigClientConfig, TlsConfig tlsConfig) { - this.springCloudConfigClientConfig = springCloudConfigClientConfig; + public VertxSpringCloudConfigGateway(SpringCloudConfigClientConfig config) { + this.config = config; try { - this.baseURI = determineBaseUri(springCloudConfigClientConfig); + this.baseURI = determineBaseUri(config); } catch (URISyntaxException e) { - throw new IllegalArgumentException("Value: '" + springCloudConfigClientConfig.url + throw new IllegalArgumentException("Value: '" + config.url() + "' of property 'quarkus.spring-cloud-config.url' is invalid", e); } this.vertx = createVertxInstance(); - this.webClient = createHttpClient(vertx, springCloudConfigClientConfig, tlsConfig); + this.webClient = createHttpClient(vertx, config); } private Vertx createVertxInstance() { @@ -80,32 +78,29 @@ private Vertx createVertxInstance() { return vertx; } - public static WebClient createHttpClient(Vertx vertx, SpringCloudConfigClientConfig springCloudConfig, - TlsConfig tlsConfig) { - + public static WebClient createHttpClient(Vertx vertx, SpringCloudConfigClientConfig config) { WebClientOptions webClientOptions = new WebClientOptions() - .setConnectTimeout((int) springCloudConfig.connectionTimeout.toMillis()) - .setIdleTimeout((int) springCloudConfig.readTimeout.getSeconds()); + .setConnectTimeout((int) config.connectionTimeout().toMillis()) + .setIdleTimeout((int) config.readTimeout().getSeconds()); - boolean trustAll = springCloudConfig.trustCerts || tlsConfig.trustAll; try { - if (springCloudConfig.trustStore.isPresent()) { - Path trustStorePath = springCloudConfig.trustStore.get(); + if (config.trustStore().isPresent()) { + Path trustStorePath = config.trustStore().get(); String type = determineStoreType(trustStorePath); - KeyStoreOptionsBase storeOptions = storeOptions(trustStorePath, springCloudConfig.trustStorePassword, + KeyStoreOptionsBase storeOptions = storeOptions(trustStorePath, config.trustStorePassword(), createStoreOptions(type)); if (isPfx(type)) { webClientOptions.setPfxTrustOptions((PfxOptions) storeOptions); } else { webClientOptions.setTrustStoreOptions((JksOptions) storeOptions); } - } else if (trustAll) { + } else if (config.trustCerts()) { skipVerify(webClientOptions); } - if (springCloudConfig.keyStore.isPresent()) { - Path keyStorePath = springCloudConfig.keyStore.get(); + if (config.keyStore().isPresent()) { + Path keyStorePath = config.keyStore().get(); String type = determineStoreType(keyStorePath); - KeyStoreOptionsBase storeOptions = storeOptions(keyStorePath, springCloudConfig.keyStorePassword, + KeyStoreOptionsBase storeOptions = storeOptions(keyStorePath, config.keyStorePassword(), createStoreOptions(type)); if (isPfx(type)) { webClientOptions.setPfxKeyCertOptions((PfxOptions) storeOptions); @@ -171,7 +166,7 @@ private static byte[] allBytes(InputStream inputStream) throws Exception { } private URI determineBaseUri(SpringCloudConfigClientConfig springCloudConfigClientConfig) throws URISyntaxException { - String url = springCloudConfigClientConfig.url; + String url = springCloudConfigClientConfig.url(); if (null == url || url.isEmpty()) { throw new IllegalArgumentException( "The 'quarkus.spring-cloud-config.url' property cannot be empty"); @@ -182,31 +177,30 @@ private URI determineBaseUri(SpringCloudConfigClientConfig springCloudConfigClie return new URI(url); } - private String finalURI(String applicationName, String profile) throws URISyntaxException { + private String finalURI(String applicationName, String profile) { String path = baseURI.getPath(); List finalPathSegments = new ArrayList(); finalPathSegments.add(path); finalPathSegments.add(applicationName); finalPathSegments.add(profile); - if (springCloudConfigClientConfig.label.isPresent()) { - finalPathSegments.add(springCloudConfigClientConfig.label.get()); + if (config.label().isPresent()) { + finalPathSegments.add(config.label().get()); } - return finalPathSegments.stream().collect(Collectors.joining("/")); + return String.join("/", finalPathSegments); } @Override - public Uni exchange(String applicationName, String profile) throws Exception { + public Uni exchange(String applicationName, String profile) { final String requestURI = finalURI(applicationName, profile); String finalURI = getFinalURI(applicationName, profile); HttpRequest request = webClient .get(getPort(baseURI), baseURI.getHost(), requestURI) .ssl(isHttps(baseURI)) .putHeader("Accept", "application/json"); - if (springCloudConfigClientConfig.usernameAndPasswordSet()) { - request.basicAuthentication(springCloudConfigClientConfig.username.get(), - springCloudConfigClientConfig.password.get()); + if (config.usernameAndPasswordSet()) { + request.basicAuthentication(config.username().get(), config.password().get()); } - for (Map.Entry entry : springCloudConfigClientConfig.headers.entrySet()) { + for (Map.Entry entry : config.headers().entrySet()) { request.putHeader(entry.getKey(), entry.getValue()); } log.debug("Attempting to read configuration from '" + finalURI + "'."); @@ -238,8 +232,8 @@ private int getPort(URI uri) { private String getFinalURI(String applicationName, String profile) { String finalURI = baseURI.toString() + "/" + applicationName + "/" + profile; - if (springCloudConfigClientConfig.label.isPresent()) { - finalURI = "/" + springCloudConfigClientConfig.label.get(); + if (config.label().isPresent()) { + finalURI = "/" + config.label().get(); } return finalURI; } @@ -249,5 +243,4 @@ public void close() { this.webClient.close(); this.vertx.closeAndAwait(); } - } diff --git a/extensions/spring-cloud-config-client/runtime/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientGatewayTest.java b/extensions/spring-cloud-config-client/runtime/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientGatewayTest.java index b00e198cd7614..1a8f492534ba1 100644 --- a/extensions/spring-cloud-config-client/runtime/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientGatewayTest.java +++ b/extensions/spring-cloud-config-client/runtime/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientGatewayTest.java @@ -2,6 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.entry; +import static org.mockito.Mockito.when; import java.io.IOException; import java.nio.charset.Charset; @@ -13,20 +14,18 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.mockito.Mockito; import com.github.tomakehurst.wiremock.WireMockServer; import com.github.tomakehurst.wiremock.client.WireMock; -import io.quarkus.runtime.TlsConfig; - class SpringCloudConfigClientGatewayTest { private static final int MOCK_SERVER_PORT = 9300; private static final WireMockServer wireMockServer = new WireMockServer(MOCK_SERVER_PORT); - private static final SpringCloudConfigClientConfig springCloudConfigClientConfig = configForTesting(); - private final SpringCloudConfigClientGateway sut = new VertxSpringCloudConfigGateway( - springCloudConfigClientConfig, new TlsConfig()); + private static final SpringCloudConfigClientConfig config = configForTesting(); + private final SpringCloudConfigClientGateway sut = new VertxSpringCloudConfigGateway(config); @BeforeAll static void start() { @@ -43,7 +42,7 @@ void testBasicExchange() throws Exception { final String applicationName = "foo"; final String profile = "dev"; final String springCloudConfigUrl = String.format( - "/%s/%s/%s", applicationName, profile, springCloudConfigClientConfig.label.get()); + "/%s/%s/%s", applicationName, profile, config.label().get()); wireMockServer.stubFor(WireMock.get(springCloudConfigUrl).willReturn(WireMock .okJson(getJsonStringForApplicationAndProfile(applicationName, profile)))); @@ -76,17 +75,17 @@ private String getJsonStringForApplicationAndProfile(String applicationName, Str } private static SpringCloudConfigClientConfig configForTesting() { - SpringCloudConfigClientConfig springCloudConfigClientConfig = new SpringCloudConfigClientConfig(); - springCloudConfigClientConfig.url = "http://localhost:" + MOCK_SERVER_PORT; - springCloudConfigClientConfig.label = Optional.of("master"); - springCloudConfigClientConfig.connectionTimeout = Duration.ZERO; - springCloudConfigClientConfig.readTimeout = Duration.ZERO; - springCloudConfigClientConfig.username = Optional.empty(); - springCloudConfigClientConfig.password = Optional.empty(); - springCloudConfigClientConfig.trustStore = Optional.empty(); - springCloudConfigClientConfig.keyStore = Optional.empty(); - springCloudConfigClientConfig.trustCerts = false; - springCloudConfigClientConfig.headers = new HashMap<>(); - return springCloudConfigClientConfig; + SpringCloudConfigClientConfig config = Mockito.mock(SpringCloudConfigClientConfig.class); + when(config.url()).thenReturn("http://localhost:" + MOCK_SERVER_PORT); + when(config.label()).thenReturn(Optional.of("master")); + when(config.connectionTimeout()).thenReturn(Duration.ZERO); + when(config.readTimeout()).thenReturn(Duration.ZERO); + when(config.username()).thenReturn(Optional.empty()); + when(config.password()).thenReturn(Optional.empty()); + when(config.trustStore()).thenReturn(Optional.empty()); + when(config.keyStore()).thenReturn(Optional.empty()); + when(config.trustCerts()).thenReturn(false); + when(config.headers()).thenReturn(new HashMap<>()); + return config; } } diff --git a/integration-tests/spring-cloud-config-client/pom.xml b/integration-tests/spring-cloud-config-client/pom.xml index 8759dca0b8220..eb6a84b7b5edc 100644 --- a/integration-tests/spring-cloud-config-client/pom.xml +++ b/integration-tests/spring-cloud-config-client/pom.xml @@ -15,16 +15,12 @@ io.quarkus - quarkus-resteasy + quarkus-resteasy-jackson io.quarkus quarkus-spring-cloud-config-client - - io.quarkus - quarkus-config-yaml - io.quarkus quarkus-junit5 @@ -44,20 +40,7 @@ io.quarkus - quarkus-config-yaml-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-resteasy-deployment + quarkus-resteasy-jackson-deployment ${project.version} pom test @@ -98,45 +81,4 @@ - - - - native - - - native - - - - - - - uk.co.automatictester - wiremock-maven-plugin - - - wiremock-start - compile - - stop - run - - -

target/classes - --port=8089 --disable-banner - - - - wiremock-stop - post-integration-test - - stop - - - - - - - - diff --git a/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java b/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java new file mode 100644 index 0000000000000..f5ec994839597 --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java @@ -0,0 +1,33 @@ +package io.quarkus.it.spring.config.server.client; + +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import io.quarkus.runtime.annotations.RegisterForReflection; +import io.smallrye.config.SmallRyeConfig; + +@Path("/config") +@Produces(MediaType.APPLICATION_JSON) +public class ConfigResource { + @Inject + SmallRyeConfig config; + + @GET + @Path("/{name}") + public Response configValue(@PathParam("name") final String name) { + return Response.ok(config.getConfigValue(name)).build(); + } + + @RegisterForReflection(targets = { + org.eclipse.microprofile.config.ConfigValue.class, + io.smallrye.config.ConfigValue.class + }) + public static class ConfigValueReflection { + + } +} diff --git a/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/GreetingResource.java b/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/GreetingResource.java deleted file mode 100644 index 5c8603cdf1b60..0000000000000 --- a/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/GreetingResource.java +++ /dev/null @@ -1,18 +0,0 @@ -package io.quarkus.it.spring.config.server.client; - -import javax.ws.rs.GET; -import javax.ws.rs.Path; - -import org.eclipse.microprofile.config.inject.ConfigProperty; - -@Path("/greeting") -public class GreetingResource { - - @ConfigProperty(name = "greeting.message") - String message; - - @GET - public String greet() { - return message; - } -} diff --git a/integration-tests/spring-cloud-config-client/src/main/resources/application.properties b/integration-tests/spring-cloud-config-client/src/main/resources/application.properties new file mode 100644 index 0000000000000..231cfae46ea00 --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/main/resources/application.properties @@ -0,0 +1,3 @@ +quarkus.config.profile.parent=common + +quarkus.application.name=a-bootiful-client diff --git a/integration-tests/spring-cloud-config-client/src/main/resources/application.yaml b/integration-tests/spring-cloud-config-client/src/main/resources/application.yaml deleted file mode 100644 index aacd3714ab37c..0000000000000 --- a/integration-tests/spring-cloud-config-client/src/main/resources/application.yaml +++ /dev/null @@ -1,16 +0,0 @@ -'%prod': - quarkus: - spring-cloud-config: - url: http://localhost:8089/base - username: user - password: pass - enabled: true - headers: - h1: v1 - h2: v2 -quarkus: - application: - name: a-bootiful-client - -greeting: - message: hello from application.properties diff --git a/integration-tests/spring-cloud-config-client/src/main/resources/mappings/a-bootiful-client-prod.json b/integration-tests/spring-cloud-config-client/src/main/resources/mappings/a-bootiful-client-prod.json deleted file mode 100644 index eea420c151da5..0000000000000 --- a/integration-tests/spring-cloud-config-client/src/main/resources/mappings/a-bootiful-client-prod.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "request": { - "method": "GET", - "urlPattern": "/base/a-bootiful-client/prod", - "basicAuth" : { - "username" : "user", - "password" : "pass" - }, - "headers" : { - "Accept" : { - "contains" : "application/json" - }, - "h1": { - "equalTo": "v1" - }, - "h2": { - "equalTo": "v2" - } - } - }, - "response": { - "status": 200, - "headers": { - "Content-Type": "application/json" - }, - "bodyFileName": "a-bootiful-client-prod.json" - } -} diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceIT.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceIT.java deleted file mode 100644 index 9cae065c4bc52..0000000000000 --- a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceIT.java +++ /dev/null @@ -1,12 +0,0 @@ -package io.quarkus.spring.cloud.config.client.runtime; - -import io.quarkus.test.junit.QuarkusIntegrationTest; - -@QuarkusIntegrationTest -public class GreetingResourceIT extends GreetingResourceTest { - - @Override - protected String getExpectedValue() { - return "hello from spring cloud config server"; - } -} diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceTest.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceTest.java deleted file mode 100644 index 50aabe5bac9d6..0000000000000 --- a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/GreetingResourceTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.quarkus.spring.cloud.config.client.runtime; - -import static io.restassured.RestAssured.given; -import static org.hamcrest.CoreMatchers.is; - -import org.junit.jupiter.api.Test; - -import io.quarkus.test.junit.QuarkusTest; - -@QuarkusTest -class GreetingResourceTest { - - @Test - void testGreeting() { - given() - .when().get("/greeting") - .then() - .statusCode(200) - .body(is(getExpectedValue())); - - } - - protected String getExpectedValue() { - return "hello from application.properties"; - } -} diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientIT.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientIT.java new file mode 100644 index 0000000000000..bacfd270afed5 --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientIT.java @@ -0,0 +1,8 @@ +package io.quarkus.spring.cloud.config.client.runtime; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +public class SpringCloudConfigClientIT extends SpringCloudConfigClientTest { + +} diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java new file mode 100644 index 0000000000000..f8eed37182f2c --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java @@ -0,0 +1,49 @@ +package io.quarkus.spring.cloud.config.client.runtime; + +import static io.restassured.RestAssured.given; +import static javax.ws.rs.core.Response.Status.OK; +import static org.hamcrest.Matchers.equalTo; + +import org.junit.jupiter.api.Test; + +import io.quarkus.test.common.QuarkusTestResource; +import io.quarkus.test.junit.QuarkusTest; + +@QuarkusTest +@QuarkusTestResource(SpringCloudConfigServerResource.class) +public class SpringCloudConfigClientTest { + @Test + void config() { + given() + .get("/config/{name}", "greeting.message") + .then() + .statusCode(OK.getStatusCode()) + .body("value", equalTo("hello from spring cloud config server")); + } + + @Test + void ordinal() { + given() + .get("/config/{name}", "foo") + .then() + .statusCode(OK.getStatusCode()) + .body("value", equalTo("from foo development")) + .body("sourceName", equalTo("https://github.com/spring-cloud-samples/config-repo/testapp-prod.yml")); + + given() + .get("/config/{name}", "info.description") + .then() + .statusCode(OK.getStatusCode()) + .body("value", equalTo("Sample")); + } + + @Test + void multiple() { + given() + .get("/config/{name}", "common") + .then() + .statusCode(OK.getStatusCode()) + .body("value", equalTo("common")) + .body("sourceName", equalTo("common")); + } +} diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerResource.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerResource.java new file mode 100644 index 0000000000000..6914e7e5ba9c5 --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigServerResource.java @@ -0,0 +1,79 @@ +package io.quarkus.spring.cloud.config.client.runtime; + +import java.io.IOException; +import java.net.InetSocketAddress; +import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.util.Map; + +import org.apache.commons.io.IOUtils; + +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpHandler; +import com.sun.net.httpserver.HttpServer; + +import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; + +public class SpringCloudConfigServerResource implements QuarkusTestResourceLifecycleManager { + private HttpServer httpServer; + + @Override + public Map start() { + int port = 8089; + try { + httpServer = HttpServer.create(new InetSocketAddress(port), 0); + httpServer.createContext("/base/a-bootiful-client/test", new SpringCloudConfigServerHandler("config.json")); + httpServer.createContext("/base/a-bootiful-client/prod", new SpringCloudConfigServerHandler("config.json")); + httpServer.createContext("/base/a-bootiful-client/common", + new SpringCloudConfigServerHandler("config-common.json")); + httpServer.start(); + } catch (Exception e) { + throw new RuntimeException(e); + } + + return Map.of( + "quarkus.spring-cloud-config.url", "http://localhost:" + port + "/base", + "quarkus.spring-cloud-config.username", "user", + "quarkus.spring-cloud-config.password", "pass", + "quarkus.spring-cloud-config.enabled", "true", + "quarkus.spring-cloud-config.headers.h1", "v1", + "quarkus.spring-cloud-config.headers.h2", "v2"); + } + + @Override + public void stop() { + if (httpServer != null) { + httpServer.stop(0); + } + } + + private static class SpringCloudConfigServerHandler implements HttpHandler { + private final String resource; + + public SpringCloudConfigServerHandler(final String resource) { + this.resource = resource; + } + + @Override + public void handle(final HttpExchange exchange) throws IOException { + URL resource = Thread.currentThread().getContextClassLoader().getResource(this.resource); + if (resource == null) { + exchange.sendResponseHeaders(400, 0); + return; + } + + if (!"v1".equals(exchange.getRequestHeaders().getFirst("h1"))) { + exchange.sendResponseHeaders(400, 0); + } + if (!"v2".equals(exchange.getRequestHeaders().getFirst("h2"))) { + exchange.sendResponseHeaders(400, 0); + } + + String body = IOUtils.toString(resource, StandardCharsets.UTF_8); + exchange.getResponseHeaders().add("Content-Type", "application/json"); + exchange.sendResponseHeaders(200, body.length()); + exchange.getResponseBody().write(body.getBytes()); + exchange.getResponseBody().close(); + } + } +} diff --git a/integration-tests/spring-cloud-config-client/src/test/resources/config-common.json b/integration-tests/spring-cloud-config-client/src/test/resources/config-common.json new file mode 100644 index 0000000000000..551470dd60b01 --- /dev/null +++ b/integration-tests/spring-cloud-config-client/src/test/resources/config-common.json @@ -0,0 +1,18 @@ +{ + "name": "common", + "profiles": [ + "common" + ], + "label": "master", + "version": "bb51f4173258ae3481c61b95b503c13862ccfba7", + "state": null, + "propertySources": [ + { + "name": "common", + "source": { + "foo": "common", + "common": "common" + } + } + ] +} diff --git a/integration-tests/spring-cloud-config-client/src/main/resources/__files/a-bootiful-client-prod.json b/integration-tests/spring-cloud-config-client/src/test/resources/config.json similarity index 96% rename from integration-tests/spring-cloud-config-client/src/main/resources/__files/a-bootiful-client-prod.json rename to integration-tests/spring-cloud-config-client/src/test/resources/config.json index ab01d933fac00..0768660a35c7e 100644 --- a/integration-tests/spring-cloud-config-client/src/main/resources/__files/a-bootiful-client-prod.json +++ b/integration-tests/spring-cloud-config-client/src/test/resources/config.json @@ -1,7 +1,7 @@ { "name": "a-bootiful-client", "profiles": [ - "prod" + "prod","test" ], "label": "master", "version": "bb51f4173258ae3481c61b95b503c13862ccfba7", @@ -23,4 +23,4 @@ } } ] -} \ No newline at end of file +} From cc4249eed74c1fa5e10f3047174976ce12f3f69d Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Mon, 23 Jan 2023 15:40:27 +0000 Subject: [PATCH 020/250] Add information about sizes and formats --- docs/src/main/asciidoc/extension-metadata.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/extension-metadata.adoc b/docs/src/main/asciidoc/extension-metadata.adoc index 5a6f835c86b5d..b2abc23e75228 100644 --- a/docs/src/main/asciidoc/extension-metadata.adoc +++ b/docs/src/main/asciidoc/extension-metadata.adoc @@ -51,7 +51,7 @@ metadata: <5> Categories the extension should appear under on https://code.quarkus.io[code.quarkus.io]. This field can be omitted, the extension will still be listed on https://code.quarkus.io[code.quarkus.io] but won't be categorized <6> Maturity status that could be `stable`, `preview`, `experimental`. It is up to extension maintainers to evaluate the maturity status and communicate it to the users <7> Link to the extension guide or documentation page -<8> Link to an externally hosted image. This is used in the Quarkus dev tools as the extension icon. Alternatively, if you https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview[set the social media preview] on your extensions source code repository, the tools will pick up that image. +<8> Link to an externally hosted image. This is used in the Quarkus dev tools as the extension icon. It should be square, and any resolution greater than 220 pixels. Supported formats are png, jpeg, tiff, webp, and svg. Alternatively, if you https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview[set the social media preview] on the extension's source code repository, the tools will pick up that image. <9> https://quarkus.io/guides/extension-codestart[Codestart] information <10> Configuration prefix From c96a557c5786eca445aca110829b4d7156f14129 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Tue, 24 Jan 2023 20:02:03 +0100 Subject: [PATCH 021/250] 30584 updated mssql jdbc driver to 11.2.3 --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 6c5697c80ee73..bc757cdd7bc1c 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -124,7 +124,7 @@ 42.5.1 3.1.1 8.0.30 - 11.2.0.jre11 + 11.2.3.jre11 1.6.7 21.5.0.0 10.14.2.0 From d9489232d7ef1442cbd6cdcfb600d243351770fc Mon Sep 17 00:00:00 2001 From: Ales Justin Date: Tue, 24 Jan 2023 14:42:07 +0100 Subject: [PATCH 022/250] Add more log to GrpcDuplicatedContextGrpcInterceptor. --- .../supports/context/GrpcDuplicatedContextGrpcInterceptor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java index ff05af4e80711..ae45cba61ede6 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java @@ -84,7 +84,7 @@ private synchronized ServerCall.Listener getDelegate() { delegate = supplier.get(); } catch (Throwable t) { // If the interceptor supplier throws an exception, catch it, and close the call. - log.warn("Unable to retrieve gRPC Server call listener", t); + log.warn("Unable to retrieve gRPC Server call listener, see the cause below."); close(t); return null; } @@ -100,6 +100,7 @@ private void close(Throwable t) { Throwable nt = ehp.transform(t); StatusException sre = (StatusException) ExceptionHandlerProvider.toStatusException(nt, false); Optional metadata = ExceptionHandlerProvider.toTrailers(nt); + log.warn("Closing gRPC call due to an error ...", t); call.close(sre.getStatus(), metadata.orElse(new Metadata())); } } From ce0e69016cb5265cff4f305dad1cb2bd635ea688 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Wed, 25 Jan 2023 13:11:30 +0000 Subject: [PATCH 023/250] Remove lookup by profile when updating configurations --- .../devmode/console/ConfigEditorProcessor.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java index 456320c9d91e3..abb3c93e65cc6 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/ConfigEditorProcessor.java @@ -1,7 +1,5 @@ package io.quarkus.vertx.http.deployment.devmode.console; -import static io.quarkus.runtime.LaunchMode.DEVELOPMENT; - import java.io.BufferedWriter; import java.io.IOException; import java.nio.file.Files; @@ -46,7 +44,6 @@ import io.quarkus.devconsole.runtime.spi.DevConsolePostHandler; import io.quarkus.devconsole.spi.DevConsoleRouteBuildItem; import io.quarkus.devconsole.spi.DevConsoleRuntimeTemplateInfoBuildItem; -import io.quarkus.runtime.configuration.ConfigUtils; import io.quarkus.vertx.http.runtime.devmode.ConfigDescription; import io.quarkus.vertx.http.runtime.devmode.ConfigDescriptionsManager; import io.quarkus.vertx.http.runtime.devmode.ConfigDescriptionsRecorder; @@ -215,7 +212,6 @@ static void updateConfig(Map values) { if (values != null && !values.isEmpty()) { try { Path configPath = getConfigPath(); - List profiles = ConfigUtils.getProfiles(); List lines = Files.readAllLines(configPath); for (Map.Entry entry : values.entrySet()) { String name = entry.getKey(); @@ -223,17 +219,11 @@ static void updateConfig(Map values) { int nameLine = -1; for (int i = 0, linesSize = lines.size(); i < linesSize; i++) { String line = lines.get(i); - for (String profile : profiles) { - String profileName = !profile.equals(DEVELOPMENT.getDefaultProfile()) ? "%" + profile + "." + name - : name; - if (line.startsWith(profileName + "=")) { - name = profileName; - nameLine = i; - break; - } + if (line.startsWith(name + "=")) { + nameLine = i; + break; } } - if (nameLine != -1) { if (value.isEmpty()) { lines.remove(nameLine); From 8ba81382036634645f8326f3952d2ca3ab5f91ba Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Tue, 24 Jan 2023 15:01:23 +0100 Subject: [PATCH 024/250] Arc - attempt to fix bean types for beans with raw type superclasses --- .../java/io/quarkus/arc/processor/Types.java | 18 +++++++---- .../io/quarkus/arc/processor/TypesTest.java | 30 ++++++++++++++++++- 2 files changed, 42 insertions(+), 6 deletions(-) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index 54f0af4547bdb..5066d07f874d2 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -517,12 +517,13 @@ private static Set getTypeClosure(ClassInfo classInfo, AnnotationTarget pr boolean throwOnProducerWildcard, Map resolvedTypeParameters, BeanDeployment beanDeployment, BiConsumer> resolvedTypeVariablesConsumer, - Set unrestrictedBeanTypes) { + Set unrestrictedBeanTypes, boolean rawGeneric) { Set types = new HashSet<>(); List typeParameters = classInfo.typeParameters(); if (typeParameters.isEmpty() - || !typeParameters.stream().allMatch(it -> resolvedTypeParameters.containsKey(it.identifier()))) { + || !typeParameters.stream().allMatch(it -> resolvedTypeParameters.containsKey(it.identifier())) + || rawGeneric) { // Not a parameterized type or a raw type types.add(Type.create(classInfo.name(), Kind.CLASS)); } else { @@ -562,7 +563,8 @@ private static Set getTypeClosure(ClassInfo classInfo, AnnotationTarget pr interfaceClassInfo.typeParameters(), resolvedTypeParameters, beanDeployment.getBeanArchiveIndex()); } types.addAll(getTypeClosure(interfaceClassInfo, producerFieldOrMethod, false, resolved, beanDeployment, - resolvedTypeVariablesConsumer, unrestrictedBeanTypes)); + resolvedTypeVariablesConsumer, unrestrictedBeanTypes, + rawGeneric || isRawGeneric(interfaceType, interfaceClassInfo))); } } // Superclass @@ -576,19 +578,25 @@ private static Set getTypeClosure(ClassInfo classInfo, AnnotationTarget pr resolvedTypeParameters, beanDeployment.getBeanArchiveIndex()); } types.addAll(getTypeClosure(superClassInfo, producerFieldOrMethod, false, resolved, beanDeployment, - resolvedTypeVariablesConsumer, unrestrictedBeanTypes)); + resolvedTypeVariablesConsumer, unrestrictedBeanTypes, + rawGeneric || isRawGeneric(classInfo.superClassType(), superClassInfo))); } } unrestrictedBeanTypes.addAll(types); return types; } + // if the superclass type is CLASS *AND* and superclass info has type parameters, then it's raw type + private static boolean isRawGeneric(Type superClassType, ClassInfo superClassInfo) { + return Kind.CLASS.equals(superClassType.kind()) && !superClassInfo.typeParameters().isEmpty(); + } + static Set getTypeClosure(ClassInfo classInfo, AnnotationTarget producerFieldOrMethod, Map resolvedTypeParameters, BeanDeployment beanDeployment, BiConsumer> resolvedTypeVariablesConsumer, Set unrestrictedBeanTypes) { return getTypeClosure(classInfo, producerFieldOrMethod, true, resolvedTypeParameters, beanDeployment, - resolvedTypeVariablesConsumer, unrestrictedBeanTypes); + resolvedTypeVariablesConsumer, unrestrictedBeanTypes, false); } static Set getDelegateTypeClosure(InjectionPointInfo delegateInjectionPoint, BeanDeployment beanDeployment) { diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java index 86ddf65858ee4..64f9539567b85 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java @@ -30,7 +30,8 @@ public class TypesTest { @Test public void testGetTypeClosure() throws IOException { IndexView index = Basics.index(Foo.class, Baz.class, Producer.class, Object.class, List.class, Collection.class, - Iterable.class, Set.class, Eagle.class, Bird.class, Animal.class, AnimalHolder.class); + Iterable.class, Set.class, Eagle.class, Bird.class, Animal.class, AnimalHolder.class, MyRawBean.class, + MyBean.class, MyInterface.class, MySuperInterface.class); DotName bazName = DotName.createSimple(Baz.class.getName()); DotName fooName = DotName.createSimple(Foo.class.getName()); DotName producerName = DotName.createSimple(Producer.class.getName()); @@ -93,6 +94,17 @@ public void testGetTypeClosure() throws IOException { assertDoesNotThrow( () -> verifyEagleTypes(Types.getClassBeanTypeClosure(index.getClassByName(DotName.createSimple(Eagle.class)), dummyDeployment))); + + // raw type bean + Set rawBeanTypes = Types.getClassBeanTypeClosure(index.getClassByName(DotName.createSimple(MyRawBean.class)), + dummyDeployment); + assertEquals(rawBeanTypes.size(), 5); + assertContainsType(MyRawBean.class, rawBeanTypes); + assertContainsType(MyBean.class, rawBeanTypes); + assertContainsType(MyInterface.class, rawBeanTypes); + // according to JLS, for raw type generics, their superclasses have erasure applied so this should be a match + assertContainsType(MySuperInterface.class, rawBeanTypes); + assertContainsType(Object.class, rawBeanTypes); } private void verifyEagleTypes(Set types) { @@ -104,6 +116,10 @@ private void verifyEagleTypes(Set types) { assertEquals(3, types.size()); } + private void assertContainsType(Class clazz, Set rawBeanTypes) { + assertTrue(rawBeanTypes.contains(Type.create(DotName.createSimple(clazz.getName()), Kind.CLASS))); + } + static class Foo { T field; @@ -149,4 +165,16 @@ static class Animal { static class AnimalHolder { } + + static class MyRawBean extends MyBean { + } + + static class MyBean implements MyInterface { + } + + interface MyInterface extends MySuperInterface { + } + + interface MySuperInterface { + } } From 1aa81e4d27f15ee0d6321c09827eaf3761ca9564 Mon Sep 17 00:00:00 2001 From: Rolfe Dlugy-Hegwer Date: Wed, 25 Jan 2023 16:52:12 -0500 Subject: [PATCH 025/250] Add summary to topic --- .../security-oidc-bearer-authentication-concept.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc index 0afe0de765411..a24e71228ee2b 100644 --- a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc @@ -6,7 +6,9 @@ https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc [id="security-oidc-bearer-authentication-concept"] = OIDC Bearer authentication include::_attributes.adoc[] -:categories: security +:categories: security,web + +:summary: To secure HTTP access to JAX-RS endpoints in your application, you can use Bearer authentication provided by the Quarkus OpenID Connect (OIDC) extension. == Overview of the Bearer authentication mechanism in Quarkus @@ -918,4 +920,4 @@ Note Quarkus `web-app` applications always require `quarkus.oidc.client-id` prop * xref:security-authentication-mechanisms.adoc#oidc-jwt-oauth2-comparison[Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms] * xref:security-authentication-mechanisms.adoc#combining-authentication-mechanisms[Combining authentication mechanisms] * xref:security-overview-concept.adoc[Quarkus Security overview] -* xref:security-keycloak-admin-client.adoc[Quarkus Keycloak Admin Client] \ No newline at end of file +* xref:security-keycloak-admin-client.adoc[Quarkus Keycloak Admin Client] From 89412e53ef1bde4a52cad31a78422a37b3ad4d55 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 25 Jan 2023 22:43:55 +0000 Subject: [PATCH 026/250] Bump bouncycastle.version from 1.71 to 1.72 Bumps `bouncycastle.version` from 1.71 to 1.72. Updates `bcprov-jdk18on` from 1.71 to 1.72 - [Release notes](https://github.com/bcgit/bc-java/releases) - [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) Updates `bctls-jdk18on` from 1.71 to 1.72 - [Release notes](https://github.com/bcgit/bc-java/releases) - [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) Updates `bcpkix-jdk18on` from 1.71 to 1.72 - [Release notes](https://github.com/bcgit/bc-java/releases) - [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) Updates `bcutil-jdk18on` from 1.71 to 1.72 - [Release notes](https://github.com/bcgit/bc-java/releases) - [Changelog](https://github.com/bcgit/bc-java/blob/master/docs/releasenotes.html) - [Commits](https://github.com/bcgit/bc-java/commits) --- updated-dependencies: - dependency-name: org.bouncycastle:bcprov-jdk18on dependency-type: direct:development update-type: version-update:semver-minor - dependency-name: org.bouncycastle:bctls-jdk18on dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.bouncycastle:bcpkix-jdk18on dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.bouncycastle:bcutil-jdk18on dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 7414d99c2ef52..f5d9a78d54562 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -14,7 +14,7 @@ pom - 1.71 + 1.72 1.0.2.3 1.0.14.1 3.0.2 From 41ebc6c8e58b69656f13f19827f2e8f9d47e2ede Mon Sep 17 00:00:00 2001 From: Dan Dunning <2349188+dunningdan@users.noreply.github.com> Date: Wed, 25 Jan 2023 22:45:02 -0500 Subject: [PATCH 027/250] Update invalid package in guide --- docs/src/main/asciidoc/liquibase-mongodb.adoc | 2 +- docs/src/main/asciidoc/liquibase.adoc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/liquibase-mongodb.adoc b/docs/src/main/asciidoc/liquibase-mongodb.adoc index d3bc48679782b..4ea1a8daa85c1 100644 --- a/docs/src/main/asciidoc/liquibase-mongodb.adoc +++ b/docs/src/main/asciidoc/liquibase-mongodb.adoc @@ -127,7 +127,7 @@ Quarkus will already have run the migrate operation. [source,java] ---- -import org.quarkus.liquibase.LiquibaseFactory; +import io.quarkus.liquibase.LiquibaseFactory; @ApplicationScoped public class MigrationService { diff --git a/docs/src/main/asciidoc/liquibase.adoc b/docs/src/main/asciidoc/liquibase.adoc index d202b7fe6fb5c..4b5129ef16cd8 100644 --- a/docs/src/main/asciidoc/liquibase.adoc +++ b/docs/src/main/asciidoc/liquibase.adoc @@ -124,7 +124,7 @@ Now you can start your application and Quarkus will run the Liquibase's update m [source,java] ---- -import org.quarkus.liquibase.LiquibaseFactory; <1> +import io.quarkus.liquibase.LiquibaseFactory; <1> @ApplicationScoped public class MigrationService { @@ -195,7 +195,7 @@ Quarkus will already have run the migrate operation. [source,java] ---- -import org.quarkus.liquibase.LiquibaseFactory; +import io.quarkus.liquibase.LiquibaseFactory; @ApplicationScoped public class MigrationService { From 85bcb2eafd8648af5020bf0d39c233206535dc68 Mon Sep 17 00:00:00 2001 From: Alexey Loubyansky Date: Thu, 26 Jan 2023 08:45:36 +0100 Subject: [PATCH 028/250] Fix NPE obtaining a project map from Maven session --- .../main/java/io/quarkus/maven/QuarkusBootstrapProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java b/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java index 2c4e876d7e189..1821722bc8c1f 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/QuarkusBootstrapProvider.java @@ -66,6 +66,9 @@ static ArtifactKey getProjectId(MavenProject project) { static Map getProjectMap(MavenSession session) { final List allProjects = session.getAllProjects(); + if (allProjects == null) { + return Map.of(); + } final Map projectModels = new HashMap<>(allProjects.size()); for (MavenProject mp : allProjects) { mp.getOriginalModel().setPomFile(mp.getFile()); From 34dfe2af05f903ffe0831cde03083e91692ce796 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 26 Jan 2023 09:25:54 +0100 Subject: [PATCH 029/250] Fix support primitive types for fields filtering in REST Data Panache Primitive types are cumbersome because are not nullable, so we need to convert them into classes types to deal with this. Fix https://github.com/quarkusio/quarkus/issues/30605 --- docs/src/main/asciidoc/rest-data-panache.adoc | 2 +- .../deployment/AbstractGetMethodTest.java | 20 +++++++++ .../panache/deployment/entity/Collection.java | 7 +++ .../deployment/repository/Collection.java | 7 +++ .../methods/ListMethodImplementor.java | 8 +++- .../methods/StandardMethodImplementor.java | 14 ------ .../utils/SignatureMethodCreator.java | 6 +-- .../panache/deployment/utils/TypeUtils.java | 45 +++++++++++++++++++ 8 files changed, 90 insertions(+), 19 deletions(-) create mode 100644 extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/TypeUtils.java diff --git a/docs/src/main/asciidoc/rest-data-panache.adoc b/docs/src/main/asciidoc/rest-data-panache.adoc index 38f0af44a6d28..5506edf988b22 100644 --- a/docs/src/main/asciidoc/rest-data-panache.adoc +++ b/docs/src/main/asciidoc/rest-data-panache.adoc @@ -407,7 +407,7 @@ Additionally, you can also filter by the entity fields by adding a query param w ] ---- -IMPORTANT: Filtering by fields is only supported for primitive types. +IMPORTANT: Filtering by fields is only supported for String, Boolean, Character, Double, Float, Integer, Long, Short, Byte and the primitive types. == Complex filtering to list entities using @NamedQuery diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java index 4f9dd7823d60c..ebc00cdf55fe5 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java @@ -86,6 +86,26 @@ void shouldListSimpleObjects() { .and().body("name", contains("first", "second")); } + @Test + void shouldListWithPrimitiveFilter() { + given().accept("application/json") + .when() + .queryParam("type", 100) + .get("/collections") + .then().statusCode(200) + .and().body("id", contains("empty", "full")); + } + + @Test + void shouldListWithPrimitiveFilterAndNoResults() { + given().accept("application/json") + .when() + .queryParam("type", 99) + .get("/collections") + .then().statusCode(200) + .and().body("id", empty()); + } + @Test void shouldListWithFilter() { given().accept("application/json") diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java index fff028b5212d9..138b10db9b5f3 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java @@ -3,6 +3,7 @@ import java.util.LinkedList; import java.util.List; +import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; @@ -18,6 +19,12 @@ public class Collection extends PanacheEntityBase { public String name; + /** + * This field is used to reproduce the issue: https://github.com/quarkusio/quarkus/issues/30605 + */ + @Column(name = "type", columnDefinition = "int default 100") + public int type; + @OneToMany(fetch = FetchType.EAGER, mappedBy = "collection") public List items = new LinkedList<>(); } diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java index 2d11d5adbcf8a..57399f50dca42 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java @@ -3,6 +3,7 @@ import java.util.LinkedList; import java.util.List; +import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; @@ -18,6 +19,12 @@ public class Collection extends PanacheEntityBase { public String name; + /** + * This field is used to reproduce the issue: https://github.com/quarkusio/quarkus/issues/30605 + */ + @Column(name = "type", columnDefinition = "int default 100") + public int type; + @OneToMany(fetch = FetchType.EAGER, mappedBy = "collection") public List items = new LinkedList<>(); } diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java index be4de64d9e5c4..066b82c66c855 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java @@ -1,11 +1,13 @@ package io.quarkus.rest.data.panache.deployment.methods; import static io.quarkus.arc.processor.DotNames.BOOLEAN; +import static io.quarkus.arc.processor.DotNames.BYTE; import static io.quarkus.arc.processor.DotNames.CHARACTER; import static io.quarkus.arc.processor.DotNames.DOUBLE; import static io.quarkus.arc.processor.DotNames.FLOAT; import static io.quarkus.arc.processor.DotNames.INTEGER; import static io.quarkus.arc.processor.DotNames.LONG; +import static io.quarkus.arc.processor.DotNames.SHORT; import static io.quarkus.arc.processor.DotNames.STRING; import static io.quarkus.gizmo.MethodDescriptor.ofConstructor; import static io.quarkus.gizmo.MethodDescriptor.ofMethod; @@ -15,6 +17,7 @@ import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.param; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.responseType; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.uniType; +import static io.quarkus.rest.data.panache.deployment.utils.TypeUtils.primitiveToClass; import java.util.ArrayList; import java.util.Collection; @@ -255,7 +258,8 @@ private Collection getFieldsToQuery(ResourceMe return resourceMetadata.getFields().entrySet() .stream() .filter(e -> isFieldTypeCompatibleForQueryParam(e.getValue())) - .map(e -> param(e.getKey(), e.getValue().name().toString())) + // we need to map primitive types to classes to make the fields nullable + .map(e -> param(e.getKey(), primitiveToClass(e.getValue().name().toString()))) .collect(Collectors.toList()); } @@ -354,9 +358,11 @@ private boolean isFieldTypeCompatibleForQueryParam(Type fieldType) { || fieldType.name().equals(BOOLEAN) || fieldType.name().equals(CHARACTER) || fieldType.name().equals(DOUBLE) + || fieldType.name().equals(SHORT) || fieldType.name().equals(FLOAT) || fieldType.name().equals(INTEGER) || fieldType.name().equals(LONG) + || fieldType.name().equals(BYTE) || fieldType.kind() == Type.Kind.PRIMITIVE; } } diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java index f7f1e299a2ffa..1af632b140993 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java @@ -27,7 +27,6 @@ import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.FieldDescriptor; import io.quarkus.gizmo.TryBlock; -import io.quarkus.gizmo.Type; import io.quarkus.rest.data.panache.RestDataPanacheException; import io.quarkus.rest.data.panache.deployment.ResourceMetadata; import io.quarkus.rest.data.panache.deployment.properties.ResourceProperties; @@ -236,19 +235,6 @@ protected boolean isNotReactivePanache() { return !capabilities.isPresent(Capability.HIBERNATE_REACTIVE); } - public static Type toType(Object object) { - if (object instanceof Type) { - return (Type) object; - } else if (object instanceof String) { - return Type.classType((String) object); - } else if (object instanceof Class) { - return Type.classType((Class) object); - } - - throw new IllegalArgumentException("Unsupported object of type " + object.getClass() - + ". Supported types are Type, String and Class"); - } - private static Class toClass(String className) { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); try { diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java index 7cf067627531a..b2531ab20cd22 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java @@ -2,7 +2,7 @@ import static io.quarkus.gizmo.Type.classType; import static io.quarkus.gizmo.Type.parameterizedType; -import static io.quarkus.rest.data.panache.deployment.methods.StandardMethodImplementor.toType; +import static io.quarkus.rest.data.panache.deployment.utils.TypeUtils.toGizmoType; import java.util.ArrayList; import java.util.List; @@ -52,7 +52,7 @@ public static MethodCreator getMethodCreator(String methodName, ClassCreator cla } public static Parameter param(String name, Object type) { - return param(name, type, toType(type)); + return param(name, type, toGizmoType(type)); } public static Parameter param(String name, Object clazz, Type type) { @@ -90,7 +90,7 @@ public static ReturnType uniType(Object... arguments) { ReturnType returnType = new ReturnType(); Type[] typeArguments = new Type[arguments.length]; for (int index = 0; index < arguments.length; index++) { - typeArguments[index] = toType(arguments[index]); + typeArguments[index] = toGizmoType(arguments[index]); } returnType.classType = Uni.class; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/TypeUtils.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/TypeUtils.java new file mode 100644 index 0000000000000..0980cd870cc74 --- /dev/null +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/TypeUtils.java @@ -0,0 +1,45 @@ +package io.quarkus.rest.data.panache.deployment.utils; + +import java.util.HashMap; +import java.util.Map; + +import io.quarkus.gizmo.Type; + +public final class TypeUtils { + + private static final Map PRIMITIVE_TO_CLASS_MAPPING = new HashMap<>(); + + static { + PRIMITIVE_TO_CLASS_MAPPING.put("int", Integer.class); + PRIMITIVE_TO_CLASS_MAPPING.put("byte", Byte.class); + PRIMITIVE_TO_CLASS_MAPPING.put("char", Character.class); + PRIMITIVE_TO_CLASS_MAPPING.put("short", Short.class); + PRIMITIVE_TO_CLASS_MAPPING.put("long", Long.class); + PRIMITIVE_TO_CLASS_MAPPING.put("float", Float.class); + PRIMITIVE_TO_CLASS_MAPPING.put("double", Double.class); + PRIMITIVE_TO_CLASS_MAPPING.put("boolean", Boolean.class); + } + + private TypeUtils() { + + } + + public static Object primitiveToClass(String type) { + Class clazz = PRIMITIVE_TO_CLASS_MAPPING.get(type); + return clazz != null ? clazz : type; + } + + public static Type toGizmoType(Object object) { + if (object instanceof Type) { + return (Type) object; + } else if (object instanceof String) { + return Type.classType((String) object); + } else if (object instanceof Class) { + return Type.classType((Class) object); + } + + throw new IllegalArgumentException("Unsupported object of type " + object.getClass() + + ". Supported types are Type, String and Class"); + } + +} From b89fece02881a35354482900fc2db255d42adb8a Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 16 Jan 2023 07:46:27 +0100 Subject: [PATCH 030/250] Add HTTPS port in generated containers by Kubernetes These changes will add an additional container port HTTPS in the generated manifests: ```yaml containers: - image: ... imagePullPolicy: IfNotPresent name: kubernetes-kind ports: - containerPort: 8080 name: http protocol: TCP - containerPort: 8443 name: https protocol: TCP ``` By default, the Ingress and Route resources will use the "http" port. However, as part of these changes, I've added a new property to select between "https" or "http", or any other that user might have added as part of the configuration. Example: ``` quarkus.kubernetes.ingress.target-port=https quarkus.openshift.route.target-port=https ``` Finally, note that the https container won't be added for the Knative resources since there seems to be a limitation at Knative side. Fix https://github.com/quarkusio/quarkus/issues/29999 asd --- .../asciidoc/deploying-to-kubernetes.adoc | 1 + .../kind/deployment/KindProcessor.java | 5 +- .../deployment/AddNodePortDecorator.java | 27 +++----- .../ApplyOpenshiftRouteConfigurator.java | 5 +- .../deployment/DevClusterHelper.java | 19 +++--- .../deployment/KnativeProcessor.java | 16 +++-- .../deployment/KubernetesCommonHelper.java | 30 +++++++-- .../deployment/OpenshiftProcessor.java | 13 ++-- .../kubernetes/deployment/RouteConfig.java | 5 +- .../VanillaKubernetesProcessor.java | 25 +++---- .../http/deployment/VertxHttpProcessor.java | 16 ++++- .../it/kubernetes/BasicKubernetesTest.java | 10 ++- .../it/kubernetes/KindWithDefaultsTest.java | 2 +- .../it/kubernetes/KnativeWithHealthTest.java | 2 +- ...MinikubeWithApplicationPropertiesTest.java | 4 +- .../KubernetesServiceMappingTest.java | 8 +-- ...bernetesWithApplicationPropertiesTest.java | 4 +- .../KubernetesWithCustomResourcesTest.java | 2 +- .../KubernetesWithIngressTargetPortTest.java | 67 +++++++++++++++++++ .../KubernetesWithMultiplePortsTest.java | 6 +- .../KubernetesWithSidecarAndJibTest.java | 2 +- ...MinikubeWithApplicationPropertiesTest.java | 2 +- .../kubernetes/MinikubeWithDefaultsTest.java | 8 ++- ...penshiftWithApplicationPropertiesTest.java | 2 +- .../OpenshiftWithRoutePropertiesTest.java | 2 +- .../it/kubernetes/OpenshiftWithS2iTest.java | 2 +- ...rnetes-with-ingress-target-port.properties | 2 + 27 files changed, 193 insertions(+), 94 deletions(-) create mode 100644 integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithIngressTargetPortTest.java create mode 100644 integration-tests/kubernetes/quarkus-standard-way/src/test/resources/kubernetes-with-ingress-target-port.properties diff --git a/docs/src/main/asciidoc/deploying-to-kubernetes.adoc b/docs/src/main/asciidoc/deploying-to-kubernetes.adoc index c84510ab47dd6..afeb27b99389a 100644 --- a/docs/src/main/asciidoc/deploying-to-kubernetes.adoc +++ b/docs/src/main/asciidoc/deploying-to-kubernetes.adoc @@ -770,6 +770,7 @@ To secure the incoming connections, Kubernetes allows enabling https://kubernete [source] ---- quarkus.kubernetes.ingress.expose=true +quarkus.kubernetes.ingress.target-port=https ## Ingress TLS configuration: quarkus.kubernetes.ingress.tls.my-secret.enabled=true ---- diff --git a/extensions/kubernetes/kind/deployment/src/main/java/io/quarkus/kind/deployment/KindProcessor.java b/extensions/kubernetes/kind/deployment/src/main/java/io/quarkus/kind/deployment/KindProcessor.java index c9d871cddc1ed..47cba6debd7ba 100644 --- a/extensions/kubernetes/kind/deployment/src/main/java/io/quarkus/kind/deployment/KindProcessor.java +++ b/extensions/kubernetes/kind/deployment/src/main/java/io/quarkus/kind/deployment/KindProcessor.java @@ -84,9 +84,8 @@ public void createLabels(KubernetesConfig config, BuildProducer createConfigurators(KubernetesConfig config, List ports) { List result = new ArrayList<>(); - KubernetesCommonHelper.combinePorts(ports, config).entrySet().forEach(e -> { - result.add(new ConfiguratorBuildItem(new AddPortToKubernetesConfig(e.getValue()))); - }); + KubernetesCommonHelper.combinePorts(ports, config).values() + .forEach(value -> result.add(new ConfiguratorBuildItem(new AddPortToKubernetesConfig(value)))); return result; } diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddNodePortDecorator.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddNodePortDecorator.java index 56fd16db6a6a9..465c02a9dfeaf 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddNodePortDecorator.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/AddNodePortDecorator.java @@ -2,7 +2,6 @@ import static io.quarkus.kubernetes.deployment.Constants.*; -import java.util.Optional; import java.util.function.Predicate; import org.jboss.logging.Logger; @@ -18,13 +17,9 @@ public class AddNodePortDecorator extends NamedResourceDecorator matchingPortName; + private final String matchingPortName; - public AddNodePortDecorator(String name, int nodePort) { - this(name, nodePort, Optional.empty()); - } - - public AddNodePortDecorator(String name, int nodePort, Optional matchingPortName) { + public AddNodePortDecorator(String name, int nodePort, String matchingPortName) { super(name); if (nodePort < MIN_NODE_PORT_VALUE || nodePort > MAX_NODE_PORT_VALUE) { log.info("Using a port outside of the " + MIN_NODE_PORT_VALUE + "-" + MAX_NODE_PORT_VALUE @@ -37,18 +32,12 @@ public AddNodePortDecorator(String name, int nodePort, Optional matching @SuppressWarnings("unchecked") @Override public void andThenVisit(ServiceSpecFluent service, ObjectMeta resourceMeta) { - ServiceSpecFluent.PortsNested editPort; - if (matchingPortName.isPresent()) { - editPort = service.editMatchingPort(new Predicate() { - @Override - public boolean test(ServicePortBuilder servicePortBuilder) { - return (servicePortBuilder.hasName()) - && (servicePortBuilder.getName().equals(matchingPortName.get())); - } - }); - } else { - editPort = service.editFirstPort(); - } + ServiceSpecFluent.PortsNested editPort = service.editMatchingPort(new Predicate() { + @Override + public boolean test(ServicePortBuilder servicePortBuilder) { + return servicePortBuilder.hasName() && servicePortBuilder.getName().equals(matchingPortName); + } + }); editPort.withNodePort(nodePort); editPort.endPort(); } diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ApplyOpenshiftRouteConfigurator.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ApplyOpenshiftRouteConfigurator.java index 731b02befd50f..5a1033db69e45 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ApplyOpenshiftRouteConfigurator.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ApplyOpenshiftRouteConfigurator.java @@ -22,10 +22,7 @@ public void visit(OpenshiftConfigFluent config) { routeBuilder.withHost(routeConfig.host.get()); } - if (routeConfig.targetPort.isPresent()) { - routeBuilder.withTargetPort(routeConfig.targetPort.get()); - } - + routeBuilder.withTargetPort(routeConfig.targetPort); routeBuilder.endRoute(); } } diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DevClusterHelper.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DevClusterHelper.java index ddb0e62a16fe0..a31cb79ff4d74 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DevClusterHelper.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/DevClusterHelper.java @@ -2,7 +2,6 @@ package io.quarkus.kubernetes.deployment; import static io.quarkus.kubernetes.deployment.Constants.DEFAULT_HTTP_PORT; -import static io.quarkus.kubernetes.deployment.Constants.HTTP_PORT; import static io.quarkus.kubernetes.deployment.Constants.KUBERNETES; import static io.quarkus.kubernetes.deployment.Constants.MAX_NODE_PORT_VALUE; import static io.quarkus.kubernetes.deployment.Constants.MAX_PORT_NUMBER; @@ -21,6 +20,7 @@ import io.dekorate.kubernetes.annotation.ServiceType; import io.dekorate.kubernetes.config.EnvBuilder; +import io.dekorate.kubernetes.config.Port; import io.dekorate.kubernetes.decorator.AddEnvVarDecorator; import io.dekorate.kubernetes.decorator.ApplicationContainerDecorator; import io.dekorate.kubernetes.decorator.ApplyImagePullPolicyDecorator; @@ -75,10 +75,11 @@ public static List createDecorators(String clusterKind, Optional project = KubernetesCommonHelper.createProject(applicationInfo, customProjectRoot, outputTarget, packageConfig); + Optional port = KubernetesCommonHelper.getPort(ports, config); result.addAll(KubernetesCommonHelper.createDecorators(project, clusterKind, name, config, metricsConfiguration, annotations, labels, command, - ports, livenessPath, readinessPath, roles, roleBindings)); + port, livenessPath, readinessPath, roles, roleBindings)); image.ifPresent(i -> { result.add(new DecoratorBuildItem(clusterKind, new ApplyContainerImageDecorator(name, i.getImage()))); @@ -106,17 +107,19 @@ public static List createDecorators(String clusterKind, if (!nodeConfigPorts.isEmpty()) { for (Map.Entry entry : nodeConfigPorts) { result.add(new DecoratorBuildItem(KUBERNETES, - new AddNodePortDecorator(name, entry.getValue().nodePort.getAsInt(), Optional.of(entry.getKey())))); + new AddNodePortDecorator(name, entry.getValue().nodePort.getAsInt(), entry.getKey()))); } } else { - result.add(new DecoratorBuildItem(clusterKind, new AddNodePortDecorator(name, config.getNodePort() - .orElseGet(() -> getStablePortNumberInRange(name, MIN_NODE_PORT_VALUE, MAX_NODE_PORT_VALUE))))); + result.add(new DecoratorBuildItem(clusterKind, + new AddNodePortDecorator(name, + config.getNodePort().orElseGet( + () -> getStablePortNumberInRange(name, MIN_NODE_PORT_VALUE, MAX_NODE_PORT_VALUE)), + config.ingress.targetPort))); } //Probe port handling - Integer port = ports.stream().filter(p -> HTTP_PORT.equals(p.getName())).map(KubernetesPortBuildItem::getPort) - .findFirst().orElse(DEFAULT_HTTP_PORT); - result.add(new DecoratorBuildItem(clusterKind, new ApplyHttpGetActionPortDecorator(name, name, port))); + Integer portNumber = port.map(Port::getContainerPort).orElse(DEFAULT_HTTP_PORT); + result.add(new DecoratorBuildItem(clusterKind, new ApplyHttpGetActionPortDecorator(name, name, portNumber))); // Handle init Containers result.addAll(KubernetesCommonHelper.createInitContainerDecorators(clusterKind, name, initContainers, result)); diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeProcessor.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeProcessor.java index 08a0f4915ce80..f5490ee727224 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeProcessor.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeProcessor.java @@ -29,6 +29,7 @@ import io.dekorate.knative.decorator.ApplyServiceAccountToRevisionSpecDecorator; import io.dekorate.knative.decorator.ApplyTrafficDecorator; import io.dekorate.kubernetes.config.EnvBuilder; +import io.dekorate.kubernetes.config.Port; import io.dekorate.kubernetes.decorator.AddConfigMapDataDecorator; import io.dekorate.kubernetes.decorator.AddConfigMapResourceProvidingDecorator; import io.dekorate.kubernetes.decorator.AddEnvVarDecorator; @@ -116,9 +117,12 @@ public void createLabels(KnativeConfig config, BuildProducer createConfigurators(KnativeConfig config, List ports) { List result = new ArrayList<>(); - KubernetesCommonHelper.combinePorts(ports, config).values().forEach(value -> { - result.add(new ConfiguratorBuildItem(new AddPortToKnativeConfig(value))); - }); + KubernetesCommonHelper.combinePorts(ports, config).values() + .stream() + // At the moment, Knative only supports single port binding: https://github.com/knative/serving/issues/8471 + .filter(p -> p.getName().equals("http")) + .findFirst() + .ifPresent(value -> result.add(new ConfiguratorBuildItem(new AddPortToKnativeConfig(value)))); return result; } @@ -151,9 +155,9 @@ public List createDecorators(ApplicationInfoBuildItem applic String name = ResourceNameUtil.getResourceName(config, applicationInfo); Optional project = KubernetesCommonHelper.createProject(applicationInfo, customProjectRoot, outputTarget, packageConfig); - result.addAll(KubernetesCommonHelper.createDecorators(project, KNATIVE, name, config, metricsConfiguration, - annotations, - labels, command, ports, livenessPath, readinessPath, roles, roleBindings)); + Optional port = KubernetesCommonHelper.getPort(ports, config, "http"); + result.addAll(KubernetesCommonHelper.createDecorators(project, KNATIVE, name, config, metricsConfiguration, annotations, + labels, command, port, livenessPath, readinessPath, roles, roleBindings)); image.ifPresent(i -> { result.add(new DecoratorBuildItem(KNATIVE, new ApplyContainerImageDecorator(name, i.getImage()))); diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesCommonHelper.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesCommonHelper.java index fa2d7a3b76545..9f6838391ae96 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesCommonHelper.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesCommonHelper.java @@ -1,6 +1,7 @@ package io.quarkus.kubernetes.deployment; +import static io.dekorate.kubernetes.decorator.AddServiceResourceDecorator.distinct; import static io.quarkus.kubernetes.deployment.Constants.QUARKUS_ANNOTATIONS_BUILD_TIMESTAMP; import static io.quarkus.kubernetes.deployment.Constants.QUARKUS_ANNOTATIONS_COMMIT_ID; import static io.quarkus.kubernetes.deployment.Constants.QUARKUS_ANNOTATIONS_VCS_URL; @@ -118,6 +119,23 @@ public static Optional createProject(ApplicationInfoBuildItem app, } } + /** + * Creates the configurator build items. + */ + public static Optional getPort(List ports, KubernetesConfig config) { + return getPort(ports, config, config.ingress.targetPort); + } + + /** + * Creates the configurator build items. + */ + public static Optional getPort(List ports, PlatformConfiguration config, String targetPort) { + return combinePorts(ports, config).values().stream() + .filter(distinct(p -> p.getName())) + .filter(p -> p.getName().equals(targetPort)) + .findFirst(); + } + /** * Creates the configurator build items. */ @@ -159,7 +177,7 @@ public static List createDecorators(Optional projec List annotations, List labels, Optional command, - List ports, + Optional port, Optional livenessProbePath, Optional readinessProbePath, List roles, @@ -167,7 +185,7 @@ public static List createDecorators(Optional projec List result = new ArrayList<>(); result.addAll(createLabelDecorators(project, target, name, config, labels)); - result.addAll(createAnnotationDecorators(project, target, name, config, metricsConfiguration, annotations, ports)); + result.addAll(createAnnotationDecorators(project, target, name, config, metricsConfiguration, annotations, port)); result.addAll(createPodDecorators(project, target, name, config)); result.addAll(createContainerDecorators(project, target, name, config)); result.addAll(createMountAndVolumeDecorators(project, target, name, config)); @@ -177,7 +195,7 @@ public static List createDecorators(Optional projec result.addAll(createArgsDecorator(project, target, name, config, command)); //Handle Probes - if (!ports.isEmpty()) { + if (!port.isEmpty()) { result.addAll(createProbeDecorators(name, target, config.getLivenessProbe(), config.getReadinessProbe(), livenessProbePath, readinessProbePath)); } @@ -606,7 +624,7 @@ private static List createAnnotationDecorators(Optional metricsConfiguration, List annotations, - List ports) { + Optional port) { List result = new ArrayList<>(); annotations.forEach(a -> { @@ -649,14 +667,14 @@ private static List createAnnotationDecorators(Optional { String path = m.metricsEndpoint(); String prefix = config.getPrometheusConfig().prefix; - if (!ports.isEmpty() && path != null) { + if (port.isPresent() && path != null) { result.add(new DecoratorBuildItem(target, new AddAnnotationDecorator(name, config.getPrometheusConfig().scrape.orElse(prefix + "/scrape"), "true", PROMETHEUS_ANNOTATION_TARGETS))); result.add(new DecoratorBuildItem(target, new AddAnnotationDecorator(name, config.getPrometheusConfig().path.orElse(prefix + "/path"), path, PROMETHEUS_ANNOTATION_TARGETS))); result.add(new DecoratorBuildItem(target, new AddAnnotationDecorator(name, - config.getPrometheusConfig().port.orElse(prefix + "/port"), "" + ports.get(0).getPort(), + config.getPrometheusConfig().port.orElse(prefix + "/port"), "" + port.get().getContainerPort(), PROMETHEUS_ANNOTATION_TARGETS))); result.add(new DecoratorBuildItem(target, new AddAnnotationDecorator(name, config.getPrometheusConfig().scheme.orElse(prefix + "/scheme"), "http", diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftProcessor.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftProcessor.java index 63d1137a05669..bad03339aa2ed 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftProcessor.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftProcessor.java @@ -3,7 +3,6 @@ import static io.quarkus.kubernetes.deployment.Constants.DEFAULT_HTTP_PORT; import static io.quarkus.kubernetes.deployment.Constants.DEFAULT_S2I_IMAGE_NAME; -import static io.quarkus.kubernetes.deployment.Constants.HTTP_PORT; import static io.quarkus.kubernetes.deployment.Constants.OPENSHIFT; import static io.quarkus.kubernetes.deployment.Constants.OPENSHIFT_APP_RUNTIME; import static io.quarkus.kubernetes.deployment.Constants.QUARKUS; @@ -21,6 +20,7 @@ import io.dekorate.kubernetes.config.EnvBuilder; import io.dekorate.kubernetes.config.ImageConfiguration; import io.dekorate.kubernetes.config.ImageConfigurationBuilder; +import io.dekorate.kubernetes.config.Port; import io.dekorate.kubernetes.decorator.AddAnnotationDecorator; import io.dekorate.kubernetes.decorator.AddEnvVarDecorator; import io.dekorate.kubernetes.decorator.AddLabelDecorator; @@ -197,10 +197,11 @@ public List createDecorators(ApplicationInfoBuildItem applic Optional project = KubernetesCommonHelper.createProject(applicationInfo, customProjectRoot, outputTarget, packageConfig); + Optional port = KubernetesCommonHelper.getPort(ports, config, config.route.targetPort); result.addAll(KubernetesCommonHelper.createDecorators(project, OPENSHIFT, name, config, metricsConfiguration, annotations, labels, command, - ports, livenessPath, readinessPath, roles, roleBindings)); + port, livenessPath, readinessPath, roles, roleBindings)); if (config.flavor == v3) { //Openshift 3.x doesn't recognize 'app.kubernetes.io/name', it uses 'app' instead. @@ -295,13 +296,13 @@ public List createDecorators(ApplicationInfoBuildItem applic // Service handling result.add(new DecoratorBuildItem(OPENSHIFT, new ApplyServiceTypeDecorator(name, config.getServiceType().name()))); if ((config.getServiceType() == ServiceType.NodePort) && config.nodePort.isPresent()) { - result.add(new DecoratorBuildItem(OPENSHIFT, new AddNodePortDecorator(name, config.nodePort.getAsInt()))); + result.add(new DecoratorBuildItem(OPENSHIFT, + new AddNodePortDecorator(name, config.nodePort.getAsInt(), config.route.targetPort))); } // Probe port handling - Integer port = ports.stream().filter(p -> HTTP_PORT.equals(p.getName())).map(KubernetesPortBuildItem::getPort) - .findFirst().orElse(DEFAULT_HTTP_PORT); - result.add(new DecoratorBuildItem(OPENSHIFT, new ApplyHttpGetActionPortDecorator(name, name, port))); + Integer portNumber = port.map(Port::getContainerPort).orElse(DEFAULT_HTTP_PORT); + result.add(new DecoratorBuildItem(OPENSHIFT, new ApplyHttpGetActionPortDecorator(name, name, portNumber))); // Handle non-openshift builds if (deploymentKind == DeploymentResourceKind.DeploymentConfig diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RouteConfig.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RouteConfig.java index 65680fdb2c1f8..075cae4cf3d45 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RouteConfig.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RouteConfig.java @@ -23,9 +23,10 @@ public class RouteConfig { /** * The target named port. If not provided, it will be deducted from the Service resource ports. + * Options are: "http" and "https". */ - @ConfigItem - Optional targetPort; + @ConfigItem(defaultValue = "http") + String targetPort; /** * Custom annotations to add to exposition (route or ingress) resources diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/VanillaKubernetesProcessor.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/VanillaKubernetesProcessor.java index 39762e87f2e1a..682e806001a56 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/VanillaKubernetesProcessor.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/VanillaKubernetesProcessor.java @@ -1,11 +1,9 @@ package io.quarkus.kubernetes.deployment; -import static io.dekorate.kubernetes.decorator.AddServiceResourceDecorator.distinct; import static io.quarkus.kubernetes.deployment.Constants.DEFAULT_HTTP_PORT; import static io.quarkus.kubernetes.deployment.Constants.DEPLOYMENT_GROUP; import static io.quarkus.kubernetes.deployment.Constants.DEPLOYMENT_VERSION; -import static io.quarkus.kubernetes.deployment.Constants.HTTP_PORT; import static io.quarkus.kubernetes.deployment.Constants.INGRESS; import static io.quarkus.kubernetes.deployment.Constants.KUBERNETES; import static io.quarkus.kubernetes.spi.KubernetesDeploymentTargetBuildItem.VANILLA_KUBERNETES_PRIORITY; @@ -122,7 +120,6 @@ public List createConfigurators(KubernetesConfig config, } return result; - } @BuildStep @@ -149,9 +146,9 @@ public List createDecorators(ApplicationInfoBuildItem applic Optional project = KubernetesCommonHelper.createProject(applicationInfo, customProjectRoot, outputTarget, packageConfig); - result.addAll( - KubernetesCommonHelper.createDecorators(project, KUBERNETES, name, config, metricsConfiguration, annotations, - labels, command, ports, livenessPath, readinessPath, roles, roleBindings)); + Optional port = KubernetesCommonHelper.getPort(ports, config); + result.addAll(KubernetesCommonHelper.createDecorators(project, KUBERNETES, name, config, metricsConfiguration, + annotations, labels, command, port, livenessPath, readinessPath, roles, roleBindings)); KubernetesConfig.DeploymentResourceKind deploymentKind = config.getDeploymentResourceKind(capabilities); if (deploymentKind != KubernetesConfig.DeploymentResourceKind.Deployment) { @@ -187,12 +184,8 @@ public List createDecorators(ApplicationInfoBuildItem applic new AddAnnotationDecorator(name, annotation.getKey(), annotation.getValue(), INGRESS))); } - Optional defaultHostPort = KubernetesCommonHelper.combinePorts(ports, config).values().stream() - .filter(distinct(p -> p.getName())) - .findFirst(); - for (IngressRuleConfig rule : config.ingress.rules.values()) { - result.add(new DecoratorBuildItem(KUBERNETES, new AddIngressRuleDecorator(name, defaultHostPort, + result.add(new DecoratorBuildItem(KUBERNETES, new AddIngressRuleDecorator(name, port, new IngressRuleBuilder() .withHost(rule.host) .withPath(rule.path) @@ -239,17 +232,17 @@ public List createDecorators(ApplicationInfoBuildItem applic if (!nodeConfigPorts.isEmpty()) { for (Map.Entry entry : nodeConfigPorts) { result.add(new DecoratorBuildItem(KUBERNETES, - new AddNodePortDecorator(name, entry.getValue().nodePort.getAsInt(), Optional.of(entry.getKey())))); + new AddNodePortDecorator(name, entry.getValue().nodePort.getAsInt(), entry.getKey()))); } } else if (config.nodePort.isPresent()) { - result.add(new DecoratorBuildItem(KUBERNETES, new AddNodePortDecorator(name, config.nodePort.getAsInt()))); + result.add(new DecoratorBuildItem(KUBERNETES, + new AddNodePortDecorator(name, config.nodePort.getAsInt(), config.ingress.targetPort))); } } // Probe port handling - Integer port = ports.stream().filter(p -> HTTP_PORT.equals(p.getName())).map(KubernetesPortBuildItem::getPort) - .findFirst().orElse(DEFAULT_HTTP_PORT); - result.add(new DecoratorBuildItem(KUBERNETES, new ApplyHttpGetActionPortDecorator(name, name, port))); + Integer portNumber = port.map(Port::getContainerPort).orElse(DEFAULT_HTTP_PORT); + result.add(new DecoratorBuildItem(KUBERNETES, new ApplyHttpGetActionPortDecorator(name, name, portNumber))); // Handle remote debug configuration if (config.remoteDebug.enabled) { diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java index 0380a2925edc2..b095f2b0b4ab2 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java @@ -56,6 +56,7 @@ import io.quarkus.vertx.http.runtime.CurrentRequestProducer; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; import io.quarkus.vertx.http.runtime.HttpBuildTimeConfig; +import io.quarkus.vertx.http.runtime.HttpConfiguration; import io.quarkus.vertx.http.runtime.HttpHostConfigSource; import io.quarkus.vertx.http.runtime.VertxHttpRecorder; import io.quarkus.vertx.http.runtime.attribute.ExchangeAttributeBuilder; @@ -147,9 +148,20 @@ void filterMultipleVertxInstancesWarning(LaunchModeBuildItem launchModeBuildItem } @BuildStep - public KubernetesPortBuildItem kubernetes() { + public void kubernetes(BuildProducer kubernetesPorts) { + HttpConfiguration.InsecureRequests insecureRequests = ConfigProvider.getConfig() + .getOptionalValue("quarkus.http.insecure-requests", HttpConfiguration.InsecureRequests.class) + .orElse(HttpConfiguration.InsecureRequests.ENABLED); + if (insecureRequests != HttpConfiguration.InsecureRequests.DISABLED) { + // ssl is not disabled + int sslPort = ConfigProvider.getConfig() + .getOptionalValue("quarkus.http.ssl-port", Integer.class) + .orElse(8443); + kubernetesPorts.produce(new KubernetesPortBuildItem(sslPort, "https")); + } + int port = ConfigProvider.getConfig().getOptionalValue("quarkus.http.port", Integer.class).orElse(8080); - return new KubernetesPortBuildItem(port, "http"); + kubernetesPorts.produce(new KubernetesPortBuildItem(port, "http")); } @BuildStep diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/BasicKubernetesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/BasicKubernetesTest.java index ccc4892828a2a..8b0a929f8f28f 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/BasicKubernetesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/BasicKubernetesTest.java @@ -79,8 +79,7 @@ public void assertGeneratedResources() throws IOException { assertThat(podSpec.getSecurityContext()).isNull(); assertThat(podSpec.getContainers()).singleElement().satisfies(container -> { assertThat(container.getImagePullPolicy()).isEqualTo("Always"); // expect the default value - assertThat(container.getPorts()).singleElement().satisfies(p -> { - + assertThat(container.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getContainerPort()).isEqualTo(8080); }); }); @@ -97,10 +96,15 @@ public void assertGeneratedResources() throws IOException { assertThat(spec.getSelector()).containsOnly(entry("app.kubernetes.io/name", "basic"), entry("app.kubernetes.io/version", "0.1-SNAPSHOT")); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(8080); }); + + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { + assertThat(p.getPort()).isEqualTo(443); + assertThat(p.getTargetPort().getIntVal()).isEqualTo(8443); + }); }); }); } diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KindWithDefaultsTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KindWithDefaultsTest.java index fd3735691ec82..6f6223fc79802 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KindWithDefaultsTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KindWithDefaultsTest.java @@ -71,7 +71,7 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getNodePort()).isNotNull(); }); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KnativeWithHealthTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KnativeWithHealthTest.java index 0d3dc92619a7f..7c864082ded53 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KnativeWithHealthTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KnativeWithHealthTest.java @@ -54,7 +54,7 @@ public void assertGeneratedResources() throws IOException { assertThat(spec.getTemplate()).satisfies(template -> { assertThat(template.getSpec()).satisfies(templateSpec -> { assertThat(templateSpec.getContainers()).hasSize(1).singleElement().satisfies(c -> { - assertThat(c.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(c.getPorts()).hasSize(1).anySatisfy(p -> { assertThat(p.getName()).isEqualTo("http1"); }); assertThat(c.getReadinessProbe()).isNotNull().satisfies(p -> { diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesAndMinikubeWithApplicationPropertiesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesAndMinikubeWithApplicationPropertiesTest.java index d78895a5ced4a..5274a01c492ac 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesAndMinikubeWithApplicationPropertiesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesAndMinikubeWithApplicationPropertiesTest.java @@ -72,7 +72,7 @@ private void assertKubernetes(Path kubernetesDir) throws IOException { assertThat(i).isInstanceOfSatisfying(Service.class, s -> { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("ClusterIP", spec.getType()); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getNodePort()).isNull(); assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); @@ -109,7 +109,7 @@ private void assertMinikube(Path kubernetesDir) throws IOException { assertThat(i).isInstanceOfSatisfying(Service.class, s -> { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getNodePort()).isNotNull(); assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesServiceMappingTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesServiceMappingTest.java index 08810c40da738..d49f646ed7a03 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesServiceMappingTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesServiceMappingTest.java @@ -55,15 +55,15 @@ public void assertGeneratedResources() throws IOException { assertThat(deploymentSpec.getTemplate()).satisfies(t -> { assertThat(t.getSpec()).satisfies(podSpec -> { List ports = podSpec.getContainers().get(0).getPorts(); - assertThat(ports.size()).isEqualTo(2); + assertThat(ports.size()).isEqualTo(3); assertTrue(ports.stream().anyMatch(port -> "http".equals(port.getName()) && port.getContainerPort() == 8080 && "TCP".equals(port.getProtocol())), - () -> "http port not found in the pod containers!"); + "http port not found in the pod containers!"); assertTrue(ports.stream().anyMatch(port -> "debug".equals(port.getName()) && port.getContainerPort() == 5005 && "UDP".equals(port.getProtocol())), - () -> "debug port not found in the pod containers!"); + "debug port not found in the pod containers!"); }); }); }); @@ -74,7 +74,7 @@ public void assertGeneratedResources() throws IOException { assertThat(m.getName()).isEqualTo("kubernetes-service-mapping"); }); assertThat(s.getSpec()).satisfies(serviceSpec -> { - assertThat(serviceSpec.getPorts().size()).isEqualTo(2); + assertThat(serviceSpec.getPorts().size()).isEqualTo(3); assertTrue(serviceSpec.getPorts().stream().anyMatch(port -> "http".equals(port.getName()) && port.getTargetPort().getIntVal() == 8080 && "TCP".equals(port.getProtocol()) diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithApplicationPropertiesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithApplicationPropertiesTest.java index 78e00fa64cb5e..809001232da48 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithApplicationPropertiesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithApplicationPropertiesTest.java @@ -72,7 +72,7 @@ public void assertGeneratedResources() throws IOException { assertThat(container.getImage()) .isEqualTo("quay.io/grp/kubernetes-with-application-properties:0.1-SNAPSHOT"); - assertThat(container.getPorts()).singleElement().satisfies(p -> { + assertThat(container.getPorts()).anySatisfy(p -> { assertThat(p.getContainerPort()).isEqualTo(9090); }); assertThat(container.getImagePullPolicy()).isEqualTo("IfNotPresent"); @@ -93,7 +93,7 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); assertThat(spec.getSelector()).containsOnly(entry("app.kubernetes.io/name", "test-it")); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithCustomResourcesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithCustomResourcesTest.java index 3225ed9258f3e..fb829b72f4a99 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithCustomResourcesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithCustomResourcesTest.java @@ -89,7 +89,7 @@ public void assertGeneratedResources() throws IOException { assertThat(spec.getSelector()).containsOnly(entry("app.kubernetes.io/name", "custom-resources"), entry("app.kubernetes.io/version", "0.1-SNAPSHOT")); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(8080); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithIngressTargetPortTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithIngressTargetPortTest.java new file mode 100644 index 0000000000000..76d0a327c1f89 --- /dev/null +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithIngressTargetPortTest.java @@ -0,0 +1,67 @@ + +package io.quarkus.it.kubernetes; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.io.IOException; +import java.nio.file.Path; +import java.util.List; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.fabric8.kubernetes.api.model.HasMetadata; +import io.fabric8.kubernetes.api.model.apps.Deployment; +import io.fabric8.kubernetes.api.model.networking.v1.Ingress; +import io.quarkus.builder.Version; +import io.quarkus.maven.dependency.Dependency; +import io.quarkus.test.ProdBuildResults; +import io.quarkus.test.ProdModeTestResults; +import io.quarkus.test.QuarkusProdModeTest; + +public class KubernetesWithIngressTargetPortTest { + + private static final String APP_NAME = "kubernetes-with-ingress-target-port"; + + @RegisterExtension + static final QuarkusProdModeTest config = new QuarkusProdModeTest() + .withApplicationRoot((jar) -> jar.addClasses(GreetingResource.class)) + .setApplicationName(APP_NAME) + .setApplicationVersion("0.1-SNAPSHOT") + .withConfigurationResource(APP_NAME + ".properties") + .setLogFileName("k8s.log") + .setForcedDependencies(List.of(Dependency.of("io.quarkus", "quarkus-kubernetes", Version.getVersion()))); + + @ProdBuildResults + private ProdModeTestResults prodModeTestResults; + + @Test + public void assertGeneratedResources() throws IOException { + final Path kubernetesDir = prodModeTestResults.getBuildDir().resolve("kubernetes"); + assertThat(kubernetesDir) + .isDirectoryContaining(p -> p.getFileName().endsWith("kubernetes.json")) + .isDirectoryContaining(p -> p.getFileName().endsWith("kubernetes.yml")); + List kubernetesList = DeserializationUtil + .deserializeAsList(kubernetesDir.resolve("kubernetes.yml")); + + assertThat(kubernetesList.get(0)).isInstanceOfSatisfying(Deployment.class, d -> { + assertThat(d.getMetadata()).satisfies(m -> { + assertThat(m.getName()).isEqualTo(APP_NAME); + }); + }); + + assertThat(kubernetesList).filteredOn(i -> "Ingress".equals(i.getKind())).singleElement().satisfies(item -> { + assertThat(item).isInstanceOfSatisfying(Ingress.class, ingress -> { + assertThat(ingress.getMetadata()).satisfies(m -> { + assertThat(m.getName()).isEqualTo(APP_NAME); + }); + + assertThat(ingress.getSpec().getRules()).allSatisfy(rule -> { + assertThat(rule.getHttp().getPaths()).allSatisfy(path -> { + assertThat(path.getBackend().getService().getPort().getName()).isEqualTo("https"); + }); + }); + }); + }); + } +} diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithMultiplePortsTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithMultiplePortsTest.java index f22eb638671dc..50c8889d83b4c 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithMultiplePortsTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithMultiplePortsTest.java @@ -50,9 +50,11 @@ public void assertGeneratedResources() throws IOException { assertThat(deploymentSpec.getTemplate()).satisfies(t -> { assertThat(t.getSpec()).satisfies(podSpec -> { assertThat(podSpec.getContainers()).singleElement().satisfies(container -> { - assertThat(container.getPorts()).hasSize(2); + assertThat(container.getPorts()).hasSize(3); assertThat(container.getPorts()).filteredOn(cp -> cp.getContainerPort() == 8080).singleElement() .satisfies(c -> assertThat(c.getName()).isEqualTo("http")); + assertThat(container.getPorts()).filteredOn(cp -> cp.getContainerPort() == 8443).singleElement() + .satisfies(c -> assertThat(c.getName()).isEqualTo("https")); assertThat(container.getPorts()).filteredOn(cp -> cp.getContainerPort() == 5005).singleElement() .satisfies(c -> assertThat(c.getName()).isEqualTo("remote")); }); @@ -66,7 +68,7 @@ public void assertGeneratedResources() throws IOException { assertThat(i).isInstanceOfSatisfying(Service.class, s -> { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); - assertThat(spec.getPorts()).hasSize(2); + assertThat(spec.getPorts()).hasSize(3); assertThat(spec.getPorts()).filteredOn(sp -> sp.getPort() == 8080).singleElement().satisfies(p -> { assertThat(p.getNodePort()).isEqualTo(30000); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithSidecarAndJibTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithSidecarAndJibTest.java index 896d2602387ad..9560575704d8f 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithSidecarAndJibTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithSidecarAndJibTest.java @@ -66,7 +66,7 @@ private void assertApplicationContainer(io.fabric8.kubernetes.api.model.PodSpec assertThat(c.getArgs()).isEmpty(); assertThat(c.getWorkingDir()).isNull(); assertThat(c.getVolumeMounts()).isEmpty(); - assertThat(c.getPorts()).singleElement().satisfies(p -> assertThat(p.getContainerPort()).isEqualTo(8080)); + assertThat(c.getPorts()).anySatisfy(p -> assertThat(p.getContainerPort()).isEqualTo(8080)); assertThat(c.getEnv()).allSatisfy(e -> assertThat(e.getName()).isNotEqualToIgnoringCase("foo")); }); } diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithApplicationPropertiesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithApplicationPropertiesTest.java index 64fbf02727315..9b71dd3e13a86 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithApplicationPropertiesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithApplicationPropertiesTest.java @@ -72,7 +72,7 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getNodePort()).isEqualTo(31999); assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithDefaultsTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithDefaultsTest.java index d3499db1986ff..8e2050db79c20 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithDefaultsTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/MinikubeWithDefaultsTest.java @@ -70,9 +70,15 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertEquals("NodePort", spec.getType()); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2); + assertThat(spec.getPorts()).anySatisfy(p -> { + assertThat(p.getName()).isEqualTo("http"); assertThat(p.getNodePort()).isNotNull(); }); + assertThat(spec.getPorts()).anySatisfy(p -> { + assertThat(p.getName()).isEqualTo("https"); + assertThat(p.getNodePort()).isNull(); + }); }); }); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithApplicationPropertiesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithApplicationPropertiesTest.java index 6e8c0e89b7496..9baf8dd69659e 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithApplicationPropertiesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithApplicationPropertiesTest.java @@ -72,7 +72,7 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertThat(spec.getSelector()).containsOnly(entry("app.kubernetes.io/name", "test-it")); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithRoutePropertiesTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithRoutePropertiesTest.java index 187ac17189e29..a9b057e595ca7 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithRoutePropertiesTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithRoutePropertiesTest.java @@ -45,7 +45,7 @@ public void assertGeneratedResources() throws IOException { assertThat(s.getSpec()).satisfies(spec -> { assertThat(spec.getSelector()).contains(entry("app.kubernetes.io/name", "test-it")); - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(9090); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithS2iTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithS2iTest.java index 5dbbce800188c..bc4f485a61bd9 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithS2iTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithS2iTest.java @@ -102,7 +102,7 @@ public void assertGeneratedResources() throws IOException { assertThat(openshiftList).filteredOn(h -> "Service".equals(h.getKind())).singleElement().satisfies(h -> { assertThat(h).isInstanceOfSatisfying(Service.class, s -> { assertThat(s.getSpec()).satisfies(spec -> { - assertThat(spec.getPorts()).hasSize(1).singleElement().satisfies(p -> { + assertThat(spec.getPorts()).hasSize(2).anySatisfy(p -> { assertThat(p.getPort()).isEqualTo(80); assertThat(p.getTargetPort().getIntVal()).isEqualTo(8080); }); diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/resources/kubernetes-with-ingress-target-port.properties b/integration-tests/kubernetes/quarkus-standard-way/src/test/resources/kubernetes-with-ingress-target-port.properties new file mode 100644 index 0000000000000..594f0d5c7bac3 --- /dev/null +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/resources/kubernetes-with-ingress-target-port.properties @@ -0,0 +1,2 @@ +quarkus.kubernetes.ingress.expose=true +quarkus.kubernetes.ingress.target-port=https \ No newline at end of file From 7babb379fbf46c5f782c729370bc2f897b9a2006 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 10:39:07 +0100 Subject: [PATCH 031/250] Adjust preview workflow --- .github/workflows/preview.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 8345b309ab2c2..1a9db28e0552a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -17,21 +17,20 @@ jobs: workflow: ${{ github.event.workflow_run.workflow_id }} workflow_conclusion: success name: documentation - path: documentation + path: documentation-temp - name: Store PR id as variable id: pr run: | - echo "id=$(> $GITHUB_OUTPUT - rm -f pr-id.txt + echo "id=$(> $GITHUB_OUTPUT - uses: actions/checkout@v3 with: repository: quarkusio/quarkusio.github.io - path: quarkusio - name: Sync documentation shell: bash run: | - chmod 755 ./documentation/docs/sync-web-site.sh - ./documentation/docs/sync-web-site.sh main ../../quarkusio/ + chmod 755 ./documentation-temp/docs/sync-web-site.sh + ./documentation-temp/docs/sync-web-site.sh main ../../ + rm -rf documentation-temp - name: Set up ruby uses: ruby/setup-ruby@v1 with: @@ -58,7 +57,7 @@ jobs: ### If the jekyll website source is not in root, specify the directory. (in this case, sample_site) ### By default, this is not required as the action searches for a _config.yml automatically. # - gem_src: quarkusio + #gem_src: quarkusio ### By default, this is not required as the action searches for a _config.yml automatically. ### However, if there are multiple Gemfiles, the action may not be able to determine which to use. ### In that case, specify the directory. (in this case, sample_site) From 61f8151f754bbb5b82ef8fe228a9694091cb1671 Mon Sep 17 00:00:00 2001 From: skraft-redhat <57144373+skraft-redhat@users.noreply.github.com> Date: Tue, 24 Jan 2023 09:13:49 +0100 Subject: [PATCH 032/250] Update security-openid-connect-client.adoc Correcting Typos --- docs/src/main/asciidoc/security-openid-connect-client.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/security-openid-connect-client.adoc b/docs/src/main/asciidoc/security-openid-connect-client.adoc index 9d517f8875a67..ebe5be51ea46f 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client.adoc @@ -47,7 +47,7 @@ However, you can go right to the completed example. Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive]. -The solution is located in the `security-openid-connect-quickstart` {quickstarts-tree-url}/security-openid-connect-client-quickstart[directory]. +The solution is located in the `security-openid-connect-client-quickstart` {quickstarts-tree-url}/security-openid-connect-client-quickstart[directory]. == Creating the Maven Project @@ -57,7 +57,7 @@ First, we need a new project. Create a new project with the following command: :create-app-extensions: oidc,oidc-client-reactive-filter,oidc-token-propagation-reactive,resteasy-reactive include::{includes}/devtools/create-app.adoc[] -This command generates a Maven project, importing the `oidc`, `oidc-client-reactive-filter`, `oidc-client-reactive-filter` and `resteasy-reactive` extensions. +This command generates a Maven project, importing the `oidc`, `oidc-client-reactive-filter`, `oidc-token-propagation-reactive-filter` and `resteasy-reactive` extensions. If you already have your Quarkus project configured, you can add these extensions to your project by running the following command in your project base directory: From 29e7ed2d62da716da595b2e2152cad2d55bfba5f Mon Sep 17 00:00:00 2001 From: Michelle Purcell Date: Wed, 18 Jan 2023 12:30:31 +0000 Subject: [PATCH 033/250] Enhancements to the Quarkus contributor guide and templates Enhance Quarkus docs contributor guide & templates Added more info to doc-reference Further enhancements about site refresh Updated link labels to match topic title changes Update docs/src/main/asciidoc/doc-contribute-docs-howto.adoc Co-authored-by: Erin Schnabel Fix typo --- docs/src/main/asciidoc/README.adoc | 13 +++-- .../asciidoc/_templates/template-concept.adoc | 18 +++--- .../asciidoc/_templates/template-howto.adoc | 22 ++++--- .../_templates/template-reference.adoc | 16 +++-- .../_templates/template-tutorial.adoc | 14 +++-- docs/src/main/asciidoc/doc-concept.adoc | 23 +++++--- .../asciidoc/doc-contribute-docs-howto.adoc | 55 ++++++++++++------ .../main/asciidoc/doc-create-tutorial.adoc | 2 +- docs/src/main/asciidoc/doc-reference.adoc | 14 ++--- .../asciidoc/images/diataxis-framework.png | Bin 0 -> 51967 bytes 10 files changed, 110 insertions(+), 67 deletions(-) create mode 100644 docs/src/main/asciidoc/images/diataxis-framework.png diff --git a/docs/src/main/asciidoc/README.adoc b/docs/src/main/asciidoc/README.adoc index 5ed10dba6d7df..1f2c80a675d9f 100644 --- a/docs/src/main/asciidoc/README.adoc +++ b/docs/src/main/asciidoc/README.adoc @@ -1,19 +1,20 @@ = README: Quarkus documentation include::_attributes.adoc[] -Quarkus documentation uses asciidoc syntax. +Quarkus documentation uses link:https://asciidoc.org/[AsciiDoc] markup. -A gradual refactoring effort is underway to reshape Quarkus documentation to make it easier to both read and write (see xref:doc-concept.adoc[Quarkus documentation concepts] for more on this transition). +A gradual refactoring effort is underway to reshape Quarkus documentation to make it easier to both read and write. For more information about this transition, see xref:doc-concept.adoc[Quarkus documentation content types]. For more information on contributing to Quarkus docs, see: -- xref:doc-contribute-docs-howto.adoc[How to contribute documentation] -- xref:doc-concept.adoc[Quarkus documentation concepts] -- xref:doc-reference.adoc[Quarkus documentation reference] +- xref:doc-contribute-docs-howto.adoc[Contribute to Quarkus documentation] +- xref:doc-concept.adoc[Quarkus documentation content types] +- xref:doc-reference.adoc[Quarkus style and content guidelines] +- xref:doc-create-tutorial.adoc[Creating a tutorial] == Glossary -This is a collection of preferred term in the documentation and website. +This is a collection of preferred terms in the documentation and website. Please stay within these terms for consistency. * Live coding:: for our `quarkus:dev` capability diff --git a/docs/src/main/asciidoc/_templates/template-concept.adoc b/docs/src/main/asciidoc/_templates/template-concept.adoc index fcfeb13e5276e..5d74926d19b59 100644 --- a/docs/src/main/asciidoc/_templates/template-concept.adoc +++ b/docs/src/main/asciidoc/_templates/template-concept.adoc @@ -4,7 +4,7 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// //// -TODO: See Quarkus documentation reference for details +TODO: xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] for details - Title should have an implied "Understanding..." in front. - ID should end with '-concept' (using the filename works) - choose appropriate categories @@ -15,8 +15,8 @@ include::_attributes.adoc[] :categories: ... //// :extension-status: preview -TODO: uncomment the above for for an experimental or tech-preview content. -The document header ends at the first blank line. +TODO: uncomment the above for experimental or tech-preview content. +The document header ends at the first blank line. Do not remove the blank line between the header and the abstract summary. //// A short introduction that summarizes or frames the concept. @@ -29,8 +29,8 @@ include::{includes}/extension-status.adoc[] == Create additional sections -- xref:{doc-guides}/doc-concept.adoc#concept[Documentation concepts: Concept guides] -- xref:{doc-guides}/doc-reference.adoc[Quarkus documentation reference] +- xref:{doc-guides}/doc-concept.adoc#concept[Quarkus documentation content types: Concept guides] +- xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] == Guidelines for a good Concept doc @@ -43,7 +43,11 @@ Explanation/Concept documents should do things that the other parts of the docum == Language tips: - Explain: "The reason for x is because historically, y…" -- Offer judgements and even opinions where appropriate.., "W is better than z, because…" +- Offer judgments and even opinions where appropriate.., "W is better than z, because…" - Provide context that helps the reader: "An x in system y is analogous to a w in system z. However…" - Weigh up alternatives: "Some users prefer w (because z). This can be a good approach, but…" -- Unfold the machinery’s internal secrets, to help understand why something does what it does: "An x interacts with a y as follows:…" \ No newline at end of file +- Unfold the machinery’s internal secrets, to help understand why something does what it does: "An x interacts with a y as follows:…" + +== References + +To help direct the reader to more information about the content topic, optionally add a *References* section to the end of the page and include `links` or `xrefs` to other related content resources. diff --git a/docs/src/main/asciidoc/_templates/template-howto.adoc b/docs/src/main/asciidoc/_templates/template-howto.adoc index 7317e3581fbf5..a113412c9ac65 100644 --- a/docs/src/main/asciidoc/_templates/template-howto.adoc +++ b/docs/src/main/asciidoc/_templates/template-howto.adoc @@ -4,7 +4,7 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// //// -TODO: See Quarkus documentation reference for details +TODO: See xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] for details - Title should have an implied "How to..." in front. - ID should end with '-howto' (using the filename works) - choose appropriate categories @@ -15,11 +15,11 @@ include::_attributes.adoc[] :categories: ... //// :extension-status: preview -TODO: uncomment the above for for an experimental or tech-preview content. -The document header ends at the first blank line. +TODO: uncomment the above for experimental or tech-preview content. +The document header ends at the first blank line. Do not remove the blank line between the header and the abstract summary. //// -How-to guides are goal-oriented, and should help the reader accomplish a task (where there may be forks in the path). +How-to guides are goal-oriented and should help the reader accomplish a task (where there may be forks in the path). //// TODO: If this is a reference for an experimental or tech-preview extension, uncomment the following (otherwise delete) @@ -33,16 +33,20 @@ Your user will also be in the middle of something: define the starting-point tha == Resources - xref:{doc-guides}/doc-create-howto-tutorial.adoc[Tutorial: Create a How-To] -- xref:{doc-guides}/doc-concept.adoc#howto-guide[Documentation concepts: How-to guides] -- xref:{doc-guides}/doc-reference.adoc[Quarkus documentation reference] +- xref:{doc-guides}/doc-concept.adoc#howto-guide[Quarkus documentation content types: How-to guides] +- xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] == Guidelines for good How-To guides -- Don’t explain concepts; link to a related concept/explainer -- Be flexible; a how-to guide needs to be adaptable to real-world use-cases. +- Don’t explain concepts; link to a related concept/explainer. +- Be flexible; a how-to guide needs to be adaptable to real-world use cases. - Omit the unnecessary; practical usability is more helpful than completeness. == Examples Baeldung tutorials provide solid examples of How-To guides. -For example, "How to use Jackson annotations" is answered (with variations) here: https://www.baeldung.com/jackson-annotations \ No newline at end of file +For example, "How to use Jackson annotations" is answered (with variations) here: https://www.baeldung.com/jackson-annotations + +== References + +To help direct the reader to more information about the content topic, optionally add a *References* section to the end of the page and include `links` or `xrefs` to other related content resources. \ No newline at end of file diff --git a/docs/src/main/asciidoc/_templates/template-reference.adoc b/docs/src/main/asciidoc/_templates/template-reference.adoc index 9cedefd56b250..36f8a8f299f1c 100644 --- a/docs/src/main/asciidoc/_templates/template-reference.adoc +++ b/docs/src/main/asciidoc/_templates/template-reference.adoc @@ -4,7 +4,7 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// //// -TODO: See Quarkus documentation reference for details +TODO: See xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] for details - Title should have an implied "About..." in front. - ID should end with '-reference' (using the filename works) - choose appropriate categories @@ -15,8 +15,8 @@ include::_attributes.adoc[] :categories: ... //// :extension-status: preview -TODO: uncomment the above for for an experimental or tech-preview content. -The document header ends at the first blank line. +TODO: uncomment the above for experimental or tech-preview content. +The document header ends at the first blank line. Do not remove the blank line between the header and the abstract summary. //// A short introduction that describes the content of this reference. @@ -29,8 +29,8 @@ include::{includes}/extension-status.adoc[] == Add additional sections -- xref:{doc-guides}/doc-concept.adoc#reference[Documentation concepts: Reference guides] -- xref:{doc-guides}/doc-reference.adoc[Quarkus documentation reference] +- xref:{doc-guides}/doc-concept.adoc#reference[Quarkus documentation content types: Reference guides] +- xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] == Guidelines for a good reference @@ -52,4 +52,8 @@ TODO: If this is an extension reference, include the relevant configuration == Configuration Reference include::{generated-dir}/config/<>.adoc[opts=optional, leveloffset=+1] -//// \ No newline at end of file +//// + +== References + +To help direct the reader to more information about the content topic, optionally add a *References* section to the end of the page and include `links` or `xrefs` to other related content resources. \ No newline at end of file diff --git a/docs/src/main/asciidoc/_templates/template-tutorial.adoc b/docs/src/main/asciidoc/_templates/template-tutorial.adoc index 0bde8045281d9..53b4b8ee900c4 100644 --- a/docs/src/main/asciidoc/_templates/template-tutorial.adoc +++ b/docs/src/main/asciidoc/_templates/template-tutorial.adoc @@ -4,7 +4,7 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// //// -TODO: See Quarkus documentation reference for details +TODO: See xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines]for details - Finish a sentence like: "Create a ...", "How to ..." - ID should end with '-tutorial' (using the filename works) - choose appropriate categories @@ -15,8 +15,8 @@ include::_attributes.adoc[] :categories: ... //// :extension-status: preview -TODO: uncomment the above for for an experimental or tech-preview content. -The document header ends at the first blank line. +TODO: uncomment the above for experimental or tech-preview content. +The document header ends at the first blank line. Do not remove the blank line between the header and the abstract summary. //// Describe what the learner will accomplish (examples: build, create, construct, deploy; not: “you will learn...”). @@ -43,8 +43,8 @@ This file offers a few different variables that can be used to tweak what is sho == Outline steps - xref:{doc-guides}/doc-create-tutorial.adoc[Tutorial: Create a tutorial] -- xref:{doc-guides}/doc-concept.adoc#tutorial[Documentation concepts: Tutorials] -- xref:{doc-guides}/doc-reference.adoc[Quarkus documentation reference] +- xref:{doc-guides}/doc-concept.adoc#tutorial[Quarkus documentation content types: Tutorials] +- xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] Each step should conclude with a comprehensible/observable result. @@ -61,3 +61,7 @@ Link to more detailed explanation. == Summary In closing, describe (and admire, in a mild way) what your learner has accomplished (not: “you have learned…”). + +== References + +To help direct the reader to more information about the content topic, optionally add a *References* section to the end of the page and include `links` or `xrefs` to other related content resources. \ No newline at end of file diff --git a/docs/src/main/asciidoc/doc-concept.adoc b/docs/src/main/asciidoc/doc-concept.adoc index 60bf0c94d05dc..3c96e745a5ab2 100644 --- a/docs/src/main/asciidoc/doc-concept.adoc +++ b/docs/src/main/asciidoc/doc-concept.adoc @@ -4,20 +4,27 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// [id="doc-concept"] -= Quarkus documentation concepts += Quarkus documentation content types include::_attributes.adoc[] :categories: contributing :fn-diataxis: footnote:diataxis[Procida, D. Diátaxis documentation framework. https://diataxis.fr/] -Overview of concepts underlying the structure and composition of Quarkus docs. +Quarkus documentation is structured into four distinct content types: concepts, how-tos, tutorials, and references. +The composition and structure of Quarkus docs follow the Diátaxis systematic documentation framework for technical documentation authoring. +Each content type resolves a different user need, fulfills a different purpose, and requires a different approach to its creation. -== Content Types +== Diátaxis documentation framework + +We chose to align Quarkus docs with the Diátaxis documentation framework{fn-diataxis}, which defines a core content structure that addresses the different needs users have when consulting docs. + +image::diataxis-framework.png[The content types in the Diátaxis documentation framework{fn-diataxis},width=70%, align=center] + +*Image credit: https://diataxis.fr/* -We are aligning Quarkus docs with the Diátaxis documentation framework{fn-diataxis}, which defines a core content structure that addresses the different needs users have when consulting docs. What follows is a brief summary of the different document types, but their site is worth a read if you want to understand more of the reasoning behind this classification. [[concept]] -=== Concept guides (Explanation) +== Concept guides (Explanation) > Explanation is _discussion_ that clarifies and illuminates a particular topic. Explanation is _understanding-oriented_. @@ -34,7 +41,7 @@ You can cite design decisions, historical reasons, and technical constraints to - may express opinions about advantages and drawbacks of the concept that you are explaining relative to different potential use cases or applications. [[howto-guide]] -=== How-To guides +== How-to guides > How-to guides are _directions_ that take the reader through the steps required to solve a real-world problem. How-to guides are _goal-oriented_. @@ -49,7 +56,7 @@ Good how-to guides: - are practical (rather than complete). [[reference]] -=== Reference guides +== Reference guides > Reference guides are _technical descriptions_ of the machinery and how to operate it. Reference material is _information-oriented_. @@ -66,7 +73,7 @@ Good reference guides: [[tutorial]] -=== Tutorials +== Tutorials > Tutorials are _lessons_ that take the reader by the hand through a series of steps to complete a project of some kind. Tutorials are _learning-oriented_. diff --git a/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc b/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc index bcc992ca6745d..8da3b71c68159 100644 --- a/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc +++ b/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc @@ -19,7 +19,7 @@ We suggest you have the following materials nearby: - An editor or IDE that provides syntax highlighting and previews for AsciiDoc, either natively or with a plugin. - The https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/[AsciiDoc syntax reference] -- The xref:{doc-guides}/doc-reference.adoc[Quarkus documentation reference] for the required syntax, preferred style, and other conventions. +- The xref:{doc-guides}/doc-reference.adoc[Quarkus style and content guidelines] for the required syntax, preferred style, and other conventions. == Locate the source files for Quarkus docs @@ -47,15 +47,15 @@ TIP: To help you decide, see the content type descriptions in xref:{doc-guides}/ [id="security-basic-authentication-howto"] <1> = Secure a Quarkus application with basic authentication <2> include::_attributes.adoc[] <3> -:categories: security <4> +:categories: security,web <4> ---- + <1> Set the `id` value to be the same as the file name but without the extension. You can shorten this if the file name is too long. -<2> For information about how to create a good title for each content type, see xref:{doc-guides}/doc-reference.adoc#titles-and-headings[Titles and headings] on the "About Quarkus documentation" page. +<2> For information about how to create a good title for each content type, see xref:{doc-guides}/doc-reference.adoc#titles-and-headings[Titles and headings] on the "Quarkus style and content guidelines" page. <3> The `_attributes.adoc` include is required to ensure that attributes get resolved, the table of contents is generated, and content renders in the website portal. -<4> Set at least one category to ensure that the content is findable on the link:https://quarkus.io/guides/[Quarkus documentation home page]. +<4> Set at least one category to ensure that the content is findable on the link:https://quarkus.io/guides/[Quarkus documentation home page]. For a list of Quarkus categories, see xref:{doc-guides}/doc-reference.adoc#document-attributes-and-variables[Document attributes and variables] on the "Quarkus style and content guidelines" page. -For more information about the minimum header requirements, see xref:{doc-guides}/doc-reference.adoc#document-structure[Document structure] on the "About Quarkus documentation" page. +For more information about the minimum header requirements, see xref:{doc-guides}/doc-reference.adoc#document-structure[Document structure] on the "Quarkus style and content guidelines" page. == Retire and redirect an existing Quarkus AsciiDoc source file @@ -82,22 +82,27 @@ Where: [Attributes] |=== -|Name of original AsciiDoc source file |Name of file to redirect to| Example pull request +|Name of original AsciiDoc source file |Name of target file to redirect to| Redirection file| Example pull request |`security-getting-started` |`security-overview-concept` +|link:https://github.com/quarkusio/quarkusio.github.io/blob/develop/_redirects/guides/security-getting-started.md[`security-getting-started.md`] |link:https://github.com/quarkusio/quarkusio.github.io/pull/1579[PR #1579] |=== == Preview and build Quarkus documentation -AsciiDoc syntax highlighting and the preview provided by an IDE may be enough for minor documentation changes. -When you make significant changes or updates to generated configuration documentation, build the `docs` module locally and run the Vale linter as outlined below. +Before you submit a pull request, preview the HTML output of your AsciiDoc source by using one of the following build methods: + +* For minor documentation changes, you can use the AsciiDoc syntax highlighting and preview provided by your IDE. +* For significant changes or updates to generated configuration documentation, build the `docs` module locally and run the Vale linter as outlined in the following sections. + +=== Build the `docs` module locally include::{includes}/compile-quarkus-quickly.adoc[tag=quickly-install-docs] -This will produce: +Running `-DquicklyDocs` produces: - Generated AsciiDoc (`adoc` files) describing configuration properties in the `target/asciidoc/generated/config/` directory. - AsciiDoc output (`html` files) in the `docs/target/generated-docs/` directory. @@ -124,10 +129,13 @@ When updating extension configuration: == Lint documentation changes with Vale -Our builds use https://vale.sh[Vale] to check grammar, style, and word usage in the English versions of our documents. -The configuration for vale is in the `docs/.vale` directory. +Our builds use https://vale.sh[Vale] to check grammar, style, and word usage in the English versions of our documents. We created our own Vale style ruleset to ensure that content aligns with the preferred Quarkus style guidelines. -NOTE: The Vale configuration file is `docs/.vale/vale.ini`. +[NOTE] +==== +* The Quarkus configuration for vale is `vale.ini`, which is in the `docs/.vale` directory. +* The Quarkus style rules are in YAML format in the `docs/.vale/styles` directory. +==== === Containerized Vale @@ -154,20 +162,20 @@ Include errors in the results. === Use the Vale CLI -If you install the https://vale.sh/docs/vale-cli/installation/[install the Vale CLI], you must specify the configuration file along with the directory or list of files to scan: +If you install the https://vale.sh/docs/vale-cli/installation/[Vale CLI], you must specify the configuration file and the directory or list of files to scan: [source,shell] ---- vale --config=docs/.vale/vale.ini --minAlertLevel=warning docs/src/main/asciidoc ---- -See the https://vale.sh/manual/[Vale CLI Manual] for details. +For more information, see the https://vale.sh/manual/[Vale CLI Manual]. === Vale IDE plugins https://vale.sh/docs/integrations/guide/[Vale IDE integrations] require the Vale CLI to be installed. -Each has it's own configuration requirements. The Visual Studio Code IDE extension, for example, requires two workspace settings: +Each has its own configuration requirements. The Visual Studio Code IDE extension, for example, requires two workspace settings: [source,json] ---- @@ -194,12 +202,23 @@ create a separate PR for the documentation changes and include the relationship Pull requests that contain changes to documentation will have the `area/documentation` label added automatically. -== Automatic style checking on the PR diff +=== Automatic style checking on the PR diff The Vale linter job automatically runs when a PR is created or updated. -If your content updates do not align with the key style or terminology preferences of the Quarkus community, the updated line on the diff tab gets annotated with the Vale suggestion, warning, or error. +If your content updates do not align with the key style or terminology preferences of the Quarkus community, the updated line on the diff tab gets annotated with the Vale recommendations. To ensure that your content gets approved, fix the linter errors, warnings, and suggestions. We welcome your feedback on the Quarkus documentation style guidelines. -If you disagree with the Vale results, be sure to add the yellow PR label `needs-vale-rule-tweak`. \ No newline at end of file +If you disagree with the Vale results, be sure to add the yellow PR label `needs-vale-rule-tweak`. + +== Previewing doc changes on the Quarkus website + +After your PR is merged to `main` and the branch is synchronized with the link:https://github.com/quarkusio/quarkusio.github.io/tree/develop/_generated-doc[Quarkus.io] website repository, you can preview the resulting build output on the link:https://quarkus.io/version/main/guides/[Main branch (SNAPSHOT)] documentation page of the Quarkus site. + +[IMPORTANT] +==== +The `main` branch of the `quarkus` repository is synchronized daily at 1AM GMT so you will not be able to preview your changes on link:https://quarkus.io/version/main/guides/[Main branch (SNAPSHOT)] until after the next site refresh occurs. +==== + + diff --git a/docs/src/main/asciidoc/doc-create-tutorial.adoc b/docs/src/main/asciidoc/doc-create-tutorial.adoc index c85a6c7b38e76..2fdfe4f9522a9 100644 --- a/docs/src/main/asciidoc/doc-create-tutorial.adoc +++ b/docs/src/main/asciidoc/doc-create-tutorial.adoc @@ -15,7 +15,7 @@ Create a new tutorial that guides users through creating, running, and testing a - Roughly 15 minutes - An editor or IDE that provides syntax highlighting and previews for AsciiDoc, either natively or using a plugin. - You should be familiar with the overview of what a xref:doc-concept.adoc#tutorial[Tutorial] is. -- Have the xref:doc-reference.adoc[Quarkus documentation reference] handy as a reference for required syntax and other conventions. +- Have the xref:doc-reference.adoc[Quarkus style and content guidelines] handy as a reference for required syntax and other conventions. :sectnums: :sectnumlevels: 3 diff --git a/docs/src/main/asciidoc/doc-reference.adoc b/docs/src/main/asciidoc/doc-reference.adoc index 103cfc7f591ee..a5e76989ca3ec 100644 --- a/docs/src/main/asciidoc/doc-reference.adoc +++ b/docs/src/main/asciidoc/doc-reference.adoc @@ -4,11 +4,11 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// [id="doc-reference"] -= About Quarkus documentation += Quarkus style and content guidelines include::_attributes.adoc[] :categories: contributing -A detailed reference for the structure and composition of Quarkus documentation. +Guidelines are provided to help you to contribute clear and consistent content that is also sourced in the required structure and composition of Quarkus documentation. == AsciiDoc syntax @@ -139,15 +139,15 @@ Minimally, each document should define and id and a title, and include common at [source,asciidoc] ---- [id="doc-reference"] // <1> -= Quarkus documentation reference // <2> += Quarkus style and content guidelines // <2> \include::_attributes.adoc[] // <3> :categories: contributing // <4> ---- <1> Use the filename as the ID for the document. -<2> Define the document title following guidance in <> -<3> Include common document attributes -<4> Specify the relevant <> (comma separated) +<2> Define the document title following guidance in <>. +<3> Include common document attributes. +<4> Specify the relevant <> (comma separated). ==== Other common document attributes: @@ -198,7 +198,7 @@ If you end up with deeply nested sections, think about the following: For example, if this is a reference, should some of this content be moved to a concept doc or how-to guide instead? - Can the content be reorganized to make it simpler to consume? -See xref:{doc-guides}/doc-concept.adoc[Quarkus documentation concepts] for more information about content types and organization. +See xref:{doc-guides}/doc-concept.adoc[Quarkus documentation content types] for more information about content types and organization. ==== === Links diff --git a/docs/src/main/asciidoc/images/diataxis-framework.png b/docs/src/main/asciidoc/images/diataxis-framework.png new file mode 100644 index 0000000000000000000000000000000000000000..dd5dd16d2b65129773a40d8439905b2e010e3d54 GIT binary patch literal 51967 zcmdqJRajSR*FH)}x6%zF2vQys*te;Qy(d<#e1M+C6i2HE}dYv3Ox;YtH3l>S%8M!pYLk zc?-Q>90i3DMNw8t%Pnbr%GHZ>cp7ut!bLDqNrVZfmc`lX=cmkfjEu7ws3auOz9BrV zY5K&dsD5Fu?WH~`eNv2zAdQPCRY$v`;OiSeswrr@=6)G6{(#ZkwWRavtGZM*mKV=@ zldLSfoeoJAv6&=gk)JH3XKVPxB=B>7?KUwRGyHr*#hm~5XLlPUlS1I91Cui38uF5H z6m$pV70fiojH<{>%+T>$-XJe|?&~Lnyds)__y5s{WYkBOSoF>R?u;$(#Uvp~K;Awu z)3Mkc?=aVdp=aSA5~BS7-M9b0atr@I`Vily5h_Mz<~1lV9A}Z_{1PcyS=Oik;---V zRzSR4gnpdx0yXJ6t@k$})N|vV8 zTHaL>4RPes<4oWkN?BKXdwcuW4&08nnaud8eme@kn5;z2(tLwU#xW+6C@cGp2)Ps= z^cOE)d@-sQZwsdhP8778-(BoJ-XByOsP%Mpb8{OL@kCzPo2MwdFGzCjn!lR($(3xi z)F2kcF9zT5dLPeW9sm9NOT^~CpLczAb+yuEgPKKAT2c~4)aoipZNvX{LEA~#m^m`> zG0~fvnuxDmLsyL1_1auo3W_)Krh@Cf+rvacLKXz)MT5$mm$K;9sSE8rH)6-CNuk_l z%F6h^O0E3u>Q0as4B)-Bh2wegtlD)eqVCn{)88G@?$%vzLRMOv?jkpM$F%KjBTxO= z>y{Q-J&VAQ5ZuPk?8xtJC(7lNmEZm=1UchDQl!@5(1#;m${HZ4r9}!0tdS{C;O6OB zVu1X%5&1y#v8)I2yiZ%OYmTNpKM2^6Yd(A!osjUxAB%|j#*NmI@$1YP(ny2g$P6GJ zt8}>j^>JYY0nOdn!;Ohbr)5GuKE5LNy=N`0t>YqLva(v(|0+W3*)!IR%*@-?LpS-Y zhp^$=S`+SAq-p1-YvwS<7KgAgdqfxiyR@v)we-PNVj7w-JPK~f?7_K6i3>?64%p;- zVq&(*a?H#eSCIPQQ%YBtOjkD^`l1olz1Y#!CGFyJ_s?){Fa{oZLvwTU$P*U0Qu||R zsK_t5FDn~} zta%3CdQ%|Y@oqQI&bURY2^2au0YU4@-g2?kAS;{=J&Q- zobl|(N6X=_WJ`Uikw!k}WSyOz<-PP!Gq3-*X1148edgmH8~W*UW1%R-1W*fDOLE6w z7ZaOm6NdY4D*CsWP+a{v57}VJZ}u%06co6vBO0s@b}O=Ha0ey?7{Jy7BDn$@2W5{ zb1Zx-DS=~yo~(+c7?Y-%Qv`Qab1TB4L;p3B7HnrJ}jc|{HKaK6}?Lq&RjO2NHf+rl+qvt- z9osqk`**;H50q{m9*)>DNFV#p1=kuzcE++TWW^gw`(qOH7n#T`^fmaQlaP@G!qHfO z{VIQ{{U+ol!}IH^u&g*t#N^~b_ao`0SYxGPSpId>**||mSyet7FZU)}PE{W`(TThX z={WpvdqLLm-vk%6xk?h}AdUS+i^J^MGwF17sCRVe9wXz-%o)u8?sGvkNyzWUgZHz2 z5|;s*IW194GTXhPTMdnkjU!L~dxV=`%+!TPivPt<7J1pkmg@Byi->-9P)#B*F_8un zpVD}39SWZ5KLzi3xb7DjNkq=2dqpv(|C{*(Gcz;ez7(;QflRD+A~?W)#U-rJMQ#K% zy4VyJxN@4Pd? zNbmIm_adEM|y}fUJy+ovFG!A9RAl^d7 zjCXT5jUWn23=37gwa?*^1rAe`CzZshr@A_^_0Sho6!qL;A-8SD&B-ccBz)3w7xO+7 z;x?!bn6CAt85~`89xFD*x_b3$-Zvs?Y&d?dGp{J1vG?U?j;A?+ zY@M#fkq&Kbz*4=;`jPY2G+kl+g@~c|iFxJs?};^$u3OWsP$JQBaTsurY7L3}8&L!W z1!1T*PE62vdwXy1?D*B!*LPlb#%8i#Xd_tvRfe}!vq#ABxZt^CN{Z^j&#VVJ<j&G<;nEa<+gtQ5*KtfhXrHX@fQ{)$s+!AduuoQOeO*368B+ps3YX0(8bogK%z zj2dQXL_~z;NFG&N1f9)Dm79hYKXsl_Jv}!!_sVFYQA#|j(+w6D{HY z@i^K<8po5Q)K8yS@^p&P3hVxId=#`ZoOO(3kZ7xZxfZI=EiO)<`?xSjI~N1xCMj-Z zb#>E^9|ZLD^xKDrLEpcNPEJkDEiPg}g9+PBj*j-*n5dA+(xfU(wQWnYs zPenphlm<4XC0W$fe)Z>#$r|@-I5;@{)@4N%6~URA*Z+*mrc*=2!{;*ciK6Y| z{IuA#J;DopWO7D;nt=YE8wwT{meyA-_P)Pr6lhhK+PT_4C~sOkd-nAF@4;A^&EsP9 z9Wl>C;~yUdu<`NvKNk*L?=%xh%#P&iort42&CUvirO9S>#&5=vuMkqSE?!3D(B1vRiz_eO+Bm1qR>kSNfSyFzU~i z-=`zxw7c6C+g9TDuA)K^5a5OWNo-QmTLGI9NU~KF)nB)j- zKG`*2pRT2W3YCwf7u)u^Jn{iJ@#u}ugV>KBL!o}=`qO0)7>hJGHno(rr>&u1G_!D# zvi<%0%Hzk6V|N|5XQjLjh97Sq9r0*0rbI>gLNhbHI6Dc%9D|bOx2l2`(~~584G7%d(%HMQZ1#=)YSC0%eoHITH$oIM9_)$e^R_A zBr3WrOpoc03Vjmb$MNBWU9s1RBdxIG6<`zc?Gbb;)1xHUotE?N!&g^npp@JoW9BTV;(aUhS3*U)n}Y~wf&lQQ zxorH>sdzyLeG(O5CA1dP@aRTkUlv93(Ws^6{nbIryU!`-=jRdD#c5bW3C%m0kWLyd zWNvlUs?1g_x5&<&Q>9zW=i-E|?Jbo*Iu>D?O5$Ce?=D=>Oz_y)vX?jg*Vmu7w6#5* zu5m{Wk;D4f?SP=5444%spQlQ#9%>cnQ^7H>gp=`6z~O7;&yb0vgt{nT2pH<2RAUA zn3zyXc;5q31)V!wJ70Hh=JKLqCr~;^3qX)0Yb;eNhN`M6YnH*J#eKzEUwmqQ>{wQn z*Nw)!7f3_k<@LEZL%U2dLdUy* zza1^U-fQ*cvt&lGumga$hohrwN*cz6)<{ue3WC{#xIg*l-<)EJjYUc{r zOhJVY)cg3%t*q#*dwCs>TQqfdKY$@Qv;GpMDG$81H2~*YkD(wJmkKmPCBP~J6?R5| zqfLK$P>0KN8dPh+KnaDVM~*5^t)bD12z>gr!^6X;JM*o9-0>+X+)F(P*OQWxWQ~o} zggg)Pcq#EQxC=+uT480cpg0_Fo5b#3=0ShLgEHDV7&XF!zBusR)ec$Tl0jjgiy9Qh zX}1M}uwAAAVns#847o7!rs3g7%E=ucYH_C0DT?>u{Z46Usd=Bym_k(Ql>b~%0h zBuXLsG&pz9-n=jZ!i`Bl9r9wT8V-KX(=0M_a#oa(*;!)%JGcgSnV6*TY3?e+9p1K| zm5l!I!Sd(bZ{NPPK-UW_DJg-0L~7BS#J;Ud2VVsR^7L?hTyFZ-iLFIP6cd^+OmI?B z*G6%wc_e^InBlDD*-|V5*J~OW(12q+wf^$Xoja|S4hsRv$;p6OQad_2 zc&)^eRoT4%uCi(5Xx@O`xEVn&W_@^@>n(f~;8A2gHVqCwe8*#Ch);h{N59&+GjG8# zD(7J~Zh|uF-REQKdCtt&uVbLxhLVtuhYLwk>|RXihIvd{our*hM!{o93f=A6#l;0w zU??>2Q0Tbi?u9r^EzQA1axhg}0Ud|wkC0;eOHEe4d@z*r@cz47k5zk;MMrENhmD>#*6d2ez=GXiCql=&KKlD0T zjCb2#ApxQC&F|m8z2fPF>>2kx#8i_-0s&FQ9-((wnR+jFkpY8Z78a(0BPr0Wf)-KY#f}% zgSFAUe5o>7X=${&<9R%M260;GWUWLJXTA*H$Ed(9ivLsyw5oIuIrlv2eaEMpuAXK! z_*tjq83BShfo{)3JtE742v%Q)tz&mhxd4j*LY4!te6e+TLA1~oe&)L#fqJlRe|^>y!(6ubrNul!`8GILJCq+QaAZosWV~>MpfBjYi^y`U5AxogMeR)%4bIEsOcH-ZeaE6V0Oo&9ZS8{_3?p7uTpalT zK1@4fZdeX|Az@WZd44#$=2%60{eDDCNAz_E!0nt*zOl?K0<6`}Mdy6SMq-KeFo*NzBo(r*6)&dpe!U+X@*REWoN_Tb zv>5i(T9`xeD#Bo@oR*&g%s@~hg1Dds!Wk(0IKpz{#vBa5?Sq3>psKr(3{zo#LUHUP zH?bdl4X+e-=XEsz4nAIDaUDt+#-7)UNy~@qq_{}&f6=Spe$QPG{ogzld<%-r0BIXO9S zvlYilq`}hZl2wk2yv{4?&Z|E`b>eJ5bU2BNV|2KAp19~IdFPI&>sxArmi!+8v!ED5 zQ)7Ke*c(|=atE3B(BPl;CJDoh?l^UiO-z`Awg)h^4Fou4RlUpsV<0-f1KPi6WcHU> zs3i$IVeahgux68ha1auLjZY_1DqA<(BA&;Z%4zq8;?edAq74B`|>!V!h`?)9CU?G@?vJH?|Ua zPx=S?c_T=B>a`v(p$zJEPKk+$eN)6dVL%%L+62j#b#aumO6(8(p`GT(rB7S|4N%7p zN1Fx+!f)%f1D&dkFas%QnA^fX=EaRu4QG-zbi;rTf%*`zy=|{w?@b2)1xyP`9UYxF zE+L*D%jkPQCxt=Vy?*Z=Ede#ZWWD!!Xjv_6AR`EKBFThd6g<5Z2`#>;=!o6c5Be^nfB;!{JP(hyZdLN9^Ye3L(#GqkTWqLy%GF*;*i$iZNRb1E(F8|{1lb;m z^U@B!JpOvr3pNv2JSCHbxsN4v0(&N_)t^TcaG2~jCxrn&XCSPB;OK}yP}&bvUxZv{ zt0r?4Q7JkY>WBXQIuNrE9~1MGc6v86QoPHF*2r^1z?4f*RyLs1iu}l{d zL-)ap4Q+tZZzW(zWr?)J3)ply4t7Tx7PceOgl0~Ep^*gWE95q!fFxg?9tPIdiUIb0 zZ>Q$~f+y1b*;JDnGVez!E4c!`R!~uq8!a#ZK|`bBg~1g}OlE%m(vEmTMvKyS@S+T; zDAps?+woP)oSdBaKp!dZxfPA8%3AG*T^v^L z&GB1ul-;Wti_95Q615$6jsH|9BqRV5z~rYUnD*LJ$z7KL2ne)Kj)jelhE0QmqyBS; zZH(ra&UZBiK_}cpD5oTmm$)#o#lh}ij9ja4g3!{vW4SEwdGF4Y*?A8mjFSk z=;fMrZmBz$jZ(&pocC(h=g%M;qX9zzFwcE>h>~XB{odZmN#^l+&b=`vWk&u9Ajhz|Y?%YaMJ)ZEOabX`P*8g|GRW-rK^8W|gJ^XX>eT`Yby zjTD0IK`r>=Elh~@sqdqoyvX9?<0*if2ewBtn8I1qRxIH(g(6h7!f3eBI?2cnvnDz^ z`leA`jobp&@_p9WbkHY(z@K0;sx1!>Es#-A1Vg*bkn+cDQ;Z0G+FLbN<-~@MDdV>g z7)dL96|lDuTr7a5AHTdE3f@e z?F%1RZ15Q#aH`!HkiRDZaJ16rQXG^xjTN(dOGPCmG5|lLfcdVhta$Cgudi!?%<*Z! z7a(0|FcHH%sIGiV13=8dSqOwaao6^j)`|iX=;mYPwlrQ|Uj5J?ud?TI;!Gnj1VD0z zbRe#Fr+;qlErb?T=|{kn(|ac`D|-cDSD#gApjx{*PB;jbXisAbNU$7JFsgoJ10#t< zyMI)?M7aXzMJ5PeDvX?~$Z~+W=fiDuV8x}nf6WQl_S5-Vsr_Qhf_lEat0IyPm-m17 zj&vyR$>3MI3P1{`%HJzbdOA89Ktx2u!Y3uq7Dc0fmRL!g+iAdzEpk|puQ^#t>>CbR z{`#bZb^6tjLEe)ROxU*j;nV^>)G7^{o12?DwH^X6*xv@?QOtv2BLmaowq-x#@#(2v zQUN;vE)dCsV0tckDz_TlVZp@2oCmseS4MG&d@24J7$!e|{#4IarOSO$;(h)X zv2)-TyXT%zgBssmY-xq;Q9vG$g>k)W0G5a;;2?F5IB1lQQwH=!oL5kQ^U+Fp(}FO@ zysAuOVlvqDe1ct6Un03#yDxryPDC|^uJkv zhQYxS+4j|Q&;kZPIX8_B&hE1_;lWnBBpuGXpEb$Ca_- z>j>e5u95+O>BO)enrWrm4l_tJppr)3^T~zEK#n)ewRyxNo2h%1s%Hd-88|6$W}#ix zk2mvu>>lz|&)2>VM;qp4GiCbW)F0?cFw1Bu)Y(FQhU*ksd z;5}z!2+4I`IJxy(${+i{0{h$UR-SeinO~Q{jy^fsWKWK?u zq*@(o;03j{&BLX;?fno$%rOMx1K|V9A@Y%pD$;n38`1b*Oj2^`mfqyIg&}}c0cal_ z-!?>j?-7O1M|GM(>$=CPniK+v+4OjO4#jtMFgp`GPMs>p8&6G5^DofiX+nso_^yCi z)RrdYk3ed~uL4HP2s}0bju8!jKYJIK@;~LNhx@hvaU;`4*TU=9oJBxaT<9D0=}WGw zz6okNFcoc|90x~75E#Ig=oMs$VMzxi9I#_0EJ$7QT_;g33Ab$&nP9?Kn}%`SiFT9lXjJ6D}!F;w)-0g z8VWH3LnKJxKsu;=)D#pXfhnZ`@_~~mEo!P1a|J{;uboy3A(wSZgm{94r<`(+O2B%k z0UBi#u=YK>;s?}Vb8#By`%aSrjQ~jv!~5lnoXLHdOnA0U(KFs(wK$M>!GLdnz*8Fl zou(ey%lv7RE|__sal#Cg2P*as_Ipbz0l~qUpmMq&a*2vgP#RMV1LoxjubyQ`ubIrkH6?P0Lv!`42?Jx^M z_1UgpN2j8q5^`Q4?oAO3gCR*;`CPG9xpUERsK9{6&(CjVqJpRHbW_ypbfW^BkgzS3 z?ACVIt-^O5F1B*4v5mdG1^ve5H>=jjog+Eolt3M&5Vpy!nqOD|L^wA;uQ~e)5+S_a zXKwpzqeO5NTdyQ67o9c1u(8WeUMP060f>+Y62g5}$b1ml6)V;_7$`*E?;lbbxi>P1!H^(&b|E0VVf?U+5bc z;29JEK|q*r^!58Gxq)I%OZXWX8N4vBq_?tA(J>jt#OT0O(@W_q)8ztD%^&tU4S?-Q zfnLcol{1)Pau;VH{jzRU2q$CS(#{Kk{t)&tnzVEyAmGZ1vq+dI|LO5@19-E5E^m$; zsDI3~N{H?Ic{U;dz+STV_QByHH@{kz6o@IXTOY(`gNx`7d=~OWM2CN_uW86Lx?^IHt+r%KEOkF;CLANkQf{RAz@(%P+Vtc&(S#v z2@em{%;D5_!hd+w3h)=O7W{t;NRgb=(}RxwRIaW^(rh#Ae*zKL>S4C397I`oO`5Kl z`n@0kBG(M+7b0Mk1gqq#r=yAgUAcbG>zMf8SkH^CQ%{S9oo*>W&siTxZ#a90LCUhQmn=g0%%qo~0Dm50D?p8-Qke z!-Ht~t{%sx(*l$Tit(0Zv1>O*^bPdO;Z@inQ{w!~#SNov>wj*kaImXd%-D zlny3Rs6gl=6Oa>OtSNI$;5u#m5>SXS)BNuCuusEbQzBnG3=r=er2IhIvi9SN8KHIP zxyq$i9zcu+td3PcfYXLDhwS*)C2g5ImN2 z;GN*%eP~@p5xzEngzP}YYJh#=`lI}jCWN9~4eUp-G3ek7Kg%1w8xL7ZxH&|?h-J%T z@08Tf9z?QK2m^tL1(?cDB(7dqj^^CCC&M)GTB!_<%^ERpKIw@9H4iO!}nqK^u)-11P8<3-?yA7M3z_LX(jJ zyh+V(X&ko?Wqr6cWB2^J4KJlVH~>H$YsNO7sF;KL*!0uU#ib2C2xhJJu z01H44oreqiz;6}PnRy$!AM`9jdq>A6a98dB46)zy*vF;=VErxJy#Qix0P8UkT^EuP zh{}zE5TggSIuD%s5}$RZ$%3P2}x_YXm!>{E;8$ zN1|Z+d}~;-+s-`mU=Pp6-g4gpoB<@k2*5j(ED3a9EF>2StOL5&!&%3y9bd%<51OGM zkhmO}EIKz-V98;OP@(^X*hm@(KuEFyf`~>OMhm)YV+kG-h=~92vvMQE7?EH`Sos0s z1%Y@5Q?UuuQL|kSAVR=e?O(oZg(i*AIXFHhpxdyzPHKaGFkX_qV?GP53DMX;@>@L} zsMG06+GAC`isTu9%~FEi(?nt96}{CWFK259pMAXfeM`O2Q0y($oi+}cl)r!fBKGx{ zN4eym)lwrM6QeuyJf~>E1n?kY0f4ylAf8)5^t`l`AIWt{W7k~#U6bn#Htr2@SiZp*}xt#dXh{8*p&9}6Q))gZy#T`$> zhK1}eIgjDmYUz<7io_aMRxCMniqiU3BLa&{$z@n$O=cVXD8;>m5Qz#9!*xEs zZyklpfyBVg5#{E!zdxd|AiPVi{9)-Q10-K{+h&9lRteqc)d3l7P^{gBW8XqaW4wH3 zBLvTOW*gDLo-G?Q9eIE2F(H79*I{9J7pF6q;(}*!Sv+z}kb-Rj@f`^V$bw+KzcRo& znnK>%+Y1PqFyzgfM)2N?UQCIAbwCQTSsPf253;zb%jo+*PfzeA;4^q_qav~^G)9C! zLupDyFRNqw!R$jK4Ir8eQ{R1#z}*jG>B^u(4ip%OBHsl01L&3B>88WW*-$db>4fV* z42d__*mU{PVzUB>pBe1|bA*?+if+~TLx*5yVYvdCazXZFkSL%3D#bx=8zMZBmuJfo zppaHSdi{0MndTUl9w8IBM4u46sHqvBI9;{8{zL|zKXFd!*Akj0vzTK(Xr zGJGyCRv^#=qjQfm27CudY>s_*6}}Vh8eD_M?E*C=Ik&#T)x$Vjlo{L`X&y1;q6PJ#?cAtuzfq z2=FuvC>h9mA)b3lxn2}Zk_<4AAyv~34nCqDEx!ke^)?~<2T?tJsXJ|p7i;V5Z=uD= z2Z~{rezbG)Vm1-r2dds}78{Qp*7}crHK;StW!h zH@?OI8N@Se<2Fb?v!Lx{fWJ=fwA6zz7sMy7Ap(gZ(at!3*cxOI95{L82=787 z?~t>@h089vNl6Rm1||&}D5sEToLT3G)kMMzNRial)dfaqo7lFlx@D{1ECO)~{0qc` zMAi?n)xa;w0EE>?hXo)72)79mgaZ{A0hAClONTNU`9+rrdJp3DAn`wt$|C_TWk8ch z+)|{(;e#@ufg=dz-o1NoRcIaeo_FE3LZgg=I3Ls>Gei@&>Q1>Kd~`AyA_@ioIAw_X zjnwHiHq|s})L{OiLTEi~G9u?ldea?rFIh)NKFFQ{AVRWIpgJJK3qflzeH{Q|!C6`u zer(hVU9KOpd$Ff1zhAIHOjGd1B(K%@e+`_t0PRd3SG$~ga78fd z&vxkLxu>b zvd&O&qyET?>o0H>W7Hw>0FAESjo~f57&X%FKmZE@klWndjfeP3-sd8SDtmgg1xa`l z=&vw?5x11HAbJBB3w0#KZp7NM*+#5#zx!+-h^!8P`(}oY+W;?5pKI~>R-8XB@Ic(Zg2Z4Wl00k zLLR#TO9oQR5avXvC+ke)(ntu8K{Y9O+1K$g{dex?4ohbaNakxd!`>j;DZ~dgz~O~B z!biFxT&5y`^=BY{Jj;i}MF*(vUf(iO9&n0gL2m}851)?g4+{&W5ep<7Zku%wBQZcg z;g@>l1bsJf^vdekz9A2KAQmqi)p>s+@uDu8UBC}J3y~7@z*ZCP6X^4lqAr}E zIaup2Bic96Iz+vJB_3V3C1(NE6$y$$$}U$lV3;LtV>50k;E;~JqHg9d|i zlwakxVbGBiy=nr8k;k6^8wVSFcR}K=AmxKD4O1346IhnuA#y?fP7E4#6UVi$zst$! zMP2gb=t4o@-vRY!0aQ-zXzKabNEi^JB5n}(96;h1S#e;~L3bkrsjC%^ffc8Zqm8Hm zXp1%OP6&8_iCV6BY6y7?cw&GuSov*aq+oATVstbrFbTldj4;|EVSiV63jQ2HHvg<4 z3JPe+co1-}(nn$<$H&KMfJP~AKb4J+{VcWyYK#t;F-R({6n@{Z2#aAxE25n}2oFds zRG2^>7QuUf7hi*SO1}2-F+eF$_Q5&C<6=wAuOX3c0DBaAM_26hH}mcy2%I32{VpsB ztOoK#7m_alef9mXFJ|R!l1bRY81lNh)QEnmnUe+&C9JRGySlmp`kM>%p&7LjaeYX&)^|im-C)0Ut6K-%9GB?|oZI#F^*r%YedwDY*5%RT!-GAhvlhIR zZ?B1+)1hxsBQaan1v_ z++K_~nupUW56_e2iD=@HkUSy!&(kq5$pMLjD$LW@Z&{UW201;dfNSvZoDT9dOc02B zH%UY9W%eM?3!0fVfN}dLvyYf0`rv<`MfI!SnoW_Fy=0We2Ay9zUwcC27CeW<{O|dn z42Wi>;*I=;2OQ`TMA(Y%OIy!p%1jv{8*|rRV^T}>$mzr#b zgnYUAzYhg%uMAv=gdicv5D1>}zC3qDz8FGme%aaC`6UX-gJtlM@MDIK+|$^Gx6e887&5q}(|0ldlCl@;*&H12s6EvIC*8*5h~gBO7fsGgn$yomOMa&KspwO37^$$8pW~% z?>LrTI-A>GEd3#R5L&rOKe~ttYVIG#{a;Dve1TF#W-X{s6h9ZnGN_1buh80CNXUA* zsnX+SK18=B3t+7Uic4YAPv%yGE7BgAb*nVt;d& zUz~#lT(>NzYlK}kCvoDG%+J;VVZwteoY8Z5fxM({s<^dk!&Z`-?^bDkenMv-5I%DD zUe+k=KKe`Qq0)Hti9Kcu)in}jpq**RDv-yfANAwgq+Qu;?p=Cf>9exQz0sf>=Bd0Z zd-eANZx;0k9GxY+JjaWE_}PjNmvbWICJ&*JLYDONwJXQ`uZKLijhEH89dlg$rlcgb zIT@W$SlE}DI6HkmUj_~RUN{>KtH-7Fz$4~UK<`C6T-=?J)Ff@0E|AowWpqU`L+75crm9rqZ=mRboO?Z zp7X6RT`fS%z9e8tLR}X_Nk<=AZRj5K{oBka>~=48CPbxSN5i*=(D#baG1~A9iXk;Y zz{c;?(|27~G7;0kl|g+uf0_O@ z%7sUiqGY(BpDwy@>1jimc|$P~Q+1H^uGcdf4}mBTEQMN3T6dz1ZlWmt+$XP^H^jNwfx#CwkA$e#zdql)o{T!vMe!reDtm>BdtE;4h zlKw=F5%DajInfP^7?KTGzCMGOTsB)D1)HVuhTQPJ9ALg3%_J7)(ddimbc#@%GES2Y zOR{69Peq9!#5(&WRhmTD*<78>W?*0dk1*kK>Xu?7Ph^5n3$zXkN z;JxM6?I%sgsk8|=#B37X!qbI4{$_2j7-L?b)nlPYp>D*>?0Vx!$Ky=S;OU=}cZ8t+ zx?DaXbLx)08-|jFN9-!TT-Wm!Rm3ZC@Ab#jvo2PXj+2}b25hfu?gauB)NY$817Cc9 z^GcH8RANcjke(?g#H-=_riwZ`3*^E2cGWMw?SiM!kYM*kcNBrpUlg7`6n(GD_|i%G zzF5bIH);>kb^?-0W9?8z$kJD=&% zhPCF;`O9(9t>c?vXFK&4u7jehI7}?g*suAe)TK0}#MD&#N<5i44h^^1(lSDngk|OS zNq1UeOEN+f$YedX=+FY9|k1wRpTU;c~3<@Uizn-6MKTX>wKIWJ&cynWcqeBlr zF`E&q#uq!{c?VGq*CWH1hsPT?f^e+f_>OJb8x!)C-vL-c5 z7(05BCdLz;5$|qOFIC9zi>M9TNiRa?(=Jvs$MdB+UJ0uJmUA`3hmTby>I<%7|UiMt~sC#MN@p55qmd$>EQ+C8$ zqHnj_^R5E!4EBVy|C4~vYO#*y)cg2Z{H<+BhsCkPo2DE!h)SJ%uV@sP625-A9I4ZLi z$ujZCtuJ2)Z`BjY>Q$;?2&4Y_uR+?hPgYDg>{QLF&`kCLQ*wvvG0qla2#Fw^S zaoG-b56c8)o0e_{lTN6 z3wH%khTF!k|JsjoE*#=T_*Op^D%Y=iAh2Y?qwK4A5Xm)Ya@lS_J{l4+>Q>dt|K?rM z0q>u(rKKf6SY7U;Q^RXW`Go;^yKHlrl%Vf8Oe zv3-J11o$l2*y(5WY6U@MeUiV36;|jOYaf!VInt5Z1s*Igm0$aGXgl`tZql|_oVUNt zdtS>eURGH7l-)BXLqYFBC**=5j)`$UJWGGeyttvcCWv~!IwSFC24y5Tw3b+%?kFcM-AybQRZ0sfnS^LJC_-&XULD~ zXVj{vgC@o0s$`OxKE3PlD&MEzuETXsM*qFkyM>4YMrcq z2h(zxUStNtJuF&Il(9ItLR8L?!P4jYa}SaTE@_u4f^R`g(hK3KS+(SM)dHusni>>C zdYCS(@*e$}&Bk*oI_g!m6&_0Qtt<%YDhcV449fnJoGBj_cVfSd*P(|~3;gX9^(V(C zE#ch468Cn=zU_wGdVDbWS9;~xB6VMtVYf&-B)udW?-GBltto9Z$^^$Zhw9Y?`@@H$ zHepd~DXzN5$(wvqx9uBSP!4!kE(gXtv<>DS>xNkKU*=fK>F-T2CSOx>B9=6>3E7yf ze)5Xay6C0HvEEJn+&py&v0Tyz>?Sk89n)&eO)vW>p+#B-hD*o%@M zUPoC-T*-EAn5T)3e>IFBW|Q`yX|vo_Z~*r#aBWJ!j$w$ z^S3tivrcTE8AD#=o-G+%^G-`9o!d_rz>*n_RxhRV_QIwj&3YH`Y!KgE>>ky;h{&K) zSDh<ri`EmqlFRt#6@Y53Gv&0gItl`p+<4u# zWrb@&O)`o)e)L4ggXZj55ZhJNt?t8XCT23#yzPpp@qG1%zq41~Bz+$ipui#U-q!rU z#7~mPmVS>YWAIFlb1aQeg!*Lidx&bVp<46L#B}3pe6JXrI@)WCy&1DYOZ!(@Wn%_5 z15kVWqnPu^@V)6ycAgY1v3IzCl2WsZ`FvGT;XBH}+QrhcIqCRDhu~K_g1E0nLGNNF zC-pgQ-7412uQ@-Qcs^5?3>wfK$V2vupFY2Otxw+_6Ya|sYT4y%-mFieNo`-Ak5c|zk~XW*DDtM2H5cVtQrX{FqE?W8N-`z?T5ae{ z+up&+m)$Gx7_>#bsUa_=-6Bv=u!)WJL)|0F&(!XFtm5xEyYzWp{bSUOa|Y^yC%2*> z$TuB!b|gi^mKC0o5-yTEHYQrHd7PJY^jmgR_t2GhKcFXC)NXN=B|Ig4KaV& zEU%|uq*nc5zQR|<5WvbjDjrs8{896TzT}o z&FmN-88u%q4|8pF>qH+5KmR*0>9)bn(a_WDhD=4mU0Z6%!7emnF?=d5-5-72f^P7Y z%dgo;axFciTYRU^<+rDfGdk@DEQ=`zwKn!zDANyO)9rq)I4XW#UH=-j52gqvp_DFuw!rL z^^JR|U}*LqlWBy}TODKV%rXw9C#-PPbUS%Zt zT-1wA$%IhDyX1za*4cb>y!2XnM~k?+Lz7YOGe*t7%o7Gg-z^xg-(j?XzxV3V$@U93 z91f@SOSceS`>AM`C@F&2{U=9~2kc|KR^)sqgnDz#1{T}TT>*_>r#OMdOr%KX`!_F%Fva$0S0q>mX`7ZhjaU-M~_h01etFU zHtj6hJJ;<>(I5YzDht75s$6`p=eFC)=Du0AT)EqIYZd;s9PQjV@O?;VX=hP(6Ebe! z$hQ|w($6CQUdM76&@x?g@@VCl0{f+IWNz3HMWaF@E_>yv81@TuV>w&5$UtJ^QF`|a zEuC}Dv;7adR-4`ydkd?s|A)7~jLK^J;)Y?myOBmjkP<`$=}rYvxel_@4x;SlcS&VrQnyXyK3i zGM3nEN0NjUGd71~&L&ntstJ4g_)X2-VT^)sqol<4t#@|bn88A|bz>d#hOHVWm4Of#r zWWrXx#N&cnZmD1B<9>pJ-V*T`Cvfw=CWBb7ft?RWuc?lO@(257XQTZ`pF1F$21C@3 zun3ena`dlY@sCQWNAW(d#;7eH>_h`NeShhlIvFWxYxI#C%f_x2*34!`-t%KegwQS##_@D zu-a9)j_L$+KQ5pH`7?ZNcW_T>am-mJ3uYGktyn2WNEjazfKuXHotDL66 zEsJOpBVp!`gmRw8H>TFJJjza;XpUIK^V_c_eEcE$^V>T*=DM4#zjP;J6qBS}4CD+O zUJ-BDB;@f5Q06odQ}hP$kR%3$@0AZvZ6t&W2^VGCs`o~-@R(j|^97{*)cA}~)(|vQ zv!~2SdULF(wvkl%@<@A0TI2nkuivkYY;Nk_Xx0stHu|8RMva*>XUAW$`9g*Eq}7SV z=v8_;x5hK1urKl4QDr(Y4_#gt7E7&^1q)Go8T6|VG22A4lxAMBw8K>zu_?FO%qp;A zCi|vXc^TG=dl(LS^|ymdI0GjI*vJ+f3g3ZH3z zOXza!j}_Rzxf>??zyl}Vz=Vn;!o}V zo3E8#{ZiX;`#dUrNu{)g(d?;=9nYZS%h!60!>rCE^UHda`U0ciL&^P6VPBko96n)b1|NZ>Cl|Bk|e*b+2{+cHM8i;FAD=j#w1Fr_2+q~dM{^lpa|9<&O zp4;Hdo1K=c=Df~f)Qy1RG zzcK(1{#sfyTSU#?Vg@Crv*q%DkDf^Je_yPtua5%HQ&3j6nrxY|0J3k(aD<-^C$9j# zJjr{fsi~u*`0^zW>7L4`03{!p{LfJpCtCMkQj@IuCvVQWk)BYua=D#vIc6>`_N_$3m-Jjah|mX z2Z1RHEbSWr1Jii74_a#-pvjXg=`R7&2f2Wq8_*27XZx!afF&nTaS*K`AQl2;$&-^D z5F4!b?g93-9t8oGAZkn?_V!ylYtu~>xkKw3Z6MH^^hVIYlQgm#eVJ~ z0F5hjxdFTN9zYvaut^PzQ9Xb<0tW}qbZd9gg&kR;|An*Yl%k?rz;t;4)eraxPWiE# zn!36@z`pAP`NmF=qEUMI@Hr@t>2gyQ6&ELqIJ0YMX@QPx!_L`!Fma4#TuRDh!MSB5 zK&9b*0M+rTO#f|soPm8)Ld*FwpV-y;J`kd!AQO0t+ceA!0<;Zjz5x$w39KU!+n7;B zodF#t5IEpWNJxMY3hV7vf!Pu=YP}4g2zEBM5P%4Vki;h@?)^~Z1E>((Yg)q_h{Lx4 zY}^A#F7ot%R#k@s*bjSCTW$cu=mvBZqAm+~5(WU+<>uykMY zazanEwY?600&o5{%yNm#W3xm)leeAESb#%nlf4H}TqLCw6%~0L&A0<~jt~UpP;4hE zLqRp{w%0!^n6dyOL|6dEI~fWePF|ku+<}aHl?~W4aweuBIPOMxOoT>^dwYAxo-V}Z zG;o$+2MP2U>^hi8cHz=<&uB78|vkf1Zd z7`?*ba6$l}OGuUjL62uvsE4^FC2zd9>%z**Z!`KGn}Wid=VnDW@DJbX)PpWSBA{^V zuOxt`hRDCbV{Z@96JZ177=d^8XG&(mhR0ofH(y_I&{Gful%hF+RSliK-LUIq<>!xu z18EWpimw3fsr~aY6{s~$;}?KH%q}k{(HNTo>PZUV^E~pt4Gb&~`Cr}vrCoNnh8de( zbigz811OmmKr#)!HrCb%tBI15GOG6~Qw1PG2>1ptm;x^DzZyO7fYJsVq@?+`qT5el zVvFtf-!XmxP{_e|>Jr~T_J{My>Y z90Jg}$9y2RZmol9mCq57kOr(P?C?wjFN}hMqV^}GLU_%CKuVs;eEF+9 z5P*!H%aE}K0885e(KrN3Ki_(L_o^nn$>7-`qLG=Gbvh!FQKcyUe$HFF6sIb@n&x~i0a%b#(4++kHoJvabawO6{^!>r zNaz7Y;g+8a8eu4q3gB@NO#=wKRz5B;;Svc6FzP z?+0{WFu?c#7p4GOBInyjE(4@89(6kbns^YSZb;Csrn`fF0ix&!v%_$C(8KN$!AM z`aNk=wj9az=_!ze5n17o*5_4#=zj*qF(NuT|MTZ~fJGq`u1jFpHc)E4`}S4OGQAUU z_e-NDK((knoV4*=2&MK|id6)dpar0Er=9wEj72FyW|x_l_iaG|2LN5=LF)|Rkc=C- z8?|0qS4}_+vOwM2ZWMJ{YlUd?1l2kZShY^S@STzMIeS&igFG?7)$2f_FV*%ZaFalZ zw-=H%f&O@&%v;g847q?K>2A*dR>3 zVelAmHN9Kp{_Ix$orstMh=(O1>fj)G7ySM1F{@Ct@84i^>ypA=6^lcqn}pm zH^G_aSGg7;G8u#r0ID2Fp#j#wZ@|KfovwW_{sUN6Dd5Ke4BpjW2pSND(ng}NU;v2! z0OeNqdcY@x=;R>e@ADt`Mopx7a)18#ftL8E51m-773gIB@B$EtaCrF^Kvw`zaR_o_ zAg1S`S4GSy234F0>frX!>Cq07pqeHh<49|2#$}Ri=hW7|M;-vEdX6xQgjC1U(&+i9 zX`>XJSFA|o&nx?QZ6coCO}WB>#<32l8=TzS<{+{G?ORRGbhEFwle4qu?}(d9YHGHE zOxJbDU>dlN8+9Z71JovEC8ejpzu4XYtSrFXkdz1tJpN;et_liRot>S~BR3F7CL|`t zB`5z$7__VLt|P2n5{#?ibf=+~!TD6Tat&tf0OX!zV2My0d$0iGY+LY?Y^uU9TOq!2 zXg75xKq&wk6qrk)@jpu6ob*}>rGnH60q7}nfCeHEKH|7O)#fOlfCTgT^U*4irIi&} z^7lbq8r02*B4uD0fW#d=@O%+abL^6mnIO>w4?Bam0Q~upwZJ*4A(6Xx6Z&`?-atxp zfQs-Fq}<9FSOegaEFn)}G#;FWHjv1~#KcHFdPGVThF&%CX2$L&d=tfRA^j3%gH%F zn}KK%AdPHqUteKq>D~A;V6Ou#Rsg{6aIVt%oGa|=1uTDV-MUp!P{0grvWW8vD46`7 z26Gyn;1*PPDR(U<*0S>JFIbYL1Q-Q*r08 zXXTX#6M6w!6zDnY@I@FuUjuF zE}yUkNN^$))0W#W2ckyMdhx_ykqkP)%JTAiOYg3v+Jm;l6XZEyF;M}NjpH+*2pCg2 zLR3JlLTI_;hR%erc!jmbaor18@&bYvO+lHz-B#!hAn8H;u>)Y3D2Ns#Xxo^=*!x|S z!Ru~>S%@rd07o91nK=ZXIqqP(oL}aJV|<$7D9DVjV2yM=1Tj&7iHyX_!-sEma+#tO z_NQ2ul7E?jcHNaFOz;UHB32%rfj*PF$nhnzQfzNWpd(h}pVCdz zoWnZWfV{)O%gfHggJ^bx+#F#3_ap6_;TwS=^fTB0ZowKGFxNgdH)p^HG&MEPzie!| zi30ryR$C#6$P)v@RofY`X z#nD07j>l&5i9s0JAa;6>^DOx}v}z+`V|&B0#1}=&Na```CaP%w^t5(s?XS_%QRrbc z^z@XWlqF?4YiUu!Fu?K~+oeL-_f!x%4^ZX5)=aFa0?7p4X3octuV8iP&4YtxTCIAZ)9h6LB;qN>d0!FO_TNwV^ zX-m1&1H6Pfh*wW2Cx0fYR_%>1?eoHIE=3&*QCj5Rct~iSqw#i8*7{ZP#xU6c(Q7UA7||dna>pivRn)@Ned)Wl{04BY)Ya^*zNS2nPp9kxrC-fm@JKD zBDVA8XlNujrdaPf`O^I}w6#9+wTIjeJ7#ke{wex||2^pnGf7m*R<7LrlKFCUvJhHR z+yguOYa*iD{Wy#)1>b3O z^@$PjLBH+H;j5W=qTHsjgw_d5o~Rb;7BU2(kbXY_rqt`!4txT`m*w`giab?<3)LD}~^kg2>E>V0v zDEl#wyQGG4IdkPEH_~=2I^LTJvKK840{nL8ecFqtZu*1EqKZel=b1XKey?uZDsnR1 zk_>j#ixN5TTYS{&Ia*vova>s&9hPG6b6f8T(*f7`sE*nofA=)2+1r(*Y|32|Is+c= z7A7aVuo2YR@gjWF8Ry{>A*HPi-_m9>w}DrC9X-xntTH)`Wjhzt^r^(MmcctH$qn>h z)V27YX$T6`i?d~5;#$h8O|_!0jEyghsB>VV9T=tSnsg@&spXR>Kw zPyA(!BPr|spCphtEOkt2lFBzY`a%hZ0;~Hy%fbkRmzBim0Efmc zaUd?p^hGVu+2qyd%Pv=RjtTs!*`UF3*&_A&Uh?ukT5Dotao%1g#hif$d{PsrIFSM2 zYUXNGY=<&k?(!Ilv|JgOQ%`@s?g1!y?%{6pN_od=QXARZ{yKD0vMpcVIZKUXeDQ59 zi&NGcm763KJ3;4nHJWw4O{_Src{0(c-H-ZRejQH8XPBfe74C{)hRKdC185?AK&aV% z>$OHBBMAw`TeWK_FL|ZEy5BYQDPLrYX=$IZ_oYZ^bS>Y~%3S3`y<>PBP-`ED zN0or132OGg<6~m+fS=w7!~3eR%YaReU3S$VcEVpOr0W!4-=Js(6E*Du2Sd@zWbTk^ zgi>}VpM`__sW0JFt2XvcowiTJSq`b14m{bz+bZU(sigcb3GFI7qNAlJSZ+L4;sy}I zXE*}wd4zRy?q7pt$DbyLS+2_yh7+Pg|B-t9?AG z&e^hNtY2f;5%Juo;Lx=ZTVV#+&Y(9TH{({#9)H0=hkgHxGwiifogF89p(3XZF6LZH zxi9ix*3oc9!hgM$^yeKuU$K%uA6FQY-InROw(UQlP1v0z-IaHV%&fUEjat+ov#cTV zS-vOVczZ4$a=J91J{;xjxx%fV#gvYb+pz zli)bMv0K6w^l@iWlTSHj2_+>kl9O15Qs0ED9X<4S66bEf*I$-ukmRhB5o2$d$59fY z-n<(Su&BE5m8{1Tg*9$OiXs7*JyWZ>iBYH-M}EWfsHBT>_uRGI=33e*uE@Ew+?#G@ z8=kO6ix|hcxtHzQVf|N+#KYcXYj|otI8HSV?Kka_@RyaVIczB_B1t|gO^Nr7dF%D- zHdfGL8yTv&g7;0BoOx4ij`{xLn+H9<&ZcLA2PNd*vd`3UqO@M4ze~>i-~|zKWeEVI z@WEHc#Ihb_X|w2}bAi)4F~M`vY;OB4bq?qwlrl+E@$J>#RGX>6^oM+MhSm0h+)R{C5*25cswUglVh{bm=y}Zb3y=@{v9fcravy~Z%Xl?j&RxX5N>!r@ z-^igVkdf--|0RkqaD@>ulNKqg^jJgoOr*r&87D@kY-*dJl`K*CpCuDXn;Y~7I1Kih z770v`FXT`rbY#oApO{F>!n(H-BrVkjkJ|G*R5=SjefpT2`_*?#r|l88;;L-e#(CK& zRY!)NMkOI`c(b}E-(aMBL1#Q^rziriUc^1P4A%Dv&F9FQKz~sde0QiVmM^o_4XIh{V^hJ(j;L_yGFq<02Q%DZ_P-&QD?OfiK`Bd3dGqN8SMT2#@7NYrJKW%S)FOH|dXt>4vgRQ{ZW=S+ zQK2%{S)fU#@D>lTf{0Uv?@@9h@6UyxfDC`3FjSrYi`l8zh|5*1&SP>f8 z?HQ|4*@jH|gmgSN9Fh{YE%)aw@gw_PFT2ytEclS~m#C%8tjbcJGsyz(<i&P7f9>-= zVF=6K@owq6iy6~^@~7N;g1~C@fw($L)+c(Q7OZr;fZ9Pq3*1cQbHKX&!kr}O7GF`q z{(4M9FEudHO)b4DIzq4EhBG#Z`I>g(Pnp9ZdRN1}lsQ6u(yLL@?U(9{eSx1ubcXn6 zOuGfmeTZ@{v=|e0#(O8{jZGg#+BHaCkMk;kx&5Jh)9%<&@W-RqYkm!FzU)?`l;5|A z{#Lfq6}YzNN<6%e{r$o&Pgmi2+n0#mYk!KvnJ&p#HBE=P!haE6(tR?;9o{;``VifL zm9KsM{w&5W1KrZ!>d#DR#0iQlp0_tM(J#7Wp4{qs&n!r&;@8T@w-6E zaaSH*?C<++Sk#eC&ZYzJRO%YNk~8y+>ocNmdkmx*Y`zaN9k|o8|a~2Pnw|XYY@;L00!%KLj2r`~G8vMma^y*LoFqWv_~ zVbGC?+w<#f_(T80T06XHqIQfGX1V;-Y^~tE1;a$oeDPzRO>D76wz z)5lz()$k>=ekd!K<9OkADZAzMrJ3HXIc)PJ;K&&-BGj&?Fh!-%(C#7Azdymv7lP%Y zLH!1}4YRKX-P^Np?WiS_JtMAp-xDMLLoI#Q=d&a@6zP(GE>j~)^5boPGv4J4_MVRHGh%-| zxd6wR>yqD>-NLOjP6^Lw3oaQGi4Dm%kTJQ&lhc4}8K~|%r{F^4$Boq6*mFMrJlRu(Jq8j@h zwO)@;V5{fZ4*Wr_DE?$s_77@q$4ZUGr%NG@pLgqMdRR&m%9pj2)`?f&1phT(s$Wf) zSi^eXPclb%+Jcqu&U&x$O-b3IZEfpN`+mI$4k<<8n%A9wKJ*Xm6}HnX98v=X)|#!b zoN3Yy0P}%9cY&+-x$k9y>p1P)eVx{f36jL{+C6VMAL)Hq0^y9jk)pGmLK+n z2|Q>?XY^}M~D3mbrZQGx&0nFT+e`yMva9@Da zz0CP$N1*!Ct5v0;!~JtY!k3E)WsmKmht4O}!?7?M3Xj^2_$-@Op32GL{SM+BUQrP~ zy|K4cj}o=NkE}X5d3f>~8`I$E^GF@GRX|!W3shqsSnm0^%_!2*&JDr<4~9M9V^M#( zS8Ih=!t5y_S!TJo?~@zyfKOJFsi#?!b79aaRD`B}I)|#nd-Yo13b@6I;N<*B8%G$Ecq1>W)ip>FbN3ur^S%++!7d6pV zgp1j>+qIj$Nqvvw73bqv3_Z`~EG?TNla4ENa82J^=M4x*+dW_n2G#&NuSjEby;+`PU$WnS=Va z4@LwI%d7XWFodtJbI15nx_FZi4F=9IiCiqbu=39A%o~3nTud;>KX|04pC&nw{91f+ zFn5qJyxc>s#Zt>;=C%Tlk6??zXZc2XT-#A99E)UfG%PVuz+sj;-^0Mu1Yo3^%~coNo_w{wx7LnUfxf4L#0o7z3EuCM=cmfiS1IW z!k|4Vr1z4}t(mb#z*INm@9}P{dEnb|PXBYW*V$pwbjn$)^PW8Qgr9ven;VG6Bwjbp zyULlTcn=>o{M5$8+*sIDWZ@n>OPMJuaah0|sHs)KenO8$8q~Ar-iMktw5^&~a`Wi0 zH2kclq&TFBDOdze0E=#Q*?0t__Bjt!@7S<+>3bsiW6l}!9*2}V5}GnK2HCcmmA~XI zWlp6+ZWk-piKxg(!7exIl3(=aMDHFpmS*gn#c-5^ea>+*yrzs0z7}mei$4;p@_sDO zt7xkxO#G@Q)Evt1ORYN4(4XFaELe|!9p#fZoopJ-M523N zH94k6hgVD^Vn%8fm~*S~9@+=;x*s=mpoV-2I?m9jl_(FFDL}Wssa?o_%ai15^}UBC zwR(EOcV4ly=;A1@TwlD;VX}T5KfX`ViAmQWhk)4SsCmv*$1Jp(Y|u|>>-LSqAlEBm zkhk8^Bh3#l;=5;hZ~x%NQLcHI6AQua5jr)0a?jdZ2PfJQEy1*ChgDowR@@1D0&coe zLjpc8^*VyOuH?+(H`F_U?+=H2=bBUjKFf(d-zphvb(n;WFO#N zWCZVA5pXfRdOhn(-1}9bS&kwz& z^X={|0t1qdR7`4JcuV}1Ia|Y8q=-&MS)AC)(2F}X4~!+6>Vd#4_L{Z zU=HET8DdS%hB$YdnG<4<$k~-X(Uvg5#lP3_`@6$vjq&9Vr-k(O;iT7}{N+D4$SAWg z^mYqzu+N)vk;ZO{B{TI9Katv%(De!4D`XTL_26I8+Cd@z*nyYloy|Vy$?@R+yKAo2 z2gbOn!j3vWcf%19o?hw7DwC^rQ}|MFSIK|H zaf?W)qheK!OzOmj1S3aZwuQgkg~I9EOt|VCvF(EM@{6*-(P+WOZZaTZ@n#S{Uu7NH zeltl8P;0Fy>qM`mP#dT_5ITR#Tbn z3487odZaK*TV%r(we%s&vp9`q%oI!CPo1BA1j-QQUsG3vb1yetjt{`ukk z5F;v?DoQvrW0rlhF>jT%$}W{Li6c3Uo_A)tCdpE$Ge6VXb>L8~!H<2HRJ<1ezoC|pJg=AxVyEX%)mHC zsw)px3)j@;UhOF_Cs8M(E-SWbo0U9E?vEKE_nf%t;6i)u!BpahSNZB*WeQG-R8QPY zObuR8(9@rD*EC<{w?%aJRL0_bP-1%67liXxD&vBL!v2+gS%7pI`S5*erPx@_x_7^< z)9pmCw5%wSayXyR9nzxPbTcn{la*h7WX4esY2WH`)A3Xnb1S}IzD##`OBgRi@oJyI z^LZr)m!45`WIfqfuSxGu>=7d6fHfXw7G63{td5GZQP#pgy>zhH#vM!zQd*yNaYCVI z#$dfgIGFkB+>2(f8#{roglkA4(s}iJyrGf3Vw$i2&)>DDk@gjutoz!*uU;O5Qvp6onn#sFA3+g%`}M4C^Yb#;f^K=sl08+BO5i%?}1w zrin~UvWd{_{Iul1M_7L#V5r!N-w6G@=&F$W^j)MHB^5DUhPBm~dEsA@*vY=3CjZF( zT*FT>)cE%5^q4FIg|a(_hzl)KsB%==H6wDKf^2z%VD)@i!^~ssMvt>`XenPY`tMhw z_Ux|V-&gp%kFl`Bm0n%PTu(mHk}Z;bAAo~DZ^n1ytJ@Q7aaA{|nHM3C!oNRf7XIedK<2ycz8*7?m+F-<{EPc??^^GD`TeLlJmjvpXYLO&yU?y7wcqHu;VwM_}(sh z`SZj|pP)4SY7*z2SDPyFnMsv)0aLJs-j9Q_?k|hc9 z38QY!aA!87`ARESMcG{Nf3W~QRx&4d<4D+8h3GtI1$CY1N@}r1j(Oyssmo#--~{&5 z6XfrNjH-+7zxZ0hWYs!(m3+;R*Nb|gV&)cpO^3Tqu@#D6WUWo$@Aw;E7@S(=bdRZZ z_uots-lp%5vWV3>DR-?*@o1Q~b;xXU{yXr~mAl7W!L9M3o~u6%X2hzLZjk>5hN5ih zYtx;x7(WStMIU<;m&|Z7lxIC`!F%cBAyVvVgwmuv58jcYcX`Tt#oX;I_pOXXBegVN zb{p$3S0KoEV`v8q$@umO(-3K=ux|TIWkVt7xIONvea{;Q0d02@&VIhVCpC62c6^AV ztWJQo$@@p3ST!xsa=&jeAEd1;ANb4RNXrCCk3`)0HuOT&RK}%+T+a{V%au{+OMI6M z^n3v`+)!r9rgo1&rjY(-Dm-nL*Y3oy~+e(;T+2BwfsAm~~dj^$>Q7h(|kV2bY?@>U9{%U{E{4^~^d_SBS_l;u%R zAYXBLu1%&qmZJ0_<#D%${Srgc?4rXvrJY8(Qz`RI{_=C)@`OU8H1>qemH5@H7wCb3 zw%b=K9KZ0qB?I2m%blJ`^6?GWM@p2O*qGr3eU&I*MHk-6elxZHwA-5`rGO~)c;VU; zabtydm|hYn{0vWOC8TJY|IPB1bN9)A@~8Fl(U8BrcJVn9c4C%>wA92Xj=omKGZj>m zX^Tgdh%+3|PLc`N>A&2?5?~M%lG3JbyHwBGqP*2_WM$i-u3}F)XuqTQppPK@GpfTj z8^;vBR`(l9$GNlh;)NbfU9TiO>M?Kb_Is}c1nGSQCJ!9yE>qbm*h{Sh=I+BIa|mb-E!87EW`!aN2R z*PhLw?#PBI<&e)$wpF_~`(r;k%2(`35=-I@J_zLQ*W88`WQg=n<{fO^E3wM@VNu`h zXVs|-pMONgSoPG>6h%w_K#{AA^kNIq)3Z_E+10n|G2_ZI=Q20WewOC_#vo^k=V?U9 zhdI`lqsE;;qY})|#8OJ~jL;u0@j}z{%3Vn8eOK;T8CP}GftBpVo0h)!UiJz7);vwm zRfT8e3E3Q>CU#rbYK$UPLuS=y1Jko9jdG$v&q9{mEK3IQS#Qz|lwjk)t6A75t_#^@$%(x#bH5RFj-Gh2Q>rq{UZ+JD2oG zF7LXxIN>sOcJs6Y3h9r)5*}&ZW}`Z~UwbSZM3rTa6C;_g>?@sTaj{#ZGIW2Ir{7{A z8NqX$Awxgu-{zOXLH*_%v-%(qh-&RE?OOZS;)YsKZ3h_wat_u>MltR0{^q)wE-{6L zH?=a(BK*YHGiGP3;D%b~HzQBUCHv5LMhStlS6>9A!z2s021?7Y5;4i?FR?t&6$|d? zmXualwskVG2)v>>%U6k@SV8G+nmNvRuXfylwq$vM{vIV1Pua6`ynIcF^0mi)U(a7| zN{R2rFC88)hR4t>4eR|Kl`sFNz4U26{_fwUYk9&hG!bk29sw_{{w&|T^=uO4X0Ep| zpmJ@?C=BjP2y=z58xV#0pL_q&_|8scxbtRVL(Gut#$K5oslv&htOf{Cz~+M*_xhFn&fuci{i)i(tHFM@V{nB?zMNQ7Eke^XLBAn7n#i;-{M03 zekVXYNtNjd_unIto;Mgn`Mkr=i2n9rgjc(|1~ZQO57}?8VSPR!(9F|(>%A~;@-g7a zhE{lEXKUL+y`F+T`&#?AAuPsoG{NJ0Y!@ew{=U@E0GS$E4Ni)l=Cah{ z>F*Dc)-seZ4AEIa-MI7&w$?t~=U9y=&YM}T_@q_+A|Ra)wdo;ss?ZNP?9kkR<5Ls= zo$k4DLq+?n4l*SP*Vp2;=5ajV7+6@l(F!i~N_lU`vsXjKfSAxWCVl=>*-k4kE6KHK zPGe&bSL<0o4`+6Ak4w5kshBiI=7D_CmB|`hyT!Ya5lglgX9;LX5KZdsigRfdg*7Q4JZ<% z_19dF)}<1(rK-oUk_hi9IJux(H{lAOtYf*Y}rRQQTI&?P1C8HEBxis)E@!bth& z1a`q*kX=Ge7ExznV&b2V(#4aNUwO=xSF-5Xmgkms5UJTo<&}=p`zjjPN{pdc{hVp2nfGJx zMyWSG7C%Pe4Gb_LS0du|KYC*mSoD%GP4((yNr|XCmK@#jc`xeGwV3nNYocTUAIi2* zI=hdR;7Gsyb7bBW=gDvSqwg>h(q z34)iXA60UGlXkcK;*`A~WiQ)WLpncKvg8Te>XnYb=sOYgW>WdG&SpXvbWPvL8)InoX1bghIJWpBe&m|wXt@d)j^}cIF8D*1^{N!(&zx@E% z$p&cKF@U>CDYbk^Q~iZmT<&(n<*Evo`d(>`h-qU!KR!PAX=Zm zgF9X$Ka^Hh#)o)3fxPm}ShkpVTyDd4%`uFsoI#eM4o}rnZ##GFq}AVdZYjrYe@gyP zJgV#=EjrY8Nun2d_qUv!+d6Q;T0!U%Z@uI0HNtIh>ITZg)4%g=Ux=c^!_}U$K9n=h z&j3w$AWu;I!&=9-1ZDv>;GC;mJwRCy4H0eJjMpz!FgE@^N^(Ov2&D7P^GfwWesGA8 z9j*X>gj#vYf#=1_O7}EMm^7B5Z)m6+h(YCm)dJgJW+5Re5TgtWmZi09Vqwj}>;3^$ zY|(_&)YrfcG6PL!faJA<{wpYNYJis{B76@HWgqESSXom|L18jB{l51hx8K>;Jwzk@ z7@WcpCu7^GFNC0S3h2E5bEo8v@U5=k9*P(|0m%mQYGrXT7(j-g5;=KWfR$AM`@fGI zfIuPmn%8A9iru`44H|~+fP6z-K^E7-!+R)*#@JXZ9|P45(Zx074Fk1m5NSr-ArSR= zASqS;Z(y)($Ve~HmsVF7;nzX!`c+FyOKAt(^PStIh;0UIC2HbF64Hq}kTe(b+{1`t zYnz&)Q_1@=#zIOOOZz^YoOFT{lwA>tbA)^a;=4qkJKW;u`-Wa5F8D4CJBsS#@bFDQ z-R9qZ+KM7*KT8ini?2Yd7fccnb6^->P`sYJF9**S^pl#5bfOR>l_}xn$-*ZPby$FX znS$CUn1LbI5w;ABpvTxMmlodh(Bk=XR%Yg`r;Ls$plvG${_FyG?!2U-g%1Qrz)MUo z0+CcuMvMUV6H0x`F5>Y4fLV|ZuW@vNz`#SEf1(g{4d%m`{8|yCFR90E;+VvLy8(1|PsJoVd>ow~mgy7WngD^Z+69*;nz8^@mm0%L2v=QB11JKCP#o>a2v=xtP!;&Xkd8u9%x<09t)Us3W{=aAOH6a zFj*HsZULNzz=@4S1~?Byh?iLqCjR`NKQA^&BEoxc*nhjJ6p!W{t6Hud3I>oxzx!q` z&sYpHt4T>=pv;=U`SJYR2Vi{Q-Cium4Mx<~)%EjN%T6NZ0(ud;{Wn6u@C|g5z@W_{ za*77jO#$Tu))WaRLjHDkyx`2T{0oe$VlE z4iGe{TL|dIwydtMf?t4icKJCwq7(}TyNF3UGN>?mpvn){G~lEVT2pfmte;B#GMC}= z*%}lP6Ph6QYh69L?)&*G)UIei*b)OaQUNTbZn+qoEmE4gpvVfs{!5#Rb&Z>aR5k`Ch?hcA;uG0{VRwDIq3N! zHkAHXXLH)sv5;{9fNKgV!wT4N2urA#j~o2LIw3~Dwv69;grj)!|CpsC2I<@;&Gg_+ zlqVqs=7@A8g=vhKa;0qdj5#m@%eLhzvBh$G;p&8CYcnlh6eoX z96=Mk9f+cc!7k!srCnq87J$c)aOc4#hB7036#@gap23pw)R zpxOaZTjU0b2pN6El?<^ZVifZT0Qb=AkgP$w8PQ7zd2Hj~B8c0va1zSLva-`FkbIXL z$`CJ&Ot^ICC#`vmcn^XyHjDxG&71jT{(R@9&3|z_z{E`4>mP^GR|^4JAh(7<(dhue zdhkcoKKQi_4nqhQ9GDlc|M_e%hoc{jH$9z6&UN#LpX=Kz8sK zu+kC(?_;nZ2!;tT8gUF(DhNMly3vyyXh!da9iJ6OKTuci2I6XLLIP&1191kMGPrxl zK>G+9(|EJdp?piHjKVA!XlQ7WY`?*J_AB_WM}QV&a(cMs^XG_zx^9CT4>F8MIRGF( zVpT&=PY==Pcy;NEI8OYkw7_q^JheeAED&*jFm}*02|)zzfmXo^F6xLbI)uqUhcPhDnMc!eaZ^_krp!`f8Y=h zAjJ(Vkz(Jy3kD=SCA|T-B!V3hL?9Nt`2y|Il)?@?NZe3dp8-d%Kr=70O*FEzj44#I z4`$=-_u;F{%h}-g1#Ie0;J=1}3Om&DDRZ$`fb}+m42Pr>&}z5X^*jRK1>nzM0;41n z0)Yj57QqeydDjqD3xEFL`uqC_yNiJAdIfj|BLdgm-T7bV2%9oa{rkRsGi804NN%14 z(31$#CAa%(@{_BLkl>^|~-?kvFOQVp0Z4IbW?@m}|MnFBTdL}rM2onbJ z57HXC7p7f&*QTZSv6ojp@cGGLj+5Ln45_K90cW#k;KPK)WH1f9 zVhj|1U~UvgdpiOs95^M~$k-uPs)mykGB_||-+^4_2*tw5#u?r*G6YZ%rswB?`t}tv zD?-MHbV~;DPA+-z@7=e3cVpuW#4-#M#Sw_0POo+HG%0|OzW}6ydPE;0^wp^a7 zqL2W{pa1MUchp+m+PVmo?kkWWgrq_Rk`L5CE2IW)Iyt2E=he;|V?2+*TLu~V;%7H2 zDPAXU#@FSct`r#5@FsHWK~Vu))^N}ONWGYb8VFhe#E1(Tupki+gAdX7DC}Wc{RN&1 z5}KSr3KSM#9PF@i+^sBhp8f(7&N>K*R2$5;5R2-kJ8my-?d_{Pp(l3~)iJ*L21%*Fx)FvI3Zk`+#AZef zBygk|fodQG^;^eU?{yt@5oBajh@&;|D017GHHslf%6nil-Q*3n61$jS3d9ctv(I)j z*TCGf4d^S}cB)MIRaJL@6oa%lAhteGVm_>!I)*HOpcI6{M1DG$CIY(rUBI*h7bH7Z z?&Z!A2@6Y0Ge~2iBv z7}h$pnKy*`C+U>Dx@>5i{1m<)TPWn~BEfLKDPy{crs{xBYL|g;tHb|3*xTaDaDHt@& zf!lc((5k+do5~^{NRYQ=!3OLdkz&iY)^|IZZb^1 z|45t9_f%chM{tp;29^iC|Kx`>R~m_6SP=I&@N$6OTOLZm73ce=cHPv&7!oaWG`ojW zc%f)Og})DMNaUWtcBrT1W&G+{g+m$)NH@|8LR0XDL3C_==yjoU`sIB=pJRuDQR~gQ z7AB-Wf8*uZpd z3QER+@;4AUZV1gH5`3SGo2)-$S3LuA?pS3N_l zZF8cklo5j++=zkb4}5>b7G1%l@Aoc}75JKuSz-DH16#Q(hfjkt;mK^BGd2u_qOGlM zTZ>lF6I}S7HgI(4bv0PF00&eO8N{wmp^xfTy<%hIyWz;w_NR6Y;6;U435-}*f8T3w zuh1T;pp?mi^n@_tftv^hPqjg)bBSLp`oU>!*Z*?pDiGRqq$7t4_~Uo2>QuA14{EMI z76f+*>q9D71|I_l4T^REG)FXzzG=`!0f!rA87i{6hDkZF{^yI}ENtz7ApGX? zJkH~=>_i88>QFDcPfY6R-^F!N(hh!5P8Fvq;`gy)PbrXtTEbP2TjQNV0;hdg?xKBz zPe^QR#dxRWsFv=(T!15Qn;X4mQQKzZNEIq~mn!eLg4?cN{VUntlkZ30B9|O{_5KVS z{dt^L1CzB?;>L))OV#Upt$0cYt!=S?R2EoQtM@%h_Hwdi#s10ru%(c%g zDms1fF-EQOGQ=2U7`FNy*i=#BB|c5$7z*~*zbtvq`eZISu>`9YG+nl)S^NNh-N&bL zH_dxrw*PXUvYBhwbswW{HH+>=umL<)c1-GaXQJV@x%W=!lcYmvK_c5t_9i?cm}AXe zyx04uwut9nOlmvI@YRR=6niLjsDa~%n>HpW;@K@Gi#d}k8eZ-EZNgom<~rIyB(T~$ zHTZShj~K%%ucFu7wTnoLKY95d(=!4V${nLmHFsDLk@o#D={0%5JrfW}XY#GvonyNW zi_RGvo!Qs`DLgYb&_|sCtU^ zT9hd}e#CNJlmO(MpwE-?DzBGCWYMviG<1V2K0WYk@01nC=BN}ZWWQuCyUCdAlhxx5 zklHY#eXietg)a@~CEr2@nwfRM{SG|KY6>xY|a>FJkKzHa4d9x{>|!Zdn_ZU zQ1x_m>rCh`Yl_z@3`vLg9m?+kO#o+Oq3ZuKT`Fy`=x+D?9y=W zGB|l^s^!WFDnWd_PXG(tPER*GkaPBkU%>CzSJYJZ0YTyrPZ*yvbJFJhyLMk7zy*H) z;+_y;un|;G+<<)j{hdiOraRVMkIK>Sua*CBY&{Saf|vOB%4ueA{i@*@15d5#@9m4< z?C^>CE%A=T0UlQ+wbri8`Bh0*d}!+=3Wz5sHMh(w@;$DMKf?s78jTS!rALble(RgM zqT7?IB(Jb#gY|7Sr2a?AX4SJj>mPTzGjqd7ZC9O!Tuw1!14rNT03cN?k}~~1NdK;s z1*j}=UZS(*o&cS~&%f7rh;R5}S2rTAa<1EEB z?3cK`@UFHxJM!|(k!H)HZz1ovq>i!cts#93_Fe@k?&C1M+q-|= zs%vr}Fc<1K_!>>_Y%aF)JLjkm0TUAMh?O8~=BvpTF62xsLlbYj&@AKy)6Se}pBbQ( zVKgq}Nu!nIVljkMe$uNZtu#=zMT_%X^cx4qb!LGa9H2fzMezYMM!)%t{)AemP9C5B z+G%(84JtGxR6y~acI6z4|K8h~!lBRXoZv+fVc+jXg+72Tu!cVkSHr~Ht!yeEb47=H zHg2!cuH96x%J-F(LBsbQ&lp?eU~&|&2#aM>rG}LX0sn4^?c?ZEJu5-^N)PS{u)@nq z#B=sVG*?v}hDs7j02{zbuz9>#R%yJgpk9WHIl>xZ^(V21RIT2o&D`W(K3fLXIXhd$ zj^9i90zPE?wVE2nnMjVOTYO&MEe_W8j~?7p{s4)Jq@e8Qo3A_r&L93lW5Dp(@w2j4 z)-&@iZ76osm}-jxlX8TQ&Bvo)|Fao0Nb{!I)Fyi=W39Cm+J94tpk+2XWWluSjthVA zsffJP>-#5F8@K4tz1rDxUdFAQH<$|JNxOgK5#QgNZ2JD=?0@7a5?sWWHG_utXuof+yFU{dTXkc)?IQs(Y2T>=OX9cBF!@rA znjNA-^{6JYP>@N=Xf;8-$-%#hOe`%s`}z4jGgaxsfP*v=AMk6R7pe~URSK#>p*tJL zK*obsxIm9un3%bncLj8iOI4-%SK7-9gOGwymRj$BZ(2{fU&(EfGFDvt?#vUZtW4DJ z-Hxp}{F(5lopgVixw_FC^MekC8@p|g{_EDkmL$`u`wvckJiIbyzE1F^GoeiWNG#nb z*cN>H;ut&Lamn^yK=Jg3Z^$Bz+(58Q&M;rf7go0Ei|aMOR!Wy^IcL`g>fG@8;}4^g z78CVDDKo?!lhK{HEThz-i4aiVYBLv1_rx0TyT-zBlptIHXO%`pUf%l2Khk|fz1nxP zbUh9Rt2MG+V)M|ywN;m1y^idC>qY$L)6YRJNW$*z#K|o;w(EbQdv?KR=R*#LDmqOM z-1o;jobw+`WPG&Rg$oG$#l$a;!9_z|B zM_h{fY8~6YU374dYs4 zL{=Er-h1t>l(#HDX~KP;|#g;>>V*)pQ3QKR~cEsjy#OAy*SzPm(1Z;cjZn_s!Bd(OrU z6X7{C6o+Ioq@@*t^3)~Q>AtgRily#nIW_xavN=PLva;%{5zT8oopn847|t6S$v6&$ zIj`!9*#d8oyMjk|%cYm=v+UCXflg!^ankLk+O|=WZe%V(rbPlqyzyjE=IQAvO%d>; zFLG*E56^CV+5JaEhk>gw)oe?U?&sLTz8x(DV5lZj&1??Gm~KsmfDhaKZl(IptN8S71-4PmQ);1N@ z712Qw_ir@brg^PGW9_rpBnucKhZ+zj-(zC$?Rw_s9f++AyjQMW+j#l%OU+C3UFyta8au&HW}ACH49m(1iN(g5^u+`#GhKnvaWi98*5CfEqK8 zhiO4D^0xX-Bj8d02c0>yEa8v7J=4qMm^@NMG5gDy^|qEnvZ{DlZTX~P?aw!#uYXI- zN%y#*>GJIkk%zKcgfB&D?XRz|dZfHnb8tQ3xam#g0GC@~IL5XEz&pouTMc(dp6}G< z+i!}?CphLB6i;0MI-(GMLxZE~Uzt1aH)amfZ+>Aj+FEg=rY`yIZ66c$gYF@>wC^XZ z%ZO6SqVfsiJkX|T12G%fw<>$}Y8??gjtL&`B67;DH!q(o#&8&QA`u}KiUfLG)>P-> zan3V|9P}hOVd<4p@yL}13P)&4QYLYEulJy-$goC>Ov3N+PB`xPVJfO(N=AQHX-HZD z+0{yKv&&}#Z&<2$;?>mDag6%$iET)E>s?l$6Kxq-{5q=FqY-v7Mc~>rTBQsQj5D&f zq|=IeSCviZxA6Y$r%_5ipD!^#qWKQtTue%G3=){V=FJ{+t(^%^^tN0oppX({Xl8bt z_U=WWj{Fw$=KkS7EV^`2>Kst5!}XD9*TLMkAZ{TQ=*m8M<>ebE7;X~@sTuw+_30s8 z!2cQr_NcMRA3u!*fK}(OJ814%S*ls0Zc%wDje2Din4R0d*;_umlx?Eqm@HPiYe`ediYeE?`pQU+>cq^AP8h0 zi@vzoIe)CGvSyC@s_0k*P?j?D#2zP9)*OFQUHkd5p1yt~u_T>8&t}+za2f@YL^3Wh zDH@O0y;g6$ILw!KDfJp=*4zE25ux*d6bj<)w6|0`p77+m&r9!3k%1zi*3}6!Cd3(fo2>BTQxd>$}|7$R!00^SiC-B$Po#B9!|LFk9CH+9K5($3Xz13YVm)G}|LAqaF3 z;zp74ov!B|kNweH0YpTP>}z5o@{JNa<@f=hHZQh{yyPl9?C|goVZgm|`nzcd9lv99 zIf_zS9tv|vD<&;R=ItYZ`652(1@ig&VR|d6Nm|dx5nFH_nlFU>RJd9VXJrmIhrdB( zx_Zx^&PXCV-%;wVBvRb;#F)JT{yvMX=L zx8fE}nqSXp4fEV{Yu`O$HTU2dtnnx22_K`jNRki{HB~Ji{Zqo8sP5vN`$B(W3K_uC{{oGR_k? zyxr>+siqJX3xHWDbxX(#GAW}>+t{rXEBPFPO2MHCdXStR9)43l!(_eiBI&<++B?r) zcXDY6s4}5!XnDIDiS#w#!6Za9_#_W>4SO@%{21x;!`=7%2GKnWb-Xs739@j8Y9Oj9Kflcjk+|$nZ&rEvb}`XXhOc z7;cqRH=+T|!MlJ`vFmTm^7;^H!@|;b8@_8*M!FVDcQFDcP8&s?xz~o+EE3N`3+3}n zM(@;q-1o2RKYm!W>&riAEjT~{hsPujGE*4go{zFs9S-Ao<{d$m2seU1O8T4S71@nZ zJL~Hk{hOf{mw64?3u=FdNBi6#WM)=^RBsT0N5JAOTU@FtzxrOb*Yh|$pa+kJCe8*T zlX9~*D*;2NrTz&7hJ1A!F3vF0qA?Zlz6%%c7x$+RfpUUrI7}(k`GrZ@Fp)f$=FAJD zCyHf;d}!jq7W0aZQo$I*(33=sjdy5h=unDTIo(s<7jt6~X|~{`i7~pcn3&ozt}Xn$ zHNmk*+@p0P7vwKY5g5#5PE$l^6&SEn`ia}`_pCEhp5yl?V1*P(umI#56PbF=z2dlx zSS;8AM&Mnbo=M{d!YK-}6W^J&^7fCUi%NK(Ig%LJLgeM2E*i)vZ{CfE8JxDzh={fL za4Wa$w1K|5-Et=zr~Q|2KBqh*JvDFE)?~j^sbBe#(O;i5-jk^2pY0u6wackdx{+&}*V1*ow8z<)2MVtF+Sk_dmo^rhhXkx;X zedD`}4Xxy(7uWY(Ktnpe)9AzY3CVB<#P1XKg9OucqmAZ{oMI_yCzn3F1+^!WizkRA zKO16ptuU#!8EI6FX?PYNxnwUQe)5OR{0_ZlzT{y}w!w zj<=j3iI|St&0mPLPvVJ&EfxF*Y_&)qPyQHIz zk+s{qHi4ud^{E)ho3HqKd)6{E@6Qo}|F?CkL+>7$1glu;RZ%yWBP3m7e6fK+#MAT9 zss{w$yB6I7_o9w77%gO@gwWX5RpMy8+7a%f8NW4}#y^viUo z@(!1tmFT2(Q*Vaj(xs-sYJh@%2U1cUx1=)u`>elP9UhXNfA#7) zdMdl!2Ok%>KLo^@F=K}Q`7{UDbUP1^qnCotg}7*1Wo2jA11(jyJXRQRK#o82JNo+u zM6W!gWu07Ke#|MVKe4FgunVUuKIYzaIWpnk*p5<@i6FbpLfR?m$F2CSm8iqdqD7Dd zL<=lsnUrE+NXjoB4oK~6Ro1%3P-%WyW@WXiqN+-BM0khe z{_R67d@F`#A_U>~Ca}^4MyQZSXw7sjEzdfYs#}FVedKI*)^gCVHjL9QjgO812W)KWvN|;29Gd7N!pQ zjL2r!tc~%|hZ#$*yk5BAVcG-+Dq-BWX_@0f=v!uT7AJMzHmVP(l*!58q9-M4F%@g& znOV8!kVC>|5^XDvxb~DOQ=Vn)z6tv$6ktR&M4RG2UirajdPY~Sp)SQl9xuAS<_*xC z&9#}&m!JA*dF;gjq@}p0wLc%XJsbJ&Vm(KX6EJ5H3ztdC@osP18E0 z%)q;yswNqjEshrxrOr}QAr2v^i%M>A#plo3OmczjWa@Qe@2?F+v;D@AX#-$2#cAx> zM!mJ3PbD#Y%xdN4NyVODALn)Q9^9Wchcgm;ag^&C|7`2yof?5YBB>l(@?&3IoG~9$ z;=y;fnAu3dlZ-AetejKUJ&D~b8I~TNe9YscX;U8`pIlP=4SEaRZyrg%j1TMy!Ynvs z9Ppuyf63*;0F1sL@&~9Bels&OS3P-2Y?frgxt&vd9u6Mk3;U=28!rAcmOD2BuwX)h zeY}b1h;f!1okxvoO4~SUg%e2W-*4V5oHWkIo6Zr;aDz?a&R5&JM}&oC3v|M$p_H~$ z=msZFoM;-^{`2S07oegPKu+h47skaur?W+Gbo}!(-GD!G!DWQkxbK$!)F+JZqRjnF z`n78=>^8D7SfY}Z3Z;>Q@AWhp0Y!9h zaPs?38nt==SDT01ZQgqGzP*A{8Sqxy*pJe8>!>;D-SDL{52$GaC^KhBWMM(e($uBO zQ8!s97z+Q*srvk+bB|AN>O5q*3P}%;^y0HcT*YkYB+%rZeH~;uE*xxy=GlcHcL*wb z9WSIf;M+o4xa5a_RZr>)?wpxve#Xr6?k+xnwDk1KwC`h7f|!63#B_ir318PUx2`{w z7Wn*5*wt>f_UTo(Up=^K^s+WHF?7HE=KZ=SqpnZ&yB*TrzBp`!-ooQ=r z{i9sA3HZ9Fr20W#gey-6=k@K=!s_bky&#;XZM%=Qwl0KT$hL<^ab_6B%io|kUR)-b z`pU48YcTh2vJNezXB{(s>2B5+KrqK<-@DhA3IA~Fbg_eBPAf<-?Bst|A?h|SV5-4o z(12h+l&Z6mVT%s5Y1mAD9xqn>q8sG_F;PN30VuN z+fMjWT|JBFMKx>86=5y~<6JaWK}YTmGG}KXNY)(`f3Ym6@U>tiTMK+`YW{QmqHdEz znhS>QUA8a`w9od`X&9^q4VAWAP+o4zoN}+Q&_iuxm1XH+?gNEMNw zvC_nrQbH)L>-~J+FTpFj+6rVF9UUE0w_Q^ANS|JGis)gcq}0^b*7{cmb%vG=hKAkg z|MAL0=3N3RQ|_If63ts`Gg+~=!p-vq2?nyKM-am6b>TT`?okg zLe?wNGcqLK-A%`S7Uml1(g6&DKoBzeyv|V8dj>0>i6Mhi3TYYc(|p%sR!7il3^}n3 zHzv)dF{NRlG4AGeY_lW?@&G$nfYOR%fwihiB`o0J&=N}rfOc@oM!l}Ox-O1-atMXK zM|RUQH9a-b;Bvg(cClQ^@Y0QY0kckct-9??=60(47sXc5?#tJ&11FCS3#7gq6|dNk ziSeoX#h`G`px>k`CX^tX^izDmSUXt3(L6GY->O&lTbXAIiam0(LvoxOk-l|L$CdnW z9R0s(`2RvfH^>dCYI$qFZ7Zf~LhMdm(w)cKP_c>QFk?n1c7as=b3@eNaImt_7(W7| z_9JBDM2_8wiDzrxtHSDevg)QLZk#42Ufc>Qmy3meb2OXu9HYbc$f%u3|_NlQK9Dl^8i*2k+Z{o)qjuIJ%hTsSVo#QbYN=g>On9;^tfzEgSzVae?P9+ zp4n}&tTkm{Co3x}wT>M(64h|)(T1iV$(3&9pG)2%LEbhr3mfh~cI_>VjEq!tD&Pvn zvKe6p-yh=#kGg=M*k?+hsnzY*Pm`pgq{PA!_^MR0AgHF{;cS%E#TWsi$gNK-e|!NB z@?A;&T|z;1fi`vg*?<+(*7C@@CHD*A9Oj)nR{{$(n<`sfO-+fYOdTyFaC(f?|GR5- z&p@Z4Kzc8(b);Ju%Cr!PdJ2)XPQ6e6-#a7cMvlwRNbpri=Q1FKzv%Vyrv9|G!}!f! z$=z6Sx;gJ8V|{C2B}oQzfZ+Y({~Qt@S`^tE5mLTf^w`)~M{IoB^_x4Zynr{x+LA2yag3^AY#evL-U%y= z_Uw^X7oGhc5*n&Piw*kx&u&;qFyA~6P_~VUs|qdC8u)dsgMxxiwIC+-%<3eYbK4-8 z2?HKvN8&StR8{|Txj8u{&!4;fyD7!1jD>8*QxXOXKt`|-zlhzT;o+y2%$1A6<&6sz z%!~l1Yhlrmbj-@q$tCOyD*mV3==LS%|1J(HlHP4jiZ`_byz`Np8}4|0c0~^>64TXOS&mEk%YD(R)Qk?&1PoI`> zE!ZCGqF(f)wUuTKxsVPjJ2F;7eN(-k;aE296meOxE;*V%kFb>H_n{j%Q|cX%F{|F& z9}MazSx4~>I5yRg>NjoODjh0JDW>PDV0PK0jvX6Xsaw2oBvH5?6mT>|Rl5{)$5I}#=))6bUFvoh6^G(7TP_r=je5+ZZBhnd7{+X#r#83ld#(|Ft6Kh#Wfky@ z9QbZrl~XO&hK64K8D-?{^X1wgT9GK4=rF)q&;C;rMz6zIrYQC=@5KrieEk33V>Sw% z;V~#E=Bd9=WYDB0lv+yH0-Ce`e&_T|Uv>C85a0UERU}k1!zM9i=QRDw}etL7{sW?_y#b&7*WhxCAFksqR9;KUN&vu0D9Iy&~L)4k{f4`t3>$<7#&^>(2g(7IfqC;MzbkoA;ExXjmE@HvLEO#6g(XE-Q?F#`lf z!0ktj`ZojVapBUIl($wY0h1TL&ieJk=FaU-$GcikY{*8x0F<~t8OiRWrXrwk;v4k_ z3{cR}>3m2HE#vLO;KnFrr011Gdm(n;HIoY%BFDcYn|ayzh4t}yK6>uSsVX}19#|Gs z(ZSIXICazZ?e68{dG&^J(p=rC+=P0;kZCCE5J`s;#+}n@+DK3^O-)zDH!5No56Lu3 z9=PIP+DSw@cw?^Dhv#EhvDNF|UFGNI>|J@;3*^|Ai{Cz!(Wy1l4%yWJMY~xz`{#0P zLTajlZo=4`*p0)6wqzcf+?FKZ|D=q;O9(yGw6gm|t2q>KO(^j&RGz>T{_mPJ)q_y+ ztG|8I{_>fY!ON;A>AJI`R@=5^O9N78cg+m%&m4Q}e}7S!|E2L*1_`k);2FUXX{Y2#BubUL3e)KM$P5DaAwjZ&AP{zNhqW m;UtHRFV_Y?f9BuXxF)cEu$kuNlxgH{vbW7x>!Vh)R{bBfpB#Pw literal 0 HcmV?d00001 From 101c2ef143932c3913df5861dd968d11d58e8d5c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 26 Jan 2023 12:43:26 +0200 Subject: [PATCH 034/250] Remove unused field --- .../reactive/client/impl/ClientReaderInterceptorContextImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java index 51a857e8b0474..202565e43fcf9 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java @@ -28,7 +28,6 @@ public class ClientReaderInterceptorContextImpl extends AbstractClientIntercepto final ConfigurationImpl configuration; final Serialisers serialisers; InputStream inputStream; - boolean done = false; private int index = 0; private final ReaderInterceptor[] interceptors; private final MultivaluedMap headers = new CaseInsensitiveMap<>(); From e93a7206c960910a127eb832d9c77ac9044cd406 Mon Sep 17 00:00:00 2001 From: Marcell Cruz Date: Fri, 20 Jan 2023 16:19:40 -0300 Subject: [PATCH 035/250] Adding property to disable hibernate validation Co-Authored-By: George Gastaldi --- .../HibernateOrmConfigPersistenceUnit.java | 17 +++++++++++ .../orm/deployment/HibernateOrmProcessor.java | 6 +++- .../JPAValidationDisabledTestCase.java | 30 +++++++++++++++++++ ...application-validation-disabled.properties | 6 ++++ 4 files changed, 58 insertions(+), 1 deletion(-) mode change 100644 => 100755 extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java mode change 100644 => 100755 extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java create mode 100755 extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java create mode 100755 extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java old mode 100644 new mode 100755 index 8b451d302230a..3f478122b4b1e --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java @@ -219,6 +219,12 @@ public class HibernateOrmConfigPersistenceUnit { @ConfigItem(defaultValue = "true") public boolean secondLevelCachingEnabled; + /** + * Bean Validation configuration. + */ + @ConfigItem + public HibernateOrmConfigPersistenceValidation validation; + /** * Defines the method for multi-tenancy (DATABASE, NONE, SCHEMA). The complete list of allowed values is available in the * https://javadoc.io/doc/org.hibernate/hibernate-core/5.6.10.Final/org/hibernate/MultiTenancyStrategy.html[Hibernate ORM @@ -496,4 +502,15 @@ public enum IdentifierQuotingStrategy { ALL_EXCEPT_COLUMN_DEFINITIONS, ONLY_KEYWORDS } + + @ConfigGroup + public static class HibernateOrmConfigPersistenceValidation { + + /** + * Enables the Bean Validation integration. + */ + @ConfigItem(defaultValue = "true") + public boolean enabled; + } + } diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java old mode 100644 new mode 100755 index cbcf48eefe371..cd98bf5ae3d65 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java @@ -1183,7 +1183,11 @@ private static void producePersistenceUnitDescriptorFromConfig( // Hibernate Validator integration: we force the callback mode to have bootstrap errors reported rather than validation ignored // if there is any issue when bootstrapping Hibernate Validator. if (capabilities.isPresent(Capability.HIBERNATE_VALIDATOR)) { - descriptor.getProperties().setProperty(AvailableSettings.JPA_VALIDATION_MODE, ValidationMode.CALLBACK.name()); + if (persistenceUnitConfig.validation.enabled) { + descriptor.getProperties().setProperty(AvailableSettings.JPA_VALIDATION_MODE, ValidationMode.CALLBACK.name()); + } else { + descriptor.getProperties().setProperty(AvailableSettings.JPA_VALIDATION_MODE, ValidationMode.NONE.name()); + } } // Collect the storage engines if MySQL or MariaDB diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java new file mode 100755 index 0000000000000..33759606d7777 --- /dev/null +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java @@ -0,0 +1,30 @@ +package io.quarkus.hibernate.orm.validation; + +import static org.hamcrest.Matchers.is; + +import javax.transaction.Transactional; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.hibernate.orm.MyEntity; +import io.quarkus.test.QuarkusUnitTest; +import io.restassured.RestAssured; + +public class JPAValidationDisabledTestCase { + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClasses(MyEntity.class, JPATestValidationResource.class) + .addAsResource("application-validation-disabled.properties", "application.properties")); + + @Test + @Transactional + public void testValidEntity() { + String entityName = "Post method should not persist an entity having a Size constraint of 50 on the name column if validation was enabled."; + RestAssured.given().body(entityName).when().post("/validation").then() + .body(is("OK")); + } + +} diff --git a/extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties b/extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties new file mode 100755 index 0000000000000..bf76287adc5da --- /dev/null +++ b/extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties @@ -0,0 +1,6 @@ +quarkus.datasource.db-kind=h2 +quarkus.datasource.jdbc.url=jdbc:h2:mem:test + +#quarkus.hibernate-orm.log.sql=true +quarkus.hibernate-orm.validation.enabled=false +quarkus.hibernate-orm.database.generation=drop-and-create From 179b0a9c567a1dafd6c8d6f1d575a93b28caabe9 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 12:18:25 +0100 Subject: [PATCH 036/250] Move checkout on top of preview.yml Apparently checking out will get rid of the content. --- .github/workflows/preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1a9db28e0552a..56bdc5f2191a9 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: + - uses: actions/checkout@v3 + with: + repository: quarkusio/quarkusio.github.io - name: Download PR Artifact uses: dawidd6/action-download-artifact@v2 with: @@ -22,9 +25,6 @@ jobs: id: pr run: | echo "id=$(> $GITHUB_OUTPUT - - uses: actions/checkout@v3 - with: - repository: quarkusio/quarkusio.github.io - name: Sync documentation shell: bash run: | From 4f235d47a143cd9b7e00591fe0fef364ff4ba204 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 26 Jan 2023 13:12:21 +0200 Subject: [PATCH 037/250] Provide useful hint when json processing extensions missing from REST Client Relates to: #30465 --- .../RestClientReactiveProcessor.java | 8 +++ ...eBodyReaderErrorMessageContextualizer.java | 16 +++++ ...eBodyReaderErrorMessageContextualizer.java | 16 +++++ ...essageBodyReaderErrorMessageContextualizer | 2 + .../ClientReaderInterceptorContextImpl.java | 60 ++++++++++++++++++- ...eBodyReaderErrorMessageContextualizer.java | 27 +++++++++ 6 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java create mode 100644 extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java create mode 100644 extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/services/org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer create mode 100644 independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java index 9f4a5b239dd4c..236911b507336 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java @@ -47,6 +47,7 @@ import org.jboss.jandex.MethodInfo; import org.jboss.jandex.Type; import org.jboss.logging.Logger; +import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; import org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; @@ -71,6 +72,7 @@ import io.quarkus.deployment.builditem.GeneratedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; import io.quarkus.deployment.util.AsmUtil; import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.MethodCreator; @@ -127,6 +129,12 @@ ExtensionSslNativeSupportBuildItem activateSslNativeSupport() { return new ExtensionSslNativeSupportBuildItem(Feature.REST_CLIENT_REACTIVE); } + @BuildStep + ServiceProviderBuildItem nativeSpiSupport() { + return ServiceProviderBuildItem + .allProvidersFromClassPath(MissingMessageBodyReaderErrorMessageContextualizer.class.getName()); + } + @BuildStep void setUpDefaultMediaType(BuildProducer consumes, BuildProducer produces, diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java new file mode 100644 index 0000000000000..1329d3fb51807 --- /dev/null +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java @@ -0,0 +1,16 @@ +package io.quarkus.rest.client.reactive.runtime.spi; + +import javax.ws.rs.core.MediaType; + +import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; + +public class JsonMissingMessageBodyReaderErrorMessageContextualizer implements + MissingMessageBodyReaderErrorMessageContextualizer { + @Override + public String provideContextMessage(Input input) { + if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_JSON_TYPE)) { + return "Consider adding one the 'quarkus-rest-client-reactive-jackson' or 'quarkus-rest-client-reactive-jsonb' extensions"; + } + return null; + } +} diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java new file mode 100644 index 0000000000000..4b2c947a33b45 --- /dev/null +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java @@ -0,0 +1,16 @@ +package io.quarkus.rest.client.reactive.runtime.spi; + +import javax.ws.rs.core.MediaType; + +import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; + +public class XmlMissingMessageBodyReaderErrorMessageContextualizer implements + MissingMessageBodyReaderErrorMessageContextualizer { + @Override + public String provideContextMessage(Input input) { + if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_XML_TYPE)) { + return "Consider adding the 'quarkus-rest-client-reactive-jaxb' extension"; + } + return null; + } +} diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/services/org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/services/org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer new file mode 100644 index 0000000000000..781ae01f4f3ce --- /dev/null +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/resources/META-INF/services/org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer @@ -0,0 +1,2 @@ +io.quarkus.rest.client.reactive.runtime.spi.JsonMissingMessageBodyReaderErrorMessageContextualizer +io.quarkus.rest.client.reactive.runtime.spi.XmlMissingMessageBodyReaderErrorMessageContextualizer diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java index 202565e43fcf9..f8ccc56bbcefa 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java @@ -4,8 +4,11 @@ import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.ServiceLoader; import javax.ws.rs.ProcessingException; import javax.ws.rs.RuntimeType; @@ -17,6 +20,7 @@ import javax.ws.rs.ext.ReaderInterceptorContext; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; +import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; @@ -24,6 +28,22 @@ public class ClientReaderInterceptorContextImpl extends AbstractClientInterceptorContextImpl implements ReaderInterceptorContext { + private static final List contextualizers; + + static { + var loader = ServiceLoader.load(MissingMessageBodyReaderErrorMessageContextualizer.class, Thread.currentThread() + .getContextClassLoader()); + if (!loader.iterator().hasNext()) { + contextualizers = Collections.emptyList(); + } else { + contextualizers = new ArrayList<>(1); + for (var entry : loader) { + contextualizers.add(entry); + } + } + + } + final RestClientRequestContext clientRequestContext; final ConfigurationImpl configuration; final Serialisers serialisers; @@ -70,9 +90,45 @@ public Object proceed() throws IOException, WebApplicationException { } } } + + StringBuilder errorMessage = new StringBuilder("Response could not be mapped to type " + entityType); + if (!contextualizers.isEmpty()) { + var input = new MissingMessageBodyReaderErrorMessageContextualizer.Input() { + @Override + public Class type() { + return entityClass; + } + + @Override + public Type genericType() { + return entityType; + } + + @Override + public Annotation[] annotations() { + return annotations; + } + + @Override + public MediaType mediaType() { + return mediaType; + } + }; + List contextMessages = new ArrayList<>(contextualizers.size()); + for (var contextualizer : contextualizers) { + String contextMessage = contextualizer.provideContextMessage(input); + if (contextMessage != null) { + contextMessages.add(contextMessage); + } + } + if (!contextMessages.isEmpty()) { + errorMessage.append(". Hints: "); + errorMessage.append(String.join(",", contextMessages)); + } + } + // Spec says to throw this - throw new ProcessingException( - "Response could not be mapped to type " + entityType); + throw new ProcessingException(errorMessage.toString()); } else { return interceptors[index++].aroundReadFrom(this); } diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java new file mode 100644 index 0000000000000..fc374f98f848e --- /dev/null +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java @@ -0,0 +1,27 @@ +package org.jboss.resteasy.reactive.client.spi; + +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; + +import javax.ws.rs.core.MediaType; + +public interface MissingMessageBodyReaderErrorMessageContextualizer { + + /** + * Takes the same input as {@link javax.ws.rs.ext.MessageBodyReader#isReadable(Class, Type, Annotation[], MediaType)} + * and returns a {@code String} that contextualizes the error message. + * The result can be null if this class is not able to provide any useful context information. + */ + String provideContextMessage(Input input); + + interface Input { + + Class type(); + + Type genericType(); + + Annotation[] annotations(); + + MediaType mediaType(); + } +} From 9c8677b2f62dce3db3a952e0c6c602d7c607ea75 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Thu, 26 Jan 2023 13:05:43 +0100 Subject: [PATCH 038/250] ArC: make sure all beans have a bean type of java.lang.Object --- .../io/quarkus/arc/processor/BeanInfo.java | 2 + .../quarkus/arc/processor/DecoratorInfo.java | 4 +- .../arc/processor/InterceptorInfo.java | 4 +- .../io/quarkus/arc/impl/BeanManagerImpl.java | 3 +- .../main/java/io/quarkus/arc/impl/Sets.java | 6 +++ .../beans/BeanRegistrarTest.java | 39 +++++++++++++++++++ 6 files changed, 55 insertions(+), 3 deletions(-) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java index 7d1c03c34285e..b71636e5899b8 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java @@ -26,6 +26,7 @@ import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationTarget.Kind; import org.jboss.jandex.ClassInfo; +import org.jboss.jandex.ClassType; import org.jboss.jandex.DotName; import org.jboss.jandex.MethodInfo; import org.jboss.jandex.Type; @@ -117,6 +118,7 @@ public class BeanInfo implements InjectionTargetInfo { this.providerType = providerType; this.beanDeployment = beanDeployment; this.scope = scope != null ? scope : BuiltinScope.DEPENDENT.getInfo(); + types.add(ClassType.OBJECT_TYPE); this.types = types; for (Type type : types) { Beans.analyzeType(type, beanDeployment); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DecoratorInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DecoratorInfo.java index a4bb76071c61e..df3dce0e2919d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DecoratorInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DecoratorInfo.java @@ -12,6 +12,8 @@ import org.jboss.jandex.Type; import org.jboss.jandex.Type.Kind; +import io.quarkus.arc.impl.Sets; + public class DecoratorInfo extends BeanInfo implements Comparable { private final InjectionPointInfo delegateInjectionPoint; @@ -20,7 +22,7 @@ public class DecoratorInfo extends BeanInfo implements Comparable DecoratorInfo(AnnotationTarget target, BeanDeployment beanDeployment, InjectionPointInfo delegateInjectionPoint, Set decoratedTypes, List injections, int priority) { super(target, beanDeployment, BuiltinScope.DEPENDENT.getInfo(), - Collections.singleton(Type.create(target.asClass().name(), Kind.CLASS)), new HashSet<>(), injections, + Sets.singletonHashSet(Type.create(target.asClass().name(), Kind.CLASS)), new HashSet<>(), injections, null, null, false, Collections.emptyList(), null, false, null, priority); this.delegateInjectionPoint = delegateInjectionPoint; this.decoratedTypes = decoratedTypes; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java index 175ddbe05370d..cafe46771b218 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java @@ -20,6 +20,8 @@ import org.jboss.jandex.Type.Kind; import org.jboss.logging.Logger; +import io.quarkus.arc.impl.Sets; + /** * * @author Martin Kouba @@ -41,7 +43,7 @@ public class InterceptorInfo extends BeanInfo implements Comparable bindings, List injections, int priority) { super(target, beanDeployment, BuiltinScope.DEPENDENT.getInfo(), - Collections.singleton(Type.create(target.asClass().name(), Kind.CLASS)), new HashSet<>(), injections, + Sets.singletonHashSet(Type.create(target.asClass().name(), Kind.CLASS)), new HashSet<>(), injections, null, null, false, Collections.emptyList(), null, false, null, priority); this.bindings = bindings; List aroundInvokes = new ArrayList<>(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java index 35f088e70524e..109155c4ced77 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java @@ -58,7 +58,8 @@ public Object getReference(Bean bean, Type beanType, CreationalContext ctx Objects.requireNonNull(beanType, "Bean type is null"); Objects.requireNonNull(ctx, "CreationalContext is null"); if (!BeanTypeAssignabilityRules.instance().matches(beanType, bean.getTypes())) { - throw new IllegalArgumentException("Type " + beanType + " is not a bean type of " + bean); + throw new IllegalArgumentException("Type " + beanType + " is not a bean type of " + bean + + "; its bean types are: " + bean.getTypes()); } if (bean instanceof InjectableBean && ctx instanceof CreationalContextImpl) { return ArcContainerImpl.instance().beanInstanceHandle((InjectableBean) bean, (CreationalContextImpl) ctx).get(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Sets.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Sets.java index f1bd8fbd60d32..c32936e145d9f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Sets.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Sets.java @@ -1,6 +1,7 @@ package io.quarkus.arc.impl; import java.util.Arrays; +import java.util.HashSet; import java.util.Set; public final class Sets { @@ -30,4 +31,9 @@ public static Set of(E... elements) { } } + public static HashSet singletonHashSet(E element) { + HashSet result = new HashSet<>(); + result.add(element); + return result; + } } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java index 54e2308b6cc13..3f58e841dc2a9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java @@ -7,6 +7,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; @@ -18,6 +19,7 @@ import javax.enterprise.context.ApplicationScoped; import javax.enterprise.context.spi.CreationalContext; import javax.enterprise.util.AnnotationLiteral; +import javax.enterprise.util.TypeLiteral; import javax.inject.Inject; import javax.inject.Qualifier; import javax.inject.Singleton; @@ -34,7 +36,9 @@ import io.quarkus.arc.Arc; import io.quarkus.arc.BeanCreator; import io.quarkus.arc.BeanDestroyer; +import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InjectableInstance; +import io.quarkus.arc.InstanceHandle; import io.quarkus.arc.processor.BeanConfigurator; import io.quarkus.arc.processor.BeanInfo; import io.quarkus.arc.processor.BeanRegistrar; @@ -98,6 +102,41 @@ public void testSyntheticBean() { assertEquals(64l, val); } + @Test + public void testSyntheticBeanType() { + InjectableBean integerBean = Arc.container().instance(Integer.class).getBean(); + assertBeanTypes(integerBean, Object.class, Integer.class); + + InjectableBean stringBean = Arc.container().instance(String.class).getBean(); + assertBeanTypes(stringBean, Object.class, String.class); + + InjectableBean stringNextBean = Arc.container().instance(String.class, new NextQualifierLiteral()).getBean(); + assertBeanTypes(stringNextBean, Object.class, String.class); + + InjectableBean listBean = Arc.container().instance(List.class).getBean(); + assertBeanTypes(listBean, Object.class, List.class, new TypeLiteral>() { + }.getType()); + + InjectableInstance longInstance = Arc.container().select(Long.class); + for (InstanceHandle longHandle : longInstance.handles()) { + InjectableBean longBean = longHandle.getBean(); + if (longBean.getPriority() == 10) { + assertBeanTypes(longBean, Object.class, Long.class); + } else if (longBean.getPriority() == 5) { + assertBeanTypes(longBean, Object.class, Long.class, Double.class); + } else { + fail(); + } + } + } + + private static void assertBeanTypes(InjectableBean bean, java.lang.reflect.Type... expectedTypes) { + assertEquals(expectedTypes.length, bean.getTypes().size()); + for (java.lang.reflect.Type expectedType : expectedTypes) { + assertTrue(bean.getTypes().contains(expectedType)); + } + } + @Singleton static class ListConsumer { From 144ef9dcf665c66a4b51b7ccc1b45317b25131cd Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 26 Jan 2023 09:48:45 +0100 Subject: [PATCH 039/250] Bump dekorate 3.3.0 to 3.3.1 Changes https://github.com/dekorateio/dekorate/releases/tag/3.3.1 Required for https://github.com/quarkusio/quarkus/pull/30480 --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f5d9a78d54562..95528de4409eb 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -154,7 +154,7 @@ 1.7.22 1.6.4 1.4.1 - 3.3.0 + 3.3.1 3.2.0 4.2.0 1.0.11 From f2c11d59494979cf4146bec4dca7c9d21ae2dccb Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 15:45:26 +0100 Subject: [PATCH 040/250] sync-web-site.sh - only sync config files if available --- docs/sync-web-site.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 95bb850049cf7..63bfc36629eda 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -95,15 +95,17 @@ rsync -vr --delete \ target/asciidoc/sources/ \ $TARGET_GUIDES -echo -echo "Copying from ../target/asciidoc/generated/ to $TARGET_CONFIG" -echo -rsync -vr --delete \ - --exclude='**/*.html' \ - --exclude='**/index.adoc' \ - --exclude='**/_attributes.adoc' \ - ../target/asciidoc/generated/ \ - $TARGET_CONFIG +if [ -f ../target/asciidoc/generated/ ]; then + echo + echo "Copying from ../target/asciidoc/generated/ to $TARGET_CONFIG" + echo + rsync -vr --delete \ + --exclude='**/*.html' \ + --exclude='**/index.adoc' \ + --exclude='**/_attributes.adoc' \ + ../target/asciidoc/generated/ \ + $TARGET_CONFIG +fi if [ -f target/indexByType.yaml ]; then echo From c245a6c879396372f700d0ad13aaaf834c33b153 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 26 Jan 2023 16:34:08 +0100 Subject: [PATCH 041/250] sync-web-site.sh - use the new serve-only-latest-guides.sh --- docs/sync-web-site.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 63bfc36629eda..3867714766a96 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -132,9 +132,15 @@ else Run one of the following command to check the web site (if not done already): - If you have Jekyll set up locally: + + ./target/web-site/serve-only-latest-guides.sh + + OR if you want to generate all versions include the maintenance branches (2.7, 2.13...): + (cd target/web-site && bundle exec jekyll serve) - If you have Docker or Podman: + cd target/web-site docker run --rm --volume=\"$PWD:/srv/jekyll:Z\" \\ --publish 4000:4000 jekyll/jekyll:4.1.0 jekyll serve --incremental From 2d1fc02edcd2b3c44e3d5969ea0118bb6b268e3d Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 26 Jan 2023 16:30:09 +0200 Subject: [PATCH 042/250] Only register apicurio related classes for reflection when present --- .../registry/avro/ApicurioRegistryAvroProcessor.java | 8 +++++++- .../common/ConfluentRegistryClientProcessor.java | 10 +++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/extensions/schema-registry/apicurio/avro/deployment/src/main/java/io/quarkus/apicurio/registry/avro/ApicurioRegistryAvroProcessor.java b/extensions/schema-registry/apicurio/avro/deployment/src/main/java/io/quarkus/apicurio/registry/avro/ApicurioRegistryAvroProcessor.java index 1e029ff53218e..1e873134abe42 100644 --- a/extensions/schema-registry/apicurio/avro/deployment/src/main/java/io/quarkus/apicurio/registry/avro/ApicurioRegistryAvroProcessor.java +++ b/extensions/schema-registry/apicurio/avro/deployment/src/main/java/io/quarkus/apicurio/registry/avro/ApicurioRegistryAvroProcessor.java @@ -1,5 +1,6 @@ package io.quarkus.apicurio.registry.avro; +import io.quarkus.bootstrap.classloading.QuarkusClassLoader; import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; @@ -30,11 +31,16 @@ public void apicurioRegistryAvro(BuildProducer reflect "io.apicurio.registry.serde.avro.strategy.TopicRecordIdStrategy")); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, true, - "io.apicurio.registry.serde.DefaultSchemaResolver", "io.apicurio.registry.serde.DefaultIdHandler", "io.apicurio.registry.serde.Legacy4ByteIdHandler", "io.apicurio.registry.serde.fallback.DefaultFallbackArtifactProvider", "io.apicurio.registry.serde.headers.DefaultHeadersHandler")); + + String defaultSchemaResolver = "io.apicurio.registry.serde.DefaultSchemaResolver"; + if (QuarkusClassLoader.isClassPresentAtRuntime(defaultSchemaResolver)) { + // Class not present after 2.2.0.Final + reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, true, defaultSchemaResolver)); + } } @BuildStep diff --git a/extensions/schema-registry/confluent/common/deployment/src/main/java/io/quarkus/confluent/registry/common/ConfluentRegistryClientProcessor.java b/extensions/schema-registry/confluent/common/deployment/src/main/java/io/quarkus/confluent/registry/common/ConfluentRegistryClientProcessor.java index 13bce58fe6c4e..5e2d84b28d478 100644 --- a/extensions/schema-registry/confluent/common/deployment/src/main/java/io/quarkus/confluent/registry/common/ConfluentRegistryClientProcessor.java +++ b/extensions/schema-registry/confluent/common/deployment/src/main/java/io/quarkus/confluent/registry/common/ConfluentRegistryClientProcessor.java @@ -1,5 +1,6 @@ package io.quarkus.confluent.registry.common; +import io.quarkus.bootstrap.classloading.QuarkusClassLoader; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem; @@ -19,9 +20,12 @@ public void confluentRegistryClient( if (curateOutcomeBuildItem.getApplicationModel().getDependencies().stream().anyMatch( x -> x.getGroupId().equals("io.confluent") && x.getArtifactId().equals("kafka-schema-serializer"))) { - reflectiveClass - .produce(new ReflectiveClassBuildItem(true, false, false, - "io.confluent.kafka.serializers.context.NullContextNameStrategy")); + + String nullContextNameStrategy = "io.confluent.kafka.serializers.context.NullContextNameStrategy"; + if (QuarkusClassLoader.isClassPresentAtRuntime(nullContextNameStrategy)) { + // Class not present before v7.0.0 + reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, false, nullContextNameStrategy)); + } reflectiveClass .produce(new ReflectiveClassBuildItem(true, true, false, From 3cfb41ba9288eace15b30dec9b8310d3e775662d Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 26 Jan 2023 11:20:13 -0300 Subject: [PATCH 043/250] Interpolate ClientHeaderParam in REST client reactive - Add interpolation functionality for expressions of the form `${config.property.name}` - Add a test for supporting additional text on the header property - Fixes #30631 [extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ConfigUtils.java] - Add interpolation functionality for expressions of the form `${config.property.name}` - Add a method to get the value of a given configuration property - Add a method to replace expressions with the corresponding configuration value - Add constants for the prefix and suffix of expressions [extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java] - Add a test for supporting additional text on the header property - Add a missing non-required header property test [extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java] - Change the handling of multi-valued query parameters - Replace `value.startsWith("${") && value.endsWith("}")` with `value.contains("${")` for query parameters and headers - Add `ConfigUtils.interpolate` for query parameters and headers --- .../MicroProfileRestClientEnricher.java | 8 +-- .../ClientHeaderParamFromPropertyTest.java | 21 ++++++++ .../client/reactive/runtime/ConfigUtils.java | 51 +++++++++++++++---- 3 files changed, 66 insertions(+), 14 deletions(-) diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java index f9c96a3a1e89b..230a9cb0e913c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java @@ -217,9 +217,9 @@ private void addQueryParam(MethodInfo declaringMethod, MethodCreator methodCreat boolean required = annotation.valueWithDefault(index, "required").asBoolean(); ResultHandle valuesList = creator.newInstance(MethodDescriptor.ofConstructor(ArrayList.class)); for (String value : values) { - if (value.startsWith("${") && value.endsWith("}")) { + if (value.contains("${")) { ResultHandle queryValueFromConfig = creator.invokeStaticMethod( - MethodDescriptor.ofMethod(ConfigUtils.class, "getConfigValue", String.class, String.class, + MethodDescriptor.ofMethod(ConfigUtils.class, "interpolate", String.class, String.class, boolean.class), creator.load(value), creator.load(required)); creator.ifNotNull(queryValueFromConfig) @@ -501,9 +501,9 @@ private void addHeaderParam(MethodInfo declaringMethod, MethodCreator fillHeader boolean required = annotation.valueWithDefault(index, "required").asBoolean(); ResultHandle headerList = fillHeaders.newInstance(MethodDescriptor.ofConstructor(ArrayList.class)); for (String value : values) { - if (value.startsWith("${") && value.endsWith("}")) { + if (value.contains("${")) { ResultHandle headerValueFromConfig = fillHeaders.invokeStaticMethod( - MethodDescriptor.ofMethod(ConfigUtils.class, "getConfigValue", String.class, String.class, + MethodDescriptor.ofMethod(ConfigUtils.class, "interpolate", String.class, String.class, boolean.class), fillHeaders.load(value), fillHeaders.load(required)); fillHeaders.ifNotNull(headerValueFromConfig) diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java index 1aa17325c4037..ea4e632a402f2 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java @@ -57,6 +57,14 @@ void shouldSucceedOnMissingNonRequiredHeaderProperty() { assertThat(client.missingNonRequiredProperty()).isEqualTo(HEADER_VALUE); } + @Test + void shouldSupportAdditionalTextOnHeaderProperty() { + Client client = RestClientBuilder.newBuilder().baseUri(baseUri) + .build(Client.class); + + assertThat(client.supportAdditionalText()).isEqualTo("Bearer " + HEADER_VALUE + " Token"); + } + @Path("/") @ApplicationScoped public static class Resource { @@ -64,6 +72,13 @@ public static class Resource { public String returnHeaderValue(@HeaderParam("my-header") String header) { return header; } + + @GET + @Path("/additional-text") + public String returnAdditionalText(@HeaderParam("additional-text") String header) { + return header; + } + } @ClientHeaderParam(name = "my-header", value = "${my.property-value}") @@ -78,5 +93,11 @@ public interface Client { @GET @ClientHeaderParam(name = "some-other-header", value = "${non-existent-property}", required = false) String missingNonRequiredProperty(); + + @GET + @ClientHeaderParam(name = "additional-text", value = "Bearer ${my.property-value} Token") + @Path("/additional-text") + String supportAdditionalText(); + } } diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ConfigUtils.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ConfigUtils.java index f1596ddfb713f..c3315bd645279 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ConfigUtils.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ConfigUtils.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive.runtime; -import java.util.NoSuchElementException; +import java.util.Optional; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.logging.Logger; @@ -9,20 +9,51 @@ public class ConfigUtils { private static final Logger log = Logger.getLogger(ConfigUtils.class); + static final String PREFIX = "${"; + static final String SUFFIX = "}"; + + /** + * Interpolates the given expression. The expression is expected to be in the form of ${config.property.name}. + * + * @param expression the expression to interpolate + * @param required whether the expression is required to be present in the configuration + * @return null if the resulting expression is empty, otherwise the interpolated expression + */ + public static String interpolate(String expression, boolean required) { + StringBuilder sb = new StringBuilder(expression); + int idx; + while ((idx = sb.lastIndexOf(PREFIX)) > -1) { + int endIdx = sb.indexOf(SUFFIX, idx); + if (endIdx < 0) { + throw new IllegalArgumentException("Invalid expression: " + expression); + } + String configValue = getConfigValue(sb.substring(idx, endIdx + 1), required); + // If no value is found, we return null directly + if (configValue == null) { + return null; + } + sb.replace(idx, endIdx + 1, configValue); + } + if (sb.length() == 0) { + return null; + } + return sb.toString(); + } + public static String getConfigValue(String configProperty, boolean required) { String propertyName = stripPrefixAndSuffix(configProperty); try { - return ConfigProvider.getConfig().getValue(propertyName, String.class); - } catch (NoSuchElementException e) { - String message = "Failed to find value for config property " + configProperty + - " in application configuration. Please provide the value for the property, e.g. by adding " + - propertyName + "= to your application.properties"; - if (required) { - throw new IllegalArgumentException(message, e); - } else { + Optional optionalValue = ConfigProvider.getConfig().getOptionalValue(propertyName, String.class); + if (optionalValue.isEmpty()) { + String message = String.format("Failed to find value for config property %s in application configuration. " + + "Please provide the value for the property, e.g. by adding %s= to your application.properties", + configProperty, propertyName); + if (required) { + throw new IllegalArgumentException(message); + } log.warn(message); - return null; } + return optionalValue.orElse(null); } catch (IllegalArgumentException e) { String message = "Failed to convert value for property " + configProperty + " to String"; if (required) { From b1ecd0b065bdc0f783b55581ea872aee38152db3 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Wed, 25 Jan 2023 23:51:11 +0000 Subject: [PATCH 044/250] Record config properties in multiple phases --- .../BuildTimeConfigurationReader.java | 89 ++++++++----------- .../src/main/resources/application.properties | 3 +- .../io/quarkus/extest/ConfiguredBean.java | 7 ++ .../io/quarkus/extest/ConfiguredBeanTest.java | 17 ++++ .../TestShadowBuildTimeToRunTimeConfig.java | 13 +++ 5 files changed, 78 insertions(+), 51 deletions(-) create mode 100644 integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/TestShadowBuildTimeToRunTimeConfig.java diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java index d79c4b00ac4f1..0251d5641f54c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java @@ -381,68 +381,58 @@ ReadResult run() { Container matched = buildTimePatternMap.match(ni); if (matched instanceof FieldContainer) { ConfigValue configValue = config.getConfigValue(propertyName); - if (configValue.getValue() == null) { - continue; + if (configValue.getValue() != null) { + allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); + ni.goToEnd(); + // cursor is located after group property key (if any) + getGroup((FieldContainer) matched, ni); + // we don't have to set the field because the group object init does it for us } - allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - ni.goToEnd(); - // cursor is located after group property key (if any) - getGroup((FieldContainer) matched, ni); - // we don't have to set the field because the group object init does it for us - continue; } else if (matched != null) { assert matched instanceof MapContainer; ConfigValue configValue = config.getConfigValue(propertyName); - if (configValue.getValue() == null) { - continue; + if (configValue.getValue() != null) {// it's a leaf value within a map + // these must always be explicitly set + ni.goToEnd(); + // cursor is located after the map key + String key = ni.getPreviousSegment(); + Map map = getMap((MapContainer) matched, ni); + // we always have to set the map entry ourselves + Field field = matched.findField(); + Converter converter = getConverter(config, field, ConverterType.of(field)); + map.put(key, config.convertValue(configValue, converter)); + allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); } - // it's a leaf value within a map - // these must always be explicitly set - ni.goToEnd(); - // cursor is located after the map key - final String key = ni.getPreviousSegment(); - final Map map = getMap((MapContainer) matched, ni); - // we always have to set the map entry ourselves - Field field = matched.findField(); - Converter converter = getConverter(config, field, ConverterType.of(field)); - map.put(key, config.convertValue(configValue, converter)); - allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - continue; } // build time (run time visible) patterns ni.goToStart(); matched = buildTimeRunTimePatternMap.match(ni); if (matched instanceof FieldContainer) { ConfigValue configValue = config.getConfigValue(propertyName); - if (configValue.getValue() == null) { - continue; + if (configValue.getValue() != null) { + ni.goToEnd(); + // cursor is located after group property key (if any) + getGroup((FieldContainer) matched, ni); + allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); + buildTimeRunTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); } - ni.goToEnd(); - // cursor is located after group property key (if any) - getGroup((FieldContainer) matched, ni); - allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - buildTimeRunTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - continue; } else if (matched != null) { assert matched instanceof MapContainer; ConfigValue configValue = config.getConfigValue(propertyName); - if (configValue.getValue() == null) { - continue; + if (configValue.getValue() != null) {// it's a leaf value within a map + // these must always be explicitly set + ni.goToEnd(); + // cursor is located after the map key + String key = ni.getPreviousSegment(); + Map map = getMap((MapContainer) matched, ni); + // we always have to set the map entry ourselves + Field field = matched.findField(); + Converter converter = getConverter(config, field, ConverterType.of(field)); + map.put(key, config.convertValue(configValue, converter)); + // cache the resolved value + allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); + buildTimeRunTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); } - // it's a leaf value within a map - // these must always be explicitly set - ni.goToEnd(); - // cursor is located after the map key - final String key = ni.getPreviousSegment(); - final Map map = getMap((MapContainer) matched, ni); - // we always have to set the map entry ourselves - Field field = matched.findField(); - Converter converter = getConverter(config, field, ConverterType.of(field)); - map.put(key, config.convertValue(configValue, converter)); - // cache the resolved value - allBuildTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - buildTimeRunTimeValues.put(configValue.getNameProfiled(), configValue.getValue()); - continue; } // run time patterns ni.goToStart(); @@ -453,7 +443,6 @@ ReadResult run() { if (configValue.getValue() != null) { runTimeDefaultValues.put(configValue.getNameProfiled(), configValue.getValue()); } - continue; } // also check for the bootstrap properties since those need to be added to runTimeDefaultValues as well ni.goToStart(); @@ -464,11 +453,11 @@ ReadResult run() { if (configValue.getValue() != null) { runTimeDefaultValues.put(configValue.getNameProfiled(), configValue.getValue()); } - continue; } - // If we reach here it means we were not able to match the property (and it shares roots namespace) - unknownBuildProperties.add(propertyName); + if (matched == null) { + unknownBuildProperties.add(propertyName); + } } else { // it's not managed by us; record it ConfigValue configValue = withoutExpansion(() -> runtimeDefaultsConfig.getConfigValue(propertyName)); diff --git a/integration-tests/test-extension/extension/deployment/src/main/resources/application.properties b/integration-tests/test-extension/extension/deployment/src/main/resources/application.properties index 68a89744d0133..67fd6161b289b 100644 --- a/integration-tests/test-extension/extension/deployment/src/main/resources/application.properties +++ b/integration-tests/test-extension/extension/deployment/src/main/resources/application.properties @@ -33,7 +33,8 @@ quarkus.bt.all-values.nested-config-map.key2.nested-value=value2 quarkus.bt.all-values.nested-config-map.key2.oov=value2.1+value2.2 quarkus.bt.all-values.string-list=value1,value2 quarkus.bt.all-values.long-list=1,2,3 -quarkus.bt.bt-config-value=value +quarkus.bt.bt-config-value=${test.record.expansion} +test.record.expansion=value quarkus.bt.bt-config-value-empty= ### Duplicate settings for the TestBuildAndRunTimeConfig. May be able to drop if ConfigRoot inheritance is added diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java index a27512b6bdc62..e1668d6749360 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java @@ -8,6 +8,7 @@ import io.quarkus.extest.runtime.config.PrefixConfig; import io.quarkus.extest.runtime.config.TestBuildAndRunTimeConfig; import io.quarkus.extest.runtime.config.TestRunTimeConfig; +import io.quarkus.extest.runtime.config.TestShadowBuildTimeToRunTimeConfig; import io.quarkus.extest.runtime.config.named.PrefixNamedConfig; @ApplicationScoped @@ -15,6 +16,8 @@ public class ConfiguredBean { @Inject TestRunTimeConfig runTimeConfig; @Inject + TestShadowBuildTimeToRunTimeConfig shadowBuildTimeToRunTimeConfig; + @Inject TestBuildAndRunTimeConfig buildTimeConfig; @Inject FooRuntimeConfig fooRuntimeConfig; @@ -29,6 +32,10 @@ public TestRunTimeConfig getRunTimeConfig() { return runTimeConfig; } + public TestShadowBuildTimeToRunTimeConfig getShadowBuildTimeToRunTimeConfig() { + return shadowBuildTimeToRunTimeConfig; + } + public TestBuildAndRunTimeConfig getBuildTimeConfig() { return buildTimeConfig; } diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java index 61e65e1c35e76..a2d7d872f5cc7 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java @@ -37,6 +37,7 @@ import io.quarkus.extest.runtime.config.PrefixConfig; import io.quarkus.extest.runtime.config.TestBuildAndRunTimeConfig; import io.quarkus.extest.runtime.config.TestRunTimeConfig; +import io.quarkus.extest.runtime.config.TestShadowBuildTimeToRunTimeConfig; import io.quarkus.extest.runtime.config.named.PrefixNamedConfig; import io.quarkus.test.QuarkusUnitTest; import io.restassured.RestAssured; @@ -392,4 +393,20 @@ void prefixConfig() { // java.version should not be recorded assertFalse(runTimeDefaults.get().getPropertyNames().contains("java.version")); } + + @Test + void shadowBuildTimeToRunTimeConfig() { + TestShadowBuildTimeToRunTimeConfig shadowBuildTimeToRunTimeConfig = configuredBean.getShadowBuildTimeToRunTimeConfig(); + ConfigValue btConfigValue = shadowBuildTimeToRunTimeConfig.btConfigValue; + + assertEquals("quarkus.bt.bt-config-value", btConfigValue.getName()); + assertEquals("value", btConfigValue.getValue()); + + Optional source = config.getConfigSource("RunTime Defaults"); + assertTrue(source.isPresent()); + ConfigSource defaultValues = source.get(); + + assertTrue(defaultValues.getPropertyNames().contains("quarkus.bt.bt-config-value")); + assertEquals("${test.record.expansion}", defaultValues.getValue("quarkus.bt.bt-config-value")); + } } diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/TestShadowBuildTimeToRunTimeConfig.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/TestShadowBuildTimeToRunTimeConfig.java new file mode 100644 index 0000000000000..ddb45ad896990 --- /dev/null +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/TestShadowBuildTimeToRunTimeConfig.java @@ -0,0 +1,13 @@ +package io.quarkus.extest.runtime.config; + +import io.quarkus.runtime.annotations.ConfigItem; +import io.quarkus.runtime.annotations.ConfigPhase; +import io.quarkus.runtime.annotations.ConfigRoot; +import io.smallrye.config.ConfigValue; + +@ConfigRoot(name = "bt", phase = ConfigPhase.RUN_TIME) +public class TestShadowBuildTimeToRunTimeConfig { + /** */ + @ConfigItem + public ConfigValue btConfigValue; +} From 49160adaa3ad6cdbd0bef41d1354b439975d7284 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 26 Jan 2023 15:04:34 -0300 Subject: [PATCH 045/250] Support StatementInspector as `@PersistenceUnitExtension` managed bean - Fixes #27403 --- docs/src/main/asciidoc/hibernate-orm.adoc | 23 +++++ .../hibernate/orm/deployment/ClassNames.java | 1 + .../deployment/HibernateOrmCdiProcessor.java | 3 +- ...plicationScopedStatementInspectorTest.java | 92 +++++++++++++++++++ .../FastBootEntityManagerFactoryBuilder.java | 7 ++ 5 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java diff --git a/docs/src/main/asciidoc/hibernate-orm.adoc b/docs/src/main/asciidoc/hibernate-orm.adoc index a5d8b2398b44f..5017dd72d4e5b 100644 --- a/docs/src/main/asciidoc/hibernate-orm.adoc +++ b/docs/src/main/asciidoc/hibernate-orm.adoc @@ -1111,3 +1111,26 @@ In that case, the interceptor implementation doesn't need to be thread-safe. Due to a limitation in Hibernate ORM itself, `@PreDestroy` methods on `@Dependent`-scoped interceptors will never get called. ==== + + +[[statement_inspectors]] +== Statement Inspectors + +You can assign a `org.hibernate.engine.jdbc.spi.StatementInspector` to your `SessionFactory` by simply defining a CDI bean with the appropriate qualifier: + +[source,java] +---- +@PersistenceUnitExtension // <1> +public class MyStatementInspector implements StatementInspector { // <2> + @Override + public String inspect(String sql) { + // ... + return sql; + } +} +---- +<1> Annotate the statement inspector implementation with the `@PersistenceUnitExtension` qualifier +to tell Quarkus it should be used in the default persistence unit. ++ +For <>, use `@PersistenceUnitExtension("nameOfYourPU")` +<2> Implement `org.hibernate.engine.jdbc.spi.StatementInspector`. diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java index 644689095d286..effe1a6823ba6 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java @@ -55,5 +55,6 @@ private static DotName createConstant(String fqcn) { public static final DotName SESSION = createConstant("org.hibernate.Session"); public static final DotName INTERCEPTOR = createConstant("org.hibernate.Interceptor"); + public static final DotName STATEMENT_INSPECTOR = createConstant("org.hibernate.resource.jdbc.spi.StatementInspector"); } diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java index 18d19e56a3147..38bcc201eed4d 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java @@ -46,7 +46,8 @@ public class HibernateOrmCdiProcessor { private static final Set PERSISTENCE_UNIT_EXTENSION_VALID_TYPES = Set.of( ClassNames.TENANT_RESOLVER, ClassNames.TENANT_CONNECTION_RESOLVER, - ClassNames.INTERCEPTOR); + ClassNames.INTERCEPTOR, + ClassNames.STATEMENT_INSPECTOR); @BuildStep AnnotationsTransformerBuildItem convertJpaResourceAnnotationsToQualifier( diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java new file mode 100644 index 0000000000000..81881654bc0db --- /dev/null +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java @@ -0,0 +1,92 @@ +package io.quarkus.hibernate.orm.jdbc; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.util.ArrayList; +import java.util.List; + +import javax.enterprise.event.Observes; +import javax.inject.Inject; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; +import javax.transaction.UserTransaction; + +import org.hibernate.Session; +import org.hibernate.SessionFactory; +import org.hibernate.resource.jdbc.spi.StatementInspector; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.hibernate.orm.PersistenceUnitExtension; +import io.quarkus.runtime.StartupEvent; +import io.quarkus.test.QuarkusUnitTest; + +public class ApplicationScopedStatementInspectorTest { + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClass(MyEntity.class) + .addClass(ApplicationStatementInspector.class)) + .withConfigurationResource("application.properties"); + + @Inject + SessionFactory sessionFactory; + + @Inject + Session session; + + @Inject + UserTransaction transaction; + + public void initData(@Observes StartupEvent event) throws Exception { + transaction.begin(); + for (int i = 0; i < 3; i++) { + MyEntity entity = new MyEntity(i); + session.persist(entity); + } + transaction.commit(); + } + + @BeforeEach + public void clearStatementInspector() { + ApplicationStatementInspector.statements.clear(); + } + + @Test + public void testStatementInspectorIsLoaded() throws Exception { + transaction.begin(); + session.find(MyEntity.class, 0); + transaction.commit(); + assertThat(ApplicationStatementInspector.statements).hasSize(1); + } + + @Entity(name = "myentity") + @Table + public static class MyEntity { + + @Id + public Integer id; + + public MyEntity() { + } + + public MyEntity(int id) { + this.id = id; + } + } + + @PersistenceUnitExtension // @ApplicationScoped is the default + public static class ApplicationStatementInspector implements StatementInspector { + + static List statements = new ArrayList<>(); + + @Override + public String inspect(String sql) { + statements.add(sql); + return sql; + } + } +} diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java index cad28dcac61a9..f634a1f889564 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java @@ -23,6 +23,7 @@ import org.hibernate.internal.SessionFactoryImpl; import org.hibernate.jpa.boot.spi.EntityManagerFactoryBuilder; import org.hibernate.proxy.EntityNotFoundDelegate; +import org.hibernate.resource.jdbc.spi.StatementInspector; import org.hibernate.service.ServiceRegistry; import org.hibernate.service.spi.ServiceRegistryImplementor; import org.hibernate.tool.schema.spi.CommandAcceptanceException; @@ -184,6 +185,12 @@ protected void populate(String persistenceUnitName, SessionFactoryOptionsBuilder if (!interceptorInstance.isUnsatisfied()) { options.applyStatelessInterceptorSupplier(interceptorInstance::get); } + + InjectableInstance statementInspectorInstance = PersistenceUnitUtil + .singleExtensionInstanceForPersistenceUnit(StatementInspector.class, persistenceUnitName); + if (!statementInspectorInstance.isUnsatisfied()) { + options.applyStatementInspector(statementInspectorInstance.get()); + } } private static class ServiceRegistryCloser implements SessionFactoryObserver { From bdd20781934db847e5c3712793d3cf9e5f6b7d08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:16:59 +0000 Subject: [PATCH 046/250] Bump elasticsearch-opensource-components.version from 8.6.0 to 8.6.1 Bumps `elasticsearch-opensource-components.version` from 8.6.0 to 8.6.1. Updates `elasticsearch-rest-client` from 8.6.0 to 8.6.1 - [Release notes](https://github.com/elastic/elasticsearch/releases) - [Changelog](https://github.com/elastic/elasticsearch/blob/main/CHANGELOG.md) - [Commits](https://github.com/elastic/elasticsearch/compare/v8.6.0...v8.6.1) Updates `elasticsearch-rest-client-sniffer` from 8.6.0 to 8.6.1 - [Release notes](https://github.com/elastic/elasticsearch/releases) - [Changelog](https://github.com/elastic/elasticsearch/blob/main/CHANGELOG.md) - [Commits](https://github.com/elastic/elasticsearch/compare/v8.6.0...v8.6.1) --- updated-dependencies: - dependency-name: org.elasticsearch.client:elasticsearch-rest-client dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.elasticsearch.client:elasticsearch-rest-client-sniffer dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f5d9a78d54562..db6867643d883 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -100,7 +100,7 @@ 1.1.1.Final 1.16 7.6.0.Final - 8.6.0 + 8.6.1 7.10.2 2.2.21 From 0e9bfb395e6ca729a69381c05e57181fcccf27c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Leonardo=20Gon=C3=A7alves?= Date: Thu, 26 Jan 2023 19:17:03 -0300 Subject: [PATCH 047/250] Adjust source language absent in documentation code blocks --- docs/src/main/asciidoc/deploying-to-kubernetes.adoc | 6 +++--- docs/src/main/asciidoc/getting-started-testing.adoc | 4 ++-- docs/src/main/asciidoc/http-reference.adoc | 2 +- docs/src/main/asciidoc/kafka-streams.adoc | 2 +- docs/src/main/asciidoc/podman.adoc | 4 ++-- docs/src/main/asciidoc/quartz.adoc | 2 +- docs/src/main/asciidoc/spring-cache.adoc | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/src/main/asciidoc/deploying-to-kubernetes.adoc b/docs/src/main/asciidoc/deploying-to-kubernetes.adoc index afeb27b99389a..6d6de098f75d3 100644 --- a/docs/src/main/asciidoc/deploying-to-kubernetes.adoc +++ b/docs/src/main/asciidoc/deploying-to-kubernetes.adoc @@ -603,7 +603,7 @@ spec: CPU & Memory limits and requests can be applied to a `Container` (more info in https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[Kubernetes documentation]) using the following configuration: -[source] +[source,properties] ---- quarkus.kubernetes.resources.requests.memory=64Mi quarkus.kubernetes.resources.requests.cpu=250m @@ -629,7 +629,7 @@ containers: Kubernetes exposes applications using https://kubernetes.io/docs/concepts/services-networking/ingress[Ingress resources]. To generate the Ingress resource, just apply the following configuration: -[source] +[source,properties] ---- quarkus.kubernetes.ingress.expose=true ---- @@ -767,7 +767,7 @@ spec: To secure the incoming connections, Kubernetes allows enabling https://kubernetes.io/docs/concepts/services-networking/ingress/#tls[TLS] within the Ingress resource by specifying a Secret that contains a TLS private key and certificate. You can generate a secured Ingress resource by simply adding the "tls.secret-name" properties: -[source] +[source,properties] ---- quarkus.kubernetes.ingress.expose=true quarkus.kubernetes.ingress.target-port=https diff --git a/docs/src/main/asciidoc/getting-started-testing.adoc b/docs/src/main/asciidoc/getting-started-testing.adoc index a3bc99912f3d2..8027f88fa1835 100644 --- a/docs/src/main/asciidoc/getting-started-testing.adoc +++ b/docs/src/main/asciidoc/getting-started-testing.adoc @@ -153,7 +153,7 @@ tests while having the application running in parallel. .Changing the test port ==== You can configure the ports used by tests by configuring `quarkus.http.test-port` for HTTP and `quarkus.http.test-ssl-port` for HTTPS in your `application.properties`: -[source] +[source,properties] ---- quarkus.http.test-port=8083 quarkus.http.test-ssl-port=8446 @@ -169,7 +169,7 @@ so no additional configuration should be required. When using REST Assured in your test, the connection and response timeouts are set to 30 seconds. You can override this setting with the `quarkus.http.test-timeout` property: -[source] +[source,properties] ---- quarkus.http.test-timeout=10s ---- diff --git a/docs/src/main/asciidoc/http-reference.adoc b/docs/src/main/asciidoc/http-reference.adoc index 4a98d84efe846..995b7bafad577 100644 --- a/docs/src/main/asciidoc/http-reference.adoc +++ b/docs/src/main/asciidoc/http-reference.adoc @@ -425,7 +425,7 @@ Supported forwarding address headers are: One can easily add a https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite[SameSite] cookie property to any of the cookies set by a Quarkus endpoint by listing a cookie name and a `SameSite` attribute, for example: -[source] +[source,properties] ---- quarkus.http.same-site-cookie.jwt.value=Lax quarkus.http.same-site-cookie.session.value=Strict diff --git a/docs/src/main/asciidoc/kafka-streams.adoc b/docs/src/main/asciidoc/kafka-streams.adoc index ab71139788325..7d8468d733e5d 100644 --- a/docs/src/main/asciidoc/kafka-streams.adoc +++ b/docs/src/main/asciidoc/kafka-streams.adoc @@ -442,7 +442,7 @@ public class TopologyProducer { The Kafka Streams extension is configured via the Quarkus configuration file `application.properties`. Create the file `aggregator/src/main/resources/application.properties` with the following contents: -[source] +[source,properties] ---- quarkus.kafka-streams.bootstrap-servers=localhost:9092 quarkus.kafka-streams.application-server=${hostname}:8080 diff --git a/docs/src/main/asciidoc/podman.adoc b/docs/src/main/asciidoc/podman.adoc index 6d83e73b80fcd..da73b95fb9fde 100644 --- a/docs/src/main/asciidoc/podman.adoc +++ b/docs/src/main/asciidoc/podman.adoc @@ -123,14 +123,14 @@ For a detailed explanation, see this https://quarkus.io/blog/quarkus-devservices Edit `~/.testcontainers.properties` and add the following line -[source,bash] +[source,properties] ---- ryuk.container.privileged=true ---- Alternatively, you can disable ryuk: -[source] +[source,bash] ---- export TESTCONTAINERS_RYUK_DISABLED=true #not recommended - see above! ---- diff --git a/docs/src/main/asciidoc/quartz.adoc b/docs/src/main/asciidoc/quartz.adoc index 8d44c751b7904..ab735667530f4 100644 --- a/docs/src/main/asciidoc/quartz.adoc +++ b/docs/src/main/asciidoc/quartz.adoc @@ -446,7 +446,7 @@ You can register `plugins`, `job-listeners` and `trigger-listeners` through Quar The example below registers the plugin `org.quartz.plugins.history.LoggingJobHistoryPlugin` named as `jobHistory` with the property `jobSuccessMessage` defined as `Job [{1}.{0}] execution complete and reports: {8}` -[source,conf] +[source,properties] ---- quarkus.quartz.plugins.jobHistory.class=org.quartz.plugins.history.LoggingJobHistoryPlugin quarkus.quartz.plugins.jobHistory.properties.jobSuccessMessage=Job [{1}.{0}] execution complete and reports: {8} diff --git a/docs/src/main/asciidoc/spring-cache.adoc b/docs/src/main/asciidoc/spring-cache.adoc index 05e7de56ae5c9..75807f3294506 100644 --- a/docs/src/main/asciidoc/spring-cache.adoc +++ b/docs/src/main/asciidoc/spring-cache.adoc @@ -170,7 +170,7 @@ include::{includes}/devtools/dev.adoc[] Then, call `http://localhost:8080/weather?city=Raleigh` from a browser. After six long seconds, the application will answer something like this: -[source] +[source,json] ---- {"dailyForecasts":["MONDAY will be cloudy in Raleigh","TUESDAY will be chilly in Raleigh","WEDNESDAY will be rainy in Raleigh"],"executionTimeInMs":6001} ---- From 6c2a6330490d9bff74826e98d771006fe3b54d0e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:28:32 +0000 Subject: [PATCH 048/250] Bump nimbus-jose-jwt from 9.28 to 9.29 Bumps [nimbus-jose-jwt](https://bitbucket.org/connect2id/nimbus-jose-jwt) from 9.28 to 9.29. - [Changelog](https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt) - [Commits](https://bitbucket.org/connect2id/nimbus-jose-jwt/branches/compare/9.29..9.28) --- updated-dependencies: - dependency-name: com.nimbusds:nimbus-jose-jwt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f5d9a78d54562..5ce734e53a095 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -204,7 +204,7 @@ 2.7 0.11.0 - 9.28 + 9.29 0.0.6 0.1.3 2.9.2 From b0c5a48134e3e5c97f37503e84fdf97a56bb1e4f Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 26 Jan 2023 13:12:43 -0300 Subject: [PATCH 049/250] Introduce a `minimum-java-version` in the extension descriptor metadata - Follow-up on #30290 --- .../io/quarkus/maven/ExtensionDescriptorMojo.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java b/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java index 79240d2cfa5d5..e5d04597d599a 100644 --- a/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java +++ b/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java @@ -238,6 +238,9 @@ public static class RemovedResources { @Parameter(property = "skipCodestartValidation") boolean skipCodestartValidation; + @Parameter(defaultValue = "${maven.compiler.release}", readonly = true) + String minimumJavaVersion; + ArtifactCoords deploymentCoords; CollectResult collectedDeploymentDeps; DependencyResult runtimeDeps; @@ -456,6 +459,7 @@ public void execute() throws MojoExecutionException { } setBuiltWithQuarkusCoreVersion(extObject); + addJavaVersion(extObject); addCapabilities(extObject); addSource(extObject); addExtensionDependencies(extObject); @@ -685,6 +689,14 @@ private void addSource(ObjectNode extObject) throws MojoExecutionException { } } + public void addJavaVersion(ObjectNode extObject) { + ObjectNode metadataNode = getMetadataNode(extObject); + // Ignore if already set + if (!metadataNode.has("minimum-java-version") && minimumJavaVersion != null) { + metadataNode.put("minimum-java-version", minimumJavaVersion); + } + } + private void addCapabilities(ObjectNode extObject) throws MojoExecutionException { ObjectNode capsNode = null; if (!capabilities.getProvides().isEmpty()) { From fb6636a9759fb0d244f710dddd93ffba8fd527b3 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 10:11:27 +0100 Subject: [PATCH 050/250] Add debug for transformation script --- jakarta/transform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jakarta/transform.sh b/jakarta/transform.sh index eaecc19adf497..5d55486e62908 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e -u -o pipefail +set -x -e -u -o pipefail shopt -s failglob # Use `export REWRITE_OFFLINE=true` to avoid building components from external repositories From 84953ff732e201a7207e7de600fb60292e591bf1 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Fri, 13 Jan 2023 10:37:05 +0000 Subject: [PATCH 051/250] Deprecate Config bootstrap phase and specific Config build steps --- ...ootstrapConfigSourceProviderBuildItem.java | 4 +++ .../RunTimeConfigBuilderBuildItem.java | 9 ++++++- .../RunTimeConfigurationSourceBuildItem.java | 3 +++ ...TimeConfigurationSourceValueBuildItem.java | 1 + .../StaticInitConfigBuilderBuildItem.java | 9 ++++++- ...taticInitConfigSourceFactoryBuildItem.java | 3 +++ ...aticInitConfigSourceProviderBuildItem.java | 3 +++ .../deployment/steps/ConfigBuildSteps.java | 1 + .../runtime/annotations/ConfigPhase.java | 4 +++ .../runtime/configuration/ConfigBuilder.java | 6 +++++ .../yaml/deployment/ConfigYamlProcessor.java | 23 +++++++--------- .../yaml/runtime/YamlConfigBuilder.java | 12 +++++++++ .../deployment/ResteasyCommonProcessor.java | 9 +++---- .../runtime/config/ResteasyConfigBuilder.java | 26 +++++++++++++++++++ .../config/ResteasyConfigSourceProvider.java | 21 --------------- .../http/deployment/VertxHttpProcessor.java | 11 +++----- .../http/runtime/HttpHostConfigSource.java | 8 +----- .../http/runtime/VertxConfigBuilder.java | 11 ++++++++ 18 files changed, 108 insertions(+), 56 deletions(-) create mode 100644 extensions/config-yaml/runtime/src/main/java/io/quarkus/config/yaml/runtime/YamlConfigBuilder.java create mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigBuilder.java delete mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigSourceProvider.java create mode 100644 extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxConfigBuilder.java diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalBootstrapConfigSourceProviderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalBootstrapConfigSourceProviderBuildItem.java index 6120348bb62b8..4c549800fdf5d 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalBootstrapConfigSourceProviderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/AdditionalBootstrapConfigSourceProviderBuildItem.java @@ -9,7 +9,11 @@ * registered to the Bootstrap Config setup. * This is needed because during Bootstrap Config setup, we don't auto-discover providers * but we do want for example the YAML provider to be enabled. + * + * @deprecated Please use {@link RunTimeConfigBuilderBuildItem} and + * {@link io.smallrye.config.ConfigSourceFactory.ConfigurableConfigSourceFactory}. */ +@Deprecated public final class AdditionalBootstrapConfigSourceProviderBuildItem extends MultiBuildItem { private final String providerClassName; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigBuilderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigBuilderBuildItem.java index 04cd0686abc23..089bf4fce262f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigBuilderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigBuilderBuildItem.java @@ -2,13 +2,20 @@ import io.quarkus.builder.item.MultiBuildItem; +/** + * Provides a way to register a {@link io.quarkus.runtime.configuration.ConfigBuilder} in RUNTIME. + */ public final class RunTimeConfigBuilderBuildItem extends MultiBuildItem { - private String builderClassName; + private final String builderClassName; public RunTimeConfigBuilderBuildItem(final String builderClassName) { this.builderClassName = builderClassName; } + public RunTimeConfigBuilderBuildItem(final Class builderClass) { + this(builderClass.getName()); + } + public String getBuilderClassName() { return builderClassName; } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceBuildItem.java index afa6885c1b6c4..4811e0974bcaa 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceBuildItem.java @@ -8,7 +8,10 @@ /** * Define an additional configuration source which is used at run time. + * + * @deprecated Please use {@link RunTimeConfigBuilderBuildItem} instead. */ +@Deprecated public final class RunTimeConfigurationSourceBuildItem extends MultiBuildItem { private final String className; private final OptionalInt priority; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceValueBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceValueBuildItem.java index 7803c989389e1..7ea6853025238 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceValueBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/RunTimeConfigurationSourceValueBuildItem.java @@ -14,6 +14,7 @@ * The build step can optionally use a configuration object that uses the {@code BOOTSTRAP} config phase and pass this * configuration to the recorder to allow the recorder at runtime to customize its behavior */ +@Deprecated public final class RunTimeConfigurationSourceValueBuildItem extends MultiBuildItem { private final RuntimeValue configSourcesValue; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigBuilderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigBuilderBuildItem.java index f6ec44f26c388..7a8121e41a0fe 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigBuilderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigBuilderBuildItem.java @@ -2,13 +2,20 @@ import io.quarkus.builder.item.MultiBuildItem; +/** + * Provides a way to register a {@link io.quarkus.runtime.configuration.ConfigBuilder} in STATIC INIT. + */ public final class StaticInitConfigBuilderBuildItem extends MultiBuildItem { - private String builderClassName; + private final String builderClassName; public StaticInitConfigBuilderBuildItem(final String builderClassName) { this.builderClassName = builderClassName; } + public StaticInitConfigBuilderBuildItem(final Class builderClass) { + this(builderClass.getName()); + } + public String getBuilderClassName() { return builderClassName; } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceFactoryBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceFactoryBuildItem.java index 1437d1f486afa..a38b4de5c0472 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceFactoryBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceFactoryBuildItem.java @@ -4,7 +4,10 @@ /** * Provides a way to register a ConfigSourceFactory in STATIC INIT. + * + * @deprecated Please use {@link StaticInitConfigBuilderBuildItem} instead. */ +@Deprecated public final class StaticInitConfigSourceFactoryBuildItem extends MultiBuildItem { private String factoryClassName; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceProviderBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceProviderBuildItem.java index b56239824e54f..2b18dc0aa9704 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceProviderBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/StaticInitConfigSourceProviderBuildItem.java @@ -4,7 +4,10 @@ /** * Provides a way to register a ConfigSourceProvider in STATIC INIT. + * + * @deprecated Please use {@link StaticInitConfigBuilderBuildItem} instead. */ +@Deprecated public final class StaticInitConfigSourceProviderBuildItem extends MultiBuildItem { private final String providerClassName; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigBuildSteps.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigBuildSteps.java index 17945bdce7b26..51eab2942912f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigBuildSteps.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigBuildSteps.java @@ -38,6 +38,7 @@ class ConfigBuildSteps { + // Added in the RunTimeConfigurationGenerator to the runtime Config static final String PROVIDER_CLASS_NAME = "io.quarkus.runtime.generated.ConfigSourceProviderImpl"; static final String SERVICES_PREFIX = "META-INF/services/"; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/annotations/ConfigPhase.java b/core/runtime/src/main/java/io/quarkus/runtime/annotations/ConfigPhase.java index cf826cd805c59..318586535d96f 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/annotations/ConfigPhase.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/annotations/ConfigPhase.java @@ -13,7 +13,11 @@ public enum ConfigPhase { /** * Values are read and available for usage at run time and are re-read on each program execution. These values * are used to configure ConfigSourceProvider implementations + * + * @deprecated Please use {@link io.smallrye.config.ConfigSourceFactory.ConfigurableConfigSourceFactory} and + * register it in a {@link io.quarkus.runtime.configuration.ConfigBuilder}. */ + @Deprecated BOOTSTRAP(false, true, true, "Bootstrap"), /** diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigBuilder.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigBuilder.java index 51b8118b56ab8..45dbfd64cd5bf 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigBuilder.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigBuilder.java @@ -2,6 +2,12 @@ import io.smallrye.config.SmallRyeConfigBuilder; +/** + * Provides a way to customize the {@link io.smallrye.config.SmallRyeConfig} used by Quarkus. + *
+ * The {@link ConfigBuilder} must be registered with either StaticInitConfigBuilderBuildItem or + * RunTimeConfigBuilderBuildItem (or both), to be applied. + */ public interface ConfigBuilder { SmallRyeConfigBuilder configBuilder(SmallRyeConfigBuilder builder); diff --git a/extensions/config-yaml/deployment/src/main/java/io/quarkus/config/yaml/deployment/ConfigYamlProcessor.java b/extensions/config-yaml/deployment/src/main/java/io/quarkus/config/yaml/deployment/ConfigYamlProcessor.java index 633e20b06fcfe..c25fab1f0f91a 100644 --- a/extensions/config-yaml/deployment/src/main/java/io/quarkus/config/yaml/deployment/ConfigYamlProcessor.java +++ b/extensions/config-yaml/deployment/src/main/java/io/quarkus/config/yaml/deployment/ConfigYamlProcessor.java @@ -6,14 +6,14 @@ import org.eclipse.microprofile.config.ConfigProvider; -import io.quarkus.config.yaml.runtime.ApplicationYamlConfigSourceLoader; +import io.quarkus.config.yaml.runtime.YamlConfigBuilder; import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.builditem.AdditionalBootstrapConfigSourceProviderBuildItem; import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.HotDeploymentWatchedFileBuildItem; -import io.quarkus.deployment.builditem.StaticInitConfigSourceProviderBuildItem; +import io.quarkus.deployment.builditem.RunTimeConfigBuilderBuildItem; +import io.quarkus.deployment.builditem.StaticInitConfigBuilderBuildItem; import io.smallrye.config.SmallRyeConfig; public final class ConfigYamlProcessor { @@ -24,17 +24,12 @@ public FeatureBuildItem feature() { } @BuildStep - public void bootstrap( - BuildProducer additionalBootstrapConfigSourceProvider, - BuildProducer staticInitConfigSourceProvider) { - additionalBootstrapConfigSourceProvider.produce(new AdditionalBootstrapConfigSourceProviderBuildItem( - ApplicationYamlConfigSourceLoader.InFileSystem.class.getName())); - additionalBootstrapConfigSourceProvider.produce(new AdditionalBootstrapConfigSourceProviderBuildItem( - ApplicationYamlConfigSourceLoader.InClassPath.class.getName())); - staticInitConfigSourceProvider.produce(new StaticInitConfigSourceProviderBuildItem( - ApplicationYamlConfigSourceLoader.InFileSystem.class.getName())); - staticInitConfigSourceProvider.produce(new StaticInitConfigSourceProviderBuildItem( - ApplicationYamlConfigSourceLoader.InClassPath.class.getName())); + public void yamlConfig( + BuildProducer staticInitConfigBuilder, + BuildProducer runTimeConfigBuilder) { + + staticInitConfigBuilder.produce(new StaticInitConfigBuilderBuildItem(YamlConfigBuilder.class)); + runTimeConfigBuilder.produce(new RunTimeConfigBuilderBuildItem(YamlConfigBuilder.class)); } @BuildStep diff --git a/extensions/config-yaml/runtime/src/main/java/io/quarkus/config/yaml/runtime/YamlConfigBuilder.java b/extensions/config-yaml/runtime/src/main/java/io/quarkus/config/yaml/runtime/YamlConfigBuilder.java new file mode 100644 index 0000000000000..9ed037ff36b7b --- /dev/null +++ b/extensions/config-yaml/runtime/src/main/java/io/quarkus/config/yaml/runtime/YamlConfigBuilder.java @@ -0,0 +1,12 @@ +package io.quarkus.config.yaml.runtime; + +import io.quarkus.runtime.configuration.ConfigBuilder; +import io.smallrye.config.SmallRyeConfigBuilder; + +public class YamlConfigBuilder implements ConfigBuilder { + @Override + public SmallRyeConfigBuilder configBuilder(final SmallRyeConfigBuilder builder) { + return builder.withSources(new ApplicationYamlConfigSourceLoader.InFileSystem()) + .withSources(new ApplicationYamlConfigSourceLoader.InClassPath()); + } +} diff --git a/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java b/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java index 079051e30f4bf..32575f5823f61 100644 --- a/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java +++ b/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java @@ -53,13 +53,13 @@ import io.quarkus.deployment.annotations.Consume; import io.quarkus.deployment.annotations.Record; import io.quarkus.deployment.builditem.CombinedIndexBuildItem; -import io.quarkus.deployment.builditem.StaticInitConfigSourceProviderBuildItem; +import io.quarkus.deployment.builditem.StaticInitConfigBuilderBuildItem; import io.quarkus.deployment.builditem.SystemPropertyBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; import io.quarkus.deployment.util.ServiceUtil; import io.quarkus.resteasy.common.runtime.ResteasyInjectorFactoryRecorder; -import io.quarkus.resteasy.common.runtime.config.ResteasyConfigSourceProvider; +import io.quarkus.resteasy.common.runtime.config.ResteasyConfigBuilder; import io.quarkus.resteasy.common.runtime.providers.ServerFormUrlEncodedProvider; import io.quarkus.resteasy.common.spi.ResteasyConfigBuildItem; import io.quarkus.resteasy.common.spi.ResteasyDotNames; @@ -130,15 +130,14 @@ public static final class ResteasyCommonConfigGzip { @BuildStep void addStaticInitConfigSourceProvider( Capabilities capabilities, - BuildProducer initConfigSourceProvider, + BuildProducer staticInitConfigBuilder, BuildProducer reflectiveClass) { if (!capabilities.isCapabilityWithPrefixPresent(Capability.SERVLET)) { return; } - initConfigSourceProvider.produce( - new StaticInitConfigSourceProviderBuildItem(ResteasyConfigSourceProvider.class.getName())); + staticInitConfigBuilder.produce(new StaticInitConfigBuilderBuildItem(ResteasyConfigBuilder.class)); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, ServletConfigSourceImpl.class, diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigBuilder.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigBuilder.java new file mode 100644 index 0000000000000..1504304bcbab4 --- /dev/null +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigBuilder.java @@ -0,0 +1,26 @@ +package io.quarkus.resteasy.common.runtime.config; + +import org.jboss.resteasy.microprofile.config.FilterConfigSource; +import org.jboss.resteasy.microprofile.config.ServletConfigSource; +import org.jboss.resteasy.microprofile.config.ServletContextConfigSource; + +import io.quarkus.runtime.configuration.ConfigBuilder; +import io.smallrye.config.SmallRyeConfigBuilder; + +/** + * Config Sources required to start RESTEasy. + *
+ * Because STATIC INIT, does not auto discover sources, these have to be registered manually. + *
+ * For RUNTIME Config, these sources are auto-discovered via the ServiceLoader mechanism, so no registration is + * required. Ideally, to keep consistency, we should also manually register these sources for RUNTIME Config, but we + * don't have control in the ServiceLoader files provided by RESTEasy. + */ +public class ResteasyConfigBuilder implements ConfigBuilder { + @Override + public SmallRyeConfigBuilder configBuilder(final SmallRyeConfigBuilder builder) { + return builder.withSources(new ServletConfigSource()) + .withSources(new FilterConfigSource()) + .withSources(new ServletContextConfigSource()); + } +} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigSourceProvider.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigSourceProvider.java deleted file mode 100644 index dcc947de4bc73..0000000000000 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ResteasyConfigSourceProvider.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.quarkus.resteasy.common.runtime.config; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.microprofile.config.spi.ConfigSource; -import org.eclipse.microprofile.config.spi.ConfigSourceProvider; -import org.jboss.resteasy.microprofile.config.FilterConfigSource; -import org.jboss.resteasy.microprofile.config.ServletConfigSource; -import org.jboss.resteasy.microprofile.config.ServletContextConfigSource; - -public class ResteasyConfigSourceProvider implements ConfigSourceProvider { - @Override - public Iterable getConfigSources(final ClassLoader forClassLoader) { - List configSources = new ArrayList<>(); - configSources.add(new ServletConfigSource()); - configSources.add(new FilterConfigSource()); - configSources.add(new ServletContextConfigSource()); - return configSources; - } -} diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java index b095f2b0b4ab2..14faf8cd2b9a8 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/VertxHttpProcessor.java @@ -9,7 +9,6 @@ import java.util.Collections; import java.util.List; import java.util.Optional; -import java.util.OptionalInt; import java.util.logging.Level; import java.util.stream.Collectors; @@ -32,7 +31,7 @@ import io.quarkus.deployment.builditem.ExecutorBuildItem; import io.quarkus.deployment.builditem.LaunchModeBuildItem; import io.quarkus.deployment.builditem.LogCategoryBuildItem; -import io.quarkus.deployment.builditem.RunTimeConfigurationSourceBuildItem; +import io.quarkus.deployment.builditem.RunTimeConfigBuilderBuildItem; import io.quarkus.deployment.builditem.ServiceStartBuildItem; import io.quarkus.deployment.builditem.ShutdownContextBuildItem; import io.quarkus.deployment.builditem.ShutdownListenerBuildItem; @@ -57,7 +56,7 @@ import io.quarkus.vertx.http.runtime.CurrentVertxRequest; import io.quarkus.vertx.http.runtime.HttpBuildTimeConfig; import io.quarkus.vertx.http.runtime.HttpConfiguration; -import io.quarkus.vertx.http.runtime.HttpHostConfigSource; +import io.quarkus.vertx.http.runtime.VertxConfigBuilder; import io.quarkus.vertx.http.runtime.VertxHttpRecorder; import io.quarkus.vertx.http.runtime.attribute.ExchangeAttributeBuilder; import io.quarkus.vertx.http.runtime.cors.CORSRecorder; @@ -334,10 +333,8 @@ ServiceStartBuildItem finalizeRouter( } @BuildStep - void hostDefault(BuildProducer serviceProviderBuildItem) { - serviceProviderBuildItem - .produce(new RunTimeConfigurationSourceBuildItem(HttpHostConfigSource.class.getName(), - OptionalInt.of(Integer.MIN_VALUE))); + void config(BuildProducer runtimeConfigBuilder) { + runtimeConfigBuilder.produce(new RunTimeConfigBuilderBuildItem(VertxConfigBuilder.class)); } @Record(ExecutionTime.RUNTIME_INIT) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpHostConfigSource.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpHostConfigSource.java index 74561d45e5685..0b60d975d26f0 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpHostConfigSource.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/HttpHostConfigSource.java @@ -20,12 +20,6 @@ public class HttpHostConfigSource implements ConfigSource, Serializable { public static final String QUARKUS_HTTP_HOST = "quarkus.http.host"; private static final String ALL_INTERFACES = "0.0.0.0"; - private final int priority; - - public HttpHostConfigSource(int priority) { - this.priority = priority; - } - @Override public Map getProperties() { return Collections.singletonMap(QUARKUS_HTTP_HOST, getValue(QUARKUS_HTTP_HOST)); @@ -38,7 +32,7 @@ public Set getPropertyNames() { @Override public int getOrdinal() { - return priority; + return Integer.MIN_VALUE; } @Override diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxConfigBuilder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxConfigBuilder.java new file mode 100644 index 0000000000000..98db8159eeb00 --- /dev/null +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxConfigBuilder.java @@ -0,0 +1,11 @@ +package io.quarkus.vertx.http.runtime; + +import io.quarkus.runtime.configuration.ConfigBuilder; +import io.smallrye.config.SmallRyeConfigBuilder; + +public class VertxConfigBuilder implements ConfigBuilder { + @Override + public SmallRyeConfigBuilder configBuilder(final SmallRyeConfigBuilder builder) { + return builder.withSources(new HttpHostConfigSource()); + } +} From 58a5197d48b8ac071aef7d0ed79bd124de189369 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 27 Jan 2023 09:40:47 +0100 Subject: [PATCH 052/250] ArC - use reflection fallback for PreDestroy callbacks if needed - resolves #30636 --- .../quarkus/arc/processor/BeanGenerator.java | 21 ++++++---- .../postConstruct/inherited/OriginalBean.java | 21 ---------- ...gePrivatePostConstructInheritanceTest.java | 29 ------------- .../inherited/OriginalBean.java | 30 +++++++++++++ ...PackagePrivateCallbackInheritanceTest.java | 42 +++++++++++++++++++ .../inherited/subpackage/AlternativeBean.java | 4 +- 6 files changed, 87 insertions(+), 60 deletions(-) delete mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/OriginalBean.java delete mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/PackagePrivatePostConstructInheritanceTest.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/PackagePrivateCallbackInheritanceTest.java rename independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/{interceptors/postConstruct => lifecyclecallbacks}/inherited/subpackage/AlternativeBean.java (67%) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index 108e9dc8ea88f..828fb73107911 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -279,7 +279,8 @@ Collection generateSyntheticBean(BeanInfo bean) { implementGetIdentifier(bean, beanCreator); implementSupplierGet(beanCreator); if (bean.hasDestroyLogic()) { - implementDestroy(bean, beanCreator, providerType, Collections.emptyMap(), isApplicationClass, baseName); + implementDestroy(bean, beanCreator, providerType, Collections.emptyMap(), isApplicationClass, baseName, + targetPackage); } implementCreate(classOutput, beanCreator, bean, providerType, baseName, Collections.emptyMap(), Collections.emptyMap(), @@ -363,7 +364,7 @@ Collection generateClassBean(BeanInfo bean, ClassInfo beanClass) { implementSupplierGet(beanCreator); if (bean.hasDestroyLogic()) { implementDestroy(bean, beanCreator, providerType, injectionPointToProviderSupplierField, isApplicationClass, - baseName); + baseName, targetPackage); } implementCreate(classOutput, beanCreator, bean, providerType, baseName, injectionPointToProviderSupplierField, @@ -448,7 +449,8 @@ Collection generateProducerMethodBean(BeanInfo bean, MethodInfo produc implementGetIdentifier(bean, beanCreator); implementSupplierGet(beanCreator); if (bean.hasDestroyLogic()) { - implementDestroy(bean, beanCreator, providerType, injectionPointToProviderField, isApplicationClass, baseName); + implementDestroy(bean, beanCreator, providerType, injectionPointToProviderField, isApplicationClass, baseName, + targetPackage); } implementCreate(classOutput, beanCreator, bean, providerType, baseName, injectionPointToProviderField, @@ -529,7 +531,7 @@ Collection generateProducerFieldBean(BeanInfo bean, FieldInfo producer implementGetIdentifier(bean, beanCreator); implementSupplierGet(beanCreator); if (bean.hasDestroyLogic()) { - implementDestroy(bean, beanCreator, providerType, null, isApplicationClass, baseName); + implementDestroy(bean, beanCreator, providerType, null, isApplicationClass, baseName, targetPackage); } implementCreate(classOutput, beanCreator, bean, providerType, baseName, Collections.emptyMap(), Collections.emptyMap(), @@ -795,7 +797,8 @@ protected MethodCreator initConstructor(ClassOutput classOutput, ClassCreator be } protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, ProviderType providerType, - Map injectionPointToProviderField, boolean isApplicationClass, String baseName) { + Map injectionPointToProviderField, boolean isApplicationClass, String baseName, + String targetPackage) { MethodCreator destroy = beanCreator .getMethodCreator("destroy", void.class, providerType.descriptorName(), CreationalContext.class) @@ -817,9 +820,11 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide DotNames.PRE_DESTROY, bean.getDeployment().getBeanArchiveIndex()); for (MethodInfo callback : preDestroyCallbacks) { - if (Modifier.isPrivate(callback.flags())) { - privateMembers.add(isApplicationClass, String.format("@PreDestroy callback %s#%s()", - callback.declaringClass().name(), callback.name())); + if (isReflectionFallbackNeeded(callback, targetPackage)) { + if (Modifier.isPrivate(callback.flags())) { + privateMembers.add(isApplicationClass, String.format("@PreDestroy callback %s#%s()", + callback.declaringClass().name(), callback.name())); + } reflectionRegistration.registerMethod(callback); destroy.invokeStaticMethod(MethodDescriptors.REFLECTIONS_INVOKE_METHOD, destroy.loadClass(callback.declaringClass().name().toString()), diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/OriginalBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/OriginalBean.java deleted file mode 100644 index c3ed4d97a72fd..0000000000000 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/OriginalBean.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.quarkus.arc.test.interceptors.postConstruct.inherited; - -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; - -@ApplicationScoped -public class OriginalBean { - - public static int TIMES_INVOKED = 0; - - // package private, not visible from AlternativeBean without reflection access - @PostConstruct - void postConstruct() { - TIMES_INVOKED++; - } - - public String ping() { - return OriginalBean.class.getSimpleName(); - } - -} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/PackagePrivatePostConstructInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/PackagePrivatePostConstructInheritanceTest.java deleted file mode 100644 index 2b7b98840924f..0000000000000 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/PackagePrivatePostConstructInheritanceTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.quarkus.arc.test.interceptors.postConstruct.inherited; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -import io.quarkus.arc.Arc; -import io.quarkus.arc.ArcContainer; -import io.quarkus.arc.InstanceHandle; -import io.quarkus.arc.test.ArcTestContainer; -import io.quarkus.arc.test.interceptors.postConstruct.inherited.subpackage.AlternativeBean; - -public class PackagePrivatePostConstructInheritanceTest { - - @RegisterExtension - public ArcTestContainer container = new ArcTestContainer(AlternativeBean.class, OriginalBean.class); - - @Test - public void testObserverCanBeInvoked() { - ArcContainer container = Arc.container(); - InstanceHandle origBeanInstance = container.instance(OriginalBean.class); - InstanceHandle alternativeBeanInstance = container.instance(AlternativeBean.class); - Assertions.assertTrue(origBeanInstance.isAvailable()); - Assertions.assertTrue(alternativeBeanInstance.isAvailable()); - Assertions.assertTrue(origBeanInstance.get().ping().equals(alternativeBeanInstance.get().ping())); - // post construct should be invoked via during creation of AlternativeBean even though it's pack-private - Assertions.assertEquals(1, OriginalBean.TIMES_INVOKED); - } -} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java new file mode 100644 index 0000000000000..38341d345c33c --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java @@ -0,0 +1,30 @@ +package io.quarkus.arc.test.lifecyclecallbacks.inherited; + +import java.util.concurrent.atomic.AtomicBoolean; + +import javax.annotation.PostConstruct; +import javax.annotation.PreDestroy; +import javax.enterprise.context.ApplicationScoped; + +@ApplicationScoped +public class OriginalBean { + + static final AtomicBoolean POST_CONSTRUCT = new AtomicBoolean(); + static final AtomicBoolean PRE_DESTROY = new AtomicBoolean(); + + // package private, not visible from AlternativeBean without reflection access + @PostConstruct + void postConstruct() { + POST_CONSTRUCT.set(true); + } + + @PreDestroy + void preDestroy() { + PRE_DESTROY.set(true); + } + + public String ping() { + return OriginalBean.class.getSimpleName(); + } + +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/PackagePrivateCallbackInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/PackagePrivateCallbackInheritanceTest.java new file mode 100644 index 0000000000000..c8c54c1025a19 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/PackagePrivateCallbackInheritanceTest.java @@ -0,0 +1,42 @@ +package io.quarkus.arc.test.lifecyclecallbacks.inherited; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.ArcContainer; +import io.quarkus.arc.InstanceHandle; +import io.quarkus.arc.test.ArcTestContainer; +import io.quarkus.arc.test.lifecyclecallbacks.inherited.subpackage.AlternativeBean; + +public class PackagePrivateCallbackInheritanceTest { + + @RegisterExtension + public ArcTestContainer container = new ArcTestContainer(AlternativeBean.class, OriginalBean.class); + + @Test + public void testCallbacks() { + ArcContainer container = Arc.container(); + InstanceHandle origBeanInstance = container.instance(OriginalBean.class); + InstanceHandle alternativeBeanInstance = container.instance(AlternativeBean.class); + + assertTrue(origBeanInstance.isAvailable()); + assertTrue(alternativeBeanInstance.isAvailable()); + + // AlternativeBean overrides the OriginalBean + assertEquals(origBeanInstance.getBean(), alternativeBeanInstance.getBean()); + assertEquals(AlternativeBean.class.getSimpleName(), alternativeBeanInstance.get().ping()); + assertTrue(origBeanInstance.get().ping().equals(alternativeBeanInstance.get().ping())); + + // post construct should be invoked via during creation of AlternativeBean even though it's pack-private + assertTrue(OriginalBean.POST_CONSTRUCT.get()); + + alternativeBeanInstance.destroy(); + + // pre destroy should be invoked even though it's package-private and AlternativeBean lives in a different package + assertTrue(OriginalBean.PRE_DESTROY.get()); + } +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/subpackage/AlternativeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java similarity index 67% rename from independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/subpackage/AlternativeBean.java rename to independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java index 3c6403ade99d7..2829a93657c2f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/postConstruct/inherited/subpackage/AlternativeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java @@ -1,10 +1,10 @@ -package io.quarkus.arc.test.interceptors.postConstruct.inherited.subpackage; +package io.quarkus.arc.test.lifecyclecallbacks.inherited.subpackage; import javax.annotation.Priority; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Alternative; -import io.quarkus.arc.test.interceptors.postConstruct.inherited.OriginalBean; +import io.quarkus.arc.test.lifecyclecallbacks.inherited.OriginalBean; @Alternative @ApplicationScoped From 955f81ee5ddabf16e02ed44cc6822f74e247d513 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 11:45:00 +0100 Subject: [PATCH 053/250] Avoid .gradle file when replacing javax annotations --- jakarta/transform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jakarta/transform.sh b/jakarta/transform.sh index 5d55486e62908..1323ebfd09455 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -78,7 +78,7 @@ transform_kotlin_module () { local newPackage=${package/javax/jakarta} find $1 -name '*.kt' | xargs --no-run-if-empty sed -i "s@import ${package}@import ${newPackage}@g" find $1 -name '*.kts' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" - find $1 -name '*.gradle' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" + find $1 -name 'build*.gradle' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" done } From c9f44452d16d6ec485e4fe7cd523e2b5cbfb4bc6 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 27 Jan 2023 12:51:10 +0200 Subject: [PATCH 054/250] Introduce a way for users to customize Flyway configuration This is useful for users who need to update Flyway's configuration after it has been populated by Quarkus but before it has been handed off to Flyway Closes: #28502 --- docs/src/main/asciidoc/flyway.adoc | 35 ++++++ .../FlywayExtensionWithCustomizerTest.java | 66 ++++++++++ ...MultipleDatasourcesAndCustomizersTest.java | 113 ++++++++++++++++++ ...tasource-with-customizer-config.properties | 9 ++ ...asource-with-customizers-config.properties | 24 ++++ .../flyway/FlywayConfigurationCustomizer.java | 16 +++ .../runtime/FlywayContainerProducer.java | 49 +++++++- .../quarkus/flyway/runtime/FlywayCreator.java | 17 +++ 8 files changed, 327 insertions(+), 2 deletions(-) create mode 100644 extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java create mode 100644 extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java create mode 100644 extensions/flyway/deployment/src/test/resources/config-for-default-datasource-with-customizer-config.properties create mode 100644 extensions/flyway/deployment/src/test/resources/config-for-multiple-datasource-with-customizers-config.properties create mode 100644 extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayConfigurationCustomizer.java diff --git a/docs/src/main/asciidoc/flyway.adoc b/docs/src/main/asciidoc/flyway.adoc index 5b77ecab564e5..259a1b4088cd6 100644 --- a/docs/src/main/asciidoc/flyway.adoc +++ b/docs/src/main/asciidoc/flyway.adoc @@ -198,6 +198,41 @@ The syntax is as follows: `quarkus.flyway.[optional name.][datasource property]` NOTE: Without configuration, Flyway is set up for every datasource using the default settings. +== Customizing Flyway + +In cases where Flyway needs to be configured in addition to the configuration options that Quarkus provides, the `io.quarkus.flyway.FlywayConfigurationCustomizer` class comes in handy. + +To customize Flyway for the default datasource, simply add a bean like so: + +[source,java] +---- +@Singleton +public static class MyCustomizer implements FlywayConfigurationCustomizer { + + @Override + public void customize(FluentConfiguration configuration) { + // do something with configuration + } +} +---- + +When named datasources are used, the `@FlywayDataSource` annotation can be used to specify the datasource to which the customizer applies. +For example, if there are multiple datasources one of which is called `users` and customization of Flyway is needed for only that datasource, +then the following code can be used: + +[source,java] +---- +@Singleton +@FlywayDataSource("users") +public static class UsersCustomizer implements FlywayConfigurationCustomizer { + + @Override + public void customize(FluentConfiguration configuration) { + // do something with configuration + } +} +---- + == Using the Flyway object In case you are interested in using the `Flyway` object directly, you can inject it as follows: diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java new file mode 100644 index 0000000000000..a1eeaa5832af0 --- /dev/null +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java @@ -0,0 +1,66 @@ +package io.quarkus.flyway.test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.inject.Inject; +import javax.inject.Singleton; + +import org.flywaydb.core.api.configuration.FluentConfiguration; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.agroal.api.AgroalDataSource; +import io.quarkus.flyway.FlywayConfigurationCustomizer; +import io.quarkus.test.QuarkusUnitTest; + +public class FlywayExtensionWithCustomizerTest { + + @Inject + AgroalDataSource defaultDataSource; + + static final FlywayH2TestCustomizer customizer = FlywayH2TestCustomizer + .withDbName("quarkus-customizer") + .withPort(11303) + .withInitSqlFile("src/test/resources/callback-init-data.sql"); + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .setBeforeAllCustomizer(customizer::startH2) + .setAfterAllCustomizer(customizer::stopH2) + .withApplicationRoot((jar) -> jar + .addClasses(FlywayH2TestCustomizer.class, + AddCallbacksCustomizer.class, + FlywayExtensionCallback.class, FlywayExtensionCallback2.class, FlywayExtensionCDICallback.class) + .addAsResource("db/migration/V1.0.3__Quarkus_Callback.sql") + .addAsResource("config-for-default-datasource-with-customizer-config.properties", + "application.properties")); + + @Test + public void testCustomizer() throws SQLException { + try (Connection connection = defaultDataSource.getConnection(); Statement stat = connection.createStatement()) { + try (ResultSet executeQuery = stat.executeQuery("select COUNT(name) from quarked_callback")) { + assertTrue(executeQuery.next(), "Table exists but it is empty"); + int count = executeQuery.getInt(1); + // Expect one row for each callback invoked by Flyway + int expected = FlywayExtensionCallback.DEFAULT_EVENTS.size() + FlywayExtensionCallback2.DEFAULT_EVENTS.size(); + assertEquals(expected, count); + } + } + } + + @Singleton + public static class AddCallbacksCustomizer implements FlywayConfigurationCustomizer { + + @Override + public void customize(FluentConfiguration configuration) { + configuration.callbacks(new FlywayExtensionCallback(), new FlywayExtensionCallback2(), + new FlywayExtensionCDICallback()); + } + } +} diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java new file mode 100644 index 0000000000000..24a35bb5b11ce --- /dev/null +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java @@ -0,0 +1,113 @@ +package io.quarkus.flyway.test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.sql.Connection; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; + +import javax.inject.Inject; +import javax.inject.Named; +import javax.inject.Singleton; + +import org.flywaydb.core.api.configuration.FluentConfiguration; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.agroal.api.AgroalDataSource; +import io.quarkus.flyway.FlywayConfigurationCustomizer; +import io.quarkus.flyway.FlywayDataSource; +import io.quarkus.test.QuarkusUnitTest; + +public class FlywayExtensionWithMultipleDatasourcesAndCustomizersTest { + + @Inject + AgroalDataSource defaultDataSource; + + @Inject + @Named("users") + AgroalDataSource usersDataSource; + + @Inject + @Named("inventory") + AgroalDataSource inventoryDataSource; + + static final FlywayH2TestCustomizer h2ForDefault = FlywayH2TestCustomizer + .withDbName("quarkus-default-customizer") + .withPort(11303) + .withInitSqlFile("src/test/resources/callback-init-data.sql"); + + static final FlywayH2TestCustomizer h2ForUsers = FlywayH2TestCustomizer + .withDbName("quarkus-users-customizer") + .withPort(11304) + .withInitSqlFile("src/test/resources/callback-init-data.sql"); + + static final FlywayH2TestCustomizer h2ForInventory = FlywayH2TestCustomizer + .withDbName("quarkus-inventory-customizer") + .withPort(11305) + .withInitSqlFile("src/test/resources/callback-init-data.sql"); + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .setBeforeAllCustomizer(new Runnable() { + @Override + public void run() { + h2ForDefault.startH2(); + h2ForUsers.startH2(); + h2ForInventory.startH2(); + } + }) + .setAfterAllCustomizer(new Runnable() { + @Override + public void run() { + h2ForDefault.stopH2(); + h2ForUsers.stopH2(); + h2ForInventory.stopH2(); + } + }) + .withApplicationRoot((jar) -> jar + .addClasses(FlywayH2TestCustomizer.class, + AddCallbacksCustomizerForDefaultDS.class, + FlywayExtensionCallback.class, FlywayExtensionCallback2.class, FlywayExtensionCDICallback.class) + .addAsResource("db/migration/V1.0.3__Quarkus_Callback.sql") + .addAsResource("config-for-multiple-datasource-with-customizers-config.properties", + "application.properties")); + + @Test + public void testCustomizers() throws SQLException { + assertEventCount(defaultDataSource, FlywayExtensionCallback.DEFAULT_EVENTS.size()); + assertEventCount(usersDataSource, FlywayExtensionCallback2.DEFAULT_EVENTS.size()); + assertEventCount(inventoryDataSource, 0); + } + + private void assertEventCount(AgroalDataSource dataSource, int expectedEventCount) throws SQLException { + try (Connection connection = dataSource.getConnection(); Statement stat = connection.createStatement()) { + try (ResultSet executeQuery = stat.executeQuery("select COUNT(name) from quarked_callback")) { + assertTrue(executeQuery.next(), "Table exists but it is empty"); + int count = executeQuery.getInt(1); + assertEquals(expectedEventCount, count); + } + } + } + + @Singleton + public static class AddCallbacksCustomizerForDefaultDS implements FlywayConfigurationCustomizer { + + @Override + public void customize(FluentConfiguration configuration) { + configuration.callbacks(new FlywayExtensionCallback()); + } + } + + @Singleton + @FlywayDataSource("users") + public static class AddCallbacksCustomizerForUsersDS implements FlywayConfigurationCustomizer { + + @Override + public void customize(FluentConfiguration configuration) { + configuration.callbacks(new FlywayExtensionCallback2()); + } + } +} diff --git a/extensions/flyway/deployment/src/test/resources/config-for-default-datasource-with-customizer-config.properties b/extensions/flyway/deployment/src/test/resources/config-for-default-datasource-with-customizer-config.properties new file mode 100644 index 0000000000000..c7551b0da4e5c --- /dev/null +++ b/extensions/flyway/deployment/src/test/resources/config-for-default-datasource-with-customizer-config.properties @@ -0,0 +1,9 @@ +quarkus.datasource.db-kind=h2 +quarkus.datasource.username=sa +quarkus.datasource.password=sa +quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost:11303/mem:quarkus-customizer;DB_CLOSE_DELAY=-1 + +# Flyway config properties +quarkus.flyway.migrate-at-start=true +quarkus.flyway.baseline-on-migrate=true +quarkus.flyway.baseline-version=0.0.1 diff --git a/extensions/flyway/deployment/src/test/resources/config-for-multiple-datasource-with-customizers-config.properties b/extensions/flyway/deployment/src/test/resources/config-for-multiple-datasource-with-customizers-config.properties new file mode 100644 index 0000000000000..f03c201799ab5 --- /dev/null +++ b/extensions/flyway/deployment/src/test/resources/config-for-multiple-datasource-with-customizers-config.properties @@ -0,0 +1,24 @@ +quarkus.datasource.db-kind=h2 +quarkus.datasource.username=sa +quarkus.datasource.password=sa +quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost:11303/mem:quarkus-default-customizer;DB_CLOSE_DELAY=-1 + +quarkus.datasource.users.db-kind=h2 +quarkus.datasource.users.username=sa +quarkus.datasource.users.password=sa +quarkus.datasource.users.jdbc.url=jdbc:h2:tcp://localhost:11304/mem:quarkus-users-customizer;DB_CLOSE_DELAY=-1 + +quarkus.datasource.inventory.db-kind=h2 +quarkus.datasource.inventory.username=sa +quarkus.datasource.inventory.password=sa +quarkus.datasource.inventory.jdbc.url=jdbc:h2:tcp://localhost:11305/mem:quarkus-inventory-customizer;DB_CLOSE_DELAY=-1 + +# Flyway config properties +quarkus.flyway.migrate-at-start=true +quarkus.flyway.baseline-on-migrate=true + +quarkus.flyway.users.migrate-at-start=true +quarkus.flyway.users.baseline-on-migrate=true + +quarkus.flyway.inventory.migrate-at-start=true +quarkus.flyway.inventory.baseline-on-migrate=true diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayConfigurationCustomizer.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayConfigurationCustomizer.java new file mode 100644 index 0000000000000..5d03dc10372a6 --- /dev/null +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayConfigurationCustomizer.java @@ -0,0 +1,16 @@ +package io.quarkus.flyway; + +import org.flywaydb.core.api.configuration.FluentConfiguration; + +/** + * Meant to be implemented by a CDI bean that provides arbitrary customization for Flyway's {@link FluentConfiguration} + *

+ * When used without a {@link FlywayDataSource} qualifier, the bean configured the Flyway object which is applied to + * the default datasource. + * If the qualifier is used, then only the Flyway object that applies to the corresponding named datasource will be configured + * by the customizer. + */ +public interface FlywayConfigurationCustomizer { + + void customize(FluentConfiguration configuration); +} diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayContainerProducer.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayContainerProducer.java index 94bfc8cc8d28c..d58bb692839ed 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayContainerProducer.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayContainerProducer.java @@ -1,12 +1,23 @@ package io.quarkus.flyway.runtime; +import java.lang.annotation.Annotation; +import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Set; import javax.sql.DataSource; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.callback.Callback; +import io.quarkus.arc.All; +import io.quarkus.arc.InstanceHandle; +import io.quarkus.datasource.common.runtime.DataSourceUtil; +import io.quarkus.flyway.FlywayConfigurationCustomizer; +import io.quarkus.flyway.FlywayDataSource; + /** * This class is sort of a producer for {@link Flyway}. * @@ -23,9 +34,13 @@ public class FlywayContainerProducer { private final FlywayRuntimeConfig flywayRuntimeConfig; private final FlywayBuildTimeConfig flywayBuildConfig; - public FlywayContainerProducer(FlywayRuntimeConfig flywayRuntimeConfig, FlywayBuildTimeConfig flywayBuildConfig) { + private final List> configCustomizerInstances; + + public FlywayContainerProducer(FlywayRuntimeConfig flywayRuntimeConfig, FlywayBuildTimeConfig flywayBuildConfig, + @All List> configCustomizerInstances) { this.flywayRuntimeConfig = flywayRuntimeConfig; this.flywayBuildConfig = flywayBuildConfig; + this.configCustomizerInstances = configCustomizerInstances; } public FlywayContainer createFlyway(DataSource dataSource, String dataSourceName, boolean hasMigrations, @@ -33,11 +48,41 @@ public FlywayContainer createFlyway(DataSource dataSource, String dataSourceName FlywayDataSourceRuntimeConfig matchingRuntimeConfig = flywayRuntimeConfig.getConfigForDataSourceName(dataSourceName); FlywayDataSourceBuildTimeConfig matchingBuildTimeConfig = flywayBuildConfig.getConfigForDataSourceName(dataSourceName); final Collection callbacks = QuarkusPathLocationScanner.callbacksForDataSource(dataSourceName); - final Flyway flyway = new FlywayCreator(matchingRuntimeConfig, matchingBuildTimeConfig).withCallbacks(callbacks) + final Flyway flyway = new FlywayCreator(matchingRuntimeConfig, matchingBuildTimeConfig, matchingConfigCustomizers( + configCustomizerInstances, dataSourceName)).withCallbacks(callbacks) .createFlyway(dataSource); return new FlywayContainer(flyway, matchingRuntimeConfig.cleanAtStart, matchingRuntimeConfig.migrateAtStart, matchingRuntimeConfig.repairAtStart, matchingRuntimeConfig.validateAtStart, dataSourceName, hasMigrations, createPossible); } + + private List matchingConfigCustomizers( + List> configCustomizerInstances, String dataSourceName) { + if ((configCustomizerInstances == null) || configCustomizerInstances.isEmpty()) { + return Collections.emptyList(); + } + List result = new ArrayList<>(); + for (InstanceHandle instance : configCustomizerInstances) { + Set qualifiers = instance.getBean().getQualifiers(); + boolean qualifierMatchesDS = false; + boolean hasFlywayDataSourceQualifier = false; + for (Annotation qualifier : qualifiers) { + if (qualifier.annotationType().equals(FlywayDataSource.class)) { + hasFlywayDataSourceQualifier = true; + if (dataSourceName.equals(((FlywayDataSource) qualifier).value())) { + qualifierMatchesDS = true; + break; + } + } + } + if (qualifierMatchesDS) { + result.add(instance.get()); + } else if (DataSourceUtil.isDefault(dataSourceName) && !hasFlywayDataSourceQualifier) { + // this is the case where a FlywayConfigurationCustomizer does not have a qualifier at all, therefore is applies to the default datasource + result.add(instance.get()); + } + } + return result; + } } diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java index 47dc567decbaf..df845aae693d7 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java @@ -12,18 +12,31 @@ import org.flywaydb.core.api.callback.Callback; import org.flywaydb.core.api.configuration.FluentConfiguration; +import io.quarkus.flyway.FlywayConfigurationCustomizer; + class FlywayCreator { private static final String[] EMPTY_ARRAY = new String[0]; private final FlywayDataSourceRuntimeConfig flywayRuntimeConfig; private final FlywayDataSourceBuildTimeConfig flywayBuildTimeConfig; + private final List customizers; private Collection callbacks = Collections.emptyList(); + // only used for tests public FlywayCreator(FlywayDataSourceRuntimeConfig flywayRuntimeConfig, FlywayDataSourceBuildTimeConfig flywayBuildTimeConfig) { this.flywayRuntimeConfig = flywayRuntimeConfig; this.flywayBuildTimeConfig = flywayBuildTimeConfig; + this.customizers = Collections.emptyList(); + } + + public FlywayCreator(FlywayDataSourceRuntimeConfig flywayRuntimeConfig, + FlywayDataSourceBuildTimeConfig flywayBuildTimeConfig, + List customizers) { + this.flywayRuntimeConfig = flywayRuntimeConfig; + this.flywayBuildTimeConfig = flywayBuildTimeConfig; + this.customizers = customizers; } public FlywayCreator withCallbacks(Collection callbacks) { @@ -107,6 +120,10 @@ public Flyway createFlyway(DataSource dataSource) { configure.javaMigrationClassProvider(new QuarkusFlywayClassProvider<>(quarkusPathLocationScanner.scanForClasses())); configure.resourceProvider(new QuarkusFlywayResourceProvider(quarkusPathLocationScanner.scanForResources())); + for (FlywayConfigurationCustomizer customizer : customizers) { + customizer.customize(configure); + } + return configure.load(); } } From 892e4f30badb45c184b2baf10f1204b3ce2dee34 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 14:43:42 +0100 Subject: [PATCH 055/250] Adjust name of needs-reproducer label --- .github/quarkus-github-lottery.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/quarkus-github-lottery.yml b/.github/quarkus-github-lottery.yml index 414f2ddef2101..494d80dfee154 100644 --- a/.github/quarkus-github-lottery.yml +++ b/.github/quarkus-github-lottery.yml @@ -8,7 +8,7 @@ buckets: timeout: P3D maintenance: reproducer: - label: "needs-reproducer" + label: "triage/needs-reproducer" needed: delay: P21D timeout: P3D @@ -147,4 +147,4 @@ participants: provided: maxIssues: 2 stale: - maxIssues: 5 \ No newline at end of file + maxIssues: 5 From 155670a10ac1c8087c5cceb8d666a5e5817c8262 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 27 Jan 2023 15:30:26 +0100 Subject: [PATCH 056/250] Drop unused class GradleLogger Having a static reference to a lambda defined in QuarkusTask prevents clean up of this class and thereby causes a memory leak when this code is executed in Gradle builds using the Gradle daemon. --- .../io/quarkus/gradle/tasks/GradleLogger.java | 197 ------------------ .../io/quarkus/gradle/tasks/QuarkusTask.java | 2 - 2 files changed, 199 deletions(-) delete mode 100644 devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/GradleLogger.java diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/GradleLogger.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/GradleLogger.java deleted file mode 100644 index 8acbe9319c964..0000000000000 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/GradleLogger.java +++ /dev/null @@ -1,197 +0,0 @@ -package io.quarkus.gradle.tasks; - -import java.text.MessageFormat; -import java.util.Collections; -import java.util.Map; -import java.util.function.Supplier; - -import org.jboss.logging.Logger; -import org.jboss.logging.LoggerProvider; -import org.wildfly.common.Assert; - -public class GradleLogger implements LoggerProvider { - static final Object[] NO_PARAMS = new Object[0]; - - public static volatile Supplier logSupplier; - - @Override - public Logger getLogger(final String name) { - return new Logger(name) { - @Override - protected void doLog(final Level level, final String loggerClassName, final Object message, - final Object[] parameters, final Throwable thrown) { - final Supplier logSupplier = GradleLogger.logSupplier; - if (logSupplier != null) { - org.gradle.api.logging.Logger log = logSupplier.get(); - String text; - if (parameters == null || parameters.length == 0) { - text = String.valueOf(message); - } else - try { - text = MessageFormat.format(String.valueOf(message), parameters); - } catch (Exception e) { - text = invalidFormat(String.valueOf(message), parameters); - } - doActualLog(log, level, text, thrown); - } - } - - @Override - protected void doLogf(final Level level, final String loggerClassName, final String format, - final Object[] parameters, final Throwable thrown) { - final Supplier logSupplier = GradleLogger.logSupplier; - if (logSupplier != null) { - org.gradle.api.logging.Logger log = logSupplier.get(); - String text; - if (parameters == null) - try { - //noinspection RedundantStringFormatCall - text = String.format(format); - } catch (Exception e) { - text = invalidFormat(format, NO_PARAMS); - } - else - try { - text = String.format(format, (Object[]) parameters); - } catch (Exception e) { - text = invalidFormat(format, parameters); - } - if (!text.startsWith("JBoss Threads version")) { - doActualLog(log, level, text, thrown); - } - } - } - - @Override - public boolean isEnabled(final Level level) { - final Supplier logSupplier = GradleLogger.logSupplier; - if (logSupplier == null) - return false; - org.gradle.api.logging.Logger log = logSupplier.get(); - switch (level) { - case FATAL: - case ERROR: - return log.isErrorEnabled(); - case WARN: - return log.isWarnEnabled(); - case INFO: - return log.isInfoEnabled(); - default: - return log.isDebugEnabled(); - } - } - - void doActualLog(final org.gradle.api.logging.Logger log, final Level level, final String message, - final Throwable thrown) { - //TODO: will fix this in the upcoming version of æsh - // style options are limited unless we crack into jansi ourselves - //buffer.strong("[").project(name).strong("]").a(" ").a(message); - StringBuilder buffer = new StringBuilder(); - buffer.append("[").append(name).append("]").append(" ").append(message); - if (thrown != null) { - switch (level) { - case FATAL: - case ERROR: - log.error(buffer.toString(), thrown); - break; - case WARN: - log.warn(buffer.toString(), thrown); - break; - case INFO: - log.info(buffer.toString(), thrown); - break; - default: - log.debug(buffer.toString(), thrown); - break; - } - } else { - switch (level) { - case FATAL: - case ERROR: - log.error(buffer.toString()); - break; - case WARN: - log.warn(buffer.toString()); - break; - case INFO: - log.info(buffer.toString()); - break; - default: - log.debug(buffer.toString()); - break; - } - } - } - }; - } - - String invalidFormat(final String format, final Object[] parameters) { - final StringBuilder b = new StringBuilder("** invalid format \'" + format + "\'"); - if (parameters != null && parameters.length > 0) { - b.append(" [").append(parameters[0]); - for (int i = 1; i < parameters.length; i++) { - b.append(',').append(parameters[i]); - } - b.append("]"); - } - return b.toString(); - } - - @Override - public void clearMdc() { - } - - @Override - public Object putMdc(final String key, final Object value) { - //throw Assert.unsupported(); - return null; - } - - @Override - public Object getMdc(final String key) { - return null; - } - - @Override - public void removeMdc(final String key) { - } - - @Override - public Map getMdcMap() { - return Collections.emptyMap(); - } - - @Override - public void clearNdc() { - } - - @Override - public String getNdc() { - return ""; - } - - @Override - public int getNdcDepth() { - return 0; - } - - @Override - public String popNdc() { - return ""; - } - - @Override - public String peekNdc() { - return ""; - } - - @Override - public void pushNdc(final String message) { - throw Assert.unsupported(); - } - - @Override - public void setNdcMaxDepth(final int maxDepth) { - } - -} diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java index 254433b5155c3..62a24bbdc5abc 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java @@ -13,8 +13,6 @@ public abstract class QuarkusTask extends DefaultTask { private QuarkusPluginExtension extension; QuarkusTask(String description) { - GradleLogger.logSupplier = this::getLogger; - setDescription(description); setGroup("quarkus"); } From e7d1d247474fbdea54b9e3315a7db4fd13f7cf7d Mon Sep 17 00:00:00 2001 From: Marcell Cruz Date: Thu, 8 Dec 2022 09:37:37 -0300 Subject: [PATCH 057/250] Support custom Flyway credentials and URL - Introduces `quarkus.flyway.username`, `quarkus.flyway.password` and `quarkus.flyway.jdbc-url` config options Co-Authored-By: George Gastaldi Co-Authored-By: Guillaume Smet --- .../test/FlywayExtensionConfigFixture.java | 12 +++++++++ .../quarkus/flyway/runtime/FlywayCreator.java | 25 ++++++++++++++++++- .../FlywayDataSourceRuntimeConfig.java | 21 ++++++++++++++++ integration-tests/flyway/pom.xml | 15 +++++------ .../java/io/quarkus/it/flyway/AppEntity.java | 10 ++++++++ .../flyway/FlywayFunctionalityResource.java | 9 ++++++- .../src/main/resources/application.properties | 18 +++++++------ .../db/location1/V1.0.1__Quarkus.sql | 5 ++-- .../db/location2/V1.0.0__Quarkus.sql | 6 ++--- .../flyway/src/main/resources/initdb.sql | 3 +++ .../it/flyway/FlywayFunctionalityTest.java | 16 ++++++++++-- .../it/flyway/FlywayTestResources.java | 8 ------ 12 files changed, 116 insertions(+), 32 deletions(-) create mode 100644 integration-tests/flyway/src/main/resources/initdb.sql delete mode 100644 integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java index 29a1dd6910a93..06995fe92d44c 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java @@ -140,6 +140,18 @@ public boolean migrateAtStart(String datasourceName) { return getBooleanValue("quarkus.flyway.migrate-at-start", datasourceName); } + public String username(String datasourceName) { + return getStringValue("quarkus.flyway.%s.username", datasourceName); + } + + public String password(String datasourceName) { + return getStringValue("quarkus.flyway.%s.password", datasourceName); + } + + public String jdbcUrl(String datasourceName) { + return getStringValue("quarkus.flyway.%s.jdbc-url", datasourceName); + } + private String getStringValue(String parameterName, String datasourceName) { return getValue(parameterName, datasourceName, String.class); } diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java index df845aae693d7..844be7c8fb053 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayCreator.java @@ -12,7 +12,9 @@ import org.flywaydb.core.api.callback.Callback; import org.flywaydb.core.api.configuration.FluentConfiguration; +import io.agroal.api.AgroalDataSource; import io.quarkus.flyway.FlywayConfigurationCustomizer; +import io.quarkus.runtime.configuration.ConfigurationException; class FlywayCreator { @@ -46,7 +48,28 @@ public FlywayCreator withCallbacks(Collection callbacks) { public Flyway createFlyway(DataSource dataSource) { FluentConfiguration configure = Flyway.configure(); - configure.dataSource(dataSource); + + if (flywayRuntimeConfig.jdbcUrl.isPresent()) { + if (flywayRuntimeConfig.username.isPresent() && flywayRuntimeConfig.password.isPresent()) { + configure.dataSource(flywayRuntimeConfig.jdbcUrl.get(), flywayRuntimeConfig.username.get(), + flywayRuntimeConfig.password.get()); + } else { + throw new ConfigurationException( + "Username and password must be defined when a JDBC URL is provided in the Flyway configuration"); + } + } else { + if (flywayRuntimeConfig.username.isPresent() && flywayRuntimeConfig.password.isPresent()) { + AgroalDataSource agroalDataSource = (AgroalDataSource) dataSource; + String jdbcUrl = agroalDataSource.getConfiguration().connectionPoolConfiguration() + .connectionFactoryConfiguration().jdbcUrl(); + + configure.dataSource(jdbcUrl, flywayRuntimeConfig.username.get(), + flywayRuntimeConfig.password.get()); + } else { + + configure.dataSource(dataSource); + } + } if (flywayRuntimeConfig.initSql.isPresent()) { configure.initSql(flywayRuntimeConfig.initSql.get()); } diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayDataSourceRuntimeConfig.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayDataSourceRuntimeConfig.java index c76cbfcbae06d..ada19fe53f601 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayDataSourceRuntimeConfig.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayDataSourceRuntimeConfig.java @@ -43,6 +43,27 @@ public static FlywayDataSourceRuntimeConfig defaultConfig() { @ConfigItem public Optional defaultSchema = Optional.empty(); + /** + * The JDBC URL that Flyway uses to connect to the database. + * Falls back to the datasource URL if not specified. + */ + @ConfigItem + public Optional jdbcUrl = Optional.empty(); + + /** + * The username that Flyway uses to connect to the database. + * If no specific JDBC URL is configured, falls back to the datasource username if not specified. + */ + @ConfigItem + public Optional username = Optional.empty(); + + /** + * The password that Flyway uses to connect to the database. + * If no specific JDBC URL is configured, falls back to the datasource password if not specified. + */ + @ConfigItem + public Optional password = Optional.empty(); + /** * Comma-separated case-sensitive list of schemas managed by Flyway. * The first schema in the list will be automatically set as the default one during the migration. diff --git a/integration-tests/flyway/pom.xml b/integration-tests/flyway/pom.xml index 45b355ddeb9aa..bddf06c096556 100644 --- a/integration-tests/flyway/pom.xml +++ b/integration-tests/flyway/pom.xml @@ -21,9 +21,15 @@ io.quarkus quarkus-hibernate-orm + + io.quarkus + quarkus-junit5-internal + test + + io.quarkus - quarkus-jdbc-h2 + quarkus-jdbc-postgresql io.quarkus @@ -39,11 +45,6 @@ quarkus-junit5 test - - io.quarkus - quarkus-test-h2 - test - io.rest-assured rest-assured @@ -85,7 +86,7 @@ io.quarkus - quarkus-jdbc-h2-deployment + quarkus-jdbc-postgresql-deployment ${project.version} pom test diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java index e0f5de42a5f84..ee2446424124e 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java @@ -18,6 +18,8 @@ public class AppEntity { private String name; + private String createdBy; + public int getId() { return id; } @@ -34,6 +36,14 @@ public void setName(final String name) { this.name = name; } + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + @Override public boolean equals(final Object o) { if (this == o) diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java index 5b86041d96ed9..7661d9bc90ff3 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java @@ -71,8 +71,15 @@ public String returnInitSql() { @GET @Path("init-sql-result") public Integer returnInitSqlResult() { - return (Integer) entityManager.createNativeQuery("SELECT ONE_HUNDRED") + return (Integer) entityManager.createNativeQuery("SELECT f_my_constant()") .getSingleResult(); } + @GET + @Path("created-by") + public String returnCreatedByUser() { + return entityManager.createQuery("select a from AppEntity a where a.id = 1", AppEntity.class) + .getSingleResult().getCreatedBy(); + } + } diff --git a/integration-tests/flyway/src/main/resources/application.properties b/integration-tests/flyway/src/main/resources/application.properties index 5c17c56d61759..01118fbc3f0cc 100644 --- a/integration-tests/flyway/src/main/resources/application.properties +++ b/integration-tests/flyway/src/main/resources/application.properties @@ -1,16 +1,19 @@ quarkus.log.console.level=DEBUG quarkus.log.category."org.flywaydb.core".level=DEBUG quarkus.log.category."io.quarkus.flyway".level=DEBUG + # Agroal config -quarkus.datasource.db-kind=h2 -quarkus.datasource.username=sa -quarkus.datasource.password=sa +quarkus.datasource.db-kind=postgresql +quarkus.datasource.devservices.init-script-path=initdb.sql + # default flyway configuration properties -quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:test_quarkus;DB_CLOSE_DELAY=-1 quarkus.flyway.connect-retries=10 quarkus.flyway.schemas=TEST_SCHEMA quarkus.flyway.table=flyway_quarkus_history +quarkus.flyway.username=scott +quarkus.flyway.password=tiger + # spaces should be trimmed quarkus.flyway.locations= db/location1 , classpath:db/location2, classpath:/db/location4 quarkus.flyway.sql-migration-prefix=V @@ -19,16 +22,15 @@ quarkus.flyway.placeholders.foo=bar quarkus.flyway.placeholders.title=REPLACED quarkus.flyway.placeholder-prefix=#[ quarkus.flyway.placeholder-suffix=] -quarkus.flyway.init-sql=CREATE CONSTANT IF NOT EXISTS ONE_HUNDRED VALUE 100 - +quarkus.flyway.init-sql=CREATE SCHEMA IF NOT EXISTS TEST_SCHEMA;CREATE OR REPLACE FUNCTION f_my_constant() RETURNS integer LANGUAGE plpgsql as $func$ BEGIN return 100; END $func$; quarkus.hibernate-orm.database.generation=validate # second Agroal config -quarkus.datasource.second-datasource.db-kind=h2 -quarkus.datasource.second-datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:test_multiple_flyway_datasource;DB_CLOSE_DELAY=-1 +quarkus.datasource.second-datasource.db-kind=postgresql # configuration to test multiple flyway datasources quarkus.flyway.second-datasource.locations=db/location3 quarkus.flyway.second-datasource.sql-migration-prefix=V quarkus.flyway.second-datasource.migrate-at-start=true quarkus.flyway.second-datasource.placeholders.mambo=poa + diff --git a/integration-tests/flyway/src/main/resources/db/location1/V1.0.1__Quarkus.sql b/integration-tests/flyway/src/main/resources/db/location1/V1.0.1__Quarkus.sql index 9560c6c740522..a09ee0986da15 100644 --- a/integration-tests/flyway/src/main/resources/db/location1/V1.0.1__Quarkus.sql +++ b/integration-tests/flyway/src/main/resources/db/location1/V1.0.1__Quarkus.sql @@ -1,7 +1,8 @@ CREATE TABLE TEST_SCHEMA.quarkus_table2 ( id INT, - name VARCHAR(20) + name VARCHAR(20), + createdBy VARCHAR(100) DEFAULT CURRENT_USER NOT NULL ); INSERT INTO TEST_SCHEMA.quarkus_table2(id, name) -VALUES (1, '1.0.1 #[title]'); \ No newline at end of file +VALUES (1, '1.0.1 #[title]'); diff --git a/integration-tests/flyway/src/main/resources/db/location2/V1.0.0__Quarkus.sql b/integration-tests/flyway/src/main/resources/db/location2/V1.0.0__Quarkus.sql index a727ba1ead903..fa82e5645dc3e 100644 --- a/integration-tests/flyway/src/main/resources/db/location2/V1.0.0__Quarkus.sql +++ b/integration-tests/flyway/src/main/resources/db/location2/V1.0.0__Quarkus.sql @@ -1,7 +1,7 @@ CREATE TABLE TEST_SCHEMA.quarkus ( id INT, - name VARCHAR(20) + name VARCHAR(20), + createdBy VARCHAR(100) DEFAULT CURRENT_USER NOT NULL ); -INSERT INTO TEST_SCHEMA.quarkus(id, name) -VALUES (1, '#[foo]'); \ No newline at end of file +INSERT INTO TEST_SCHEMA.quarkus(id, name) VALUES (1, '#[foo]'); \ No newline at end of file diff --git a/integration-tests/flyway/src/main/resources/initdb.sql b/integration-tests/flyway/src/main/resources/initdb.sql new file mode 100644 index 0000000000000..d37e68a1e1a63 --- /dev/null +++ b/integration-tests/flyway/src/main/resources/initdb.sql @@ -0,0 +1,3 @@ +CREATE USER scott with login password 'tiger'; +GRANT ALL ON DATABASE quarkus TO scott; + diff --git a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java index ee6f17a074f75..59bd504667ea8 100644 --- a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java +++ b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayFunctionalityTest.java @@ -5,11 +5,14 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.OS; import io.quarkus.test.junit.QuarkusTest; @QuarkusTest @DisplayName("Tests flyway extension") +@DisabledOnOs(value = OS.WINDOWS, disabledReason = "Our Windows CI does not have Docker installed properly") public class FlywayFunctionalityTest { @Test @@ -43,9 +46,10 @@ public void testPlaceholdersPrefixSuffix() { } @Test - @DisplayName("Returns whether the init-sql is CREATE CONSTANT IF NOT EXISTS ONE_HUNDRED VALUE 100 or not") + @DisplayName("Returns whether the init-sql is CREATE SCHEMA IF NOT EXISTS TEST_SCHEMA;CREATE OR REPLACE FUNCTION f_my_constant() RETURNS integer LANGUAGE plpgsql as $func$ BEGIN return 100; END $func$; or not") public void testReturnInitSql() { - when().get("/flyway/init-sql").then().body(is("CREATE CONSTANT IF NOT EXISTS ONE_HUNDRED VALUE 100")); + when().get("/flyway/init-sql").then().body(is( + "CREATE SCHEMA IF NOT EXISTS TEST_SCHEMA;CREATE OR REPLACE FUNCTION f_my_constant() RETURNS integer LANGUAGE plpgsql as $func$ BEGIN return 100; END $func$;")); } @Test @@ -54,4 +58,12 @@ public void testInitSqlExecuted() { when().get("/flyway/init-sql-result").then().body(is("100")); } + @Test + @DisplayName("Returns if the created-by user is scott") + public void testCreatedByUserIsDifferent() { + when().get("/flyway/created-by").then() + .log().ifValidationFails() + .body(is("scott")); + } + } diff --git a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java b/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java deleted file mode 100644 index a21293f94ad99..0000000000000 --- a/integration-tests/flyway/src/test/java/io/quarkus/it/flyway/FlywayTestResources.java +++ /dev/null @@ -1,8 +0,0 @@ -package io.quarkus.it.flyway; - -import io.quarkus.test.common.QuarkusTestResource; -import io.quarkus.test.h2.H2DatabaseTestResource; - -@QuarkusTestResource(H2DatabaseTestResource.class) -public class FlywayTestResources { -} From 97a16d3475103870b0793e92fb776dd395eec5c4 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 27 Jan 2023 09:28:55 +0200 Subject: [PATCH 058/250] Document redirect options in RESTEasy Reactive Closes: #28781 Co-authored-by: George Gastaldi --- docs/src/main/asciidoc/resteasy-reactive.adoc | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index bbb3bef75532f..d27aa03e9356b 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -780,6 +780,79 @@ public class Endpoint { } ---- +=== Redirect support + +When handling a `@POST`, `@PUT` or `@DELETE` endpoint, it is common practice to redirect to a `@GET` endpoint after the action has been performed to allow the user to reload the page without triggering the action a second time. +There are multiple ways to achieve this. + +==== Using RestResponse + +Using `RestResponse` as the return type while making sure the proper redirection URI is created can be done as in the following example: + +[source,java] +---- +package org.acme.rest; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.atomic.AtomicLong; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.Path; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.UriInfo; +import org.jboss.resteasy.reactive.RestResponse; + +@Path("/fruits") +public class FruitResource { + + public static class Fruit { + public Long id; + public String name; + public String description; + + public Fruit() { + } + + public Fruit(Long id, String name, String description) { + this.id = id; + this.name = name; + this.description = description; + } + } + + private final Map fruits = new ConcurrentHashMap<>(); + private final AtomicLong ids = new AtomicLong(0); + + + public FruitResource() { + Fruit apple = new Fruit(ids.incrementAndGet(), "Apple", "Winter fruit"); + fruits.put(apple.id, apple); + Fruit pinneapple = new Fruit(ids.incrementAndGet(), "Pineapple", "Tropical fruit"); + fruits.put(pinneapple.id, pinneapple); + } + + // when invoked, this method will result in an HTTP redirect to the GET method that obtains the fruit by id + @POST + public RestResponse add(Fruit fruit, @Context UriInfo uriInfo) { + fruit.id = ids.incrementAndGet(); + fruits.put(fruit.id, fruit); + // seeOther results in an HTTP 303 response with the Location header set to the value of the URI + return RestResponse.seeOther(uriInfo.getAbsolutePathBuilder().path(Long.toString(fruit.id)).build()); + } + + @GET + @Path("{id}") + public Fruit byId(Long id) { + return fruits.get(id); + } +} +---- + +==== Using RedirectException + +Users can also throw `javax.ws.rs.RedirectionException` from a method body to get RESTEasy Reactive to perform the desired redirect. + === Async/reactive support [[reactive]] From a1490da1d1caae7926dbfcc29ac6aa051fe1f4d0 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 16:26:14 +0100 Subject: [PATCH 059/250] Remove the executable bit from Java files No idea why they got created with 755 but we want 644. --- .../main/java/io/quarkus/docs/generation/CopyExampleSource.java | 0 .../main/java/io/quarkus/docs/generation/QuarkusBuildItemDoc.java | 0 .../src/main/java/io/quarkus/hal/deployment/HalProcessor.java | 0 .../orm/deployment/HibernateOrmConfigPersistenceUnit.java | 0 .../quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java | 0 .../hibernate/orm/validation/JPAValidationDisabledTestCase.java | 0 .../src/test/resources/application-validation-disabled.properties | 0 .../openapi/deployment/filter/AutoRolesAllowedFilter.java | 0 .../openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java | 0 .../openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java | 0 10 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 docs/src/main/java/io/quarkus/docs/generation/CopyExampleSource.java mode change 100755 => 100644 docs/src/main/java/io/quarkus/docs/generation/QuarkusBuildItemDoc.java mode change 100755 => 100644 extensions/hal/deployment/src/main/java/io/quarkus/hal/deployment/HalProcessor.java mode change 100755 => 100644 extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java mode change 100755 => 100644 extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java mode change 100755 => 100644 extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java mode change 100755 => 100644 extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties mode change 100755 => 100644 extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/filter/AutoRolesAllowedFilter.java mode change 100755 => 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java mode change 100755 => 100644 extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java diff --git a/docs/src/main/java/io/quarkus/docs/generation/CopyExampleSource.java b/docs/src/main/java/io/quarkus/docs/generation/CopyExampleSource.java old mode 100755 new mode 100644 diff --git a/docs/src/main/java/io/quarkus/docs/generation/QuarkusBuildItemDoc.java b/docs/src/main/java/io/quarkus/docs/generation/QuarkusBuildItemDoc.java old mode 100755 new mode 100644 diff --git a/extensions/hal/deployment/src/main/java/io/quarkus/hal/deployment/HalProcessor.java b/extensions/hal/deployment/src/main/java/io/quarkus/hal/deployment/HalProcessor.java old mode 100755 new mode 100644 diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmConfigPersistenceUnit.java old mode 100755 new mode 100644 diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java old mode 100755 new mode 100644 diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java old mode 100755 new mode 100644 diff --git a/extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties b/extensions/hibernate-orm/deployment/src/test/resources/application-validation-disabled.properties old mode 100755 new mode 100644 diff --git a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/filter/AutoRolesAllowedFilter.java b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/filter/AutoRolesAllowedFilter.java old mode 100755 new mode 100644 diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java old mode 100755 new mode 100644 diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java old mode 100755 new mode 100644 From 00c38a0912cf48a3fa36a559c08471776bb165f7 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 27 Jan 2023 11:49:48 +0200 Subject: [PATCH 060/250] Fix opening in IDE when more than IDE is running Fixes: #23002 --- .../main/java/io/quarkus/deployment/ide/IdeProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java index 56903f4840665..b9d9b9f035d59 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java @@ -102,10 +102,10 @@ public EffectiveIdeBuildItem effectiveIde(LaunchModeBuildItem launchModeBuildIte } } } - if (matches.size() == 1) { - result = matches.get(0); - } else if (matches.size() == 0 && runningIdes.size() > 0) { + if ((matches.size() == 0 && runningIdes.size() > 0)) { result = runningIdes.iterator().next(); + } else if (matches.size() >= 1) { + result = matches.get(0); } } } From 3ce102295144fba4fd3b8b57803ffee0ba742eb6 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 27 Jan 2023 17:31:24 +0200 Subject: [PATCH 061/250] Apply minor polish to FlywayProcessor --- .../src/main/java/io/quarkus/flyway/FlywayProcessor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java index f6f9aed30c853..4ab0a4203ff54 100644 --- a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java +++ b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java @@ -68,8 +68,6 @@ class FlywayProcessor { private static final String CLASSPATH_APPLICATION_MIGRATIONS_PROTOCOL = "classpath"; - private static final String JAR_APPLICATION_MIGRATIONS_PROTOCOL = "jar"; - private static final String FILE_APPLICATION_MIGRATIONS_PROTOCOL = "file"; private static final String FLYWAY_BEAN_NAME_PREFIX = "flyway_"; From 1be06ed2e87633e1e7e0578803c10eeb2304a03d Mon Sep 17 00:00:00 2001 From: Christoph Hermann Date: Thu, 12 Jan 2023 14:15:04 +0100 Subject: [PATCH 062/250] Add native compilation section I'd like to propose an additional section `Native compilation` describing how to use the `Validator` to avoid running into https://github.com/quarkusio/quarkus/issues/7686 --- docs/src/main/asciidoc/validation.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/src/main/asciidoc/validation.adoc b/docs/src/main/asciidoc/validation.adoc index 8b05d73542e25..71e086faff1d9 100644 --- a/docs/src/main/asciidoc/validation.adoc +++ b/docs/src/main/asciidoc/validation.adoc @@ -487,6 +487,15 @@ To configure the `ValidatorFactory`, use the exposed configuration properties an Consequently, the only way to define constraints in Quarkus is by annotating your classes. +=== Native compilation + +Building a `Validator` using the `ValidatorFactory` is not possible in native mode. You will end in an +error similar to `javax.validation.NoProviderFoundException: Unable to create a Configuration, because no +Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your +classpath.` + +Always use an injected `Validator`. If you have to configure the `ValidatorFactory` follow the guide at + [[configuration-reference]] == Hibernate Validator Configuration Reference From 934e02611b9600bf8dd998d35947c432c4c7fd5a Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 17:47:29 +0100 Subject: [PATCH 063/250] Improve new section about Bean Validation and native executables --- docs/src/main/asciidoc/validation.adoc | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/src/main/asciidoc/validation.adoc b/docs/src/main/asciidoc/validation.adoc index 71e086faff1d9..8e57b7f8b66e0 100644 --- a/docs/src/main/asciidoc/validation.adoc +++ b/docs/src/main/asciidoc/validation.adoc @@ -487,14 +487,24 @@ To configure the `ValidatorFactory`, use the exposed configuration properties an Consequently, the only way to define constraints in Quarkus is by annotating your classes. -=== Native compilation +=== ValidatorFactory and native executables -Building a `Validator` using the `ValidatorFactory` is not possible in native mode. You will end in an -error similar to `javax.validation.NoProviderFoundException: Unable to create a Configuration, because no +Quarkus provides a default `ValidatorFactory` that you can customize using configuration properties. +This `ValidatorFactory` is carefully initialized to support native executables +using a bootstrap that is Quarkus-specific. + +Creating a `ValidatorFactory` by yourself it not supported in native executables +and if you try to do so, +you will get an error similar to `javax.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your -classpath.` +classpath.` when running your native executable. + +Thus why you should always use the Quarkus-managed `ValidatorFactory` by injecting an instance of +`ValidatorFactory` or directly an instance of `Validator` using CDI injection. -Always use an injected `Validator`. If you have to configure the `ValidatorFactory` follow the guide at +To support some external libraries that are creating a `ValidatorFactory` using the default bootstrap, +Quarkus returns the `ValidatorFactory` managed by Quarkus when `Validation.buildDefaultValidatorFactory()` +is called. [[configuration-reference]] == Hibernate Validator Configuration Reference From 74736ff34af669e8604f5637c739e8439350c526 Mon Sep 17 00:00:00 2001 From: Michelle Purcell Date: Fri, 27 Jan 2023 16:36:59 +0000 Subject: [PATCH 064/250] Fix bad header - remove space --- .../asciidoc/security-oidc-bearer-authentication-concept.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc index a24e71228ee2b..037e5bab400b9 100644 --- a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc @@ -7,7 +7,6 @@ https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc = OIDC Bearer authentication include::_attributes.adoc[] :categories: security,web - :summary: To secure HTTP access to JAX-RS endpoints in your application, you can use Bearer authentication provided by the Quarkus OpenID Connect (OIDC) extension. == Overview of the Bearer authentication mechanism in Quarkus From f36373cb6969c7a6bde818e697771d2072d7bc6b Mon Sep 17 00:00:00 2001 From: Michelle Purcell Date: Fri, 27 Jan 2023 10:53:20 +0000 Subject: [PATCH 065/250] Added refs and moved NVD information to concept Fixed NVD ref Fixed build errors --- ...security-basic-authentication-concept.adoc | 68 +++++---- .../asciidoc/security-overview-concept.adoc | 125 +--------------- ...rity-proactive-authentication-concept.adoc | 8 +- ...urity-vulnerability-detection-concept.adoc | 137 ++++++++++++++++++ 4 files changed, 193 insertions(+), 145 deletions(-) create mode 100644 docs/src/main/asciidoc/security-vulnerability-detection-concept.adoc diff --git a/docs/src/main/asciidoc/security-basic-authentication-concept.adoc b/docs/src/main/asciidoc/security-basic-authentication-concept.adoc index 744bd28812e6c..fc44ce178c40e 100644 --- a/docs/src/main/asciidoc/security-basic-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-basic-authentication-concept.adoc @@ -3,10 +3,14 @@ include::_attributes.adoc[] :categories: security,web -HTTP Basic Authentication is one of the least resource-demanding techniques that enforce access controls to the Web resources. -It uses fields in the HTTP header and does not require HTTP cookies, session identifiers, or login pages. +HTTP Basic authentication is one of the least resource-demanding techniques that enforce access controls to web resources. +You can secure your Quarkus application endpoints with HTTP Basic authentication. Quarkus provides a built-in authentication mechanism for Basic authentication. -An HTTP user agent, such as a web browser, uses an `Authorization` header to provide a user name and password in each HTTP request. +Basic authentication uses fields in the HTTP header and does not require HTTP cookies, session identifiers, or login pages. + +== Authorization header + +An HTTP user agent, for example, a web browser, uses an `Authorization` header to provide a username and password in each HTTP request. The header is specified as `Authorization: Basic `, where credentials are the Base64 encoding of the user ID and password joined by a colon, as shown in the following example. ==== @@ -15,32 +19,46 @@ The header is specified as `Authorization: Basic `, where credentia If the user name is `Alice` and the password is `secret`, the HTTP authorization header would be `Authorization: Basic QWxjZTpzZWNyZXQ=`, where `QWxjZTpzZWNyZXQ=` is a Base64 encoded representation of the `Alice:secret` string. ==== -The Basic Authentication mechanism does not provide confidentiality protection for the transmitted credentials. +The Basic authentication mechanism does not provide confidentiality protection for the transmitted credentials. The credentials are merely encoded with Base64 when in transit and not encrypted or hashed in any way. -Therefore, Basic Authentication is used with HTTPS to provide confidentiality. +Therefore, Basic authentication is used with HTTPS to provide confidentiality. -Basic Authentication is a well-specified, simple challenge and response scheme that all web browsers and most web servers understand. -However, there are a few limitations associated with Basic Authentication, which include: +Basic authentication is a well-specified, simple challenge and response scheme that all web browsers and most web servers understand. -Credentials are sent as plain text:: -+ --- -Use HTTPS with Basic Authentication to avoid exposing the credentials. -The risk of exposing credentials as plain text increases if a load balancer terminates HTTPS, as the request is forwarded to Quarkus over HTTP. +== Limitations with using Basic authentication + +The following table outlines some limitations of using HTTP Basic authentication to secure your Quarkus applications: + +.Limitations of HTTP Basic authentication +[cols="35%,65%"] +|=== +|Limitation |Description + +|Credentials are sent as plain text +|Use HTTPS with Basic authentication to avoid exposing the credentials. +The risk of exposing credentials as plain text increases if a load balancer terminates HTTPS, as the request is forwarded to Quarkus over HTTP. Also, in multi-hop deployments, the credentials can be exposed if HTTPS is used between the client and the first Quarkus endpoint only, and the credentials are propagated to the next Quarkus endpoint over HTTP. --- - -Credentials are sent with each request:: -+ --- -In Basic Authentication, a username and password need to be sent with each request, which increases the risk of credentials being exposed. --- - -Application complexity increases:: -+ --- -The Quarkus application must validate that usernames, passwords, and roles are managed securely. + +|Credentials are sent with each request +|In Basic authentication, a username and password need to be sent with each request, which increases the risk of credentials being exposed. + +|Application complexity increases +|The Quarkus application must validate that usernames, passwords, and roles are managed securely. This process, however, can introduce significant complexity to the application. Depending on the use case, other authentication mechanisms that delegate username, password, and role management to specialized services might be a better choice. --- + +|=== + +== Implementing Basic authentication in Quarkus + +For more information about how you can secure your Quarkus applications by using Basic authentication, see the following resources: + +* xref:security-basic-authentication-howto.adoc[Enable Basic authentication] +* xref:security-basic-authentication-tutorial.adoc[Secure a Quarkus application with Basic authentication] + +== References + +* xref:security-overview-concept.adoc[Quarkus Security overview] +* xref:security-authentication-mechanisms-concept.adoc#other-supported-authentication-mechanisms[Authentication mechanisms in Quarkus] + diff --git a/docs/src/main/asciidoc/security-overview-concept.adoc b/docs/src/main/asciidoc/security-overview-concept.adoc index 59757dabd64ac..c73fb97653405 100644 --- a/docs/src/main/asciidoc/security-overview-concept.adoc +++ b/docs/src/main/asciidoc/security-overview-concept.adoc @@ -26,7 +26,7 @@ Quarkus Security also supports the following features: * <> * <> * <> -* <> +* xref:security-vulnerability-detection-concept.adoc[Security vulnerability detection and National Vulnerability Database (NVD) registration] Quarkus Security is also highly customizable. For more information, see xref:security-customization.adoc[Security customization]. @@ -60,7 +60,7 @@ For more information, see xref:security-csrf-prevention.adoc[Cross-Site Request You can add a https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite[SameSite] cookie property to any of the cookies set by a Quarkus endpoint. For more information, see xref:http-reference.adoc#same-site-cookie[SameSite cookies]. -=== Secret engines +=== Secrets engines Secrets engines are components that store, generate, or encrypt data. Quarkus provides comprehensive HashiCorp Vault support. @@ -75,121 +75,8 @@ For more information, see xref:resteasy-reactive.adoc#secure-serialization[Writi If you're using the REST Data with Panache extension to auto-generate your resources, you can still use the Security annotations within the package `javax.annotation.security`. For more information, see xref:rest-data-panache.adoc#securing-endpoints[Securing auto-generated resources]. + +== Security vulnerability detection -=== US National Vulnerability Database registration - -Most of the Quarkus tags are registered in the US link:https://nvd.nist.gov[National Vulnerability Database] (NVD) in Common Platform Enumeration (CPE) name format. -To view the registered Quarkus CPE names, use link:https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=quarkus[this search query]. - -If the NVE database flags a CVE against a Quarkus tag, a link that provides more details about the CVE is added to the given CPE name entry. - -The NVD CPE team updates the list regularly, but if you encounter a false positive, report the details by creating an issue in the link:https://github.com/quarkusio/quarkus/issues/2611[quarkusio] repository. - -You can detect the vulnerabilities at the application build time with an NVD feed by using the Maven link:https://jeremylong.github.io/DependencyCheck/dependency-check-maven/[OWASP Dependency check plugin]. - - -To add the OWASP Dependency check plugin to your Quarkus Maven project, add the following XML configuration to the `pom.xml` file: - -[source,xml] ----- - - org.owasp - dependency-check-maven - ${owasp-dependency-check-plugin.version} - ----- - -[IMPORTANT] -==== -Set the `owasp-dependency-check-plugin.version` value to `7.4.4` or later. -==== - -Next, configure the plugin as follows: - -[source,xml] ----- - - org.owasp - dependency-check-maven - ${owasp-dependency-check-plugin.version} - - - 7 - - ${project.basedir}/dependency-cpe-suppression.xml - - - ----- - -To detect less severe issues, adjust the value of `failBuildOnCVSS` to suppress the false positives, as demonstrated in the following code sample: -[source,xml] ----- - - - - - - - - ^io\.netty:netty-tcnative-classes.*:.*$ - cpe:/a:netty:netty - - - - - - ^io\.quarkus:quarkus-mutiny.*:.*$ - cpe:/a:mutiny:mutiny - - - - - - ^io\.smallrye.reactive:mutiny.*:.*$ - cpe:/a:mutiny:mutiny - - - - - - ^io\.smallrye.reactive:smallrye-mutiny.*:.*$ - cpe:/a:mutiny:mutiny - - - - - - ^io\.smallrye.reactive:vertx-mutiny.*:.*$ - cpe:/a:mutiny:mutiny - - - - - - ^org\.graalvm\.sdk:g like this - - ----- - -Ensure that you review and update the suppression list regularly to ensure that the results are up to date. -You can optionally apply a time limit to individual suppressions by adding an expiry attribute, as outlined in the following example: - -`...` -You can adjust the expiry date if you need to. +Most of the Quarkus tags are reported in the US link:https://nvd.nist.gov[National Vulnerability Database (NVD)]. +For information about security vulnerabilities, see xref:security-vulnerability-detection-concept.adoc[Security vulnerability detection and reporting in Quarkus]. \ No newline at end of file diff --git a/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc b/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc index 7acefe164099b..4ccb8a45d1a94 100644 --- a/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc @@ -147,4 +147,10 @@ public class AuthenticationFailedExceptionHandler { }); } } ----- \ No newline at end of file +---- + +== References + +* xref:security-overview-concept.adoc[Quarkus Security overview] +* xref:security-authentication-mechanisms-concept.adoc#other-supported-authentication-mechanisms[Authentication mechanisms in Quarkus] + diff --git a/docs/src/main/asciidoc/security-vulnerability-detection-concept.adoc b/docs/src/main/asciidoc/security-vulnerability-detection-concept.adoc new file mode 100644 index 0000000000000..101ef54716750 --- /dev/null +++ b/docs/src/main/asciidoc/security-vulnerability-detection-concept.adoc @@ -0,0 +1,137 @@ +//// +This document is maintained in the main Quarkus repository +and pull requests should be submitted there: +https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc +//// +[id="security-vulnerability-detection-concept"] += Security vulnerability detection and reporting in Quarkus +include::_attributes.adoc[] +:categories: security,contributing + +Most of the Quarkus tags are registered in the US link:https://nvd.nist.gov[National Vulnerability Database (NVD)] in Common Platform Enumeration (CPE) name format. + +== US National Vulnerability Database + +To view the registered Quarkus CPE names in the US NVD, use the following search URL: + +https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=quarkus + +If the NVE database flags a CVE against a Quarkus tag, a link that provides more details about the CVE is added to the given CPE name entry. + +The NVD CPE team updates the list regularly, but if you encounter a false positive, report the details by creating an issue in the link:https://github.com/quarkusio/quarkus/issues/2611[quarkusio] repository. + +== Detecting vulnerabilities in Quarkus at build time + +You can detect the vulnerabilities at the application build time with an NVD feed by using the Maven link:https://jeremylong.github.io/DependencyCheck/dependency-check-maven/[OWASP Dependency check plugin]. + + +To add the OWASP Dependency check plugin to your Quarkus Maven project, add the following XML configuration to the `pom.xml` file: + +[source,xml] +---- + + org.owasp + dependency-check-maven + ${owasp-dependency-check-plugin.version} + +---- + +[IMPORTANT] +==== +Set the `owasp-dependency-check-plugin.version` value to `7.4.4` or later. +==== + +Next, configure the plugin as follows: + +[source,xml] +---- + + org.owasp + dependency-check-maven + ${owasp-dependency-check-plugin.version} + + + 7 + + ${project.basedir}/dependency-cpe-suppression.xml + + + +---- + +To detect less severe issues, adjust the value of `failBuildOnCVSS` to suppress the false positives, as demonstrated in the following code sample: +[source,xml] +---- + + + + + + + + ^io\.netty:netty-tcnative-classes.*:.*$ + cpe:/a:netty:netty + + + + + + ^io\.quarkus:quarkus-mutiny.*:.*$ + cpe:/a:mutiny:mutiny + + + + + + ^io\.smallrye.reactive:mutiny.*:.*$ + cpe:/a:mutiny:mutiny + + + + + + ^io\.smallrye.reactive:smallrye-mutiny.*:.*$ + cpe:/a:mutiny:mutiny + + + + + + ^io\.smallrye.reactive:vertx-mutiny.*:.*$ + cpe:/a:mutiny:mutiny + + + + + + ^org\.graalvm\.sdk:g like this + + +---- + +Ensure that you review and update the suppression list regularly to ensure that the results are up to date. +You can optionally apply a time limit to individual suppressions by adding an expiry attribute, as outlined in the following example: + +`...` +You can adjust the expiry date if you need to. + +== References + +* xref:security-overview-concept.adoc[Quarkus Security overview] +* xref:security-authentication-mechanisms-concept.adoc#other-supported-authentication-mechanisms[Authentication mechanisms in Quarkus] \ No newline at end of file From 9dd24ea79e44db03d8e068452c58ae79fcd9dbf2 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 27 Jan 2023 18:27:05 +0100 Subject: [PATCH 066/250] sync-web-site.sh - Add --depth=1 when the website history is not needed --- docs/sync-web-site.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/sync-web-site.sh b/docs/sync-web-site.sh index 3867714766a96..82b13ca168c4b 100755 --- a/docs/sync-web-site.sh +++ b/docs/sync-web-site.sh @@ -32,7 +32,11 @@ fi if [ -z $TARGET_DIR ]; then TARGET_DIR=target/web-site - git clone -b develop --single-branch git@github.com:quarkusio/quarkusio.github.io.git ${TARGET_DIR} + GIT_OPTIONS="" + if [[ "$QUARKUS_WEB_SITE_PUSH" != "true" ]]; then + GIT_OPTIONS="--depth=1" + fi + git clone -b develop --single-branch $GIT_OPTIONS git@github.com:quarkusio/quarkusio.github.io.git ${TARGET_DIR} fi if [ $BRANCH == "main" ] && [ "$QUARKUS_RELEASE" == "true" ]; then From 993c75055209ee0788bd2bc3d46c6a84fc95f41d Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Fri, 27 Jan 2023 19:02:31 +0100 Subject: [PATCH 067/250] Upgrade Netty to version 4.1.87.Final Signed-off-by: Andrea Cosentino --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 7ed657ffdfab2..d7a3d1221c3a8 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -136,7 +136,7 @@ 14.0.6.Final 4.5.1.Final 3.1.1 - 4.1.86.Final + 4.1.87.Final 1.8.0 1.0.3 3.5.0.Final From 3b631a587c981e610f6e86e7d9b3d1ce7549edd9 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Fri, 27 Jan 2023 18:46:12 -0300 Subject: [PATCH 068/250] Use `quarkus.http.ssl-port` instead of `quarkus.https.port` Also change the port from which the secure connection is established from `quarkus.https.test-port` to `quarkus.http.test-ssl-port` - Fixes #20228 --- .../java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java | 4 ++-- .../java/io/quarkus/test/common/RestAssuredURLManager.java | 2 +- .../src/main/java/io/quarkus/test/QuarkusProdModeTest.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java index 18f5922d0140d..46574597ede7f 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java @@ -1348,8 +1348,8 @@ public void stop(Promise stopFuture) { } if (clearHttpsProperty) { - String portPropertyName = launchMode == LaunchMode.TEST ? "quarkus.https.test-port" - : "quarkus.https.port"; + String portPropertyName = launchMode == LaunchMode.TEST ? "quarkus.http.test-ssl-port" + : "quarkus.http.ssl-port"; System.clearProperty(portPropertyName); if (launchMode.isDevOrTest()) { System.clearProperty(propertyWithProfilePrefix(portPropertyName)); diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/RestAssuredURLManager.java b/test-framework/common/src/main/java/io/quarkus/test/common/RestAssuredURLManager.java index 977ebad843e5d..a6e4dac9d4f7b 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/RestAssuredURLManager.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/RestAssuredURLManager.java @@ -115,7 +115,7 @@ public static void setURL(boolean useSecureConnection, Integer port, String addi try { oldPort = (Integer) portField.get(null); if (port == null) { - port = useSecureConnection ? getPortFromConfig(DEFAULT_HTTPS_PORT, "quarkus.https.test-port") + port = useSecureConnection ? getPortFromConfig(DEFAULT_HTTPS_PORT, "quarkus.http.test-ssl-port") : getPortFromConfig(DEFAULT_HTTP_PORT, "quarkus.lambda.mock-event-server.test-port", "quarkus.http.test-port"); } diff --git a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java index 23ff28ca54916..2284f19120cf7 100644 --- a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java +++ b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java @@ -655,7 +655,7 @@ private void setupRestAssured() { .map(Integer::parseInt) .orElse(DEFAULT_HTTP_PORT_INT); - // If http port is 0, then we need to set the port to null in order to use the `quarkus.https.test-port` property + // If http port is 0, then we need to set the port to null in order to use the `quarkus.http.test-ssl-port` property // which is done in `RestAssuredURLManager.setURL`. if (httpPort == 0) { httpPort = null; From 111fc013aae92338442a7d942773a651a9d33cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Sat, 28 Jan 2023 00:12:24 +0100 Subject: [PATCH 069/250] Provide option to restricting forwarded headers to certain address closes: #29888 --- docs/src/main/asciidoc/http-reference.adoc | 2 + .../http/ForwardedHandlerInitializer.java | 2 +- .../AbstractTrustedXForwarderProxiesTest.java | 64 +++++++ .../TrustedForwarderProxyFailureTest.java | 33 ++++ .../http/proxy/TrustedForwarderProxyTest.java | 33 ++++ ...dXForwarderMultipleProxiesFailureTest.java | 19 +++ .../TrustedXForwarderMultipleProxiesTest.java | 20 +++ ...ustedXForwarderProxiesCidrFailureTest.java | 18 ++ .../TrustedXForwarderProxiesCidrTest.java | 18 ++ .../TrustedXForwarderProxiesFailureTest.java | 18 ++ ...dXForwarderProxiesHostnameFailureTest.java | 18 ++ .../TrustedXForwarderProxiesHostnameTest.java | 18 ++ .../proxy/TrustedXForwarderProxiesIPTest.java | 18 ++ ...rderProxiesUnknownHostnameFailureTest.java | 20 +++ .../vertx/http/runtime/ForwardedParser.java | 95 ++++++----- .../http/runtime/ForwardedProxyHandler.java | 161 ++++++++++++++++++ .../ForwardedServerRequestWrapper.java | 5 +- .../http/runtime/ForwardingProxyOptions.java | 30 +++- .../vertx/http/runtime/ProxyConfig.java | 38 ++++- .../vertx/http/runtime/TrustedProxyCheck.java | 138 +++++++++++++++ .../TrustedProxyCheckPartConverter.java | 52 ++++++ .../vertx/http/runtime/VertxHttpRecorder.java | 28 ++- ....eclipse.microprofile.config.spi.Converter | 1 + .../TrustedProxyCheckPartConverterTest.java | 106 ++++++++++++ 24 files changed, 888 insertions(+), 67 deletions(-) create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/AbstractTrustedXForwarderProxiesTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyFailureTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesFailureTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrFailureTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesFailureTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameFailureTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesIPTest.java create mode 100644 extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesUnknownHostnameFailureTest.java create mode 100644 extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java create mode 100644 extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheck.java create mode 100644 extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java create mode 100644 extensions/vertx-http/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter create mode 100644 extensions/vertx-http/runtime/src/test/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverterTest.java diff --git a/docs/src/main/asciidoc/http-reference.adoc b/docs/src/main/asciidoc/http-reference.adoc index 995b7bafad577..0572dc61dea26 100644 --- a/docs/src/main/asciidoc/http-reference.adoc +++ b/docs/src/main/asciidoc/http-reference.adoc @@ -407,7 +407,9 @@ quarkus.http.proxy.proxy-address-forwarding=true quarkus.http.proxy.allow-x-forwarded=true quarkus.http.proxy.enable-forwarded-host=true quarkus.http.proxy.enable-forwarded-prefix=true +quarkus.http.proxy.trusted-proxies=127.0.0.1 <1> ---- +<1> Configure trusted proxy with the IP address `127.0.0.1`. Request headers from any other address are going to be ignored. Both configurations related to standard and non-standard headers can be combined, although the standard headers configuration will have precedence. However, combining them has security implications as clients can forge requests with a forwarded header that is not overwritten by the proxy. Therefore, proxies should strip unexpected `X-Forwarded` or `X-Forwarded-*` headers from the client. diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java index a707aaf8ac13c..39d8a596cc16a 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java @@ -7,7 +7,7 @@ import io.vertx.ext.web.Router; @ApplicationScoped -class ForwardedHandlerInitializer { +public class ForwardedHandlerInitializer { public void register(@Observes Router router) { router.route("/forward").handler(rc -> rc.response() diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/AbstractTrustedXForwarderProxiesTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/AbstractTrustedXForwarderProxiesTest.java new file mode 100644 index 0000000000000..569971cc0b26b --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/AbstractTrustedXForwarderProxiesTest.java @@ -0,0 +1,64 @@ +package io.quarkus.vertx.http.proxy; + +import org.hamcrest.Matchers; +import org.jboss.shrinkwrap.api.asset.StringAsset; + +import io.quarkus.test.QuarkusUnitTest; +import io.quarkus.vertx.http.ForwardedHandlerInitializer; +import io.restassured.RestAssured; +import io.restassured.response.ValidatableResponse; + +public abstract class AbstractTrustedXForwarderProxiesTest { + + static final String SUCCESS = "https|somehost|backend:4444|/path|https://somehost/path"; + + protected static QuarkusUnitTest createTrustedProxyUnitTest(String... trustedProxies) { + final String trustedProxiesAsStr; + if (trustedProxies.length == 0) { + trustedProxiesAsStr = ""; + } else { + trustedProxiesAsStr = "quarkus.http.proxy.trusted-proxies=" + String.join(",", trustedProxies) + "\n"; + } + return new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClasses(ForwardedHandlerInitializer.class) + .addAsResource(new StringAsset("quarkus.http.proxy.proxy-address-forwarding=true\n" + + "quarkus.http.proxy.allow-x-forwarded=true\n" + + "quarkus.http.proxy.enable-forwarded-host=true\n" + + "quarkus.http.proxy.enable-forwarded-prefix=true\n" + + trustedProxiesAsStr + + "quarkus.http.proxy.forwarded-host-header=X-Forwarded-Server"), + "application.properties")); + } + + protected static ValidatableResponse request() { + return RestAssured.given() + .header("Forwarded", "proto=http;for=backend2:5555;host=somehost2") + .header("X-Forwarded-Ssl", "on") + .header("X-Forwarded-For", "backend:4444") + .header("X-Forwarded-Server", "somehost") + .get("/path") + .then(); + } + + static void assertRequestSuccess() { + assertRequestSuccess(request()); + } + + static void assertRequestSuccess(ValidatableResponse request) { + request.body(Matchers.equalTo(SUCCESS)); + } + + static void assertRequestFailure() { + assertRequestFailure(request()); + } + + static void assertRequestFailure(ValidatableResponse request) { + request + // we don't check port of 127.0.0.1 as that's subject to change + .body(Matchers.startsWith("http|localhost:8081|127.0.0.1:")) + .body(Matchers.endsWith("|/path|http://localhost:8081/path")); + // without 'quarkus.http.proxy.trusted-proxies=1.2.3.4' config property + // response would be: 'https|somehost|backend:4444|/path|https://somehost/path' + } +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyFailureTest.java new file mode 100644 index 0000000000000..4b97918acd0de --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyFailureTest.java @@ -0,0 +1,33 @@ +package io.quarkus.vertx.http.proxy; + +import org.hamcrest.Matchers; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.quarkus.vertx.http.ForwardedHandlerInitializer; +import io.restassured.RestAssured; + +public class TrustedForwarderProxyFailureTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClasses(ForwardedHandlerInitializer.class) + .addAsResource(new StringAsset("quarkus.http.proxy.proxy-address-forwarding=true\n" + + "quarkus.http.proxy.allow-forwarded=true\n" + + "quarkus.http.proxy.enable-forwarded-host=true\n" + + "quarkus.http.proxy.enable-forwarded-prefix=true\n" + + "quarkus.http.proxy.trusted-proxies=alnoenlqoe334219384nvfeoslcxnxeoanelnsoe9.gov"), + "application.properties")); + + @Test + public void testHeadersAreIgnored() { + RestAssured.given() + .header("Forwarded", "by=proxy;for=\"[2001:db8:cafe::17]:47011\",for=backend:4444;host=somehost;proto=https") + .get("/forward") + .then() + .body(Matchers.startsWith("http|localhost:8081|127.0.0.1:")); + } +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyTest.java new file mode 100644 index 0000000000000..b7e344d8d73c1 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedForwarderProxyTest.java @@ -0,0 +1,33 @@ +package io.quarkus.vertx.http.proxy; + +import org.hamcrest.Matchers; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; +import io.quarkus.vertx.http.ForwardedHandlerInitializer; +import io.restassured.RestAssured; + +public class TrustedForwarderProxyTest { + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addClasses(ForwardedHandlerInitializer.class) + .addAsResource(new StringAsset("quarkus.http.proxy.proxy-address-forwarding=true\n" + + "quarkus.http.proxy.allow-forwarded=true\n" + + "quarkus.http.proxy.enable-forwarded-host=true\n" + + "quarkus.http.proxy.enable-forwarded-prefix=true\n" + + "quarkus.http.proxy.trusted-proxies=localhost"), + "application.properties")); + + @Test + public void testHeadersAreUsed() { + RestAssured.given() + .header("Forwarded", "proto=http;for=backend2:5555;host=somehost2") + .get("/path") + .then() + .body(Matchers.equalTo("http|somehost2|backend2:5555|/path|http://somehost2/path")); + } +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesFailureTest.java new file mode 100644 index 0000000000000..7739f991b7a80 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesFailureTest.java @@ -0,0 +1,19 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderMultipleProxiesFailureTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("1.2.3.4", "quarkus.io", "154.5.128.0/17", + "::ffff:154.6.99.64/123"); + + @Test + public void testHeadersAreIgnored() { + assertRequestFailure(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesTest.java new file mode 100644 index 0000000000000..9a614063004e5 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderMultipleProxiesTest.java @@ -0,0 +1,20 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderMultipleProxiesTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("1.2.3.4", "quarkus.io", "vertx.io", "154.6.0.0/15", + "::ffff:154.6.99.64/123", "localhost"); + + @Test + public void testHeadersAreUsed() { + // request should succeed as localhost check matches + assertRequestSuccess(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrFailureTest.java new file mode 100644 index 0000000000000..190f76c639fe6 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrFailureTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesCidrFailureTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("::1/128"); + + @Test + public void testHeadersAreIgnored() { + // headers are ignored as request is sent from IPv4 + assertRequestFailure(); + } +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrTest.java new file mode 100644 index 0000000000000..9444c5a57023e --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesCidrTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesCidrTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("127.0.0.0/8"); + + @Test + public void testHeadersAreUsed() { + assertRequestSuccess(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesFailureTest.java new file mode 100644 index 0000000000000..266ecd1199c25 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesFailureTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesFailureTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("1.2.3.4"); + + @Test + public void testHeadersAreIgnored() { + assertRequestFailure(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameFailureTest.java new file mode 100644 index 0000000000000..e2d9009a2e8d0 --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameFailureTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesHostnameFailureTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("quarkus.io"); + + @Test + public void testHeadersAreIgnored() { + assertRequestFailure(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameTest.java new file mode 100644 index 0000000000000..c70ba886eeb4c --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesHostnameTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesHostnameTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("localhost"); + + @Test + public void testHeadersAreUsed() { + assertRequestSuccess(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesIPTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesIPTest.java new file mode 100644 index 0000000000000..4f9845885899d --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesIPTest.java @@ -0,0 +1,18 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesIPTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest("127.0.0.1"); + + @Test + public void testHeadersAreUsed() { + assertRequestSuccess(); + } + +} diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesUnknownHostnameFailureTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesUnknownHostnameFailureTest.java new file mode 100644 index 0000000000000..0feee7bab1c0b --- /dev/null +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/proxy/TrustedXForwarderProxiesUnknownHostnameFailureTest.java @@ -0,0 +1,20 @@ +package io.quarkus.vertx.http.proxy; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.test.QuarkusUnitTest; + +public class TrustedXForwarderProxiesUnknownHostnameFailureTest extends AbstractTrustedXForwarderProxiesTest { + + @RegisterExtension + static final QuarkusUnitTest config = createTrustedProxyUnitTest( + // let's hope this domain is not registered + "alnoenlkepdolndqoe334219384nvfeoslcxnxeoanelnsoe9.gov"); + + @Test + public void testHeadersAreIgnored() { + assertRequestFailure(); + } + +} diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java index 3755c61871531..c428050791f61 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java @@ -47,6 +47,7 @@ class ForwardedParser { private final HttpServerRequest delegate; private final ForwardingProxyOptions forwardingProxyOptions; + private final TrustedProxyCheck trustedProxyCheck; private boolean calculated; private String host; @@ -56,9 +57,11 @@ class ForwardedParser { private String absoluteURI; private SocketAddress remoteAddress; - ForwardedParser(HttpServerRequest delegate, ForwardingProxyOptions forwardingProxyOptions) { + ForwardedParser(HttpServerRequest delegate, ForwardingProxyOptions forwardingProxyOptions, + TrustedProxyCheck trustedProxyCheck) { this.delegate = delegate; this.forwardingProxyOptions = forwardingProxyOptions; + this.trustedProxyCheck = trustedProxyCheck; } public String scheme() { @@ -108,59 +111,61 @@ private void calculate() { setHostAndPort(delegate.host(), port); uri = delegate.uri(); - String forwarded = delegate.getHeader(FORWARDED); - if (forwardingProxyOptions.allowForwarded && forwarded != null) { - Matcher matcher = FORWARDED_PROTO_PATTERN.matcher(forwarded); - if (matcher.find()) { - scheme = (matcher.group(1).trim()); - port = -1; - } + if (trustedProxyCheck.isProxyAllowed()) { + String forwarded = delegate.getHeader(FORWARDED); + if (forwardingProxyOptions.allowForwarded && forwarded != null) { + Matcher matcher = FORWARDED_PROTO_PATTERN.matcher(forwarded); + if (matcher.find()) { + scheme = (matcher.group(1).trim()); + port = -1; + } - matcher = FORWARDED_HOST_PATTERN.matcher(forwarded); - if (matcher.find()) { - setHostAndPort(matcher.group(1).trim(), port); - } + matcher = FORWARDED_HOST_PATTERN.matcher(forwarded); + if (matcher.find()) { + setHostAndPort(matcher.group(1).trim(), port); + } - matcher = FORWARDED_FOR_PATTERN.matcher(forwarded); - if (matcher.find()) { - remoteAddress = parseFor(matcher.group(1).trim(), remoteAddress.port()); - } - } else if (forwardingProxyOptions.allowXForwarded) { - String protocolHeader = delegate.getHeader(X_FORWARDED_PROTO); - if (protocolHeader != null) { - scheme = getFirstElement(protocolHeader); - port = -1; - } + matcher = FORWARDED_FOR_PATTERN.matcher(forwarded); + if (matcher.find()) { + remoteAddress = parseFor(matcher.group(1).trim(), remoteAddress.port()); + } + } else if (forwardingProxyOptions.allowXForwarded) { + String protocolHeader = delegate.getHeader(X_FORWARDED_PROTO); + if (protocolHeader != null) { + scheme = getFirstElement(protocolHeader); + port = -1; + } - String forwardedSsl = delegate.getHeader(X_FORWARDED_SSL); - boolean isForwardedSslOn = forwardedSsl != null && forwardedSsl.equalsIgnoreCase("on"); - if (isForwardedSslOn) { - scheme = HTTPS_SCHEME; - port = -1; - } + String forwardedSsl = delegate.getHeader(X_FORWARDED_SSL); + boolean isForwardedSslOn = forwardedSsl != null && forwardedSsl.equalsIgnoreCase("on"); + if (isForwardedSslOn) { + scheme = HTTPS_SCHEME; + port = -1; + } - if (forwardingProxyOptions.enableForwardedHost) { - String hostHeader = delegate.getHeader(forwardingProxyOptions.forwardedHostHeader); - if (hostHeader != null) { - setHostAndPort(getFirstElement(hostHeader), port); + if (forwardingProxyOptions.enableForwardedHost) { + String hostHeader = delegate.getHeader(forwardingProxyOptions.forwardedHostHeader); + if (hostHeader != null) { + setHostAndPort(getFirstElement(hostHeader), port); + } } - } - if (forwardingProxyOptions.enableForwardedPrefix) { - String prefixHeader = delegate.getHeader(forwardingProxyOptions.forwardedPrefixHeader); - if (prefixHeader != null) { - uri = appendPrefixToUri(prefixHeader, uri); + if (forwardingProxyOptions.enableForwardedPrefix) { + String prefixHeader = delegate.getHeader(forwardingProxyOptions.forwardedPrefixHeader); + if (prefixHeader != null) { + uri = appendPrefixToUri(prefixHeader, uri); + } } - } - String portHeader = delegate.getHeader(X_FORWARDED_PORT); - if (portHeader != null) { - port = parsePort(getFirstElement(portHeader), port); - } + String portHeader = delegate.getHeader(X_FORWARDED_PORT); + if (portHeader != null) { + port = parsePort(getFirstElement(portHeader), port); + } - String forHeader = delegate.getHeader(X_FORWARDED_FOR); - if (forHeader != null) { - remoteAddress = parseFor(getFirstElement(forHeader), remoteAddress.port()); + String forHeader = delegate.getHeader(X_FORWARDED_FOR); + if (forHeader != null) { + remoteAddress = parseFor(getFirstElement(forHeader), remoteAddress.port()); + } } } diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java new file mode 100644 index 0000000000000..19ae4a6270a26 --- /dev/null +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java @@ -0,0 +1,161 @@ +package io.quarkus.vertx.http.runtime; + +import static io.quarkus.vertx.http.runtime.TrustedProxyCheck.denyAll; + +import java.net.InetAddress; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.function.Supplier; + +import org.jboss.logging.Logger; +import org.wildfly.common.net.Inet; + +import io.vertx.core.AsyncResult; +import io.vertx.core.Handler; +import io.vertx.core.Vertx; +import io.vertx.core.dns.DnsClient; +import io.vertx.core.http.HttpServerRequest; +import io.vertx.core.net.impl.SocketAddressImpl; + +/** + * Restricts who can send `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers to trusted proxies + * configured through {@link ProxyConfig#trustedProxies}. + */ +class ForwardedProxyHandler implements Handler { + + private static final Logger LOGGER = Logger.getLogger(ForwardedProxyHandler.class.getName()); + + private final TrustedProxyCheck.TrustedProxyCheckBuilder proxyCheckBuilder; + + private final Supplier vertx; + + private final Handler delegate; + + private final ForwardingProxyOptions forwardingProxyOptions; + + ForwardedProxyHandler(TrustedProxyCheck.TrustedProxyCheckBuilder proxyCheckBuilder, + Supplier vertx, Handler delegate, + ForwardingProxyOptions forwardingProxyOptions) { + this.proxyCheckBuilder = proxyCheckBuilder; + this.vertx = vertx; + this.delegate = delegate; + this.forwardingProxyOptions = forwardingProxyOptions; + } + + @Override + public void handle(HttpServerRequest event) { + if (event.remoteAddress().isDomainSocket()) { + // we do not support domain socket proxy checks, ignore the headers + LOGGER.debug("Domain socket are not supported, 'Forwarded' and 'X-Forwarded' headers are going to be ignored"); + handleForwardedServerRequest(event, denyAll()); + } else { + // create proxy check, then handle request + if (proxyCheckBuilder.hasHostNames()) { + // we need to perform DNS lookup for trusted proxy hostnames + lookupHostNamesAndHandleRequest(event, + proxyCheckBuilder.getHostNameToPort().entrySet().iterator(), proxyCheckBuilder, + vertx.get().createDnsClient()); + } else { + resolveProxyIpAndHandleRequest(event, proxyCheckBuilder); + } + } + } + + private void lookupHostNamesAndHandleRequest(HttpServerRequest event, + Iterator> iterator, + TrustedProxyCheck.TrustedProxyCheckBuilder builder, + DnsClient dnsClient) { + if (iterator.hasNext()) { + // perform recursive DNS lookup for all hostnames + // we do not cache result as IP address may change, and we advise users to use IP or CIDR + final var entry = iterator.next(); + final String hostName = entry.getKey(); + dnsClient.lookup(hostName, + new Handler>() { + @Override + public void handle(AsyncResult stringAsyncResult) { + if (stringAsyncResult.succeeded()) { + var trustedIP = Inet.parseInetAddress(stringAsyncResult.result()); + if (trustedIP != null) { + // create proxy check for resolved IP and proceed with the lookup + lookupHostNamesAndHandleRequest(event, iterator, + builder.withTrustedIP(trustedIP, entry.getValue()), dnsClient); + } else { + logInvalidIpAddress(hostName); + // ignore this hostname proxy check and proceed with the lookup + lookupHostNamesAndHandleRequest(event, iterator, builder, dnsClient); + } + } else { + // inform we can't cope without IP + logDnsLookupFailure(hostName); + // ignore this hostname proxy check and proceed with the lookup + lookupHostNamesAndHandleRequest(event, iterator, builder, dnsClient); + } + } + + }); + } else { + // DNS lookup is done + if (builder.hasProxyChecks()) { + resolveProxyIpAndHandleRequest(event, builder); + } else { + // ignore headers as there are no proxy checks + handleForwardedServerRequest(event, denyAll()); + } + } + } + + private void resolveProxyIpAndHandleRequest(HttpServerRequest event, + TrustedProxyCheck.TrustedProxyCheckBuilder builder) { + InetAddress proxyIP = ((SocketAddressImpl) event.remoteAddress()).ipAddress(); + if (proxyIP == null) { + // if host is an IP address, proxyIP won't be null + proxyIP = Inet.parseInetAddress(event.remoteAddress().host()); + } + + if (proxyIP == null) { + // perform DNS lookup, then create proxy check and handle request + final String hostName = Objects.requireNonNull(event.remoteAddress().hostName()); + vertx.get().createDnsClient().lookup(hostName, + new Handler>() { + @Override + public void handle(AsyncResult stringAsyncResult) { + TrustedProxyCheck proxyCheck; + if (stringAsyncResult.succeeded()) { + // use resolved IP to build proxy check + final var proxyIP = Inet.parseInetAddress(stringAsyncResult.result()); + if (proxyIP != null) { + proxyCheck = builder.build(proxyIP, event.remoteAddress().port()); + } else { + logInvalidIpAddress(hostName); + proxyCheck = denyAll(); + } + } else { + // we can't cope without IP => ignore headers + logDnsLookupFailure(hostName); + proxyCheck = denyAll(); + } + + handleForwardedServerRequest(event, proxyCheck); + } + }); + } else { + // we have proxy IP => create proxy check and handle request + var proxyCheck = builder.build(proxyIP, event.remoteAddress().port()); + handleForwardedServerRequest(event, proxyCheck); + } + } + + private void handleForwardedServerRequest(HttpServerRequest event, TrustedProxyCheck proxyCheck) { + delegate.handle(new ForwardedServerRequestWrapper(event, forwardingProxyOptions, proxyCheck)); + } + + private static void logInvalidIpAddress(String hostName) { + LOGGER.debugf("Illegal state - DNS server returned invalid IP address for hostname '%s'", hostName); + } + + private static void logDnsLookupFailure(String hostName) { + LOGGER.debugf("Can't resolve proxy IP address from '%s'", hostName); + } +} diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedServerRequestWrapper.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedServerRequestWrapper.java index be66878e384a1..7e93a5a193aad 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedServerRequestWrapper.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedServerRequestWrapper.java @@ -40,9 +40,10 @@ class ForwardedServerRequestWrapper extends HttpServerRequestWrapper implements private String uri; private String absoluteURI; - ForwardedServerRequestWrapper(HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions) { + ForwardedServerRequestWrapper(HttpServerRequest request, ForwardingProxyOptions forwardingProxyOptions, + TrustedProxyCheck trustedProxyCheck) { super((HttpServerRequestInternal) request); - forwardedParser = new ForwardedParser(delegate, forwardingProxyOptions); + forwardedParser = new ForwardedParser(delegate, forwardingProxyOptions, trustedProxyCheck); } void changeTo(HttpMethod method, String uri) { diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardingProxyOptions.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardingProxyOptions.java index 0a380bc32ede7..be0e6604859d8 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardingProxyOptions.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardingProxyOptions.java @@ -1,15 +1,20 @@ package io.quarkus.vertx.http.runtime; +import java.util.List; + import io.netty.util.AsciiString; +import io.quarkus.vertx.http.runtime.TrustedProxyCheck.TrustedProxyCheckBuilder; +import io.quarkus.vertx.http.runtime.TrustedProxyCheck.TrustedProxyCheckPart; public class ForwardingProxyOptions { - boolean proxyAddressForwarding; - boolean allowForwarded; - boolean allowXForwarded; - boolean enableForwardedHost; - boolean enableForwardedPrefix; - AsciiString forwardedHostHeader; - AsciiString forwardedPrefixHeader; + final boolean proxyAddressForwarding; + final boolean allowForwarded; + final boolean allowXForwarded; + final boolean enableForwardedHost; + final boolean enableForwardedPrefix; + final AsciiString forwardedHostHeader; + final AsciiString forwardedPrefixHeader; + final TrustedProxyCheckBuilder trustedProxyCheckBuilder; public ForwardingProxyOptions(final boolean proxyAddressForwarding, final boolean allowForwarded, @@ -17,7 +22,8 @@ public ForwardingProxyOptions(final boolean proxyAddressForwarding, final boolean enableForwardedHost, final AsciiString forwardedHostHeader, final boolean enableForwardedPrefix, - final AsciiString forwardedPrefixHeader) { + final AsciiString forwardedPrefixHeader, + TrustedProxyCheckBuilder trustedProxyCheckBuilder) { this.proxyAddressForwarding = proxyAddressForwarding; this.allowForwarded = allowForwarded; this.allowXForwarded = allowXForwarded; @@ -25,6 +31,7 @@ public ForwardingProxyOptions(final boolean proxyAddressForwarding, this.enableForwardedPrefix = enableForwardedPrefix; this.forwardedHostHeader = forwardedHostHeader; this.forwardedPrefixHeader = forwardedPrefixHeader; + this.trustedProxyCheckBuilder = trustedProxyCheckBuilder; } public static ForwardingProxyOptions from(HttpConfiguration httpConfiguration) { @@ -37,7 +44,12 @@ public static ForwardingProxyOptions from(HttpConfiguration httpConfiguration) { final AsciiString forwardedPrefixHeader = AsciiString.cached(httpConfiguration.proxy.forwardedPrefixHeader); final AsciiString forwardedHostHeader = AsciiString.cached(httpConfiguration.proxy.forwardedHostHeader); + final List parts = httpConfiguration.proxy.trustedProxies + .isPresent() ? List.copyOf(httpConfiguration.proxy.trustedProxies.get()) : List.of(); + final var proxyCheckBuilder = (!allowXForwarded && !allowForwarded) + || parts.isEmpty() ? null : TrustedProxyCheckBuilder.builder(parts); + return new ForwardingProxyOptions(proxyAddressForwarding, allowForwarded, allowXForwarded, enableForwardedHost, - forwardedHostHeader, enableForwardedPrefix, forwardedPrefixHeader); + forwardedHostHeader, enableForwardedPrefix, forwardedPrefixHeader, proxyCheckBuilder); } } diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ProxyConfig.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ProxyConfig.java index b400389e55195..8ed4a2a621dac 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ProxyConfig.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ProxyConfig.java @@ -1,9 +1,12 @@ package io.quarkus.vertx.http.runtime; +import java.util.List; import java.util.Optional; import io.quarkus.runtime.annotations.ConfigGroup; import io.quarkus.runtime.annotations.ConfigItem; +import io.quarkus.runtime.annotations.ConvertWith; +import io.quarkus.vertx.http.runtime.TrustedProxyCheck.TrustedProxyCheckPart; /** * Holds configuration related with proxy addressing forward. @@ -33,7 +36,7 @@ public class ProxyConfig { * {@code Forwarded} header will be used. * In case the standard {@code Forwarded} header is enabled and detected on HTTP requests, the standard header has the * precedence. - * Activating this together with {@code quarkus.http.proxy.allow-x-forwarded} has security implications as clients can forge + * Activating this together with {@code quarkus.http.proxy.allow-forwarded} has security implications as clients can forge * requests with a forwarded header that is not overwritten by the proxy. Therefore, proxies should strip unexpected * `X-Forwarded` or `X-Forwarded-*` headers from the client. */ @@ -63,4 +66,37 @@ public class ProxyConfig { */ @ConfigItem(defaultValue = "X-Forwarded-Prefix") public String forwardedPrefixHeader; + + /** + * Configure the list of trusted proxy addresses. + * Received `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers from any other proxy address will be ignored. + * The trusted proxy address should be specified as the IP address (IPv4 or IPv6), hostname or Classless Inter-Domain + * Routing (CIDR) notation. Please note that Quarkus needs to perform DNS lookup for all hostnames during the request. + * For that reason, using hostnames is not recommended. + * + * Examples of a socket address in the form of `host` or `host:port`: + * + *

    + *
  • `127.0.0.1:8084`
  • + *
  • `[0:0:0:0:0:0:0:1]`
  • + *
  • `[0:0:0:0:0:0:0:1]:8084`
  • + *
  • `[::]`
  • + *
  • `localhost`
  • + *
  • `localhost:8084`
  • + *
+ * + * Examples of a CIDR notation: + * + *
    + *
  • `::/128`
  • + *
  • `::/0`
  • + *
  • `127.0.0.0/8`
  • + *
+ * + * Please bear in mind that IPv4 CIDR won't match request sent from the IPv6 address and the other way around. + */ + @ConfigItem(defaultValueDocumentation = "All proxy addresses are trusted") + @ConvertWith(TrustedProxyCheckPartConverter.class) + public Optional> trustedProxies; + } diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheck.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheck.java new file mode 100644 index 0000000000000..1c33d410a3acc --- /dev/null +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheck.java @@ -0,0 +1,138 @@ +package io.quarkus.vertx.http.runtime; + +import java.net.InetAddress; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.BiPredicate; + +import io.vertx.core.net.SocketAddress; + +interface TrustedProxyCheck { + + static TrustedProxyCheck allowAll() { + return new TrustedProxyCheck() { + @Override + public boolean isProxyAllowed() { + return true; + } + }; + } + + static TrustedProxyCheck denyAll() { + return new TrustedProxyCheck() { + @Override + public boolean isProxyAllowed() { + return false; + } + }; + } + + /** + * User can configure trusted proxies for `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers. + * Headers from untrusted proxies must be ignored. + * + * @return true if `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers were sent by trusted {@link SocketAddress} + */ + boolean isProxyAllowed(); + + final class TrustedProxyCheckBuilder { + + private final Map hostNameToPort; + private final List> proxyChecks; + + private TrustedProxyCheckBuilder(Map hostNameToPort, + List> proxyChecks) { + this.hostNameToPort = hasHostNames(hostNameToPort) ? Map.copyOf(hostNameToPort) : null; + this.proxyChecks = List.copyOf(proxyChecks); + } + + static TrustedProxyCheckBuilder builder(List parts) { + final Map hostNameToPort = new HashMap<>(); + final List> proxyChecks = new ArrayList<>(); + for (TrustedProxyCheckPart part : parts) { + if (part.proxyCheck != null) { + proxyChecks.add(part.proxyCheck); + } else { + hostNameToPort.put(part.hostName, part.port); + } + } + return new TrustedProxyCheckBuilder(hostNameToPort, proxyChecks); + } + + TrustedProxyCheckBuilder withTrustedIP(InetAddress trustedIP, int trustedPort) { + final List> proxyChecks = new ArrayList<>(this.proxyChecks); + proxyChecks.add(createNewIpCheck(trustedIP, trustedPort)); + return new TrustedProxyCheckBuilder(null, proxyChecks); + } + + boolean hasProxyChecks() { + return !proxyChecks.isEmpty(); + } + + TrustedProxyCheck build(InetAddress proxyIP, int proxyPort) { + Objects.requireNonNull(proxyIP); + return new TrustedProxyCheck() { + @Override + public boolean isProxyAllowed() { + for (BiPredicate proxyCheck : proxyChecks) { + if (proxyCheck.test(proxyIP, proxyPort)) { + return true; + } + } + return false; + } + }; + } + + boolean hasHostNames() { + return hasHostNames(this.hostNameToPort); + } + + private static boolean hasHostNames(Map hostNameToPort) { + return hostNameToPort != null && !hostNameToPort.isEmpty(); + } + + public Map getHostNameToPort() { + return hostNameToPort; + } + + } + + static BiPredicate createNewIpCheck(InetAddress trustedIP, int trustedPort) { + final boolean doNotCheckPort = trustedPort == 0; + return new BiPredicate<>() { + @Override + public boolean test(InetAddress proxyIP, Integer proxyPort) { + return isPortOk(proxyPort) && trustedIP.equals(proxyIP); + } + + private boolean isPortOk(int port) { + return doNotCheckPort || port == trustedPort; + } + }; + } + + final class TrustedProxyCheckPart { + + final BiPredicate proxyCheck; + final String hostName; + final int port; + + TrustedProxyCheckPart(BiPredicate proxyCheck) { + this.proxyCheck = proxyCheck; + this.hostName = null; + this.port = 0; + } + + TrustedProxyCheckPart(String hostName, int port) { + this.proxyCheck = null; + this.hostName = hostName; + this.port = port; + } + + } + +} diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java new file mode 100644 index 0000000000000..7e1c54a5b42e4 --- /dev/null +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java @@ -0,0 +1,52 @@ +package io.quarkus.vertx.http.runtime; + +import static io.quarkus.runtime.configuration.ConverterSupport.DEFAULT_QUARKUS_CONVERTER_PRIORITY; +import static io.quarkus.vertx.http.runtime.TrustedProxyCheck.createNewIpCheck; + +import java.net.InetAddress; +import java.util.function.BiPredicate; +import java.util.regex.Pattern; + +import javax.annotation.Priority; + +import org.eclipse.microprofile.config.spi.Converter; + +import io.quarkus.runtime.configuration.CidrAddressConverter; +import io.quarkus.runtime.configuration.InetSocketAddressConverter; + +/** + * Converts proxy address into {@link TrustedProxyCheck.TrustedProxyCheckPart}. + */ +@Priority(DEFAULT_QUARKUS_CONVERTER_PRIORITY) +public final class TrustedProxyCheckPartConverter implements Converter { + + private static final Pattern CIDR_PATTERN = Pattern.compile(".+\\/\\d+"); + + @Override + public TrustedProxyCheck.TrustedProxyCheckPart convert(String proxyAddress) { + if (CIDR_PATTERN.matcher(proxyAddress).matches()) { + final var cidrAddress = new CidrAddressConverter().convert(proxyAddress); + return new TrustedProxyCheck.TrustedProxyCheckPart(new BiPredicate<>() { + @Override + public boolean test(InetAddress proxyIP, Integer proxyPort) { + return cidrAddress.matches(proxyIP); + } + }); + } else { + if ("localhost".equals(proxyAddress)) { + // prevents unnecessary localhost lookup, also default DNS does not know localhost + proxyAddress = "127.0.0.1"; + } + final var inetSocketAddress = new InetSocketAddressConverter().convert(proxyAddress); + final boolean useHostName = inetSocketAddress.isUnresolved() || inetSocketAddress.getAddress() == null; + if (useHostName) { + return new TrustedProxyCheck.TrustedProxyCheckPart(inetSocketAddress.getHostName(), + inetSocketAddress.getPort()); + } else { + return new TrustedProxyCheck.TrustedProxyCheckPart( + createNewIpCheck(inetSocketAddress.getAddress(), inetSocketAddress.getPort())); + } + } + } + +} diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java index 18f5922d0140d..9caa93af2d730 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java @@ -2,6 +2,7 @@ import static io.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle.setContextSafe; import static io.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle.setCurrentContextSafe; +import static io.quarkus.vertx.http.runtime.TrustedProxyCheck.allowAll; import java.io.File; import java.io.IOException; @@ -71,6 +72,7 @@ import io.quarkus.vertx.core.runtime.config.VertxConfiguration; import io.quarkus.vertx.http.HttpServerOptionsCustomizer; import io.quarkus.vertx.http.runtime.HttpConfiguration.InsecureRequests; +import io.quarkus.vertx.http.runtime.TrustedProxyCheck.TrustedProxyCheckBuilder; import io.quarkus.vertx.http.runtime.devmode.RemoteSyncHandler; import io.quarkus.vertx.http.runtime.devmode.VertxHttpHotReplacementSetup; import io.quarkus.vertx.http.runtime.filters.Filter; @@ -534,16 +536,24 @@ public void handle(RoutingContext event) { root = mainRouter; } - warnIfProxyAddressForwardingAllowedWithMultipleHeaders(httpConfiguration); - ForwardingProxyOptions forwardingProxyOptions = ForwardingProxyOptions.from(httpConfiguration); - if (forwardingProxyOptions.proxyAddressForwarding) { + if (httpConfiguration.proxy.proxyAddressForwarding) { + warnIfProxyAddressForwardingAllowedWithMultipleHeaders(httpConfiguration); + final ForwardingProxyOptions forwardingProxyOptions = ForwardingProxyOptions.from(httpConfiguration); + final TrustedProxyCheckBuilder proxyCheckBuilder = forwardingProxyOptions.trustedProxyCheckBuilder; Handler delegate = root; - root = new Handler() { - @Override - public void handle(HttpServerRequest event) { - delegate.handle(new ForwardedServerRequestWrapper(event, forwardingProxyOptions)); - } - }; + if (proxyCheckBuilder == null) { + // no proxy check => we do not restrict who can send `X-Forwarded` or `X-Forwarded-*` headers + final TrustedProxyCheck allowAllProxyCheck = allowAll(); + root = new Handler() { + @Override + public void handle(HttpServerRequest event) { + delegate.handle(new ForwardedServerRequestWrapper(event, forwardingProxyOptions, allowAllProxyCheck)); + } + }; + } else { + // restrict who can send `Forwarded`, `X-Forwarded` or `X-Forwarded-*` headers + root = new ForwardedProxyHandler(proxyCheckBuilder, vertx, delegate, forwardingProxyOptions); + } } boolean quarkusWrapperNeeded = false; diff --git a/extensions/vertx-http/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter b/extensions/vertx-http/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter new file mode 100644 index 0000000000000..24393a1c5e5a0 --- /dev/null +++ b/extensions/vertx-http/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter @@ -0,0 +1 @@ +io.quarkus.vertx.http.runtime.TrustedProxyCheckPartConverter \ No newline at end of file diff --git a/extensions/vertx-http/runtime/src/test/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverterTest.java b/extensions/vertx-http/runtime/src/test/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverterTest.java new file mode 100644 index 0000000000000..c078ba2151adb --- /dev/null +++ b/extensions/vertx-http/runtime/src/test/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverterTest.java @@ -0,0 +1,106 @@ +package io.quarkus.vertx.http.runtime; + +import java.net.InetAddress; +import java.net.UnknownHostException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +public class TrustedProxyCheckPartConverterTest { + + private static final TrustedProxyCheckPartConverter CONVERTER = new TrustedProxyCheckPartConverter(); + + @Test + public void testCidrIPv4() throws UnknownHostException { + var part = CONVERTER.convert("10.0.0.0/24"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertEquals(0, part.port); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("10.0.0.0"), 0)); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("10.0.0.255"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("100.100.100.100"), 0)); + } + + @Test + public void testCidrIPv6() throws UnknownHostException { + var part = CONVERTER.convert("2001:4860:4860::8888/32"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertEquals(0, part.port); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("2001:4860:4860:0000:0000:0000:0000:8888"), 0)); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("2001:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2005:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + } + + @Test + public void testIPv4() throws UnknownHostException { + var part = CONVERTER.convert("10.0.0.0"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertEquals(0, part.port); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("10.0.0.0"), 0)); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("10.0.0.0"), 99)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("10.0.0.255"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("100.100.100.100"), 0)); + } + + @Test + public void testIPv4AndPort() throws UnknownHostException { + var part = CONVERTER.convert("10.0.0.0:8085"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("10.0.0.0"), 8085)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("10.0.0.0"), 8000)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("10.0.0.255"), 8085)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("100.100.100.100"), 8085)); + } + + @Test + public void testIPv6() throws UnknownHostException { + var part = CONVERTER.convert("[2001:4860:4860:0000:0000:0000:0000:8888]"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertEquals(0, part.port); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("2001:4860:4860:0000:0000:0000:0000:8888"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2001:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2005:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + + // test short form + part = CONVERTER.convert("[::]"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertEquals(0, part.port); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("0:0:0:0:0:0:0:0"), 0)); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("0:0:0:0:0:0:0:0"), 99)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2001:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2005:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 0)); + } + + @Test + public void testIPv6AndPort() throws UnknownHostException { + var part = CONVERTER.convert("[2001:4860:4860:0000:0000:0000:0000:8888]:8085"); + Assertions.assertNull(part.hostName); + Assertions.assertNotNull(part.proxyCheck); + Assertions.assertTrue(part.proxyCheck.test(InetAddress.getByName("2001:4860:4860:0000:0000:0000:0000:8888"), 8085)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2001:4860:4860:0000:0000:0000:0000:8888"), 8000)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2001:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 8085)); + Assertions.assertFalse(part.proxyCheck.test(InetAddress.getByName("2005:4860:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF"), 8085)); + } + + @Test + public void testHostName() { + var part = CONVERTER.convert("quarkus.io"); + Assertions.assertNull(part.proxyCheck); + Assertions.assertNotNull(part.hostName); + Assertions.assertEquals(0, part.port); + } + + @Test + public void testHostNameAndPort() { + var part = CONVERTER.convert("quarkus.io:8085"); + Assertions.assertNull(part.proxyCheck); + Assertions.assertNotNull(part.hostName); + Assertions.assertEquals(part.port, 8085); + } + +} From b5642229b42981967881ceab2055823b1cd21494 Mon Sep 17 00:00:00 2001 From: geoand Date: Sat, 28 Jan 2023 15:01:57 +0200 Subject: [PATCH 070/250] Mark generated no-args constructors as synthetic This is useful for code coverage tools Relates to: https://github.com/quarkusio/quarkus/issues/24404#issuecomment-1406922885 --- .../io/quarkus/funqy/deployment/FunctionScannerBuildStep.java | 3 ++- .../src/main/java/io/quarkus/arc/processor/Beans.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/FunctionScannerBuildStep.java b/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/FunctionScannerBuildStep.java index 2b250b7c68540..dcf4096de963a 100644 --- a/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/FunctionScannerBuildStep.java +++ b/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/FunctionScannerBuildStep.java @@ -201,7 +201,8 @@ public ClassVisitor apply(String className, ClassVisitor classVisitor) { public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { super.visit(version, access, name, signature, superName, interfaces); - MethodVisitor ctor = visitMethod(Modifier.PUBLIC, "", "()V", null, + MethodVisitor ctor = visitMethod(Modifier.PUBLIC | Opcodes.ACC_SYNTHETIC, "", "()V", + null, null); ctor.visitCode(); ctor.visitVarInsn(Opcodes.ALOAD, 0); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java index a1455341c10e4..5a02c4824185b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java @@ -938,7 +938,7 @@ public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { super.visit(version, access, name, signature, superName, interfaces); - MethodVisitor mv = visitMethod(Modifier.PUBLIC, Methods.INIT, "()V", null, + MethodVisitor mv = visitMethod(Modifier.PUBLIC | Opcodes.ACC_SYNTHETIC, Methods.INIT, "()V", null, null); mv.visitCode(); mv.visitVarInsn(Opcodes.ALOAD, 0); From 963e3739b1c600ea3838e5c6f9d8adbcff18499e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Sat, 28 Jan 2023 14:14:10 +0100 Subject: [PATCH 071/250] RESTEasy classic servlets - add RoutingContext to active request context fixes: #30405 --- .../test/security/RolesAllowedResource.java | 13 ++++ .../SecurityIdentityAugmentorTest.java | 67 +++++++++++++++++++ .../runtime/UndertowDeploymentRecorder.java | 20 +++++- 3 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java index 16fc9378d18f5..5c612b4a7cd1e 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java @@ -2,15 +2,22 @@ import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; +import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; +import io.quarkus.security.identity.CurrentIdentityAssociation; + /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com */ @Path("/roles") @PermitAll public class RolesAllowedResource { + + @Inject + CurrentIdentityAssociation currentIdentityAssociation; + @GET @RolesAllowed({ "user", "admin" }) public String defaultSecurity() { @@ -24,4 +31,10 @@ public String admin() { return "admin"; } + @Path("/admin/security-identity") + @RolesAllowed("admin") + @GET + public String getSecurityIdentity() { + return currentIdentityAssociation.getIdentity().getPrincipal().getName(); + } } diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java new file mode 100644 index 0000000000000..92ceac105166e --- /dev/null +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java @@ -0,0 +1,67 @@ +package io.quarkus.resteasy.test.security; + +import java.util.List; +import java.util.function.Supplier; + +import javax.enterprise.context.ApplicationScoped; +import javax.enterprise.context.control.ActivateRequestContext; + +import org.hamcrest.Matchers; +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.builder.Version; +import io.quarkus.maven.dependency.Dependency; +import io.quarkus.security.identity.AuthenticationRequestContext; +import io.quarkus.security.identity.SecurityIdentity; +import io.quarkus.security.identity.SecurityIdentityAugmentor; +import io.quarkus.security.runtime.QuarkusSecurityIdentity; +import io.quarkus.security.test.utils.TestIdentityController; +import io.quarkus.security.test.utils.TestIdentityProvider; +import io.quarkus.test.QuarkusUnitTest; +import io.restassured.RestAssured; +import io.smallrye.mutiny.Uni; + +public class SecurityIdentityAugmentorTest { + + @RegisterExtension + static QuarkusUnitTest runner = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addAsResource(new StringAsset("quarkus.http.auth.basic=true\n"), "application.properties") + .addClasses(TestIdentityProvider.class, RolesAllowedResource.class, TestIdentityController.class)) + .setForcedDependencies(List.of(Dependency.of("io.quarkus", "quarkus-undertow", Version.getVersion()))); + + @BeforeAll + public static void setupUsers() { + TestIdentityController.resetRoles().add("admin", "admin"); + } + + @Test + public void testSecurityIdentityAugmentor() { + RestAssured.given().auth().basic("admin", "admin").get("/roles/admin/security-identity").then().statusCode(200) + .body(Matchers.is("admin")); + } + + @ApplicationScoped + public static class CustomAugmentor implements SecurityIdentityAugmentor { + + @Override + public Uni augment(SecurityIdentity identity, AuthenticationRequestContext context) { + if (identity.isAnonymous()) { + return Uni.createFrom().item(identity); + } + return context.runBlocking(build(identity)); + } + + @ActivateRequestContext + Supplier build(SecurityIdentity identity) { + QuarkusSecurityIdentity.Builder builder = QuarkusSecurityIdentity.builder(identity); + builder.addRole("admin"); + return builder::build; + } + + } + +} diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java index 0975c2cce33f4..aabc3a1964e85 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java @@ -564,6 +564,15 @@ public T call(HttpServerExchange exchange, C context) throws Exception { // Not sure what to do here ManagedContext requestContext = beanContainer.requestContext(); if (requestContext.isActive()) { + if (currentVertxRequest.getCurrent() == null && exchange != null + && exchange.getDelegate() instanceof VertxHttpExchange) { + // goal here is to add event to the Vert.X request when Smallrye Context Propagation + // creates fresh instance of request context without the event; we experienced + // the request context activated and terminated by ActivateRequestContextInterceptor + // invoked for the SecurityIdentityAugmentor that was (re)created during permission checks + addEventToVertxRequest(exchange); + } + return action.call(exchange, context); } else if (exchange == null) { requestContext.activate(); @@ -578,9 +587,7 @@ public T call(HttpServerExchange exchange, C context) throws Exception { try { requestContext.activate(existingRequestContext); - VertxHttpExchange delegate = (VertxHttpExchange) exchange.getDelegate(); - RoutingContext rc = (RoutingContext) delegate.getContext(); - currentVertxRequest.setCurrent(rc); + RoutingContext rc = addEventToVertxRequest(exchange); if (association != null) { QuarkusHttpUser existing = (QuarkusHttpUser) rc.user(); @@ -631,6 +638,13 @@ public void onStartAsync(AsyncEvent event) throws IOException { } } } + + private RoutingContext addEventToVertxRequest(HttpServerExchange exchange) { + VertxHttpExchange delegate = (VertxHttpExchange) exchange.getDelegate(); + RoutingContext rc = (RoutingContext) delegate.getContext(); + currentVertxRequest.setCurrent(rc); + return rc; + } }; } }); From 39959c04331a91aacad2866186aedcbe215710db Mon Sep 17 00:00:00 2001 From: geoand Date: Sat, 28 Jan 2023 15:15:10 +0200 Subject: [PATCH 072/250] Mark generated RR inject methods as synthetic This is useful for code coverage tools Relates to: #24404 --- .../processor/generation/multipart/MultipartTransformer.java | 3 ++- .../server/processor/scanning/ClassInjectorTransformer.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/MultipartTransformer.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/MultipartTransformer.java index 136a806f84e9c..2fecb582fde29 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/MultipartTransformer.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/MultipartTransformer.java @@ -70,7 +70,8 @@ public FieldVisitor visitField(int access, String name, String descriptor, Strin @Override public void visitEnd() { - MethodVisitor injectMethod = visitMethod(Opcodes.ACC_PUBLIC, INJECT_METHOD_NAME, INJECT_METHOD_DESCRIPTOR, null, + MethodVisitor injectMethod = visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, INJECT_METHOD_NAME, + INJECT_METHOD_DESCRIPTOR, null, null); injectMethod.visitParameter("ctx", 0 /* modifiers */); injectMethod.visitCode(); diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java index d93ebec5de522..ae69d399728f5 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java @@ -223,7 +223,8 @@ public void visitEnd() { public void visitEnd() { // FIXME: handle setters // FIXME: handle multi fields - MethodVisitor injectMethod = visitMethod(Opcodes.ACC_PUBLIC, INJECT_METHOD_NAME, INJECT_METHOD_DESCRIPTOR, null, + MethodVisitor injectMethod = visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, INJECT_METHOD_NAME, + INJECT_METHOD_DESCRIPTOR, null, null); injectMethod.visitParameter("ctx", 0 /* modifiers */); injectMethod.visitCode(); @@ -333,7 +334,7 @@ public void visitEnd() { if (!seenClassInit && !partTypes.isEmpty()) { // add a class init method for the part types special fields - MethodVisitor mv = super.visitMethod(Opcodes.ACC_STATIC, "", "()V", null, null); + MethodVisitor mv = super.visitMethod(Opcodes.ACC_STATIC | Opcodes.ACC_SYNTHETIC, "", "()V", null, null); for (Entry entry : partTypes.entrySet()) { generateMultipartFormStaticInit(mv, entry.getKey(), entry.getValue()); } From da98a1007cf90ff2cfad93c6fd375cef12d0b097 Mon Sep 17 00:00:00 2001 From: geoand Date: Sun, 29 Jan 2023 10:53:42 +0200 Subject: [PATCH 073/250] Don't fail send when a sse sink has been closed The implementation now follows the same pattern as RESTEasy Classic Fixes: #30681 --- .../server/jaxrs/SseBroadcasterImpl.java | 52 +++++++++++++++++-- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java index 1a5b77c30badc..1700f89b43a93 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java @@ -1,5 +1,6 @@ package org.jboss.resteasy.reactive.server.jaxrs; +import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Objects; @@ -37,8 +38,9 @@ public synchronized void onClose(Consumer onClose) { public synchronized void register(SseEventSink sseEventSink) { Objects.requireNonNull(sseEventSink); checkClosed(); - if (sseEventSink instanceof SseEventSinkImpl == false) + if (sseEventSink instanceof SseEventSinkImpl == false) { throw new IllegalArgumentException("Can only work with Quarkus-REST instances: " + sseEventSink); + } ((SseEventSinkImpl) sseEventSink).register(this); sinks.add(sseEventSink); } @@ -50,20 +52,62 @@ public synchronized CompletionStage broadcast(OutboundSseEvent event) { CompletableFuture[] cfs = new CompletableFuture[sinks.size()]; for (int i = 0; i < sinks.size(); i++) { SseEventSink sseEventSink = sinks.get(i); - cfs[i] = sseEventSink.send(event).toCompletableFuture(); + CompletionStage cs; + try { + cs = sseEventSink.send(event).exceptionally((t) -> { + // do not propagate the exception to the returned CF + // apparently, the goal is to close this sink and not report the error + // of the broadcast operation + notifyOnErrorListeners(sseEventSink, t); + return null; + }); + } catch (Exception e) { + // do not propagate the exception to the returned CF + // apparently, the goal is to close this sink and not report the error + // of the broadcast operation + notifyOnErrorListeners(sseEventSink, e); + cs = CompletableFuture.completedFuture(null); + } + cfs[i] = cs.toCompletableFuture(); } return CompletableFuture.allOf(cfs); } + private void notifyOnErrorListeners(SseEventSink eventSink, Throwable throwable) { + // We have to notify close listeners if the SSE event output has been + // closed (either by client closing the connection (IOException) or by + // calling SseEventSink.close() (IllegalStateException) on the server + // side). + if (throwable instanceof IOException || throwable instanceof IllegalStateException) { + notifyOnCloseListeners(eventSink); + } + onErrorListeners.forEach(consumer -> { + consumer.accept(eventSink, throwable); + }); + } + + private void notifyOnCloseListeners(SseEventSink eventSink) { + // First remove the eventSink from the outputQueue to ensure that + // concurrent calls to this method will notify listeners only once for a + // given eventSink instance. + if (sinks.remove(eventSink)) { + onCloseListeners.forEach(consumer -> { + consumer.accept(eventSink); + }); + } + } + private void checkClosed() { - if (isClosed) + if (isClosed) { throw new IllegalStateException("Broadcaster has been closed"); + } } @Override public synchronized void close() { - if (isClosed) + if (isClosed) { return; + } isClosed = true; for (SseEventSink sink : sinks) { // this will in turn fire close events to our listeners From 57b1089f9ee148261452a060a2ef49830451e860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Sol=C3=B3rzano?= Date: Mon, 23 Jan 2023 12:06:42 +0100 Subject: [PATCH 074/250] Drop and ban commons-io dependency from quarkus-core-deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also update forbiddenapis to 3.4 and substitute calls to org.apache.commons.io.IOUtils#copy(java.io.InputStream,java.io.OutputStream) and org.apache.commons.compress.utils.IOUtils#copy(java.io.InputStream,java.io.OutputStream) using java.io.InputStream#transferTo(java.io.OutputStream) Signed-off-by: Jorge Solórzano --- .forbiddenapis/banned-signatures-common.txt | 4 ++++ build-parent/pom.xml | 2 +- core/deployment/banned-signatures.txt | 3 +++ core/deployment/pom.xml | 4 ---- .../steps/ConfigGenerationBuildStep.java | 24 +++++++++++++++---- .../deployment/FunctionZipProcessor.java | 5 ++-- extensions/hibernate-orm/pom.xml | 24 +++++++++++++------ .../resteasy-reactive/pom.xml | 2 +- test-framework/common/pom.xml | 4 ++++ .../DefaultDockerContainerLauncher.java | 3 +-- 10 files changed, 52 insertions(+), 23 deletions(-) diff --git a/.forbiddenapis/banned-signatures-common.txt b/.forbiddenapis/banned-signatures-common.txt index 1f79769044ecd..d41bcb3911528 100644 --- a/.forbiddenapis/banned-signatures-common.txt +++ b/.forbiddenapis/banned-signatures-common.txt @@ -1,2 +1,6 @@ @defaultMessage Never use Type#toString() as it's almost always the wrong thing to do. Usually org.jboss.jandex.DotName#toString() is what is needed org.jboss.jandex.Type#toString() + +@defaultMessage Replace this by using InputStream.transferTo(OutputStream) +org.apache.commons.io.IOUtils#copy(java.io.InputStream,java.io.OutputStream) +org.apache.commons.compress.utils.IOUtils#copy(java.io.InputStream,java.io.OutputStream) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 07a421105f504..9f16f6cc5ca7f 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -159,7 +159,7 @@ Run "jbang revapi-update" to update api-changes.xml file and also add the justification for those changes in that file. - 3.1 + 3.4 mandrel diff --git a/core/deployment/banned-signatures.txt b/core/deployment/banned-signatures.txt index 4914af82df705..253c2469096a3 100644 --- a/core/deployment/banned-signatures.txt +++ b/core/deployment/banned-signatures.txt @@ -1,5 +1,8 @@ @defaultMessage Don't use Maven classes. They won't be available when using Gradle. org.apache.maven.** org.codehaus.plexus.** + @defaultMessage Never use Type#toString() as it's almost always the wrong thing to do. Usually org.jboss.jandex.DotName#toString() is what is needed org.jboss.jandex.Type#toString() + +org.apache.commons.io.** @ Don't use commons-io dependency \ No newline at end of file diff --git a/core/deployment/pom.xml b/core/deployment/pom.xml index aac32647cbf5c..181f5b9fc2c05 100644 --- a/core/deployment/pom.xml +++ b/core/deployment/pom.xml @@ -139,10 +139,6 @@ org.junit.jupiter junit-jupiter
- - commons-io - commons-io - diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java index 39eef8643f0f9..111a05329b92f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java @@ -20,11 +20,11 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; -import org.apache.commons.io.FilenameUtils; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.ConfigValue; @@ -407,7 +407,7 @@ public void watchConfigFiles(BuildProducer wa if (!Files.isDirectory(path)) { configWatchedFiles.add(path.toString()); for (String profile : config.getProfiles()) { - configWatchedFiles.add(appendProfileToFilename(path.toString(), profile)); + configWatchedFiles.add(appendProfileToFilename(path, profile)); } } } @@ -425,9 +425,23 @@ void warnDifferentProfileUsedBetweenBuildAndRunTime(ConfigRecorder configRecorde configRecorder.handleNativeProfileChange(config.getProfiles()); } - private String appendProfileToFilename(String path, String activeProfile) { - String pathWithoutExtension = FilenameUtils.removeExtension(path); - return String.format("%s-%s.%s", pathWithoutExtension, activeProfile, FilenameUtils.getExtension(path)); + private String appendProfileToFilename(Path path, String activeProfile) { + String pathWithoutExtension = getPathWithoutExtension(path); + return String.format("%s-%s.%s", pathWithoutExtension, activeProfile, getFileExtension(path)); + } + + private static String getFileExtension(Path path) { + Objects.requireNonNull(path, "path should not be null"); + String fileName = path.getFileName().toString(); + int dotIndex = fileName.lastIndexOf('.'); + return (dotIndex == -1) ? "" : fileName.substring(dotIndex + 1); + } + + private static String getPathWithoutExtension(Path path) { + Objects.requireNonNull(path, "path should not be null"); + String fileName = path.toString(); + int dotIndex = fileName.lastIndexOf('.'); + return (dotIndex == -1) ? fileName : fileName.substring(0, dotIndex); } private static void generateDefaultsConfigSource( diff --git a/extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/FunctionZipProcessor.java b/extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/FunctionZipProcessor.java index 74d972cb7a8a8..809103a0c0c07 100644 --- a/extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/FunctionZipProcessor.java +++ b/extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/FunctionZipProcessor.java @@ -12,7 +12,6 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream; import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream; -import org.apache.commons.compress.utils.IOUtils; import org.jboss.logging.Logger; import io.quarkus.deployment.IsNormal; @@ -145,7 +144,7 @@ public void nativeZip(OutputTargetBuildItem target, private void copyZipEntry(ZipArchiveOutputStream zip, InputStream zinput, ZipArchiveEntry from) throws Exception { ZipArchiveEntry entry = new ZipArchiveEntry(from); zip.putArchiveEntry(entry); - IOUtils.copy(zinput, zip); + zinput.transferTo(zip); zip.closeArchiveEntry(); } @@ -154,7 +153,7 @@ private void addZipEntry(ZipArchiveOutputStream zip, Path path, String name, int entry.setUnixMode(mode); zip.putArchiveEntry(entry); try (InputStream i = Files.newInputStream(path)) { - IOUtils.copy(i, zip); + i.transferTo(zip); } zip.closeArchiveEntry(); } diff --git a/extensions/hibernate-orm/pom.xml b/extensions/hibernate-orm/pom.xml index eb2a3a90ace5c..98195ca7fe61d 100644 --- a/extensions/hibernate-orm/pom.xml +++ b/extensions/hibernate-orm/pom.xml @@ -44,24 +44,31 @@ - - jdk-unsafe-11 - jdk-unsafe-12 - jdk-unsafe-13 - jdk-unsafe-14 - jdk-unsafe-15 + + jdk-unsafe + jdk-deprecated-11 jdk-deprecated-12 jdk-deprecated-13 jdk-deprecated-14 jdk-deprecated-15 + jdk-deprecated-16 + jdk-deprecated-17 + jdk-deprecated-18 + jdk-deprecated-19 jdk-internal-11 jdk-internal-12 jdk-internal-13 jdk-internal-14 jdk-internal-15 + jdk-internal-16 + jdk-internal-17 + jdk-internal-18 + jdk-internal-19 ./banned-signatures.txt @@ -81,7 +88,10 @@ false true - + jdk-unsafe jdk-deprecated jdk-non-portable diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index ea6628c9603f2..bcf309d3b0057 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -70,7 +70,7 @@ 2.25.0 - 3.1 + 3.4 diff --git a/test-framework/common/pom.xml b/test-framework/common/pom.xml index 7ace31a5d36a4..dd54190a721ff 100644 --- a/test-framework/common/pom.xml +++ b/test-framework/common/pom.xml @@ -30,6 +30,10 @@ io.smallrye jandex + + commons-io + commons-io + org.jboss.logging diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java index 4918c94d6dacf..de44fb1d30460 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/DefaultDockerContainerLauncher.java @@ -24,7 +24,6 @@ import java.util.concurrent.TimeUnit; import java.util.function.Function; -import org.apache.commons.io.IOUtils; import org.apache.commons.io.input.TeeInputStream; import org.apache.commons.lang3.RandomStringUtils; @@ -155,7 +154,7 @@ public void start() throws IOException { // the log itself is written inside the container Process quarkusProcess = new ProcessBuilder(args).redirectError(PIPE).redirectOutput(PIPE).start(); InputStream tee = new TeeInputStream(quarkusProcess.getInputStream(), new FileOutputStream(logFile.toFile())); - executorService.submit(() -> IOUtils.copy(tee, containerLogOutputStream)); + executorService.submit(() -> tee.transferTo(containerLogOutputStream)); if (startedFunction != null) { IntegrationTestStartedNotifier.Result result = waitForStartedFunction(startedFunction, quarkusProcess, From 95d5904f7cf18c8165b97d8ca03b203d7f69c17e Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 30 Jan 2023 07:29:09 +0200 Subject: [PATCH 075/250] Use newer API for creating tmp files in RESTEasy Reactive --- .../reactive/common/providers/serialisers/FileBodyHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java index e8cc9f3fbcf04..04d1f9fbfa4c9 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java @@ -10,6 +10,7 @@ import java.io.OutputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; +import java.nio.file.Files; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; @@ -32,7 +33,7 @@ public boolean isReadable(Class type, Type genericType, Annotation[] annotati public File readFrom(Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, InputStream entityStream) throws IOException { - File downloadedFile = File.createTempFile(PREFIX, SUFFIX); + File downloadedFile = Files.createTempFile(PREFIX, SUFFIX).toFile(); if (HeaderUtil.isContentLengthZero(httpHeaders)) { return downloadedFile; } From ba79323ac7aa1288d0b85cc6afa6ac2e4b2667b9 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 30 Jan 2023 09:50:01 +0200 Subject: [PATCH 076/250] Fix case in path matching in RESTEasy Reactive where templates overshadow static matching Fixes: #30667 --- .../reactive/server/mapping/PathMatcher.java | 4 + .../server/mapping/RequestMapper.java | 22 ++++-- .../test/matching/PathParamOverlapTest.java | 74 +++++++++++++++++++ 3 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/PathMatcher.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/PathMatcher.java index d2e34a0d17d7c..6fdb256bdcb46 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/PathMatcher.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/PathMatcher.java @@ -50,6 +50,10 @@ PathMatch match(String path) { } } } + return defaultMatch(path); + } + + PathMatch defaultMatch(String path) { return new PathMatch<>("/", path, defaultHandler); } diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RequestMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RequestMapper.java index 3ba853eda3962..d3f97a7c4bd48 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RequestMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RequestMapper.java @@ -51,17 +51,25 @@ private void addPrefixPaths(String stem, ArrayList> list) { pathMatcherBuilder.addPrefixPath(stem, list); } - @SuppressWarnings({ "rawtypes", "unchecked" }) public RequestMatch map(String path) { - int pathLength = path.length(); - PathMatcher.PathMatch>> initialMatch = requestPaths.match(path); + var result = mapFromPathMatcher(path, requestPaths.match(path)); + if (result != null) { + return result; + } + + // the following code is meant to handle cases like https://github.com/quarkusio/quarkus/issues/30667 + return mapFromPathMatcher(path, requestPaths.defaultMatch(path)); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private RequestMatch mapFromPathMatcher(String path, PathMatcher.PathMatch>> initialMatch) { + var value = initialMatch.getValue(); if (initialMatch.getValue() == null) { return null; } - - ArrayList> value = initialMatch.getValue(); - for (int index = 0; index < value.size(); index++) { - RequestPath potentialMatch = value.get(index); + int pathLength = path.length(); + for (int index = 0; index < ((List>) value).size(); index++) { + RequestPath potentialMatch = ((List>) value).get(index); String[] params = (maxParams > 0) ? new String[maxParams] : EMPTY_STRING_ARRAY; int paramCount = 0; boolean matched = true; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java new file mode 100644 index 0000000000000..7bada4e342a20 --- /dev/null +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java @@ -0,0 +1,74 @@ +package org.jboss.resteasy.reactive.server.vertx.test.matching; + +import static io.restassured.RestAssured.get; +import static org.hamcrest.Matchers.equalTo; + +import java.util.function.Supplier; + +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + +import org.jboss.resteasy.reactive.RestPath; +import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +public class PathParamOverlapTest { + + @RegisterExtension + static ResteasyReactiveUnitTest test = new ResteasyReactiveUnitTest() + .setArchiveProducer(new Supplier<>() { + @Override + public JavaArchive get() { + return ShrinkWrap.create(JavaArchive.class) + .addClasses(TestResource.class); + } + }); + + @Test + public void test() { + get("/hello/some/test") + .then() + .statusCode(200) + .body(equalTo("Hello World!")); + + get("/hello/other/test/new") + .then() + .statusCode(200) + .body(equalTo("Hello other")); + + get("/hello/some/test/new") + .then() + .statusCode(200) + .body(equalTo("Hello some")); + + get("/hello/some/test/wrong") + .then() + .statusCode(404); + + get("/hello/other/test/wrong") + .then() + .statusCode(404); + } + + @Path("/hello") + public static class TestResource { + + @GET + @Path("/some/test") + @Produces(MediaType.TEXT_PLAIN) + public String test() { + return "Hello World!"; + } + + @GET + @Path("/{id}/test/new") + public String second(@RestPath String id) { + return "Hello " + id; + } + } +} From d7ae8a2384367a4b98dff93aa1f242d1de359992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 30 Jan 2023 09:22:28 +0100 Subject: [PATCH 077/250] Enable Quarkus GH Lottery notifications for the "triage/needs-feedback" label And switch to the new syntax for the lottery configuration file (otherwise the lottery will stop working). --- .github/quarkus-github-lottery.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/quarkus-github-lottery.yml b/.github/quarkus-github-lottery.yml index 494d80dfee154..ab40f10a8fe97 100644 --- a/.github/quarkus-github-lottery.yml +++ b/.github/quarkus-github-lottery.yml @@ -7,8 +7,8 @@ buckets: delay: PT0S timeout: P3D maintenance: - reproducer: - label: "triage/needs-reproducer" + feedback: + labels: ["triage/needs-reproducer", "triage/needs-feedback"] needed: delay: P21D timeout: P3D @@ -30,7 +30,7 @@ participants: maintenance: labels: ["area/hibernate-orm", "area/hibernate-search", "area/elasticsearch"] days: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -45,7 +45,7 @@ participants: maintenance: labels: ["area/hibernate-validator", "area/jakarta"] days: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -63,7 +63,7 @@ participants: maintenance: labels: ["area/arc", "area/scheduler", "area/qute"] days: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -78,7 +78,7 @@ participants: maintenance: labels: ["area/graphql", "area/smallrye", "area/health", "area/kotlin", "area/metrics", "area/registry", "area/platform"] days: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -93,7 +93,7 @@ participants: maintenance: labels: ["area/build", "area/cli", "area/devmode", "area/dev-ui", "area/gradle", "area/jbang", "area/devtools"] days: ["WEDNESDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -108,7 +108,7 @@ participants: maintenance: labels: ["area/core", "area/testing", "area/kotlin", "area/spring", "area/resteasy-reactive", "area/kubernetes"] days: ["WEDNESDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -126,7 +126,7 @@ participants: maintenance: labels: ["area/security", "area/oidc", "area/keycloak-authorization"] days: ["MONDAY", "WEDNESDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: @@ -141,7 +141,7 @@ participants: maintenance: labels: ["area/arc"] days: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] - reproducer: + feedback: needed: maxIssues: 4 provided: From dfd14298884457e1f4e1dc59498ced7da7cd829e Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Mon, 5 Dec 2022 15:46:04 +0200 Subject: [PATCH 078/250] Move reflection and serialization configuration from `Feature` to json --- .../main/java/io/quarkus/builder/Json.java | 26 +- .../steps/NativeImageFeatureStep.java | 305 +----------------- .../steps/NativeImageReflectConfigStep.java | 190 +++++++++++ .../NativeImageSerializationConfigStep.java | 60 ++++ .../quarkus/runtime/graal/WeakReflection.java | 55 ---- 5 files changed, 265 insertions(+), 371 deletions(-) create mode 100644 core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java create mode 100644 core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageSerializationConfigStep.java delete mode 100644 core/runtime/src/main/java/io/quarkus/runtime/graal/WeakReflection.java diff --git a/core/builder/src/main/java/io/quarkus/builder/Json.java b/core/builder/src/main/java/io/quarkus/builder/Json.java index d5e0059bf32b3..33e61b28bb40f 100644 --- a/core/builder/src/main/java/io/quarkus/builder/Json.java +++ b/core/builder/src/main/java/io/quarkus/builder/Json.java @@ -14,7 +14,7 @@ /** * A simple JSON string generator. */ -final class Json { +public final class Json { private static final String OBJECT_START = "{"; private static final String OBJECT_END = "}"; @@ -47,7 +47,7 @@ private Json() { /** * @return the new JSON array builder, empty builders are not ignored */ - static JsonArrayBuilder array() { + public static JsonArrayBuilder array() { return new JsonArrayBuilder(false); } @@ -65,7 +65,7 @@ static JsonArrayBuilder array(boolean ignoreEmptyBuilders) { * * @return the new JSON object builder, empty builders are not ignored */ - static JsonObjectBuilder object() { + public static JsonObjectBuilder object() { return new JsonObjectBuilder(false); } @@ -142,7 +142,7 @@ protected boolean isValuesEmpty(Collection values) { /** * JSON array builder. */ - static class JsonArrayBuilder extends JsonBuilder { + public static class JsonArrayBuilder extends JsonBuilder { private final List values; @@ -156,12 +156,12 @@ JsonArrayBuilder add(JsonArrayBuilder value) { return this; } - JsonArrayBuilder add(JsonObjectBuilder value) { + public JsonArrayBuilder add(JsonObjectBuilder value) { addInternal(value); return this; } - JsonArrayBuilder add(String value) { + public JsonArrayBuilder add(String value) { addInternal(value); return this; } @@ -205,7 +205,7 @@ String build() throws IOException { } @Override - void appendTo(Appendable appendable) throws IOException { + public void appendTo(Appendable appendable) throws IOException { appendable.append(ARRAY_START); int idx = 0; for (ListIterator iterator = values.listIterator(); iterator.hasNext();) { @@ -231,7 +231,7 @@ protected JsonArrayBuilder self() { /** * JSON object builder. */ - static class JsonObjectBuilder extends JsonBuilder { + public static class JsonObjectBuilder extends JsonBuilder { private final Map properties; @@ -240,22 +240,22 @@ private JsonObjectBuilder(boolean ignoreEmptyBuilders) { this.properties = new HashMap(); } - JsonObjectBuilder put(String name, String value) { + public JsonObjectBuilder put(String name, String value) { putInternal(name, value); return this; } - JsonObjectBuilder put(String name, JsonObjectBuilder value) { + public JsonObjectBuilder put(String name, JsonObjectBuilder value) { putInternal(name, value); return this; } - JsonObjectBuilder put(String name, JsonArrayBuilder value) { + public JsonObjectBuilder put(String name, JsonArrayBuilder value) { putInternal(name, value); return this; } - JsonObjectBuilder put(String name, boolean value) { + public JsonObjectBuilder put(String name, boolean value) { putInternal(name, value); return this; } @@ -295,7 +295,7 @@ String build() throws IOException { } @Override - void appendTo(Appendable appendable) throws IOException { + public void appendTo(Appendable appendable) throws IOException { appendable.append(OBJECT_START); int idx = 0; for (Iterator> iterator = properties.entrySet().iterator(); iterator.hasNext();) { diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java index 3e4e24105d90c..63d0a21cc3c57 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageFeatureStep.java @@ -8,33 +8,23 @@ import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.nio.charset.StandardCharsets; -import java.util.HashSet; -import java.util.LinkedHashMap; import java.util.List; -import java.util.Map; -import java.util.Set; import org.graalvm.home.Version; import org.graalvm.nativeimage.ImageSingletons; import org.graalvm.nativeimage.hosted.Feature; import org.graalvm.nativeimage.hosted.RuntimeClassInitialization; -import org.graalvm.nativeimage.hosted.RuntimeReflection; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.GeneratedNativeImageClassBuildItem; import io.quarkus.deployment.builditem.GeneratedResourceBuildItem; -import io.quarkus.deployment.builditem.nativeimage.ForceNonWeakReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.JPMSExportBuildItem; import io.quarkus.deployment.builditem.nativeimage.JniRuntimeAccessBuildItem; -import io.quarkus.deployment.builditem.nativeimage.LambdaCapturingTypeBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageProxyDefinitionBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem; -import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; -import io.quarkus.deployment.builditem.nativeimage.ReflectiveFieldBuildItem; -import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeReinitializedClassBuildItem; @@ -54,7 +44,6 @@ import io.quarkus.runtime.NativeImageFeatureUtils; import io.quarkus.runtime.ResourceHelper; import io.quarkus.runtime.graal.ResourcesFeature; -import io.quarkus.runtime.graal.WeakReflection; public class NativeImageFeatureStep { @@ -80,12 +69,6 @@ public class NativeImageFeatureStep { CONFIGURATION_CONDITION, "alwaysTrue", CONFIGURATION_CONDITION); - private static final MethodDescriptor REGISTER_LAMBDA_CAPTURING_CLASS = ofMethod( - "org.graalvm.nativeimage.impl.RuntimeSerializationSupport", - "registerLambdaCapturingClass", void.class, - CONFIGURATION_CONDITION, - String.class); - private static final MethodDescriptor LOOKUP_METHOD = ofMethod( NativeImageFeatureUtils.class, "lookupMethod", Method.class, Class.class, String.class, Class[].class); @@ -95,18 +78,12 @@ public class NativeImageFeatureStep { "findModule", Module.class, String.class); private static final MethodDescriptor INVOKE = ofMethod( Method.class, "invoke", Object.class, Object.class, Object[].class); - static final String RUNTIME_REFLECTION = RuntimeReflection.class.getName(); static final String LEGACY_JNI_RUNTIME_ACCESS = "com.oracle.svm.core.jni.JNIRuntimeAccess"; static final String JNI_RUNTIME_ACCESS = "org.graalvm.nativeimage.hosted.RuntimeJNIAccess"; static final String BEFORE_ANALYSIS_ACCESS = Feature.BeforeAnalysisAccess.class.getName(); - static final String DURING_SETUP_ACCESS = Feature.DuringSetupAccess.class.getName(); static final String DYNAMIC_PROXY_REGISTRY = "com.oracle.svm.core.jdk.proxy.DynamicProxyRegistry"; static final String LOCALIZATION_FEATURE = "com.oracle.svm.core.jdk.localization.LocalizationFeature"; static final String RUNTIME_RESOURCE_SUPPORT = "org.graalvm.nativeimage.impl.RuntimeResourceSupport"; - public static final MethodDescriptor WEAK_REFLECTION_REGISTRATION = MethodDescriptor.ofMethod(WeakReflection.class, - "register", void.class, Feature.BeforeAnalysisAccess.class, Class.class, boolean.class, boolean.class, - boolean.class); - public static final String RUNTIME_SERIALIZATION = "org.graalvm.nativeimage.hosted.RuntimeSerialization"; @BuildStep GeneratedResourceBuildItem generateNativeResourcesList(List resources, @@ -127,9 +104,7 @@ GeneratedResourceBuildItem generateNativeResourcesList(List features, - List jniRuntimeAccessibleClasses, - List lambdaCapturingTypeBuildItems, - List resourcePatterns) { + List jniRuntimeAccessibleClasses) { // required in order to access org.graalvm.nativeimage.impl.RuntimeSerializationSupport and org.graalvm.nativeimage.impl.ConfigurationCondition features.produce(new JPMSExportBuildItem("org.graalvm.sdk", "org.graalvm.nativeimage.impl")); // required in order to access com.oracle.svm.core.jni.JNIRuntimeAccess in GraalVM 22.2.x @@ -148,14 +123,9 @@ void generateFeature(BuildProducer nativeIma List proxies, List resourcePatterns, List resourceBundles, - List reflectiveMethods, - List reflectiveFields, - List reflectiveClassBuildItems, - List nonWeakReflectiveClassBuildItems, List serviceProviderBuildItems, List unsafeAccessedFields, - List jniRuntimeAccessibleClasses, - List lambdaCapturingTypeBuildItems) { + List jniRuntimeAccessibleClasses) { ClassCreator file = new ClassCreator(new ClassOutput() { @Override public void write(String s, byte[] bytes) { @@ -168,50 +138,6 @@ public void write(String s, byte[] bytes) { MethodCreator getDescription = file.getMethodCreator("getDescription", String.class); getDescription.returnValue(getDescription.load("Auto-generated class by Quarkus from the existing extensions")); - MethodCreator duringSetup = file.getMethodCreator("duringSetup", "V", DURING_SETUP_ACCESS); - // Register Lambda Capturing Types - if (!lambdaCapturingTypeBuildItems.isEmpty()) { - - BranchResult graalVm22_3Test = duringSetup - .ifGreaterEqualZero(duringSetup.invokeVirtualMethod(VERSION_COMPARE_TO, - duringSetup.invokeStaticMethod(VERSION_CURRENT), - duringSetup.marshalAsArray(int.class, duringSetup.load(22), duringSetup.load(3)))); - /* GraalVM >= 22.3 */ - try (BytecodeCreator greaterThan22_2 = graalVm22_3Test.trueBranch()) { - MethodDescriptor registerLambdaCapturingClass = ofMethod(RUNTIME_SERIALIZATION, "registerLambdaCapturingClass", - void.class, Class.class); - for (LambdaCapturingTypeBuildItem i : lambdaCapturingTypeBuildItems) { - TryBlock tryBlock = greaterThan22_2.tryBlock(); - - tryBlock.invokeStaticMethod(registerLambdaCapturingClass, - tryBlock.loadClassFromTCCL(i.getClassName())); - - CatchBlockCreator catchBlock = tryBlock.addCatch(Throwable.class); - catchBlock.invokeVirtualMethod(ofMethod(Throwable.class, "printStackTrace", void.class), - catchBlock.getCaughtException()); - } - } - /* GraalVM < 22.3 */ - try (BytecodeCreator smallerThan22_3 = graalVm22_3Test.falseBranch()) { - ResultHandle runtimeSerializationSupportSingleton = smallerThan22_3.invokeStaticMethod(IMAGE_SINGLETONS_LOOKUP, - smallerThan22_3.loadClassFromTCCL("org.graalvm.nativeimage.impl.RuntimeSerializationSupport")); - ResultHandle configAlwaysTrue = smallerThan22_3.invokeStaticMethod(CONFIGURATION_ALWAYS_TRUE); - - for (LambdaCapturingTypeBuildItem i : lambdaCapturingTypeBuildItems) { - TryBlock tryBlock = smallerThan22_3.tryBlock(); - - tryBlock.invokeInterfaceMethod(REGISTER_LAMBDA_CAPTURING_CLASS, runtimeSerializationSupportSingleton, - configAlwaysTrue, - tryBlock.load(i.getClassName())); - - CatchBlockCreator catchBlock = tryBlock.addCatch(Throwable.class); - catchBlock.invokeVirtualMethod(ofMethod(Throwable.class, "printStackTrace", void.class), - catchBlock.getCaughtException()); - } - } - } - duringSetup.returnValue(null); - MethodCreator beforeAn = file.getMethodCreator("beforeAnalysis", "V", BEFORE_ANALYSIS_ACCESS); TryBlock overallCatch = beforeAn.tryBlock(); @@ -513,137 +439,6 @@ public void write(String s, byte[] bytes) { } int count = 0; - final Map reflectiveClasses = new LinkedHashMap<>(); - final Set forcedNonWeakClasses = new HashSet<>(); - for (ForceNonWeakReflectiveClassBuildItem nonWeakReflectiveClassBuildItem : nonWeakReflectiveClassBuildItems) { - forcedNonWeakClasses.add(nonWeakReflectiveClassBuildItem.getClassName()); - } - for (ReflectiveClassBuildItem i : reflectiveClassBuildItems) { - addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, i.isConstructors(), i.isMethods(), i.isFields(), - i.areFinalFieldsWritable(), - i.isWeak(), - i.isSerialization(), - i.getClassNames().toArray(new String[0])); - } - for (ReflectiveFieldBuildItem i : reflectiveFields) { - addReflectiveField(reflectiveClasses, i); - } - for (ReflectiveMethodBuildItem i : reflectiveMethods) { - addReflectiveMethod(reflectiveClasses, i); - } - - for (ServiceProviderBuildItem i : serviceProviderBuildItems) { - addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, true, false, false, false, false, false, - i.providers().toArray(new String[] {})); - } - - MethodDescriptor registerSerializationMethod = null; - - MethodCreator registerForReflection = file - .getMethodCreator("registerForReflection", void.class, Feature.BeforeAnalysisAccess.class) - .setModifiers(Modifier.PRIVATE | Modifier.STATIC); - - for (Map.Entry entry : reflectiveClasses.entrySet()) { - MethodCreator mv = file.getMethodCreator("registerClass" + count++, void.class, Feature.BeforeAnalysisAccess.class); - mv.setModifiers(Modifier.PRIVATE | Modifier.STATIC); - registerForReflection.invokeStaticMethod(mv.getMethodDescriptor(), registerForReflection.getMethodParam(0)); - - TryBlock tc = mv.tryBlock(); - - ResultHandle clazz = tc.loadClassFromTCCL(entry.getKey()); - //we call these methods first, so if they are going to throw an exception it happens before anything has been registered - ResultHandle constructors = tc - .invokeVirtualMethod(ofMethod(Class.class, "getDeclaredConstructors", Constructor[].class), clazz); - ResultHandle methods = tc.invokeVirtualMethod(ofMethod(Class.class, "getDeclaredMethods", Method[].class), clazz); - ResultHandle fields = tc.invokeVirtualMethod(ofMethod(Class.class, "getDeclaredFields", Field[].class), clazz); - - if (!entry.getValue().weak) { - ResultHandle carray = tc.newArray(Class.class, tc.load(1)); - tc.writeArrayValue(carray, 0, clazz); - tc.invokeStaticMethod(ofMethod(RUNTIME_REFLECTION, "register", void.class, Class[].class), - carray); - - if (entry.getValue().constructors) { - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, Executable[].class), - constructors); - } else if (!entry.getValue().ctorSet.isEmpty()) { - ResultHandle farray = tc.newArray(Constructor.class, tc.load(1)); - for (ReflectiveMethodBuildItem ctor : entry.getValue().ctorSet) { - ResultHandle paramArray = tc.newArray(Class.class, tc.load(ctor.getParams().length)); - for (int i = 0; i < ctor.getParams().length; ++i) { - String type = ctor.getParams()[i]; - tc.writeArrayValue(paramArray, i, tc.loadClassFromTCCL(type)); - } - ResultHandle fhandle = tc.invokeVirtualMethod( - ofMethod(Class.class, "getDeclaredConstructor", Constructor.class, Class[].class), clazz, - paramArray); - tc.writeArrayValue(farray, 0, fhandle); - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, Executable[].class), - farray); - } - } - if (entry.getValue().methods) { - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, Executable[].class), - methods); - } else if (!entry.getValue().methodSet.isEmpty()) { - ResultHandle farray = tc.newArray(Method.class, tc.load(1)); - for (ReflectiveMethodBuildItem method : entry.getValue().methodSet) { - ResultHandle paramArray = tc.newArray(Class.class, tc.load(method.getParams().length)); - for (int i = 0; i < method.getParams().length; ++i) { - String type = method.getParams()[i]; - tc.writeArrayValue(paramArray, i, tc.loadClassFromTCCL(type)); - } - ResultHandle fhandle = tc.invokeVirtualMethod( - ofMethod(Class.class, "getDeclaredMethod", Method.class, String.class, Class[].class), clazz, - tc.load(method.getName()), paramArray); - tc.writeArrayValue(farray, 0, fhandle); - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, Executable[].class), - farray); - } - } - if (entry.getValue().fields) { - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, - boolean.class, boolean.class, Field[].class), - tc.load(entry.getValue().finalFieldsWritable), tc.load(entry.getValue().serialization), fields); - } else if (!entry.getValue().fieldSet.isEmpty()) { - ResultHandle farray = tc.newArray(Field.class, tc.load(1)); - for (String field : entry.getValue().fieldSet) { - ResultHandle fhandle = tc.invokeVirtualMethod( - ofMethod(Class.class, "getDeclaredField", Field.class, String.class), clazz, tc.load(field)); - tc.writeArrayValue(farray, 0, fhandle); - tc.invokeStaticMethod( - ofMethod(RUNTIME_REFLECTION, "register", void.class, Field[].class), - farray); - } - } - } else { - tc.invokeStaticMethod(WEAK_REFLECTION_REGISTRATION, tc.getMethodParam(0), clazz, - tc.load(entry.getValue().constructors), tc.load(entry.getValue().methods), - tc.load(entry.getValue().fields)); - } - - if (entry.getValue().serialization) { - if (registerSerializationMethod == null) { - registerSerializationMethod = createRegisterSerializationForClassMethod(file); - } - - tc.invokeStaticMethod(registerSerializationMethod, clazz); - } - - CatchBlockCreator cc = tc.addCatch(Throwable.class); - //cc.invokeVirtualMethod(ofMethod(Throwable.class, "printStackTrace", void.class), cc.getCaughtException()); - mv.returnValue(null); - } - registerForReflection.returnVoid(); - overallCatch.invokeStaticMethod(registerForReflection.getMethodDescriptor(), beforeAnalysisParam); - - count = 0; - for (JniRuntimeAccessBuildItem jniAccessible : jniRuntimeAccessibleClasses) { for (String className : jniAccessible.getClassNames()) { MethodCreator mv = file.getMethodCreator("registerJniAccessibleClass" + count++, "V"); @@ -728,100 +523,4 @@ public void write(String s, byte[] bytes) { file.close(); } - private MethodDescriptor createRegisterSerializationForClassMethod(ClassCreator file) { - // method to register class for registration - MethodCreator addSerializationForClass = file.getMethodCreator("registerSerializationForClass", "V", Class.class); - addSerializationForClass.setModifiers(Modifier.PRIVATE | Modifier.STATIC); - ResultHandle clazz = addSerializationForClass.getMethodParam(0); - - TryBlock tc = addSerializationForClass.tryBlock(); - - ResultHandle runtimeSerializationClass = tc.loadClassFromTCCL(RUNTIME_SERIALIZATION); - ResultHandle registerArgTypes = tc.newArray(Class.class, tc.load(1)); - tc.writeArrayValue(registerArgTypes, 0, tc.loadClassFromTCCL(Class[].class)); - ResultHandle registerLookupMethod = tc.invokeStaticMethod(LOOKUP_METHOD, runtimeSerializationClass, - tc.load("register"), registerArgTypes); - ResultHandle registerArgs = tc.newArray(Object.class, tc.load(1)); - ResultHandle classesToRegister = tc.newArray(Class.class, tc.load(1)); - tc.writeArrayValue(classesToRegister, 0, clazz); - tc.writeArrayValue(registerArgs, 0, classesToRegister); - tc.invokeVirtualMethod(INVOKE, registerLookupMethod, - tc.loadNull(), registerArgs); - tc.returnValue(null); - - addSerializationForClass.returnValue(null); - - return addSerializationForClass.getMethodDescriptor(); - } - - public void addReflectiveMethod(Map reflectiveClasses, ReflectiveMethodBuildItem methodInfo) { - String cl = methodInfo.getDeclaringClass(); - ReflectionInfo existing = reflectiveClasses.get(cl); - if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); - } - if (methodInfo.getName().equals("")) { - existing.ctorSet.add(methodInfo); - } else { - existing.methodSet.add(methodInfo); - } - } - - public void addReflectiveClass(Map reflectiveClasses, Set forcedNonWeakClasses, - boolean constructors, boolean method, - boolean fields, boolean finalFieldsWritable, boolean weak, boolean serialization, - String... className) { - for (String cl : className) { - ReflectionInfo existing = reflectiveClasses.get(cl); - if (existing == null) { - reflectiveClasses.put(cl, new ReflectionInfo(constructors, method, fields, finalFieldsWritable, - !forcedNonWeakClasses.contains(cl) && weak, serialization)); - } else { - if (constructors) { - existing.constructors = true; - } - if (method) { - existing.methods = true; - } - if (fields) { - existing.fields = true; - } - if (serialization) { - existing.serialization = true; - } - } - } - } - - public void addReflectiveField(Map reflectiveClasses, ReflectiveFieldBuildItem fieldInfo) { - String cl = fieldInfo.getDeclaringClass(); - ReflectionInfo existing = reflectiveClasses.get(cl); - if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); - } - existing.fieldSet.add(fieldInfo.getName()); - } - - static final class ReflectionInfo { - boolean constructors; - boolean methods; - boolean fields; - boolean finalFieldsWritable; - boolean weak; - boolean serialization; - Set fieldSet = new HashSet<>(); - Set methodSet = new HashSet<>(); - Set ctorSet = new HashSet<>(); - - private ReflectionInfo(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, boolean serialization) { - this.methods = methods; - this.fields = fields; - this.constructors = constructors; - this.finalFieldsWritable = finalFieldsWritable; - this.weak = weak; - this.serialization = serialization; - } - } - } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java new file mode 100644 index 0000000000000..8430aefcf27f3 --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java @@ -0,0 +1,190 @@ +package io.quarkus.deployment.steps; + +import java.io.IOException; +import java.io.StringWriter; +import java.nio.charset.StandardCharsets; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.quarkus.builder.Json; +import io.quarkus.builder.Json.JsonArrayBuilder; +import io.quarkus.builder.Json.JsonObjectBuilder; +import io.quarkus.deployment.annotations.BuildProducer; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.GeneratedResourceBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ForceNonWeakReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveFieldBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; + +public class NativeImageReflectConfigStep { + + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) + void generateReflectConfig(BuildProducer reflectConfig, + List reflectiveMethods, + List reflectiveFields, + List reflectiveClassBuildItems, + List nonWeakReflectiveClassBuildItems, + List serviceProviderBuildItems) { + + final Map reflectiveClasses = new LinkedHashMap<>(); + final Set forcedNonWeakClasses = new HashSet<>(); + for (ForceNonWeakReflectiveClassBuildItem nonWeakReflectiveClassBuildItem : nonWeakReflectiveClassBuildItems) { + forcedNonWeakClasses.add(nonWeakReflectiveClassBuildItem.getClassName()); + } + for (ReflectiveClassBuildItem i : reflectiveClassBuildItems) { + addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, i.isConstructors(), i.isMethods(), i.isFields(), + i.areFinalFieldsWritable(), + i.isWeak(), i.isSerialization(), i.getClassNames().toArray(new String[0])); + } + for (ReflectiveFieldBuildItem i : reflectiveFields) { + addReflectiveField(reflectiveClasses, i); + } + for (ReflectiveMethodBuildItem i : reflectiveMethods) { + addReflectiveMethod(reflectiveClasses, i); + } + + for (ServiceProviderBuildItem i : serviceProviderBuildItems) { + addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, true, false, false, false, false, false, + i.providers().toArray(new String[] {})); + } + + JsonArrayBuilder root = Json.array(); + for (Map.Entry entry : reflectiveClasses.entrySet()) { + JsonObjectBuilder json = Json.object(); + + json.put("name", entry.getKey()); + + if (entry.getValue().weak) { + json.put("condition", Json.object().put("typeReachable", entry.getKey())); + } + if (entry.getValue().constructors) { + json.put("allDeclaredConstructors", true); + } else if (!entry.getValue().ctorSet.isEmpty()) { + JsonArrayBuilder methodsArray = Json.array(); + for (ReflectiveMethodBuildItem ctor : entry.getValue().ctorSet) { + JsonObjectBuilder methodObject = Json.object(); + methodObject.put("name", ctor.getName()); + JsonArrayBuilder paramsArray = Json.array(); + for (int i = 0; i < ctor.getParams().length; ++i) { + paramsArray.add(ctor.getParams()[i]); + } + methodObject.put("parameterTypes", paramsArray); + methodsArray.add(methodObject); + } + json.put("methods", methodsArray); + } + if (entry.getValue().methods) { + json.put("allDeclaredMethods", true); + } else if (!entry.getValue().methodSet.isEmpty()) { + JsonArrayBuilder methodsArray = Json.array(); + for (ReflectiveMethodBuildItem method : entry.getValue().methodSet) { + JsonObjectBuilder methodObject = Json.object(); + methodObject.put("name", method.getName()); + JsonArrayBuilder paramsArray = Json.array(); + for (int i = 0; i < method.getParams().length; ++i) { + paramsArray.add(method.getParams()[i]); + } + methodObject.put("parameterTypes", paramsArray); + methodsArray.add(methodObject); + } + json.put("methods", methodsArray); + } + if (entry.getValue().fields) { + json.put("allDeclaredFields", true); + } else if (!entry.getValue().fieldSet.isEmpty()) { + JsonArrayBuilder fieldsArray = Json.array(); + for (String fieldName : entry.getValue().fieldSet) { + fieldsArray.add(Json.object().put("name", fieldName)); + } + json.put("fields", fieldsArray); + } + + root.add(json); + } + + try (StringWriter writer = new StringWriter()) { + root.appendTo(writer); + reflectConfig.produce(new GeneratedResourceBuildItem("META-INF/native-image/reflect-config.json", + writer.toString().getBytes(StandardCharsets.UTF_8))); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + + public void addReflectiveMethod(Map reflectiveClasses, ReflectiveMethodBuildItem methodInfo) { + String cl = methodInfo.getDeclaringClass(); + ReflectionInfo existing = reflectiveClasses.get(cl); + if (existing == null) { + reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); + } + if (methodInfo.getName().equals("")) { + existing.ctorSet.add(methodInfo); + } else { + existing.methodSet.add(methodInfo); + } + } + + public void addReflectiveClass(Map reflectiveClasses, Set forcedNonWeakClasses, + boolean constructors, boolean method, + boolean fields, boolean finalFieldsWritable, boolean weak, boolean serialization, + String... className) { + for (String cl : className) { + ReflectionInfo existing = reflectiveClasses.get(cl); + if (existing == null) { + reflectiveClasses.put(cl, new ReflectionInfo(constructors, method, fields, finalFieldsWritable, + !forcedNonWeakClasses.contains(cl) && weak, serialization)); + } else { + if (constructors) { + existing.constructors = true; + } + if (method) { + existing.methods = true; + } + if (fields) { + existing.fields = true; + } + if (serialization) { + existing.serialization = true; + } + } + } + } + + public void addReflectiveField(Map reflectiveClasses, ReflectiveFieldBuildItem fieldInfo) { + String cl = fieldInfo.getDeclaringClass(); + ReflectionInfo existing = reflectiveClasses.get(cl); + if (existing == null) { + reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); + } + existing.fieldSet.add(fieldInfo.getName()); + } + + static final class ReflectionInfo { + boolean constructors; + boolean methods; + boolean fields; + boolean finalFieldsWritable; + boolean weak; + boolean serialization; + Set fieldSet = new HashSet<>(); + Set methodSet = new HashSet<>(); + Set ctorSet = new HashSet<>(); + + private ReflectionInfo(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, + boolean weak, boolean serialization) { + this.methods = methods; + this.fields = fields; + this.constructors = constructors; + this.finalFieldsWritable = finalFieldsWritable; + this.weak = weak; + this.serialization = serialization; + } + } + +} diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageSerializationConfigStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageSerializationConfigStep.java new file mode 100644 index 0000000000000..da7fd099fff3d --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageSerializationConfigStep.java @@ -0,0 +1,60 @@ +package io.quarkus.deployment.steps; + +import java.io.IOException; +import java.io.StringWriter; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import io.quarkus.builder.Json; +import io.quarkus.builder.Json.JsonArrayBuilder; +import io.quarkus.builder.Json.JsonObjectBuilder; +import io.quarkus.deployment.annotations.BuildProducer; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.GeneratedResourceBuildItem; +import io.quarkus.deployment.builditem.nativeimage.LambdaCapturingTypeBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; + +public class NativeImageSerializationConfigStep { + + @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class) + void generateSerializationConfig(BuildProducer serializationConfig, + List reflectiveClassBuildItems, + List lambdaCapturingTypeBuildItems) { + + final Set serializableClasses = new HashSet<>(); + for (ReflectiveClassBuildItem i : reflectiveClassBuildItems) { + if (i.isSerialization()) { + String[] classNames = i.getClassNames().toArray(new String[0]); + Collections.addAll(serializableClasses, classNames); + } + } + + JsonObjectBuilder root = Json.object(); + JsonArrayBuilder types = Json.array(); + for (String serializableClass : serializableClasses) { + types.add(Json.object().put("name", serializableClass)); + } + root.put("types", types); + + JsonArrayBuilder lambdaCapturingTypes = Json.array(); + if (!lambdaCapturingTypeBuildItems.isEmpty()) { + for (LambdaCapturingTypeBuildItem i : lambdaCapturingTypeBuildItems) { + lambdaCapturingTypes.add(Json.object().put("name", i.getClassName())); + } + } + root.put("lambdaCapturingTypes", lambdaCapturingTypes); + + try (StringWriter writer = new StringWriter()) { + root.appendTo(writer); + serializationConfig.produce(new GeneratedResourceBuildItem("META-INF/native-image/serialization-config.json", + writer.toString().getBytes(StandardCharsets.UTF_8))); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + +} diff --git a/core/runtime/src/main/java/io/quarkus/runtime/graal/WeakReflection.java b/core/runtime/src/main/java/io/quarkus/runtime/graal/WeakReflection.java deleted file mode 100644 index f4314777935ed..0000000000000 --- a/core/runtime/src/main/java/io/quarkus/runtime/graal/WeakReflection.java +++ /dev/null @@ -1,55 +0,0 @@ -package io.quarkus.runtime.graal; - -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.function.Consumer; - -import org.graalvm.nativeimage.hosted.Feature; -import org.graalvm.nativeimage.hosted.RuntimeReflection; -import org.jboss.logging.Logger; - -/** - * Weak reflection implementation called from generated bytecode - */ -public class WeakReflection { - - static final Logger log = Logger.getLogger(WeakReflection.class); - - public static void register(Feature.BeforeAnalysisAccess analysisAccess, Class clazz, boolean constructors, - boolean methods, boolean fields) { - analysisAccess.registerReachabilityHandler(new Callback(clazz, constructors, methods, fields), clazz); - } - - public static class Callback implements Consumer { - final AtomicBoolean onlyOnce = new AtomicBoolean(false); - final Class clazz; - final boolean constructors; - final boolean methods; - final boolean fields; - - public Callback(Class clazz, boolean constructors, boolean methods, boolean fields) { - this.clazz = clazz; - this.constructors = constructors; - this.methods = methods; - this.fields = fields; - } - - @Override - public void accept(Feature.DuringAnalysisAccess duringAnalysisAccess) { - if (!onlyOnce.compareAndSet(false, true)) { - return; - } - log.debugf("Registering %s for reflection as it is reachable", clazz); - RuntimeReflection.register(clazz); - if (fields) { - RuntimeReflection.register(clazz.getDeclaredFields()); - } - if (constructors) { - RuntimeReflection.register(clazz.getDeclaredConstructors()); - } - if (methods) { - RuntimeReflection.register(clazz.getDeclaredMethods()); - } - } - } - -} From bf43f638daaf0db73416ed0b285fcd17ebe9bf07 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 15 Dec 2022 12:47:30 +0200 Subject: [PATCH 079/250] Drop finalFieldsWritable fields as they are no longer needed As of GraalVM 21.1 finalFieldsWritable is no longer needed when registering fields for reflection. --- .../nativeimage/ReflectiveClassBuildItem.java | 53 ++++++++----------- .../steps/NativeImageReflectConfigStep.java | 16 +++--- .../steps/ReflectiveHierarchyStep.java | 7 --- .../jaeger/deployment/JaegerProcessor.java | 1 - ...allRyeReactiveMessagingKafkaProcessor.java | 1 - .../extest/deployment/TestProcessor.java | 1 - 6 files changed, 27 insertions(+), 52 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java index c2b771af2141a..a1a3725c781ee 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java @@ -17,7 +17,6 @@ public final class ReflectiveClassBuildItem extends MultiBuildItem { private final boolean methods; private final boolean fields; private final boolean constructors; - private final boolean finalFieldsWritable; private final boolean weak; private final boolean serialization; @@ -29,13 +28,8 @@ public ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean f this(constructors, methods, fields, false, false, className); } - private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, Class... className) { - this(constructors, methods, fields, finalFieldsWritable, weak, false, className); - } - - private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, boolean serialization, Class... className) { + private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean weak, boolean serialization, + Class... className) { List names = new ArrayList<>(); for (Class i : className) { if (i == null) { @@ -47,16 +41,10 @@ private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean this.methods = methods; this.fields = fields; this.constructors = constructors; - this.finalFieldsWritable = finalFieldsWritable; this.weak = weak; this.serialization = serialization; - if (weak) { - if (serialization) { - throw new RuntimeException("Weak reflection not supported with serialization"); - } - if (finalFieldsWritable) { - throw new RuntimeException("Weak reflection not supported with finalFieldsWritable"); - } + if (weak && serialization) { + throw new RuntimeException("Weak reflection not supported with serialization"); } } @@ -70,7 +58,7 @@ public ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean f public ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean serialization, String... className) { - this(constructors, methods, fields, false, false, serialization, className); + this(constructors, methods, fields, false, serialization, className); } public static ReflectiveClassBuildItem weakClass(String... className) { @@ -79,20 +67,15 @@ public static ReflectiveClassBuildItem weakClass(String... className) { public static ReflectiveClassBuildItem weakClass(boolean constructors, boolean methods, boolean fields, String... className) { - return new ReflectiveClassBuildItem(constructors, methods, fields, false, true, className); + return new ReflectiveClassBuildItem(constructors, methods, fields, true, false, className); } public static ReflectiveClassBuildItem serializationClass(String... className) { - return new ReflectiveClassBuildItem(false, false, false, false, false, true, className); + return new ReflectiveClassBuildItem(false, false, false, false, true, className); } - private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, String... className) { - this(constructors, methods, fields, finalFieldsWritable, weak, false, className); - } - - private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, boolean serialization, String... className) { + private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean fields, boolean weak, boolean serialization, + String... className) { for (String i : className) { if (i == null) { throw new NullPointerException(); @@ -102,7 +85,6 @@ private ReflectiveClassBuildItem(boolean constructors, boolean methods, boolean this.methods = methods; this.fields = fields; this.constructors = constructors; - this.finalFieldsWritable = finalFieldsWritable; this.weak = weak; this.serialization = serialization; } @@ -123,8 +105,13 @@ public boolean isConstructors() { return constructors; } + /** + * @deprecated As of GraalVM 21.2 finalFieldsWritable is no longer needed when registering fields for reflection. This will + * be removed in a future verion of Quarkus. + */ + @Deprecated public boolean areFinalFieldsWritable() { - return finalFieldsWritable; + return false; } public boolean isWeak() { @@ -159,7 +146,6 @@ public static class Builder { private boolean constructors = true; private boolean methods; private boolean fields; - private boolean finalFieldsWritable; private boolean weak; private boolean serialization; @@ -186,8 +172,12 @@ public Builder fields(boolean fields) { return this; } + /** + * @deprecated As of GraalVM 21.2 finalFieldsWritable is no longer needed when registering fields for reflection. This + * will be removed in a future verion of Quarkus. + */ + @Deprecated public Builder finalFieldsWritable(boolean finalFieldsWritable) { - this.finalFieldsWritable = finalFieldsWritable; return this; } @@ -202,8 +192,7 @@ public Builder serialization(boolean serialize) { } public ReflectiveClassBuildItem build() { - return new ReflectiveClassBuildItem(constructors, methods, fields, finalFieldsWritable, weak, serialization, - className); + return new ReflectiveClassBuildItem(constructors, methods, fields, weak, serialization, className); } } } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java index 8430aefcf27f3..17028cd96fa4c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java @@ -39,7 +39,6 @@ void generateReflectConfig(BuildProducer reflectConf } for (ReflectiveClassBuildItem i : reflectiveClassBuildItems) { addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, i.isConstructors(), i.isMethods(), i.isFields(), - i.areFinalFieldsWritable(), i.isWeak(), i.isSerialization(), i.getClassNames().toArray(new String[0])); } for (ReflectiveFieldBuildItem i : reflectiveFields) { @@ -50,7 +49,7 @@ void generateReflectConfig(BuildProducer reflectConf } for (ServiceProviderBuildItem i : serviceProviderBuildItems) { - addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, true, false, false, false, false, false, + addReflectiveClass(reflectiveClasses, forcedNonWeakClasses, true, false, false, false, false, i.providers().toArray(new String[] {})); } @@ -121,7 +120,7 @@ public void addReflectiveMethod(Map reflectiveClasses, R String cl = methodInfo.getDeclaringClass(); ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); + reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false)); } if (methodInfo.getName().equals("")) { existing.ctorSet.add(methodInfo); @@ -132,12 +131,12 @@ public void addReflectiveMethod(Map reflectiveClasses, R public void addReflectiveClass(Map reflectiveClasses, Set forcedNonWeakClasses, boolean constructors, boolean method, - boolean fields, boolean finalFieldsWritable, boolean weak, boolean serialization, + boolean fields, boolean weak, boolean serialization, String... className) { for (String cl : className) { ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { - reflectiveClasses.put(cl, new ReflectionInfo(constructors, method, fields, finalFieldsWritable, + reflectiveClasses.put(cl, new ReflectionInfo(constructors, method, fields, !forcedNonWeakClasses.contains(cl) && weak, serialization)); } else { if (constructors) { @@ -160,7 +159,7 @@ public void addReflectiveField(Map reflectiveClasses, Re String cl = fieldInfo.getDeclaringClass(); ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false, false)); + reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false)); } existing.fieldSet.add(fieldInfo.getName()); } @@ -169,19 +168,16 @@ static final class ReflectionInfo { boolean constructors; boolean methods; boolean fields; - boolean finalFieldsWritable; boolean weak; boolean serialization; Set fieldSet = new HashSet<>(); Set methodSet = new HashSet<>(); Set ctorSet = new HashSet<>(); - private ReflectionInfo(boolean constructors, boolean methods, boolean fields, boolean finalFieldsWritable, - boolean weak, boolean serialization) { + private ReflectionInfo(boolean constructors, boolean methods, boolean fields, boolean weak, boolean serialization) { this.methods = methods; this.fields = fields; this.constructors = constructors; - this.finalFieldsWritable = finalFieldsWritable; this.weak = weak; this.serialization = serialization; } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java index ebcb59cdd0290..9bbc4518ac531 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ReflectiveHierarchyStep.java @@ -214,7 +214,6 @@ private void addClassTypeHierarchy(CombinedIndexBuildItem combinedIndexBuildItem .builder(name.toString()) .methods(true) .fields(true) - .finalFieldsWritable(doFinalFieldsNeedToBeWritable(info, finalFieldsWritable)) .serialization(reflectiveHierarchyBuildItem.isSerialization()) .build()); @@ -279,10 +278,4 @@ private static Type getFieldType(CombinedIndexBuildItem combinedIndexBuildItem, return fieldType; } - private static boolean doFinalFieldsNeedToBeWritable(ClassInfo classInfo, Predicate finalFieldsWritable) { - if (classInfo == null) { - return false; - } - return finalFieldsWritable.test(classInfo); - } } diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java index 6d5d3d6f9550a..e0d624d2d8f53 100644 --- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java +++ b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java @@ -57,7 +57,6 @@ public ReflectiveClassBuildItem reflectiveClasses() { "io.jaegertracing.internal.samplers.http.RateLimitingSamplingStrategy", "io.jaegertracing.internal.samplers.http.SamplingStrategyResponse") .fields(true) - .finalFieldsWritable(true) .build(); } } diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/SmallRyeReactiveMessagingKafkaProcessor.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/SmallRyeReactiveMessagingKafkaProcessor.java index f3844c2e911ee..d383c31393626 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/SmallRyeReactiveMessagingKafkaProcessor.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/SmallRyeReactiveMessagingKafkaProcessor.java @@ -70,7 +70,6 @@ public void build(BuildProducer reflectiveClass) { .fields(true) .methods(true) .constructors(true) - .finalFieldsWritable(true) .build()); reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, ProcessingState.class)); } diff --git a/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java b/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java index 01b27cd7d4002..e0c6766c64cef 100644 --- a/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java +++ b/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java @@ -447,7 +447,6 @@ void registerFinalFieldReflectionObject(BuildProducer .builder(FinalFieldReflectionObject.class.getName()) .methods(true) .fields(true) - .finalFieldsWritable(true) .build(); classes.produce(finalField); } From 9023ce7d0c7ba9a16ede790aeac4a85c768490b8 Mon Sep 17 00:00:00 2001 From: Nicolas Filotto Date: Wed, 14 Dec 2022 19:54:48 +0100 Subject: [PATCH 080/250] Add conditions to optional classes to register --- .../ReflectiveClassConditionBuildItem.java | 29 ++++++++++ .../steps/NativeImageReflectConfigStep.java | 53 ++++++++++++------- .../client/deployment/KafkaProcessor.java | 6 +++ .../deployment/SmallRyeGraphQLProcessor.java | 11 +++- 4 files changed, 80 insertions(+), 19 deletions(-) create mode 100644 core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassConditionBuildItem.java diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassConditionBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassConditionBuildItem.java new file mode 100644 index 0000000000000..f9a84929ee471 --- /dev/null +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassConditionBuildItem.java @@ -0,0 +1,29 @@ +package io.quarkus.deployment.builditem.nativeimage; + +import io.quarkus.builder.item.MultiBuildItem; + +/** + * Used to define a condition to register a class for reflection in native mode only when a specific type is reachable + */ +public final class ReflectiveClassConditionBuildItem extends MultiBuildItem { + + private final String className; + private final String typeReachable; + + public ReflectiveClassConditionBuildItem(Class className, String typeReachable) { + this(className.getName(), typeReachable); + } + + public ReflectiveClassConditionBuildItem(String className, String typeReachable) { + this.className = className; + this.typeReachable = typeReachable; + } + + public String getClassName() { + return className; + } + + public String getTypeReachable() { + return typeReachable; + } +} diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java index 17028cd96fa4c..85fb853d4b62c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/NativeImageReflectConfigStep.java @@ -17,6 +17,7 @@ import io.quarkus.deployment.builditem.GeneratedResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.ForceNonWeakReflectiveClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassConditionBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveFieldBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem; import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; @@ -30,7 +31,8 @@ void generateReflectConfig(BuildProducer reflectConf List reflectiveFields, List reflectiveClassBuildItems, List nonWeakReflectiveClassBuildItems, - List serviceProviderBuildItems) { + List serviceProviderBuildItems, + List reflectiveClassConditionBuildItems) { final Map reflectiveClasses = new LinkedHashMap<>(); final Set forcedNonWeakClasses = new HashSet<>(); @@ -53,20 +55,29 @@ void generateReflectConfig(BuildProducer reflectConf i.providers().toArray(new String[] {})); } + // Perform this as last step, since it augments the already added reflective classes + for (ReflectiveClassConditionBuildItem i : reflectiveClassConditionBuildItems) { + reflectiveClasses.computeIfPresent(i.getClassName(), (key, value) -> { + value.typeReachable = i.getTypeReachable(); + return value; + }); + } + JsonArrayBuilder root = Json.array(); for (Map.Entry entry : reflectiveClasses.entrySet()) { JsonObjectBuilder json = Json.object(); json.put("name", entry.getKey()); - if (entry.getValue().weak) { - json.put("condition", Json.object().put("typeReachable", entry.getKey())); + ReflectionInfo info = entry.getValue(); + if (info.typeReachable != null) { + json.put("condition", Json.object().put("typeReachable", info.typeReachable)); } - if (entry.getValue().constructors) { + if (info.constructors) { json.put("allDeclaredConstructors", true); - } else if (!entry.getValue().ctorSet.isEmpty()) { + } else if (!info.ctorSet.isEmpty()) { JsonArrayBuilder methodsArray = Json.array(); - for (ReflectiveMethodBuildItem ctor : entry.getValue().ctorSet) { + for (ReflectiveMethodBuildItem ctor : info.ctorSet) { JsonObjectBuilder methodObject = Json.object(); methodObject.put("name", ctor.getName()); JsonArrayBuilder paramsArray = Json.array(); @@ -78,11 +89,11 @@ void generateReflectConfig(BuildProducer reflectConf } json.put("methods", methodsArray); } - if (entry.getValue().methods) { + if (info.methods) { json.put("allDeclaredMethods", true); - } else if (!entry.getValue().methodSet.isEmpty()) { + } else if (!info.methodSet.isEmpty()) { JsonArrayBuilder methodsArray = Json.array(); - for (ReflectiveMethodBuildItem method : entry.getValue().methodSet) { + for (ReflectiveMethodBuildItem method : info.methodSet) { JsonObjectBuilder methodObject = Json.object(); methodObject.put("name", method.getName()); JsonArrayBuilder paramsArray = Json.array(); @@ -94,11 +105,11 @@ void generateReflectConfig(BuildProducer reflectConf } json.put("methods", methodsArray); } - if (entry.getValue().fields) { + if (info.fields) { json.put("allDeclaredFields", true); - } else if (!entry.getValue().fieldSet.isEmpty()) { + } else if (!info.fieldSet.isEmpty()) { JsonArrayBuilder fieldsArray = Json.array(); - for (String fieldName : entry.getValue().fieldSet) { + for (String fieldName : info.fieldSet) { fieldsArray.add(Json.object().put("name", fieldName)); } json.put("fields", fieldsArray); @@ -120,7 +131,7 @@ public void addReflectiveMethod(Map reflectiveClasses, R String cl = methodInfo.getDeclaringClass(); ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false)); + reflectiveClasses.put(cl, existing = new ReflectionInfo()); } if (methodInfo.getName().equals("")) { existing.ctorSet.add(methodInfo); @@ -136,8 +147,9 @@ public void addReflectiveClass(Map reflectiveClasses, Se for (String cl : className) { ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { + String typeReachable = (!forcedNonWeakClasses.contains(cl) && weak) ? cl : null; reflectiveClasses.put(cl, new ReflectionInfo(constructors, method, fields, - !forcedNonWeakClasses.contains(cl) && weak, serialization)); + typeReachable, serialization)); } else { if (constructors) { existing.constructors = true; @@ -159,7 +171,7 @@ public void addReflectiveField(Map reflectiveClasses, Re String cl = fieldInfo.getDeclaringClass(); ReflectionInfo existing = reflectiveClasses.get(cl); if (existing == null) { - reflectiveClasses.put(cl, existing = new ReflectionInfo(false, false, false, false, false)); + reflectiveClasses.put(cl, existing = new ReflectionInfo()); } existing.fieldSet.add(fieldInfo.getName()); } @@ -168,17 +180,22 @@ static final class ReflectionInfo { boolean constructors; boolean methods; boolean fields; - boolean weak; boolean serialization; + String typeReachable; Set fieldSet = new HashSet<>(); Set methodSet = new HashSet<>(); Set ctorSet = new HashSet<>(); - private ReflectionInfo(boolean constructors, boolean methods, boolean fields, boolean weak, boolean serialization) { + private ReflectionInfo() { + this(false, false, false, null, false); + } + + private ReflectionInfo(boolean constructors, boolean methods, boolean fields, String typeReachable, + boolean serialization) { this.methods = methods; this.fields = fields; + this.typeReachable = typeReachable; this.constructors = constructors; - this.weak = weak; this.serialization = serialization; } } diff --git a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java index 6e760ce85a1c7..fa3ae509b1181 100644 --- a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java +++ b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java @@ -80,6 +80,7 @@ import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageSecurityProviderBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassConditionBuildItem; import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; import io.quarkus.deployment.logging.LogCleanupFilterBuildItem; @@ -418,6 +419,7 @@ public AdditionalBeanBuildItem runtimeConfig() { @BuildStep public void withSasl(CombinedIndexBuildItem index, BuildProducer reflectiveClass, + BuildProducer reflectiveClassCondition, BuildProducer sslNativeSupport) { reflectiveClass @@ -441,6 +443,10 @@ public void withSasl(CombinedIndexBuildItem index, for (ClassInfo authenticateCallbackHandler : index.getIndex().getAllKnownImplementors(AUTHENTICATE_CALLBACK_HANDLER)) { reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, authenticateCallbackHandler.name().toString())); } + // Add a condition for the optional authenticate callback handler + reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem( + "org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandler", + "org.jose4j.keys.resolvers.VerificationKeyResolver")); } private void registerJDKLoginModules(BuildProducer reflectiveClass) { diff --git a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java index 3e8ae58571990..d44185c471cf4 100644 --- a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java +++ b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java @@ -49,6 +49,7 @@ import io.quarkus.deployment.builditem.TransformedClassesBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassConditionBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem; import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; import io.quarkus.deployment.metrics.MetricsCapabilityBuildItem; @@ -80,6 +81,8 @@ import io.smallrye.graphql.cdi.config.ConfigKey; import io.smallrye.graphql.cdi.config.MicroProfileConfig; import io.smallrye.graphql.cdi.producer.GraphQLProducer; +import io.smallrye.graphql.cdi.tracing.TracingService; +import io.smallrye.graphql.cdi.validation.ValidationService; import io.smallrye.graphql.schema.Annotations; import io.smallrye.graphql.schema.SchemaBuilder; import io.smallrye.graphql.schema.model.Argument; @@ -187,13 +190,19 @@ void addDependencies(BuildProducer indexDependency) { } @BuildStep - void registerNativeImageResources(BuildProducer serviceProvider) throws IOException { + void registerNativeImageResources(BuildProducer serviceProvider, + BuildProducer reflectiveClassCondition) throws IOException { // Lookup Service (We use the one from the CDI Module) serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(LookupService.class.getName())); // Eventing Service (We use the one from the CDI Module) serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(EventingService.class.getName())); + // Add a condition for the optional eventing services + reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem(TracingService.class, "io.opentracing.Tracer")); + reflectiveClassCondition + .produce(new ReflectiveClassConditionBuildItem(ValidationService.class, "javax.validation.ValidatorFactory")); + // Use MicroProfile Config (We use the one from the CDI Module) serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(MicroProfileConfig.class.getName())); From 149f316f1dea71a1412e6c25bda0fb92ec42f06a Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Fri, 16 Dec 2022 09:58:30 +0100 Subject: [PATCH 081/250] give more explicit pointer to the contribute guide --- docs/README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/README.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000000..e69ff90d6ae84 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,6 @@ +## Quarkus Documentation + +This is the main folder for Quarkus documentation. + +The contents of this folder are used to publish documentation to the quarkus.io website. +The [main documentation README.adoc](src/main/asciidoc/README.adoc) is in the `src/main/asciidoc` folder that also contains the `.adoc` source files for the published documentation. From e5c8e2c3b6d260d1c2b213d73292f8293157f66f Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 30 Jan 2023 11:38:00 +0200 Subject: [PATCH 082/250] Use new simpler syntax for getting all beans in Jackson related docs --- docs/src/main/asciidoc/rest-json.adoc | 7 +++---- docs/src/main/asciidoc/resteasy.adoc | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/src/main/asciidoc/rest-json.adoc b/docs/src/main/asciidoc/rest-json.adoc index 1fce2982196c6..62be7a6e4496b 100644 --- a/docs/src/main/asciidoc/rest-json.adoc +++ b/docs/src/main/asciidoc/rest-json.adoc @@ -231,10 +231,9 @@ Failure to do so will prevent Jackson specific customizations provided by variou [source,java] ---- import com.fasterxml.jackson.databind.ObjectMapper; +import io.quarkus.arc.All; import io.quarkus.jackson.ObjectMapperCustomizer; - -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; +import java.util.List; import javax.inject.Singleton; public class CustomObjectMapper { @@ -242,7 +241,7 @@ public class CustomObjectMapper { // Replaces the CDI producer for ObjectMapper built into Quarkus @Singleton @Produces - ObjectMapper objectMapper(Instance customizers) { + ObjectMapper objectMapper(@All List customizers) { ObjectMapper mapper = myObjectMapper(); // Custom `ObjectMapper` // Apply all ObjectMapperCustomizer beans (incl. Quarkus) diff --git a/docs/src/main/asciidoc/resteasy.adoc b/docs/src/main/asciidoc/resteasy.adoc index 9e6a936527aa0..6a439993512d1 100644 --- a/docs/src/main/asciidoc/resteasy.adoc +++ b/docs/src/main/asciidoc/resteasy.adoc @@ -215,16 +215,16 @@ Failure to do so will prevent Jackson specific customizations provided by variou [source,java] ---- import com.fasterxml.jackson.databind.ObjectMapper; +import io.quarkus.arc.All; import io.quarkus.jackson.ObjectMapperCustomizer; - -import javax.enterprise.inject.Instance; +import java.util.List; import javax.inject.Singleton; public class CustomObjectMapper { // Replaces the CDI producer for ObjectMapper built into Quarkus @Singleton - ObjectMapper objectMapper(Instance customizers) { + ObjectMapper objectMapper(@All List customizers) { ObjectMapper mapper = myObjectMapper(); // Custom `ObjectMapper` // Apply all ObjectMapperCustomizer beans (incl. Quarkus) From 68595e05559fd477ab5a00c27aa2538cdcc825fd Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Sun, 29 Jan 2023 19:51:32 +0000 Subject: [PATCH 083/250] Bump htmlunit version to 2.70.0 --- .github/dependabot.yml | 1 + build-parent/pom.xml | 2 +- .../CodeFlowDevModeDefaultTenantTestCase.java | 2 +- .../oidc/test/CodeFlowDevModeTestCase.java | 6 +- .../oidc/test/SecurityDisabledTestCase.java | 2 +- .../io/quarkus/it/keycloak/CodeFlowTest.java | 73 ++++++++++--------- .../BearerTokenAuthorizationTest.java | 24 +++--- .../keycloak/CodeFlowAuthorizationTest.java | 22 +++--- .../keycloak/SmallRyeJwtOidcWebAppTest.java | 2 +- 9 files changed, 68 insertions(+), 66 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 44948bf0ca6b7..2ee4b572e3bb5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -74,6 +74,7 @@ updates: # RX Java 2 - dependency-name: io.reactivex.rxjava2:rxjava # Test dependencies + - dependency-name: net.sourceforge.htmlunit:htmlunit - dependency-name: io.rest-assured:* - dependency-name: org.junit:junit-bom - dependency-name: org.junit.jupiter:* diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 07a421105f504..e56b485c28fd0 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -38,7 +38,7 @@ 1.0.0 2.5.7 - 2.40.0 + 2.70.0 3.24.2 2.0.3.Final 5.2.8 diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeDefaultTenantTestCase.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeDefaultTenantTestCase.java index ab820fbd643f0..7262a3cd300fd 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeDefaultTenantTestCase.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeDefaultTenantTestCase.java @@ -59,7 +59,7 @@ public void testAccessAndRefreshTokenInjectionDevMode() throws IOException, Inte page = loginForm.getInputByName("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeTestCase.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeTestCase.java index 1684c3ee95b83..00e003db3d7da 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeTestCase.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CodeFlowDevModeTestCase.java @@ -51,7 +51,7 @@ public void testAccessAndRefreshTokenInjectionDevMode() throws IOException, Inte // Default tenant is disabled and client secret is wrong HtmlPage page = webClient.getPage("http://localhost:8080/unprotected"); - assertEquals("unprotected", page.getBody().asText()); + assertEquals("unprotected", page.getBody().asNormalizedText()); try { webClient.getPage("http://localhost:8080/protected"); @@ -95,7 +95,7 @@ public void testAccessAndRefreshTokenInjectionDevMode() throws IOException, Inte page = loginForm.getInputByName("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); assertEquals("custom", page.getWebClient().getCookieManager().getCookie("q_session").getValue().split("\\|")[3]); @@ -122,7 +122,7 @@ private void useTenantConfigResolver() throws IOException, InterruptedException page = loginForm.getInputByName("login").click(); - assertEquals("tenant-config-resolver:alice", page.getBody().asText()); + assertEquals("tenant-config-resolver:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecurityDisabledTestCase.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecurityDisabledTestCase.java index 003f8063bde6f..4227e587a8a08 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecurityDisabledTestCase.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecurityDisabledTestCase.java @@ -30,7 +30,7 @@ public void testAccessUnprotectedResource() throws IOException, InterruptedExcep try (final WebClient webClient = createWebClient()) { HtmlPage page = webClient.getPage("http://localhost:8081/unprotected"); - assertEquals("unprotected", page.getBody().asText()); + assertEquals("unprotected", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } diff --git a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java index 0f4f9ad874da3..e35ee29a41bc9 100644 --- a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java +++ b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java @@ -86,12 +86,12 @@ public void testCodeFlowNoConsent() throws IOException { assertEquals( client.getAuthServerUrl(), - page.asText()); + page.asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/configMetadataScopes"); - assertTrue(page.asText().contains("openid")); - assertTrue(page.asText().contains("profile")); + assertTrue(page.asNormalizedText().contains("openid")); + assertTrue(page.asNormalizedText().contains("profile")); Cookie sessionCookie = getSessionCookie(webClient, null); assertNotNull(sessionCookie); @@ -157,7 +157,7 @@ public void testCodeFlowScopeErrorWithErrorPage() throws IOException { HtmlPage page = webClient.getPage(URI.create(endpointErrorLocation).toURL()); assertEquals("code: b, error: invalid_scope, error_description: Invalid scopes: unknown", - page.getBody().asText()); + page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -219,7 +219,7 @@ public void testCodeFlowForceHttpsRedirectUriAndPkce() throws Exception { assertNull(endpointLocationWithoutQueryUri.getRawQuery()); page = webClient.getPage(endpointLocationWithoutQueryUri.toURL()); - assertEquals("tenant-https:reauthenticated", page.getBody().asText()); + assertEquals("tenant-https:reauthenticated", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "tenant-https_test"); assertNotNull(sessionCookie); webClient.getCookieManager().clearCookies(); @@ -279,7 +279,7 @@ public void testCodeFlowForceHttpsRedirectUriWithQueryAndPkce() throws Exception JsonObject idToken = OidcUtils.decodeJwtContent(sessionCookie.getValue().split("\\|")[0]); String expiresAt = idToken.getInteger("exp").toString(); page = webClient.getPage(endpointLocationWithoutQueryUri.toURL()); - String response = page.getBody().asText(); + String response = page.getBody().asNormalizedText(); assertTrue( response.startsWith("tenant-https:reauthenticated?code=b&expiresAt=" + expiresAt + "&expiresInDuration=")); Integer duration = Integer.valueOf(response.substring(response.length() - 1)); @@ -430,11 +430,11 @@ public void testRPInitiatedLogout() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("Tenant Logout, refreshed: false", page.asText()); + assertEquals("Tenant Logout, refreshed: false", page.asNormalizedText()); assertNotNull(getSessionCookie(webClient, "tenant-logout")); page = webClient.getPage("http://localhost:8081/tenant-logout/logout"); - assertTrue(page.asText().contains("You were logged out")); + assertTrue(page.asNormalizedText().contains("You were logged out")); assertNull(getSessionCookie(webClient, "tenant-logout")); page = webClient.getPage("http://localhost:8081/tenant-logout"); @@ -452,7 +452,7 @@ public void testTokenRefresh() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("Tenant Refresh, refreshed: false", page.asText()); + assertEquals("Tenant Refresh, refreshed: false", page.asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "tenant-refresh"); assertNotNull(sessionCookie); @@ -479,7 +479,7 @@ public Boolean call() throws Exception { // local session refreshed and still valid page = webClient.getPage("http://localhost:8081/tenant-refresh"); - assertEquals("Tenant Refresh, refreshed: false", page.asText()); + assertEquals("Tenant Refresh, refreshed: false", page.asNormalizedText()); assertNotNull(getSessionCookie(webClient, "tenant-refresh")); //wait now so that we reach the refresh timeout @@ -526,7 +526,7 @@ public void testTokenAutoRefresh() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("Tenant AutoRefresh, refreshed: false", page.asText()); + assertEquals("Tenant AutoRefresh, refreshed: false", page.asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "tenant-autorefresh"); assertNotNull(sessionCookie); @@ -535,7 +535,7 @@ public void testTokenAutoRefresh() throws IOException { // Auto-refresh-interval is 30 secs so every call auto-refreshes the token // Right now the original ID token is still valid but will be auto-refreshed page = webClient.getPage("http://localhost:8081/tenant-autorefresh"); - assertEquals("Tenant AutoRefresh, refreshed: true", page.asText()); + assertEquals("Tenant AutoRefresh, refreshed: true", page.asNormalizedText()); sessionCookie = getSessionCookie(webClient, "tenant-autorefresh"); assertNotNull(sessionCookie); String nextIdToken = getIdToken(sessionCookie); @@ -564,7 +564,7 @@ public void testIdTokenInjection() throws IOException { page = webClient.getPage("http://localhost:8081/web-app"); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -585,7 +585,7 @@ public void testIdTokenInjectionWithoutRestoredPath() throws IOException, Interr page = loginForm.getInputByName("login").click(); - assertEquals("callback:alice", page.getBody().asText()); + assertEquals("callback:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -621,7 +621,7 @@ public void testIdTokenInjectionJwtMethod() throws IOException, InterruptedExcep assertNull(endpointLocationUri2.getRawQuery()); page = webClient.getPage(endpointLocationUri2.toString()); - assertEquals("callback-jwt:alice", page.getBody().asText()); + assertEquals("callback-jwt:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -667,11 +667,11 @@ public void testIdTokenInjectionWithoutRestoredPathDifferentRoot() throws IOExce page = loginForm.getInputByName("login").click(); - assertEquals("web-app2:alice", page.getBody().asText()); + assertEquals("web-app2:alice", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app2/name"); - assertEquals("web-app2:alice", page.getBody().asText()); + assertEquals("web-app2:alice", page.getBody().asNormalizedText()); assertNull(getStateCookie(webClient, "tenant-2")); Cookie sessionCookie = getSessionCookie(webClient, "tenant-2"); @@ -735,7 +735,7 @@ public void testAuthenticationCompletionFailedWrongRedirectUri() throws IOExcept loginForm.getInputByName("password").setValueAttribute("alice"); try { page = loginForm.getInputByName("login").click(); - fail("401 status error is expected: " + page.getBody().asText()); + fail("401 status error is expected: " + page.getBody().asNormalizedText()); } catch (FailingHttpStatusCodeException ex) { assertEquals(401, ex.getStatusCode()); assertEquals("http://localhost:8081/web-app/callback-before-wrong-redirect", @@ -764,7 +764,7 @@ public void testAccessTokenInjection() throws IOException { page = webClient.getPage("http://localhost:8081/web-app/access"); - assertEquals("AT injected", page.getBody().asText()); + assertEquals("AT injected", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -788,7 +788,7 @@ public void testAccessAndRefreshTokenInjection() throws IOException { page = webClient.getPage("http://localhost:8081/web-app/refresh"); - assertEquals("RT injected", page.getBody().asText()); + assertEquals("RT injected", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -808,7 +808,7 @@ public void testAccessAndRefreshTokenInjectionWithoutIndexHtml() throws IOExcept page = loginForm.getInputByName("login").click(); - assertEquals("RT injected", page.getBody().asText()); + assertEquals("RT injected", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -827,12 +827,12 @@ public void testDefaultSessionManagerIdTokenOnly() throws IOException, Interrupt loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-idtoken-only:alice", page.getBody().asText()); + assertEquals("tenant-idtoken-only:alice", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/access/tenant-idtoken-only"); - assertEquals("tenant-idtoken-only:no access", page.getBody().asText()); + assertEquals("tenant-idtoken-only:no access", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/refresh/tenant-idtoken-only"); - assertEquals("tenant-idtoken-only:no refresh", page.getBody().asText()); + assertEquals("tenant-idtoken-only:no refresh", page.getBody().asNormalizedText()); Cookie idTokenCookie = getSessionCookie(page.getWebClient(), "tenant-idtoken-only"); checkSingleTokenCookie(idTokenCookie, "ID"); @@ -858,12 +858,12 @@ public void testDefaultSessionManagerIdRefreshTokens() throws IOException, Inter loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-id-refresh-token:alice", page.getBody().asText()); + assertEquals("tenant-id-refresh-token:alice", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/access/tenant-id-refresh-token"); - assertEquals("tenant-id-refresh-token:no access", page.getBody().asText()); + assertEquals("tenant-id-refresh-token:no access", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/refresh/tenant-id-refresh-token"); - assertEquals("tenant-id-refresh-token:RT injected", page.getBody().asText()); + assertEquals("tenant-id-refresh-token:RT injected", page.getBody().asNormalizedText()); Cookie idTokenCookie = getSessionCookie(page.getWebClient(), "tenant-id-refresh-token"); String[] parts = idTokenCookie.getValue().split("\\|"); @@ -894,12 +894,12 @@ public void testDefaultSessionManagerSplitTokens() throws IOException, Interrupt page = loginForm.getInputByName("login").click(); assertEquals("tenant-split-tokens:alice, id token has 5 parts, access token has 5 parts, refresh token has 5 parts", - page.getBody().asText()); + page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/access/tenant-split-tokens"); - assertEquals("tenant-split-tokens:AT injected", page.getBody().asText()); + assertEquals("tenant-split-tokens:AT injected", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/refresh/tenant-split-tokens"); - assertEquals("tenant-split-tokens:RT injected", page.getBody().asText()); + assertEquals("tenant-split-tokens:RT injected", page.getBody().asNormalizedText()); Cookie idTokenCookie = getSessionCookie(page.getWebClient(), "tenant-split-tokens"); checkSingleTokenCookie(idTokenCookie, "ID", true); @@ -949,12 +949,12 @@ public void testDefaultSessionManagerIdRefreshSplitTokens() throws IOException, loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-split-id-refresh-token:alice", page.getBody().asText()); + assertEquals("tenant-split-id-refresh-token:alice", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/access/tenant-split-id-refresh-token"); - assertEquals("tenant-split-id-refresh-token:no access", page.getBody().asText()); + assertEquals("tenant-split-id-refresh-token:no access", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/web-app/refresh/tenant-split-id-refresh-token"); - assertEquals("tenant-split-id-refresh-token:RT injected", page.getBody().asText()); + assertEquals("tenant-split-id-refresh-token:RT injected", page.getBody().asNormalizedText()); Cookie idTokenCookie = getSessionCookie(page.getWebClient(), "tenant-split-id-refresh-token"); checkSingleTokenCookie(idTokenCookie, "ID"); @@ -1026,7 +1026,8 @@ public void testAccessAndRefreshTokenInjectionWithoutIndexHtmlAndListener() thro page = loginForm.getInputByName("login").click(); - assertEquals("RT injected(event:OIDC_LOGIN,tenantId:tenant-listener,blockingApi:true)", page.getBody().asText()); + assertEquals("RT injected(event:OIDC_LOGIN,tenantId:tenant-listener,blockingApi:true)", + page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -1046,7 +1047,7 @@ public void testAccessAndRefreshTokenInjectionWithQuery() throws Exception { page = loginForm.getInputByName("login").click(); - assertEquals("RT injected:aValue", page.getBody().asText()); + assertEquals("RT injected:aValue", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -1129,7 +1130,7 @@ public void testCustomLogin() throws Exception { page = loginForm.getInputByName("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); } } diff --git a/integration-tests/oidc-tenancy/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java b/integration-tests/oidc-tenancy/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java index 1608749e307e6..4079d17c26ff5 100644 --- a/integration-tests/oidc-tenancy/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java +++ b/integration-tests/oidc-tenancy/src/test/java/io/quarkus/it/keycloak/BearerTokenAuthorizationTest.java @@ -56,19 +56,19 @@ public void testResolveTenantIdentifierWebApp() throws IOException { // First call after a redirect, tenant-id is initially calculated from the state `q_auth` cookie. // 'reauthenticated' flag is set is because, in fact, it is actually a 2nd call due to // quarkus-oidc doing a final redirect after completing a code flow to drop the redirect OIDC parameters - assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asText()); + assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asNormalizedText()); assertNotNull(getSessionCookie(webClient, "tenant-web-app")); assertNull(getStateCookie(webClient, "tenant-web-app")); // Second call after a redirect, tenant-id is calculated from the state `q_session` cookie page = webClient.getPage("http://localhost:8081/tenant/tenant-web-app/api/user/webapp"); - assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asText()); + assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asNormalizedText()); assertNotNull(getSessionCookie(webClient, "tenant-web-app")); assertNull(getStateCookie(webClient, "tenant-web-app")); // Local logout page = webClient.getPage("http://localhost:8081/tenant/tenant-web-app/api/user/webapp?logout=true"); - assertEquals("tenant-web-app:alice:reauthenticated:logout", page.getBody().asText()); + assertEquals("tenant-web-app:alice:reauthenticated:logout", page.getBody().asNormalizedText()); assertNull(getSessionCookie(webClient, "tenant-web-app")); assertNull(getStateCookie(webClient, "tenant-web-app")); @@ -98,7 +98,7 @@ public void testResolveTenantIdentifierWebApp2() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-web-app2:alice", page.getBody().asText()); + assertEquals("tenant-web-app2:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -114,7 +114,7 @@ public void testCodeFlowRefreshTokens() throws IOException, InterruptedException page = loginForm.getInputByName("login").click(); assertEquals("userName: alice, idToken: true, accessToken: true, refreshToken: true", - page.getBody().asText()); + page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(page.getWebClient(), "tenant-web-app-refresh"); assertNotNull(sessionCookie); @@ -181,7 +181,7 @@ public void testHybridWebApp() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("alice:web-app", page.getBody().asText()); + assertEquals("alice:web-app", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -205,7 +205,7 @@ public void testHybridWebAppService() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("alice:web-app", page.getBody().asText()); + assertEquals("alice:web-app", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } RestAssured.given().auth().oauth2(getAccessToken("alice", "hybrid")) @@ -228,10 +228,10 @@ public void testResolveTenantIdentifierWebAppNoDiscovery() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-web-app-no-discovery:alice", page.getBody().asText()); + assertEquals("tenant-web-app-no-discovery:alice", page.getBody().asNormalizedText()); page = webClient.getPage("http://localhost:8081/tenant/tenant-web-app-no-discovery/api/user/webapp-no-discovery"); - assertEquals("tenant-web-app-no-discovery:alice", page.getBody().asText()); + assertEquals("tenant-web-app-no-discovery:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } @@ -247,7 +247,7 @@ public void testReAuthenticateWhenSwitchingTenants() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asText()); + assertEquals("tenant-web-app:alice:reauthenticated", page.getBody().asNormalizedText()); // tenant-web-app2 page = webClient.getPage("http://localhost:8081/tenant/tenant-web-app2/api/user/webapp2"); assertNull(getStateCookieSavedPath(webClient, "tenant-web-app2")); @@ -256,7 +256,7 @@ public void testReAuthenticateWhenSwitchingTenants() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-web-app2:alice", page.getBody().asText()); + assertEquals("tenant-web-app2:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } @@ -568,7 +568,7 @@ public void testResolveTenantIdentifierWebAppDynamic() throws IOException { loginForm.getInputByName("username").setValueAttribute("alice"); loginForm.getInputByName("password").setValueAttribute("alice"); page = loginForm.getInputByName("login").click(); - assertEquals("tenant-web-app-dynamic:alice", page.getBody().asText()); + assertEquals("tenant-web-app-dynamic:alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } diff --git a/integration-tests/oidc-wiremock/src/test/java/io/quarkus/it/keycloak/CodeFlowAuthorizationTest.java b/integration-tests/oidc-wiremock/src/test/java/io/quarkus/it/keycloak/CodeFlowAuthorizationTest.java index ce862339115e9..7bbd13ba2e3cb 100644 --- a/integration-tests/oidc-wiremock/src/test/java/io/quarkus/it/keycloak/CodeFlowAuthorizationTest.java +++ b/integration-tests/oidc-wiremock/src/test/java/io/quarkus/it/keycloak/CodeFlowAuthorizationTest.java @@ -69,11 +69,11 @@ public void testCodeFlow() throws IOException { page = form.getInputByValue("login").click(); - assertEquals("alice, cache size: 0", page.getBody().asText()); + assertEquals("alice, cache size: 0", page.getBody().asNormalizedText()); assertNotNull(getSessionCookie(webClient, "code-flow")); page = webClient.getPage("http://localhost:8081/code-flow/logout"); - assertEquals("Welcome, clientId: quarkus-web-app", page.getBody().asText()); + assertEquals("Welcome, clientId: quarkus-web-app", page.getBody().asNormalizedText()); assertNull(getSessionCookie(webClient, "code-flow")); // Clear the post logout cookie webClient.getCookieManager().clearCookies(); @@ -97,7 +97,7 @@ private void doTestCodeFlowEncryptedIdToken(String tenant) throws IOException { page = form.getInputByValue("login").click(); - assertEquals("user: alice", page.getBody().asText()); + assertEquals("user: alice", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, tenant); assertNotNull(sessionCookie); // default session cookie format: "idtoken|accesstoken|refreshtoken" @@ -105,7 +105,7 @@ private void doTestCodeFlowEncryptedIdToken(String tenant) throws IOException { // repeat the call with the session cookie containing the encrypted id token page = webClient.getPage("http://localhost:8081/code-flow-encrypted-id-token/" + tenant); - assertEquals("user: alice", page.getBody().asText()); + assertEquals("user: alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } @@ -124,12 +124,12 @@ public void testCodeFlowFormPostAndBackChannelLogout() throws IOException { page = form.getInputByValue("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); assertNotNull(getSessionCookie(webClient, "code-flow-form-post")); page = webClient.getPage("http://localhost:8081/code-flow-form-post"); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); // Session is still active assertNotNull(getSessionCookie(webClient, "code-flow-form-post")); @@ -166,12 +166,12 @@ public void testCodeFlowFormPostAndFrontChannelLogout() throws IOException { page = form.getInputByValue("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); assertNotNull(getSessionCookie(webClient, "code-flow-form-post")); page = webClient.getPage("http://localhost:8081/code-flow-form-post"); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); // Session is still active Cookie sessionCookie = getSessionCookie(webClient, "code-flow-form-post"); @@ -225,7 +225,7 @@ private void doTestCodeFlowUserInfo(String tenantId, long internalIdTokenLifetim page = form.getInputByValue("login").click(); - assertEquals("alice:alice:alice, cache size: 1", page.getBody().asText()); + assertEquals("alice:alice:alice, cache size: 1", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, tenantId); assertNotNull(sessionCookie); @@ -250,7 +250,7 @@ private void doTestCodeFlowUserInfoCashedInIdToken() throws Exception { page = form.getInputByValue("login").click(); - assertEquals("alice:alice:alice, cache size: 0", page.getBody().asText()); + assertEquals("alice:alice:alice, cache size: 0", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "code-flow-user-info-github-cached-in-idtoken"); assertNotNull(sessionCookie); @@ -260,7 +260,7 @@ private void doTestCodeFlowUserInfoCashedInIdToken() throws Exception { // refresh Thread.sleep(3000); page = webClient.getPage("http://localhost:8081/code-flow-user-info-github-cached-in-idtoken"); - assertEquals("alice:alice:bob, cache size: 0", page.getBody().asText()); + assertEquals("alice:alice:bob, cache size: 0", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } diff --git a/integration-tests/smallrye-jwt-oidc-webapp/src/test/java/io/quarkus/it/keycloak/SmallRyeJwtOidcWebAppTest.java b/integration-tests/smallrye-jwt-oidc-webapp/src/test/java/io/quarkus/it/keycloak/SmallRyeJwtOidcWebAppTest.java index ac0f1e81522da..54fb9c01b92db 100644 --- a/integration-tests/smallrye-jwt-oidc-webapp/src/test/java/io/quarkus/it/keycloak/SmallRyeJwtOidcWebAppTest.java +++ b/integration-tests/smallrye-jwt-oidc-webapp/src/test/java/io/quarkus/it/keycloak/SmallRyeJwtOidcWebAppTest.java @@ -75,7 +75,7 @@ public void testGetUserNameWithCodeFlow() throws Exception { page = loginForm.getInputByName("login").click(); - assertEquals("alice", page.getBody().asText()); + assertEquals("alice", page.getBody().asNormalizedText()); webClient.getCookieManager().clearCookies(); } } From e57f4557ef74211013a91db210781833b2432a70 Mon Sep 17 00:00:00 2001 From: jtama <39991688+jtama@users.noreply.github.com> Date: Fri, 27 Jan 2023 09:31:13 +0100 Subject: [PATCH 084/250] Match prometheus export metrics format Links #30576 --- docs/src/main/asciidoc/micrometer.adoc | 11 ++++++++--- .../main/asciidoc/telemetry-micrometer-tutorial.adoc | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/src/main/asciidoc/micrometer.adoc b/docs/src/main/asciidoc/micrometer.adoc index b8fefe6a3e7d5..ee3eb4039b207 100644 --- a/docs/src/main/asciidoc/micrometer.adoc +++ b/docs/src/main/asciidoc/micrometer.adoc @@ -367,11 +367,11 @@ timers, look for `http_server_requests_seconds_count`, `http_server_requests_sec ---- # HELP http_server_requests_seconds # TYPE http_server_requests_seconds summary -http_server_requests_seconds_count{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 1.0 -http_server_requests_seconds_sum{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 0.017385896 +http_server_requests_seconds_count{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 1.0 +http_server_requests_seconds_sum{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 0.017385896 # HELP http_server_requests_seconds_max # TYPE http_server_requests_seconds_max gauge -http_server_requests_seconds_max{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 0.017385896 +http_server_requests_seconds_max{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 0.017385896 # ---- @@ -398,6 +398,11 @@ string. For example, setting `quarkus.micrometer.binder.http-server.match-patterns=/example/prime/[0-9]+=/example/{jellybeans}` would use the value `/example/{jellybeans}` for the uri attribute any time the requested uri matches `/example/prime/[0-9]+`. +.Exported metrics format + +By default, the metrics are exported using the Prometheus format `application/openmetrics-text`, +you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`). + == Using MeterFilter to configure metrics Micrometer uses `MeterFilter` instances to customize the metrics emitted by `MeterRegistry` instances. diff --git a/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc b/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc index 57cc8b870a00e..5a2d0068d735f 100644 --- a/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc +++ b/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc @@ -77,16 +77,21 @@ Dimensional labels are added for the request uri, the HTTP method ---- # HELP http_server_requests_seconds # TYPE http_server_requests_seconds summary -http_server_requests_seconds_count{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 2.0 -http_server_requests_seconds_sum{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 0.017385896 +http_server_requests_seconds_count{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 2.0 +http_server_requests_seconds_sum{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 0.017385896 # HELP http_server_requests_seconds_max # TYPE http_server_requests_seconds_max gauge -http_server_requests_seconds_max{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}",} 0.017385896 +http_server_requests_seconds_max{method="GET",outcome="SUCCESS",status="200",uri="/example/prime/{number}"} 0.017385896 # ---- NOTE: Metrics appear lazily, you often won't see any data for your endpoint until it is accessed. +.Exported metrics format + +By default, the metrics are exported using the Prometheus format `application/openmetrics-text`, +you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`). + == Inject the MeterRegistry To register meters, you need a reference to the `MeterRegistry` that is configured and maintained by the Micrometer extension. From f81b774cc62ead96e88ba245789f71d377e5c75e Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 30 Jan 2023 13:49:45 +0000 Subject: [PATCH 085/250] Fix unknown build properties regression caused by #30620 --- .../BuildTimeConfigurationReader.java | 6 ++++- .../extest/UnknownBuildConfigTest.java | 27 ++++++++++++++----- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java index 32918f8aeadbb..1af98cc2cd3f4 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java @@ -443,6 +443,7 @@ ReadResult run() { if (ni.hasNext() && PropertiesUtil.isPropertyInRoot(registeredRoots, ni)) { // build time patterns Container matched = buildTimePatternMap.match(ni); + boolean knownProperty = matched != null; if (matched instanceof FieldContainer) { ConfigValue configValue = config.getConfigValue(propertyName); if (configValue.getValue() != null) { @@ -471,6 +472,7 @@ ReadResult run() { // build time (run time visible) patterns ni.goToStart(); matched = buildTimeRunTimePatternMap.match(ni); + knownProperty = knownProperty || matched != null; if (matched instanceof FieldContainer) { ConfigValue configValue = config.getConfigValue(propertyName); if (configValue.getValue() != null) { @@ -501,6 +503,7 @@ ReadResult run() { // run time patterns ni.goToStart(); matched = runTimePatternMap.match(ni); + knownProperty = knownProperty || matched != null; if (matched != null) { // it's a run-time default (record for later) ConfigValue configValue = withoutExpansion(() -> runtimeDefaultsConfig.getConfigValue(propertyName)); @@ -511,6 +514,7 @@ ReadResult run() { // also check for the bootstrap properties since those need to be added to runTimeDefaultValues as well ni.goToStart(); matched = bootstrapPatternMap.match(ni); + knownProperty = knownProperty || matched != null; if (matched != null) { // it's a run-time default (record for later) ConfigValue configValue = withoutExpansion(() -> runtimeDefaultsConfig.getConfigValue(propertyName)); @@ -519,7 +523,7 @@ ReadResult run() { } } - if (matched == null) { + if (!knownProperty) { unknownBuildProperties.add(propertyName); } } else { diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownBuildConfigTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownBuildConfigTest.java index 490a1ff9f186c..2bb9c6a755c60 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownBuildConfigTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownBuildConfigTest.java @@ -1,10 +1,12 @@ package io.quarkus.extest; -import static java.util.Arrays.asList; +import static java.util.stream.Collectors.toSet; +import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import java.util.Optional; +import java.util.Set; import java.util.logging.Level; import java.util.logging.LogRecord; @@ -28,11 +30,22 @@ public class UnknownBuildConfigTest { void unknownBuildConfig() { List logRecords = prodModeTestResults.getRetainedBuildLogRecords(); - Optional unknownBuildKey = logRecords.stream() - .filter(logRecord -> asList(Optional.ofNullable(logRecord.getParameters()).orElse(new Object[0])) - .contains("quarkus.build.unknown.prop")) - .findFirst(); - assertTrue(unknownBuildKey.isPresent()); - assertTrue(unknownBuildKey.get().getMessage().startsWith("Unrecognized configuration key")); + // These are the expected unknown properties in the test extension. This could probably be improved, because + // these are generated with the rename test. If there is a change we know that something happened. + Set unrecognized = logRecords.stream() + .filter(logRecord -> logRecord.getMessage().startsWith("Unrecognized configuration key")) + .map(logRecord -> Optional.ofNullable(logRecord.getParameters()) + .map(parameters -> parameters[0]) + .orElse(new Object[0])) + .collect(toSet()); + + assertEquals(7, logRecords.size()); + assertTrue(unrecognized.contains("quarkus.unknown.prop")); + assertTrue(unrecognized.contains("quarkus.build.unknown.prop")); + assertTrue(unrecognized.contains("quarkus.rename-old.prop")); + assertTrue(unrecognized.contains("quarkus.rename-old.only-in-new")); + assertTrue(unrecognized.contains("quarkus.rename-old.only-in-old")); + assertTrue(unrecognized.contains("quarkus.rename-old.in-both")); + assertTrue(unrecognized.contains("quarkus.rename-old.with-default")); } } From 19f391d4cad793cd7a1aecf9864993eee6f862ce Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 30 Jan 2023 14:58:45 +0100 Subject: [PATCH 086/250] Upgrade to Mockito 5.1.0 Fixes #30707 --- bom/application/pom.xml | 2 +- .../junit/mockito/internal/MutinyAnswer.java | 84 +++++++++++-------- 2 files changed, 50 insertions(+), 36 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 70f1417d9ab82..aebfe5653c28a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -175,7 +175,7 @@ 2.1.SP2 5.4.Final 2.1.SP1 - 4.11.0 + 5.1.0 5.8.0 4.10.1 1.1.4.Final diff --git a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/MutinyAnswer.java b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/MutinyAnswer.java index 4dcf39b4d374e..787ff06ad0b28 100644 --- a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/MutinyAnswer.java +++ b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/MutinyAnswer.java @@ -6,6 +6,8 @@ import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; +import java.time.Duration; +import java.time.Period; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -15,14 +17,21 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; +import java.util.Optional; +import java.util.OptionalDouble; +import java.util.OptionalInt; +import java.util.OptionalLong; import java.util.Set; import java.util.SortedMap; import java.util.SortedSet; import java.util.TreeMap; import java.util.TreeSet; +import java.util.stream.DoubleStream; +import java.util.stream.IntStream; +import java.util.stream.LongStream; +import java.util.stream.Stream; import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues; -import org.mockito.internal.util.JavaEightUtil; import org.mockito.internal.util.Primitives; import org.mockito.invocation.InvocationOnMock; @@ -79,57 +88,62 @@ private Object returnValueForType(Type type) { Object returnValueForClass(Class type) { if (Primitives.isPrimitiveOrWrapper(type)) { return Primitives.defaultValue(type); - //new instances are used instead of Collections.emptyList(), etc. - //to avoid UnsupportedOperationException if code under test modifies returned collection + // new instances are used instead of Collections.emptyList(), etc. + // to avoid UnsupportedOperationException if code under test modifies returned + // collection } else if (type == Iterable.class) { - return new ArrayList(0); + return new ArrayList<>(0); } else if (type == Collection.class) { - return new LinkedList(); + return new LinkedList<>(); } else if (type == Set.class) { - return new HashSet(); + return new HashSet<>(); } else if (type == HashSet.class) { - return new HashSet(); + return new HashSet<>(); } else if (type == SortedSet.class) { - return new TreeSet(); + return new TreeSet<>(); } else if (type == TreeSet.class) { - return new TreeSet(); + return new TreeSet<>(); } else if (type == LinkedHashSet.class) { - return new LinkedHashSet(); + return new LinkedHashSet<>(); } else if (type == List.class) { - return new LinkedList(); + return new LinkedList<>(); } else if (type == LinkedList.class) { - return new LinkedList(); + return new LinkedList<>(); } else if (type == ArrayList.class) { - return new ArrayList(); + return new ArrayList<>(); } else if (type == Map.class) { - return new HashMap(); + return new HashMap<>(); } else if (type == HashMap.class) { - return new HashMap(); + return new HashMap<>(); } else if (type == SortedMap.class) { - return new TreeMap(); + return new TreeMap<>(); } else if (type == TreeMap.class) { - return new TreeMap(); + return new TreeMap<>(); } else if (type == LinkedHashMap.class) { - return new LinkedHashMap(); - } else if ("java.util.Optional".equals(type.getName())) { - return JavaEightUtil.emptyOptional(); - } else if ("java.util.OptionalDouble".equals(type.getName())) { - return JavaEightUtil.emptyOptionalDouble(); - } else if ("java.util.OptionalInt".equals(type.getName())) { - return JavaEightUtil.emptyOptionalInt(); - } else if ("java.util.OptionalLong".equals(type.getName())) { - return JavaEightUtil.emptyOptionalLong(); - } else if ("java.util.stream.Stream".equals(type.getName())) { - return JavaEightUtil.emptyStream(); - } else if ("java.util.stream.DoubleStream".equals(type.getName())) { - return JavaEightUtil.emptyDoubleStream(); - } else if ("java.util.stream.IntStream".equals(type.getName())) { - return JavaEightUtil.emptyIntStream(); - } else if ("java.util.stream.LongStream".equals(type.getName())) { - return JavaEightUtil.emptyLongStream(); + return new LinkedHashMap<>(); + } else if (type == Optional.class) { + return Optional.empty(); + } else if (type == OptionalDouble.class) { + return OptionalDouble.empty(); + } else if (type == OptionalInt.class) { + return OptionalInt.empty(); + } else if (type == OptionalLong.class) { + return OptionalLong.empty(); + } else if (type == Stream.class) { + return Stream.empty(); + } else if (type == DoubleStream.class) { + return DoubleStream.empty(); + } else if (type == IntStream.class) { + return IntStream.empty(); + } else if (type == LongStream.class) { + return LongStream.empty(); + } else if (type == Duration.class) { + return Duration.ZERO; + } else if (type == Period.class) { + return Period.ZERO; } - //Let's not care about the rest of collections. + // Let's not care about the rest of collections. return null; } } From d87bd54c6c99c8fa272640e7fc073a2f540fbc45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20CROCQUESEL?= <88554524+scrocquesel@users.noreply.github.com> Date: Thu, 26 Jan 2023 23:29:18 +0100 Subject: [PATCH 087/250] Force java_generic_services to false for protos gathered from dependencies --- .../main/asciidoc/grpc-getting-started.adoc | 4 ++ .../quarkus/grpc/deployment/GrpcCodeGen.java | 41 +++++++++++++++++-- .../proto-with-java_generic_services.proto | 14 +++++++ 3 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 integration-tests/grpc-external-proto/src/main/resources/dir/proto-with-java_generic_services.proto diff --git a/docs/src/main/asciidoc/grpc-getting-started.adoc b/docs/src/main/asciidoc/grpc-getting-started.adoc index 5b70eb64e3c2c..1b4871783bf6b 100644 --- a/docs/src/main/asciidoc/grpc-getting-started.adoc +++ b/docs/src/main/asciidoc/grpc-getting-started.adoc @@ -118,6 +118,8 @@ message HelloReply { This `proto` file defines a simple service interface with a single method (`SayHello`), and the exchanged messages (`HelloRequest` containing the name and `HelloReply` containing the greeting message). +NOTE: Your `proto` file must not contain `option java_generic_services = true;`. https://developers.google.com/protocol-buffers/docs/reference/java-generated?hl=en#service[Generic services are deprecated] and are not compatible with Quarkus code generation plugins. + Before coding, we need to generate the classes used to implement and consume gRPC services. In a terminal, run: @@ -178,6 +180,8 @@ quarkus.generate-code.grpc.scan-for-proto=: ---- The value of the property may be `none`, which is the default value, or a comma separated list of `groupId:artifactId` coordinates. +NOTE: `option java_generic_services = true;` will automatically be removed from proto file containing it. + == Different gRPC implementations / types Another thing to take note as well is that Quarkus' gRPC support currently includes 3 different types of gRPC usage: diff --git a/extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment/GrpcCodeGen.java b/extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment/GrpcCodeGen.java index febf3dec9e4b1..b08895b926ea5 100644 --- a/extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment/GrpcCodeGen.java +++ b/extensions/grpc/codegen/src/main/java/io/quarkus/grpc/deployment/GrpcCodeGen.java @@ -146,6 +146,35 @@ public boolean trigger(CodeGenContext context) throws CodeGenException { return false; } + private static void copySanitizedProtoFile(ResolvedDependency artifact, Path protoPath, Path outProtoPath) + throws IOException { + boolean genericServicesFound = false; + + try (var reader = Files.newBufferedReader(protoPath); + var writer = Files.newBufferedWriter(outProtoPath)) { + + String line = reader.readLine(); + while (line != null) { + // filter java_generic_services to avoid "Tried to write the same file twice" + // when set to true. Generic services are deprecated and replaced by classes generated by + // this plugin + if (!line.contains("java_generic_services")) { + writer.write(line); + writer.newLine(); + } else { + genericServicesFound = true; + } + + line = reader.readLine(); + } + } + + if (genericServicesFound) { + log.infof("Ignoring option java_generic_services in %s:%s%s.", artifact.getGroupId(), artifact.getArtifactId(), + protoPath); + } + } + private void postprocessing(CodeGenContext context, Path outDir) { if (TRUE.toString().equalsIgnoreCase(System.getProperties().getProperty(POST_PROCESS_SKIP, "false")) || context.config().getOptionalValue(POST_PROCESS_SKIP, Boolean.class).orElse(false)) { @@ -179,7 +208,7 @@ private Collection gatherProtosFromDependencies(Path workDir, Set if (scanAll || dependenciesToScan.contains( String.format("%s:%s", artifact.getGroupId(), artifact.getArtifactId()))) { - extractProtosFromArtifact(workDir, protoFilesFromDependencies, protoDirectories, artifact); + extractProtosFromArtifact(workDir, protoFilesFromDependencies, protoDirectories, artifact, true); } } return protoFilesFromDependencies; @@ -215,14 +244,14 @@ private Collection gatherDirectoriesWithImports(Path workDir, CodeGenCon if (scanAll || dependenciesToScan.contains( String.format("%s:%s", artifact.getGroupId(), artifact.getArtifactId()))) { - extractProtosFromArtifact(workDir, new ArrayList<>(), importDirectories, artifact); + extractProtosFromArtifact(workDir, new ArrayList<>(), importDirectories, artifact, false); } } return importDirectories; } private void extractProtosFromArtifact(Path workDir, Collection protoFiles, - Set protoDirectories, ResolvedDependency artifact) throws CodeGenException { + Set protoDirectories, ResolvedDependency artifact, boolean isDependency) throws CodeGenException { try { artifact.getContentTree().walk( @@ -250,7 +279,11 @@ private void extractProtosFromArtifact(Path workDir, Collection protoFiles } try { Files.createDirectories(outPath.getParent()); - Files.copy(path, outPath, StandardCopyOption.REPLACE_EXISTING); + if (isDependency) { + copySanitizedProtoFile(artifact, path, outPath); + } else { + Files.copy(path, outPath, StandardCopyOption.REPLACE_EXISTING); + } protoFiles.add(outPath); } catch (IOException e) { throw new GrpcCodeGenException("Failed to extract proto file" + path + " to target: " diff --git a/integration-tests/grpc-external-proto/src/main/resources/dir/proto-with-java_generic_services.proto b/integration-tests/grpc-external-proto/src/main/resources/dir/proto-with-java_generic_services.proto new file mode 100644 index 0000000000000..a281585092a82 --- /dev/null +++ b/integration-tests/grpc-external-proto/src/main/resources/dir/proto-with-java_generic_services.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +option java_package = "com.test"; + +// codegen will ignore the line below +option java_generic_services = true; + +package com.test; + +service MyJavaGenericServicesTest { + rpc DoTest(JavaGenericServices) returns (JavaGenericServices); +} + +message JavaGenericServices {} \ No newline at end of file From e3091e3ff5e5b51ce67f8556c9fdf49ced21c5a8 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Mon, 30 Jan 2023 15:55:57 +0100 Subject: [PATCH 088/250] PanacheRepositoryResource should implement ReactiveRestDataResource - not the blocking variant/RestDataResource --- .../deployment/repository/CollectionsResource.java | 4 +++- ...anacheRepositoryResourcePathCustomisationTest.java | 11 ++++++----- .../rest/data/panache/PanacheRepositoryResource.java | 3 ++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsResource.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsResource.java index 853e593fb6faa..e24f791173789 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsResource.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsResource.java @@ -3,9 +3,11 @@ import io.quarkus.hibernate.reactive.rest.data.panache.PanacheRepositoryResource; import io.quarkus.rest.data.panache.MethodProperties; import io.quarkus.rest.data.panache.ResourceProperties; +import io.smallrye.mutiny.Uni; @ResourceProperties(hal = true, paged = false, halCollectionName = "item-collections", rolesAllowed = "user") public interface CollectionsResource extends PanacheRepositoryResource { + @MethodProperties(rolesAllowed = "admin") - boolean delete(String name); + Uni delete(String name); } diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/PanacheRepositoryResourcePathCustomisationTest.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/PanacheRepositoryResourcePathCustomisationTest.java index d2eee7539c501..276493f06b93f 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/PanacheRepositoryResourcePathCustomisationTest.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/PanacheRepositoryResourcePathCustomisationTest.java @@ -11,6 +11,7 @@ import io.quarkus.rest.data.panache.MethodProperties; import io.quarkus.rest.data.panache.ResourceProperties; import io.quarkus.test.QuarkusUnitTest; +import io.smallrye.mutiny.Uni; class PanacheRepositoryResourcePathCustomisationTest extends AbstractPathCustomisationTest { @@ -27,18 +28,18 @@ public interface CustomPathCollectionsResource extends PanacheRepositoryResource { @MethodProperties(path = "api") - List list(Page page, Sort sort); + Uni> list(Page page, Sort sort); @MethodProperties(path = "api") - Collection get(String name); + Uni get(String name); @MethodProperties(path = "api") - Collection add(Collection collection); + Uni add(Collection collection); @MethodProperties(path = "api") - Collection update(String name, Collection collection); + Uni update(String name, Collection collection); @MethodProperties(path = "api") - boolean delete(String name); + Uni delete(String name); } } diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/PanacheRepositoryResource.java b/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/PanacheRepositoryResource.java index 8fa61c3a2e5ca..27a7edfb55fc9 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/PanacheRepositoryResource.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/PanacheRepositoryResource.java @@ -2,6 +2,7 @@ import io.quarkus.hibernate.reactive.panache.PanacheRepositoryBase; import io.quarkus.rest.data.panache.MethodProperties; +import io.quarkus.rest.data.panache.ReactiveRestDataResource; import io.quarkus.rest.data.panache.ResourceProperties; import io.quarkus.rest.data.panache.RestDataResource; @@ -18,6 +19,6 @@ * @param ID type of the entity. */ public interface PanacheRepositoryResource, Entity, ID> - extends RestDataResource { + extends ReactiveRestDataResource { } From 5927a3b91bf0dd2dd87f3d026fdeea02545b63ff Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Fri, 22 Jul 2022 15:26:51 +0200 Subject: [PATCH 089/250] Implement Redis Stream command support --- docs/src/main/asciidoc/redis-reference.adoc | 2 +- .../src/etc/RedisCommandGenerator.java | 81 +++ .../datasource/ReactiveRedisDataSource.java | 24 + .../redis/datasource/RedisDataSource.java | 24 + .../redis/datasource/keys/CopyArgs.java | 7 +- .../datasource/stream/ClaimedMessages.java | 28 + .../stream/ReactiveStreamCommands.java | 593 +++++++++++++++++ .../ReactiveTransactionalStreamCommands.java | 617 +++++++++++++++++ .../datasource/stream/StreamCommands.java | 585 ++++++++++++++++ .../redis/datasource/stream/StreamEntry.java | 14 + .../datasource/stream/StreamMessage.java | 44 ++ .../redis/datasource/stream/StreamRange.java | 34 + .../stream/TransactionalStreamCommands.java | 554 +++++++++++++++ .../redis/datasource/stream/XAddArgs.java | 137 ++++ .../redis/datasource/stream/XClaimArgs.java | 136 ++++ .../datasource/stream/XGroupCreateArgs.java | 55 ++ .../datasource/stream/XGroupSetIdArgs.java | 41 ++ .../redis/datasource/stream/XReadArgs.java | 55 ++ .../datasource/stream/XReadGroupArgs.java | 71 ++ .../redis/datasource/stream/XTrimArgs.java | 103 +++ .../ReactiveTransactionalRedisDataSource.java | 29 + .../TransactionalRedisDataSource.java | 29 + .../datasource/AbstractStreamCommands.java | 430 ++++++++++++ .../BlockingRedisDataSourceImpl.java | 6 + .../BlockingStreamCommandsImpl.java | 188 ++++++ ...ckingTransactionalRedisDataSourceImpl.java | 8 + ...ockingTransactionalStreamCommandsImpl.java | 184 +++++ .../ReactiveRedisDataSourceImpl.java | 6 + .../ReactiveStreamCommandsImpl.java | 330 +++++++++ ...ctiveTransactionalRedisDataSourceImpl.java | 8 + ...activeTransactionalStreamCommandsImpl.java | 222 +++++++ .../redis/datasource/StreamCommandsTest.java | 628 ++++++++++++++++++ .../TransactionalStreamCommandsTest.java | 85 +++ .../redis/generator/RedisApiGenerator.java | 6 +- 34 files changed, 5358 insertions(+), 6 deletions(-) create mode 100755 extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ClaimedMessages.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveStreamCommands.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveTransactionalStreamCommands.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamCommands.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamEntry.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamMessage.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamRange.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/TransactionalStreamCommands.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XAddArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XClaimArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupCreateArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupSetIdArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XReadArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XReadGroupArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XTrimArgs.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/AbstractStreamCommands.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingStreamCommandsImpl.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalStreamCommandsImpl.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveStreamCommandsImpl.java create mode 100644 extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalStreamCommandsImpl.java create mode 100644 extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/StreamCommandsTest.java create mode 100644 extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/TransactionalStreamCommandsTest.java diff --git a/docs/src/main/asciidoc/redis-reference.adoc b/docs/src/main/asciidoc/redis-reference.adoc index 4afba3b3e2c64..022bd6afc58d3 100644 --- a/docs/src/main/asciidoc/redis-reference.adoc +++ b/docs/src/main/asciidoc/redis-reference.adoc @@ -274,8 +274,8 @@ As mentioned above, the API is divided into groups: - pubsub - `pubsub()` - set - `.set(memberType)` - sorted-set - `.sortedSet(memberType)` -- stream (not available yet) - string - `.value(valueType)` +- stream - `.stream(`valueType`) - transactions - `withTransaction` - json - `.json()` (requires the https://redis.com/modules/redis-json/[RedisJSON] module on the server side) - bloom - `.bloom()` (requires the https://redis.com/modules/redis-bloom/[RedisBloom] module on the server side) diff --git a/extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java b/extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java new file mode 100755 index 0000000000000..d3a9c9b4ad326 --- /dev/null +++ b/extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java @@ -0,0 +1,81 @@ +///usr/bin/env jbang "$0" "$@" ; exit $? +//DEPS io.smallrye.reactive:smallrye-mutiny-vertx-redis-client:2.24.1 +//DEPS info.picocli:picocli:4.6.3 +//DEPS org.slf4j:slf4j-simple:1.7.36 + +import static java.lang.System.*; + +import java.util.List; +import java.util.concurrent.Callable; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import io.vertx.mutiny.core.Vertx; +import io.vertx.mutiny.redis.client.Redis; +import io.vertx.mutiny.redis.client.RedisAPI; +import io.vertx.mutiny.redis.client.Response; +import io.vertx.redis.client.RedisOptions; +import picocli.CommandLine; +import picocli.CommandLine.Command; +import picocli.CommandLine.Option; + + +@Command(name = "RedisCommandGenerator", mixinStandardHelpOptions = true, version = "RedisCommandGenerator 0.1", description = "Generate REdis Command Javadoc and signatures") +public class RedisCommandGenerator implements Callable { + + static Logger logger = LoggerFactory.getLogger("👻 >> "); + + + @Option(names = {"--redis"}, + description = "Redis connection string (redis://localhost:6379). Start Redis with: `docker run -p 6379:6379 redis:latest`", + defaultValue = "redis://localhost:6379") + private String url; + + @Option(names = "--command", description = "The command name from https://redis.io/commands/", required = true) + private String command; + + public Integer call() { + logger.info("Connecting to Redis"); + + Vertx vertx = Vertx.vertx(); + Redis client = Redis.createClient(vertx, new RedisOptions().setConnectionString(url)); + RedisAPI api = RedisAPI.api(client); + + Response response = api.commandAndAwait(List.of("DOCS", command.toLowerCase())); + System.out.println(javadoc(command, response.get(command))); + + vertx.closeAndAwait(); + return 0; + } + + private String javadoc(String cmd, Response response) { + String content = "/**\n"; + content += String.format(" * Execute the command $s.\n", cmd.toLowerCase(), cmd.toUpperCase()); + content += String.format(" * Summary: %s\n", response.get("summary").toString()); + content += String.format(" * Group: %s\n", response.get("group").toString()); + if (response.get("since") != null) { + content += String.format(" * Requires Redis %s+\n", response.get("since").toString()); + } + boolean deprecated = false; + if (response.get("deprecated_since") != null) { + content += String.format(" * Deprecated since Redis %s\n", response.get("deprecated_since").toString()); + deprecated = true; + } + content += " *

\n"; + for (Response arg: response.get("arguments")) { + content += String.format(" * @param %s %s\n", arg.get("name").toString(), arg.get("type")); + } + content += " * @return TODO\n"; + if (deprecated) { + content += " * @deprecated"; + } + content += " */\n"; + return content; + } + + public static void main(String... args) { + int exitCode = new CommandLine(new RedisCommandGenerator()).execute(args); + System.exit(exitCode); + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/ReactiveRedisDataSource.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/ReactiveRedisDataSource.java index 7c4b684dac706..b898666b7edc5 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/ReactiveRedisDataSource.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/ReactiveRedisDataSource.java @@ -19,6 +19,7 @@ import io.quarkus.redis.datasource.search.ReactiveSearchCommands; import io.quarkus.redis.datasource.set.ReactiveSetCommands; import io.quarkus.redis.datasource.sortedset.ReactiveSortedSetCommands; +import io.quarkus.redis.datasource.stream.ReactiveStreamCommands; import io.quarkus.redis.datasource.string.ReactiveStringCommands; import io.quarkus.redis.datasource.timeseries.ReactiveTimeSeriesCommands; import io.quarkus.redis.datasource.topk.ReactiveTopKCommands; @@ -381,6 +382,29 @@ default ReactiveBitMapCommands bitmap() { return bitmap(String.class); } + /** + * Gets the object to execute commands manipulating streams. + * + * @param redisKeyType the class of the keys + * @param fieldType the class of the fields included in the message exchanged on the streams + * @param valueType the class of the values included in the message exchanged on the streams + * @param the type of the redis key + * @param the type of the fields (map's keys) + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + ReactiveStreamCommands stream(Class redisKeyType, Class fieldType, Class valueType); + + /** + * Gets the object to execute commands manipulating streams, using a string key, and string fields. + * + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + default ReactiveStreamCommands stream(Class typeOfValue) { + return stream(String.class, String.class, typeOfValue); + } + /** * Gets the object to publish and receive messages. * diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/RedisDataSource.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/RedisDataSource.java index cab5e3246702a..52d9852a9b46c 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/RedisDataSource.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/RedisDataSource.java @@ -20,6 +20,7 @@ import io.quarkus.redis.datasource.search.SearchCommands; import io.quarkus.redis.datasource.set.SetCommands; import io.quarkus.redis.datasource.sortedset.SortedSetCommands; +import io.quarkus.redis.datasource.stream.StreamCommands; import io.quarkus.redis.datasource.string.StringCommands; import io.quarkus.redis.datasource.timeseries.TimeSeriesCommands; import io.quarkus.redis.datasource.topk.TopKCommands; @@ -379,6 +380,29 @@ default BitMapCommands bitmap() { return bitmap(String.class); } + /** + * Gets the object to execute commands manipulating streams. + * + * @param redisKeyType the class of the keys + * @param fieldType the class of the fields included in the message exchanged on the streams + * @param valueType the class of the values included in the message exchanged on the streams + * @param the type of the redis key + * @param the type of the fields (map's keys) + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + StreamCommands stream(Class redisKeyType, Class fieldType, Class valueType); + + /** + * Gets the object to execute commands manipulating streams, using a string key, and string fields. + * + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + default StreamCommands stream(Class typeOfValue) { + return stream(String.class, String.class, typeOfValue); + } + /** * Gets the object to manipulate JSON values. * This group requires the RedisJSON module. diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/keys/CopyArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/keys/CopyArgs.java index 6719025a69e74..fb21c77d6ef0a 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/keys/CopyArgs.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/keys/CopyArgs.java @@ -3,10 +3,12 @@ import java.util.ArrayList; import java.util.List; +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + /** * Arguments for the Redis COPY command. */ -public class CopyArgs { +public class CopyArgs implements RedisCommandExtraArguments { private long destinationDb = -1; @@ -34,6 +36,7 @@ public CopyArgs replace(boolean replace) { return this; } + @Override public List toArgs() { List args = new ArrayList<>(); if (destinationDb != -1) { @@ -47,4 +50,4 @@ public List toArgs() { return args; } -} \ No newline at end of file +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ClaimedMessages.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ClaimedMessages.java new file mode 100644 index 0000000000000..8eca18e527eea --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ClaimedMessages.java @@ -0,0 +1,28 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.List; + +/** + * Represents claimed messages + * + * @param the type of the key + * @param the field type for the payload + * @param the value type for the payload + */ +public class ClaimedMessages { + private final String id; + private final List> messages; + + public ClaimedMessages(String id, List> messages) { + this.id = id; + this.messages = messages; + } + + public String getId() { + return this.id; + } + + public List> getMessages() { + return this.messages; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveStreamCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveStreamCommands.java new file mode 100644 index 0000000000000..20266c54fbd2d --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveStreamCommands.java @@ -0,0 +1,593 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import io.smallrye.mutiny.Uni; + +/** + * Allows executing commands manipulating streams. + * See the stream command list for further information about these + * commands. + *

+ *

+ * The messages are represented as {@code Map}. + * + * @param the type of the keys, often {@link String} + * @param the key type of the messages, generally {@link String} + * @param the value type of the messages + */ +public interface ReactiveStreamCommands { + + /** + * Execute the command XACK. + * Summary: Marks a pending message as correctly processed, effectively removing it from the pending entries list + * of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, + * the IDs we were actually able to resolve in the PEL. + *

+ * The {@code XACK} command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer + * group. A message is pending, and as such stored inside the PEL, when it was delivered to some consumer, normally + * as a side effect of calling {@code XREADGROUP}, or when a consumer took ownership of a message + * calling {@code XCLAIM}. The pending message was delivered to some consumer but the server is yet not sure it was + * processed at least once. So new calls to {@code XREADGROUP} to grab the messages history for a consumer + * (for instance using an ID of 0), will return such message. Similarly, the pending message will be listed by the + * {@code XPENDING} command, that inspects the PEL. + *

+ * Once a consumer successfully processes a message, it should call {@code XACK} so that such message does not get + * processed again, and as a side effect, the PEL entry about this message is also purged, releasing memory from + * the Redis server. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param group the name of the consumer group + * @param ids the message ids to acknowledge + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of acknowledged messages. Certain message IDs may no + * longer be part of the PEL (for example because they have already been acknowledged), and XACK will not count them + * as successfully acknowledged. + */ + Uni xack(K key, String group, String... ids); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the id of the added message + */ + Uni xadd(K key, Map payload); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the id of the added message + */ + Uni xadd(K key, XAddArgs args, Map payload); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @param justId if {@code true} the returned structure would only contain the id of the messages and not the payloads + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count, boolean justId); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + Uni>> xclaim(K key, String group, String consumer, Duration minIdleTime, String... id); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param args the extra command parameters + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + Uni>> xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, + String... id); + + /** + * Execute the command XDEL. + * Summary: Removes the specified entries from a stream, and returns the number of entries deleted. This number may + * be less than the number of IDs passed to the command in the case where some of the specified IDs do not exist in + * the stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param id the message ids, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of deleted messages + */ + Uni xdel(K key, String... id); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code null} when the operation completes + */ + Uni xgroupCreate(K key, String groupname, String from); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code null} when the operation completes + */ + Uni xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args); + + /** + * Execute the command XGROUP CREATECONSUMER. + * Summary: Create a consumer named {@code consumername} in the consumer group {@code groupname} of the stream + * that's stored at {@code key}. + *

+ * Consumers are also created automatically whenever an operation, such as {@code XREADGROUP}, references a consumer + * that doesn't exist. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code true} if the consumer was created, {@code false} otherwise. + */ + Uni xgroupCreateConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DELCONSUMER. + * Summary: Deletes a consumer from the consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of pending messages that the consumer had before it + * was deleted + */ + Uni xgroupDelConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DESTROY. + * Summary: Completely destroys a consumer group. The consumer group will be destroyed even if there are active + * consumers, and pending messages, so make sure to call this command only when really needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code true} if the consumer group was destroyed, + * {@code false} otherwise. + */ + Uni xgroupDestroy(K key, String groupname); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code null} when the operation completes + */ + Uni xgroupSetId(K key, String groupname, String from); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code null} when the operation completes + */ + Uni xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args); + + /** + * Execute the command XLEN. + * Summary: Returns the number of entries inside a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of messages in the stream + */ + Uni xlen(K key); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + Uni>> xrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + Uni>> xrange(K key, StreamRange range); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xread(K key, String id); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xread(Map lastIdsPerStream); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xread(K key, String id, XReadArgs args); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xread(Map lastIdsPerStream, XReadArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xreadgroup(String group, String consumer, K key, String id); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xreadgroup(String group, String consumer, Map lastIdsPerStream); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + Uni>> xreadgroup(String group, String consumer, Map lastIdsPerStream, + XReadGroupArgs args); + + /** + * Execute the command XREVRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + Uni>> xrevrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + Uni>> xrevrange(K key, StreamRange range); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param threshold the threshold + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of entries deleted from the stream + */ + Uni xtrim(K key, String threshold); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of entries deleted from the stream + */ + Uni xtrim(K key, XTrimArgs args); + +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveTransactionalStreamCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveTransactionalStreamCommands.java new file mode 100644 index 0000000000000..75c5f1d41419b --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/ReactiveTransactionalStreamCommands.java @@ -0,0 +1,617 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands; +import io.smallrye.mutiny.Uni; + +/** + * Allows executing commands manipulating streams. + * See the stream command list for further information about these + * commands. + *

+ *

+ * The messages are represented as {@code Map}. + * This API is intended to be used in a Redis transaction ({@code MULTI}), thus, all command methods return {@code Uni}. + * + * @param the type of the keys, often {@link String} + * @param the key type of the messages, generally {@link String} + * @param the value type of the messages + */ +public interface ReactiveTransactionalStreamCommands extends ReactiveTransactionalRedisCommands { + + /** + * Execute the command XACK. + * Summary: Marks a pending message as correctly processed, effectively removing it from the pending entries list + * of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, + * the IDs we were actually able to resolve in the PEL. + *

+ * The {@code XACK} command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer + * group. A message is pending, and as such stored inside the PEL, when it was delivered to some consumer, normally + * as a side effect of calling {@code XREADGROUP}, or when a consumer took ownership of a message + * calling {@code XCLAIM}. The pending message was delivered to some consumer but the server is yet not sure it was + * processed at least once. So new calls to {@code XREADGROUP} to grab the messages history for a consumer + * (for instance using an ID of 0), will return such message. Similarly, the pending message will be listed by the + * {@code XPENDING} command, that inspects the PEL. + *

+ * Once a consumer successfully processes a message, it should call {@code XACK} so that such message does not get + * processed again, and as a side effect, the PEL entry about this message is also purged, releasing memory from + * the Redis server. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param group the name of the consumer group + * @param ids the message ids to acknowledge + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xack(K key, String group, String... ids); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xadd(K key, Map payload); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xadd(K key, XAddArgs args, Map payload); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @param justId if {@code true} the returned structure would only contain the id of the messages and not the payloads + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, boolean justId); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xclaim(K key, String group, String consumer, Duration minIdleTime, String... id); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param args the extra command parameters + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, String... id); + + /** + * Execute the command XDEL. + * Summary: Removes the specified entries from a stream, and returns the number of entries deleted. This number may + * be less than the number of IDs passed to the command in the case where some of the specified IDs do not exist in + * the stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param id the message ids, must not be empty, must not contain {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xdel(K key, String... id); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupCreate(K key, String groupname, String from); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args); + + /** + * Execute the command XGROUP CREATECONSUMER. + * Summary: Create a consumer named {@code consumername} in the consumer group {@code groupname} of the stream + * that's stored at {@code key}. + *

+ * Consumers are also created automatically whenever an operation, such as {@code XREADGROUP}, references a consumer + * that doesn't exist. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupCreateConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DELCONSUMER. + * Summary: Deletes a consumer from the consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupDelConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DESTROY. + * Summary: Completely destroys a consumer group. The consumer group will be destroyed even if there are active + * consumers, and pending messages, so make sure to call this command only when really needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupDestroy(K key, String groupname); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupSetId(K key, String groupname, String from); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args); + + /** + * Execute the command XLEN. + * Summary: Returns the number of entries inside a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xlen(K key); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xrange(K key, StreamRange range); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xread(K key, String id); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xread(Map lastIdsPerStream); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @param args the extra parameter + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xread(K key, String id, XReadArgs args); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xread(Map lastIdsPerStream, XReadArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xreadgroup(String group, String consumer, K key, String id); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xreadgroup(String group, String consumer, Map lastIdsPerStream); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @param args the extra parameter + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xreadgroup(String group, String consumer, Map lastIdsPerStream, XReadGroupArgs args); + + /** + * Execute the command XREVRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xrevrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xrevrange(K key, StreamRange range); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param threshold the threshold + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xtrim(K key, String threshold); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @return A {@code Uni} emitting {@code null} when the command has been enqueued successfully in the transaction, a failure + * otherwise. In the case of failure, the transaction is discarded. + */ + Uni xtrim(K key, XTrimArgs args); +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamCommands.java new file mode 100644 index 0000000000000..4b5792649c146 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamCommands.java @@ -0,0 +1,585 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.RedisCommands; + +/** + * Allows executing commands manipulating streams. + * See the stream command list for further information about these + * commands. + *

+ * + * @param the type of the keys, often {@link String} + * @param the type of the fields composing the payload + * @param the type of the values composing the payload + */ +public interface StreamCommands extends RedisCommands { + + /** + * Execute the command XACK. + * Summary: Marks a pending message as correctly processed, effectively removing it from the pending entries list + * of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, + * the IDs we were actually able to resolve in the PEL. + *

+ * The {@code XACK} command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer + * group. A message is pending, and as such stored inside the PEL, when it was delivered to some consumer, normally + * as a side effect of calling {@code XREADGROUP}, or when a consumer took ownership of a message + * calling {@code XCLAIM}. The pending message was delivered to some consumer but the server is yet not sure it was + * processed at least once. So new calls to {@code XREADGROUP} to grab the messages history for a consumer + * (for instance using an ID of 0), will return such message. Similarly, the pending message will be listed by the + * {@code XPENDING} command, that inspects the PEL. + *

+ * Once a consumer successfully processes a message, it should call {@code XACK} so that such message does not get + * processed again, and as a side effect, the PEL entry about this message is also purged, releasing memory from + * the Redis server. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param group the name of the consumer group + * @param ids the message ids to acknowledge + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of acknowledged messages. Certain message IDs may no + * longer be part of the PEL (for example because they have already been acknowledged), and XACK will not count them + * as successfully acknowledged. + */ + int xack(K key, String group, String... ids); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the id of the added message + */ + String xadd(K key, Map payload); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @param payload the payload to write to the stream, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the id of the added message + */ + String xadd(K key, XAddArgs args, Map payload); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @param justId if {@code true} the returned structure would only contain the id of the messages and not the payloads + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, + boolean justId); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + List> xclaim(K key, String group, String consumer, Duration minIdleTime, String... id); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param args the extra command parameters + * @param id the message ids to claim, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the claimed messages + */ + List> xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, + String... id); + + /** + * Execute the command XDEL. + * Summary: Removes the specified entries from a stream, and returns the number of entries deleted. This number may + * be less than the number of IDs passed to the command in the case where some of the specified IDs do not exist in + * the stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param id the message ids, must not be empty, must not contain {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of deleted messages + */ + int xdel(K key, String... id); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + */ + void xgroupCreate(K key, String groupname, String from); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + */ + void xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args); + + /** + * Execute the command XGROUP CREATECONSUMER. + * Summary: Create a consumer named {@code consumername} in the consumer group {@code groupname} of the stream + * that's stored at {@code key}. + *

+ * Consumers are also created automatically whenever an operation, such as {@code XREADGROUP}, references a consumer + * that doesn't exist. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code true} if the consumer was created, {@code false} otherwise. + */ + boolean xgroupCreateConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DELCONSUMER. + * Summary: Deletes a consumer from the consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of pending messages that the consumer had before it + * was deleted + */ + long xgroupDelConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DESTROY. + * Summary: Completely destroys a consumer group. The consumer group will be destroyed even if there are active + * consumers, and pending messages, so make sure to call this command only when really needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting {@code true} if the consumer group was destroyed, + * {@code false} otherwise. + */ + boolean xgroupDestroy(K key, String groupname); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + */ + void xgroupSetId(K key, String groupname, String from); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + */ + void xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args); + + /** + * Execute the command XLEN. + * Summary: Returns the number of entries inside a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of messages in the stream + */ + long xlen(K key); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + List> xrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + List> xrange(K key, StreamRange range); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xread(K key, String id); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xread(Map lastIdsPerStream); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xread(K key, String id, XReadArgs args); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xread(Map lastIdsPerStream, XReadArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xreadgroup(String group, String consumer, K key, String id); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xreadgroup(String group, String consumer, Map lastIdsPerStream); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages. + */ + List> xreadgroup(String group, String consumer, Map lastIdsPerStream, + XReadGroupArgs args); + + /** + * Execute the command XREVRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + List> xrevrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @return A {@link io.smallrye.mutiny.Uni} emitting a list containing the messages from the given range. + */ + List> xrevrange(K key, StreamRange range); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param threshold the threshold + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of entries deleted from the stream + */ + long xtrim(K key, String threshold); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @return A {@link io.smallrye.mutiny.Uni} emitting the number of entries deleted from the stream + */ + long xtrim(K key, XTrimArgs args); +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamEntry.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamEntry.java new file mode 100644 index 0000000000000..5967d18a46474 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamEntry.java @@ -0,0 +1,14 @@ +package io.quarkus.redis.datasource.stream; + +public class StreamEntry { + + public final String id; + + public final T content; + + public StreamEntry(String id, T content) { + this.id = id; + this.content = content; + } + +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamMessage.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamMessage.java new file mode 100644 index 0000000000000..23349e2574ff4 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamMessage.java @@ -0,0 +1,44 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.Map; + +/** + * Represents a message received from a stream + * + * @param the type of the key + * @param the field type for the payload + * @param the value type for the payload + */ +public class StreamMessage { + + private final K stream; + private final String id; + private final Map payload; + + public StreamMessage(K stream, String id, Map payload) { + this.stream = stream; + this.id = id; + this.payload = payload; + } + + /** + * @return the key of the stream from which the message has been received. + */ + public K key() { + return this.stream; + } + + /** + * @return the stream id, i.e. the id of the message in the stream. + */ + public String id() { + return this.id; + } + + /** + * @return the payload of the message + */ + public Map payload() { + return this.payload; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamRange.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamRange.java new file mode 100644 index 0000000000000..1bf69911cef02 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/StreamRange.java @@ -0,0 +1,34 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.ArrayList; +import java.util.List; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; +import io.quarkus.redis.runtime.datasource.Validation; + +/** + * Represents a stream range. + */ +public class StreamRange implements RedisCommandExtraArguments { + + private final String lowerBound; + + private final String higherBound; + + public StreamRange(String lowerBound, String higherBound) { + this.lowerBound = Validation.notNullOrBlank(lowerBound, "lowerBound"); + this.higherBound = Validation.notNullOrBlank(higherBound, "higherBound"); + } + + public static StreamRange of(String lowerBound, String higherBound) { + return new StreamRange(lowerBound, higherBound); + } + + @Override + public List toArgs() { + List list = new ArrayList<>(); + list.add(lowerBound); + list.add(higherBound); + return list; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/TransactionalStreamCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/TransactionalStreamCommands.java new file mode 100644 index 0000000000000..a72b9f9a66074 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/TransactionalStreamCommands.java @@ -0,0 +1,554 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.TransactionalRedisCommands; + +/** + * Allows executing commands manipulating streams. + * See the stream command list for further information about these + * commands. + *

+ *

+ * The messages are represented as {@code Map}. + * This API is intended to be used in a Redis transaction ({@code MULTI}), thus, all command methods return {@code void}. + * + * @param the type of the keys, often {@link String} + * @param the key type of the messages, generally {@link String} + * @param the value type of the messages + */ +public interface TransactionalStreamCommands extends TransactionalRedisCommands { + + /** + * Execute the command XACK. + * Summary: Marks a pending message as correctly processed, effectively removing it from the pending entries list + * of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, + * the IDs we were actually able to resolve in the PEL. + *

+ * The {@code XACK} command removes one or multiple messages from the Pending Entries List (PEL) of a stream consumer + * group. A message is pending, and as such stored inside the PEL, when it was delivered to some consumer, normally + * as a side effect of calling {@code XREADGROUP}, or when a consumer took ownership of a message + * calling {@code XCLAIM}. The pending message was delivered to some consumer but the server is yet not sure it was + * processed at least once. So new calls to {@code XREADGROUP} to grab the messages history for a consumer + * (for instance using an ID of 0), will return such message. Similarly, the pending message will be listed by the + * {@code XPENDING} command, that inspects the PEL. + *

+ * Once a consumer successfully processes a message, it should call {@code XACK} so that such message does not get + * processed again, and as a side effect, the PEL entry about this message is also purged, releasing memory from + * the Redis server. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param group the name of the consumer group + * @param ids the message ids to acknowledge + */ + void xack(K key, String group, String... ids); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param payload the payload to write to the stream, must not be {@code null} + */ + void xadd(K key, Map payload); + + /** + * Execute the command XADD. + * Summary: Appends the specified stream entry to the stream at the specified key. If the key does not exist, as a + * side effect of running this command the key is created with a stream value. The creation of stream's key can be + * disabled with the {@code NOMKSTREAM} option. + *

+ * An entry is composed of a list of field-value pairs. The field-value pairs are stored in the same order they are + * given by the user. Commands that read the stream, such as {@code XRANGE} or {@code XREAD}, are guaranteed to + * return the fields and values exactly in the same order they were added by {@code XADD}. + *

+ * {@code XADD} is the only Redis command that can add data to a stream, but there are other commands, such as + * {@code XDEL} and {@code XTRIM}, that are able to remove data from a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + * @param payload the payload to write to the stream, must not be {@code null} + */ + void xadd(K key, XAddArgs args, Map payload); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + */ + void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + */ + void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count); + + /** + * Execute the command XAUTOCLAIM. + * Summary: Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to + * the specified consumer. + *

+ * This command transfers ownership of pending stream entries that match the specified criteria. Conceptually, + * {@code XAUTOCLAIM} is equivalent to calling {@code XPENDING} and then {@code XCLAIM}, but provides a more + * straightforward way to deal with message delivery failures via {@code SCAN}-like semantics. + *

+ * Like {@code XCLAIM}, the command operates on the stream entries at {@code key} and in the context of the provided + * {@code group}. It transfers ownership to @{code consumer} of messages pending for more than {@code min-idle-time} + * milliseconds and having an equal or greater ID than {@code start}. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param start the min id of the message to claim + * @param count the upper limit of the number of entries to claim, default is 100. + * @param justId if {@code true} the returned structure would only contain the id of the messages and not the payloads + */ + void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, boolean justId); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param id the message ids to claim, must not be empty, must not contain {@code null} + */ + void xclaim(K key, String group, String consumer, Duration minIdleTime, String... id); + + /** + * Execute the command XCLAIM. + * Summary: In the context of a stream consumer group, this command changes the ownership of a pending message, so + * that the new owner is the consumer specified as the command argument. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param group string the consumer group + * @param consumer string the consumer id + * @param minIdleTime the min pending time of the message to claim + * @param args the extra command parameters + * @param id the message ids to claim, must not be empty, must not contain {@code null} + */ + void xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, String... id); + + /** + * Execute the command XDEL. + * Summary: Removes the specified entries from a stream, and returns the number of entries deleted. This number may + * be less than the number of IDs passed to the command in the case where some of the specified IDs do not exist in + * the stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param id the message ids, must not be empty, must not contain {@code null} + */ + void xdel(K key, String... id); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + */ + void xgroupCreate(K key, String groupname, String from); + + /** + * Execute the command XGROUP CREATE. + * Summary: Create a new consumer group uniquely identified by {@code groupname} for the stream stored at {@code key} + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + */ + void xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args); + + /** + * Execute the command XGROUP CREATECONSUMER. + * Summary: Create a consumer named {@code consumername} in the consumer group {@code groupname} of the stream + * that's stored at {@code key}. + *

+ * Consumers are also created automatically whenever an operation, such as {@code XREADGROUP}, references a consumer + * that doesn't exist. + *

+ * Group: stream + * Requires Redis 6.2.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + */ + void xgroupCreateConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DELCONSUMER. + * Summary: Deletes a consumer from the consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param consumername the consumer name + */ + void xgroupDelConsumer(K key, String groupname, String consumername); + + /** + * Execute the command XGROUP DESTROY. + * Summary: Completely destroys a consumer group. The consumer group will be destroyed even if there are active + * consumers, and pending messages, so make sure to call this command only when really needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + */ + void xgroupDestroy(K key, String groupname); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + */ + void xgroupSetId(K key, String groupname, String from); + + /** + * Execute the command XGROUP SETID. + * Summary: Set the last delivered ID for a consumer group. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param groupname the name of the group, must be unique, and not {@code null} + * @param from the last delivered entry in the stream from the new group's perspective. The special ID {@code $} + * is the ID of the last entry in the stream, but you can substitute it with any valid ID. + * @param args the extra command parameters + */ + void xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args); + + /** + * Execute the command XLEN. + * Summary: Returns the number of entries inside a stream. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + */ + void xlen(K key); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + */ + void xrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: The command returns the stream entries matching a given range of IDs. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + */ + void xrange(K key, StreamRange range); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + */ + void xread(K key, String id); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + */ + void xread(Map lastIdsPerStream); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key of the stream + * @param id the last read id + * @param args the extra parameter + */ + void xread(K key, String id, XReadArgs args); + + /** + * Execute the command XREAD. + * Summary: Read data from one or multiple streams, only returning entries with an ID greater than the last received + * ID reported by the caller. This command has an option to block if items are not available, in a similar fashion + * to {@code BRPOP} or {@code BZPOPMIN} and others. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + */ + void xread(Map lastIdsPerStream, XReadArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + */ + void xreadgroup(String group, String consumer, K key, String id); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + */ + void xreadgroup(String group, String consumer, Map lastIdsPerStream); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param key the stream key + * @param id the last read id + * @param args the extra parameter + */ + void xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args); + + /** + * Execute the command XREADGROUP. + * Summary: The {@code XREADGROUP} command is a special version of the {@code XREAD} command with support for + * consumer groups. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param group the group name + * @param consumer the consumer name + * @param lastIdsPerStream the map of key -> id indicating the last received id per stream to read + * @param args the extra parameter + */ + void xreadgroup(String group, String consumer, Map lastIdsPerStream, XReadGroupArgs args); + + /** + * Execute the command XREVRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + * @param count the max number of entries to return + */ + void xrevrange(K key, StreamRange range, int count); + + /** + * Execute the command XRANGE. + * Summary: This command is exactly like {@code XRANGE}, but with the notable difference of returning the entries + * in reverse order, and also taking the start-end range in reverse order: in {@code XREVRANGE} you need to state + * the end ID and later the start ID, and the command will produce all the element between (or exactly like) the + * two IDs, starting from the end side. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key key the key + * @param range the range, must not be {@code null} + */ + void xrevrange(K key, StreamRange range); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param threshold the threshold + */ + void xtrim(K key, String threshold); + + /** + * Execute the command XTRIM. + * Summary: Trims the stream by evicting older entries (entries with lower IDs) if needed. + *

+ * Group: stream + * Requires Redis 5.0.0+ + *

+ * + * @param key the key + * @param args the extra parameters + */ + void xtrim(K key, XTrimArgs args); +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XAddArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XAddArgs.java new file mode 100644 index 0000000000000..196ebb8a09144 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XAddArgs.java @@ -0,0 +1,137 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + +/** + * The argument of the XADD command. + */ +public class XAddArgs implements RedisCommandExtraArguments { + + private String id; + + private long maxlen = -1; + + private boolean approximateTrimming; + + private boolean nomkstream; + + private String minid; + + private long limit = -1; + + /** + * Sets the stream id to identify a given entry inside a stream. + * If not set, the stream id is generated by the Redis server. + * + * @param id the id, must not be {@code null}, but be formed by two numbers separated by a {@code -}. In general, + * the first number is a timestamp. + * @return the current {@code XAddArgs} + */ + public XAddArgs id(String id) { + this.id = id; + return this; + } + + /** + * Sets the max length of the stream. + * When {@code XADD} is called with this parameter, the new entry is added to the stream, but if the max size is + * reached, the oldest entry is evicted. + * + * @param maxlen the max length of the stream, must be positive + * @return the current {@code XAddArgs} + */ + public XAddArgs maxlen(Long maxlen) { + this.maxlen = maxlen; + return this; + } + + /** + * When set, prefix the {@link #maxlen} with {@code ~} to enable the almost exact trimming. + * This is recommended when using {@link #maxlen(Long)}. + * + * @return the current {@code XAddArgs} + */ + public XAddArgs nearlyExactTrimming() { + this.approximateTrimming = true; + return this; + } + + /** + * Do not create a new stream if the stream does not exist yet. + * + * @return the current {@code XAddArgs} + */ + public XAddArgs nomkstream() { + this.nomkstream = true; + return this; + } + + /** + * Evicts entries from the stream having IDs lower to the specified one. + * + * @param minid the min id, must not be {@code null}, must be a valid stream id + * @return the current {@code XAddArgs} + */ + public XAddArgs minid(String minid) { + this.minid = minid; + return this; + } + + /** + * Sets the maximum entries that can get evicted. + * + * @param limit the limit, must be positive + * @return the current {@code XAddArgs} + */ + public XAddArgs limit(long limit) { + this.limit = limit; + return this; + } + + @Override + public List toArgs() { + List args = new ArrayList<>(); + if (nomkstream) { + args.add("NOMKSTREAM"); + } + + if (maxlen > 0) { + if (minid != null) { + throw new IllegalArgumentException("Cannot use `MAXLEN` and `MINID` together"); + } + + args.add("MAXLEN"); + if (approximateTrimming) { + args.add("~"); + } else { + args.add("="); + } + args.add(Long.toString(maxlen)); + } + + if (minid != null) { + args.add("MINID"); + if (approximateTrimming) { + args.add("~"); + } else { + args.add("="); + } + args.add(minid); + } + + if (limit > 0) { + if (!approximateTrimming) { + throw new IllegalArgumentException("Cannot set the eviction limit when using exact trimming"); + } + args.add("LIMIT"); + args.add(Long.toString(limit)); + } + + args.add(Objects.requireNonNullElse(id, "*")); + return args; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XClaimArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XClaimArgs.java new file mode 100644 index 0000000000000..3538cc9c81687 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XClaimArgs.java @@ -0,0 +1,136 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + +/** + * The argument of the XCLAIM command. + */ +public class XClaimArgs implements RedisCommandExtraArguments { + + private Duration idle; + + private long time = -1; + + private int retryCount = -1; + + private boolean force; + + private boolean justId; + + private String lastId; + + /** + * Set the idle time (last time it was delivered) of the message. If {@code IDLE} is not specified, an {@code IDLE} + * of 0 is assumed, that is, the time count is reset because the message has now a new owner trying to process it. + * + * @param idle the idle duration, must not be {@code null} + * @return the current {@code XClaimArgs} + */ + public XClaimArgs idle(Duration idle) { + this.idle = idle; + return this; + } + + /** + * This is the same as {@code IDLE} but instead of a relative amount of milliseconds, it sets the idle time to a + * specific Unix time (in milliseconds). This is useful in order to rewrite the {@code AOF} file + * generating {@code XCLAIM} commands. + * + * @param time the timestamp + * @return the current {@code XClaimArgs} + */ + public XClaimArgs time(long time) { + this.time = time; + return this; + } + + /** + * Set the retry counter to the specified value. This counter is incremented every time a message is delivered again. + * Normally {@code XCLAIM} does not alter this counter, which is just served to clients when the {@code XPENDING} + * command is called: this way clients can detect anomalies, like messages that are never processed for some reason + * after a big number of delivery attempts. + * + * @param retryCount the retry count, must be positive + * @return the current {@code XClaimArgs} + */ + public XClaimArgs retryCount(int retryCount) { + this.retryCount = retryCount; + return this; + } + + /** + * Creates the pending message entry in the PEL even if certain specified IDs are not already in the PEL assigned + * to a different client. + * However, the message must exist in the stream, otherwise the IDs of non-existing messages are ignored. + * + * @return the current {@code XClaimArgs} + */ + public XClaimArgs force() { + this.force = true; + return this; + } + + /** + * In the returned structure, only set the IDs of messages successfully claimed, without returning the actual message. + * Using this option means the retry counter is not incremented. + * + * @return the current {@code XClaimArgs} + */ + public XClaimArgs justId() { + this.justId = true; + return this; + } + + /** + * Sets the last id of the message to claim. + * + * @param lastId the last id, must not be {@code null} + * @return the current {@code XClaimArgs} + */ + public XClaimArgs lastId(String lastId) { + this.lastId = lastId; + return this; + } + + @Override + public List toArgs() { + List args = new ArrayList<>(); + + if (idle != null) { + args.add("IDLE"); + args.add(Long.toString(idle.toMillis())); + if (time > 0) { + throw new IllegalStateException("Cannot combine `IDLE` and `TIME`"); + } + } + + if (time > 0) { + args.add("TIME"); + args.add(Long.toString(time)); + } + + if (retryCount > 0) { + args.add("RETRYCOUNT"); + args.add(Integer.toString(retryCount)); + } + + if (force) { + args.add("FORCE"); + } + + if (justId) { + args.add("JUSTID"); + } + + if (lastId != null) { + args.add("LASTID"); + args.add(lastId); + } + + return args; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupCreateArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupCreateArgs.java new file mode 100644 index 0000000000000..db51b9b474364 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupCreateArgs.java @@ -0,0 +1,55 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.ArrayList; +import java.util.List; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + +/** + * Represents the extra argument of the + * Requires REdis 7.0.0+ + * + * @param id the arbitrary id + * @return the current {@code XGroupCreateArgs} + */ + public XGroupCreateArgs entriesRead(String id) { + this.entriesRead = id; + return this; + } + + @Override + public List toArgs() { + List args = new ArrayList<>(); + if (mkstream) { + args.add("MKSTREAM"); + } + if (entriesRead != null) { + args.add("ENTRIESREAD"); + args.add(entriesRead); + } + + return args; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupSetIdArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupSetIdArgs.java new file mode 100644 index 0000000000000..f5a00766e58f4 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XGroupSetIdArgs.java @@ -0,0 +1,41 @@ +package io.quarkus.redis.datasource.stream; + +import java.util.ArrayList; +import java.util.List; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + +/** + * Represents the extra argument of the + * Requires REdis 7.0.0+ + * + * @param id the arbitrary id + * @return the current {@code XGroupCreateArgs} + */ + public XGroupSetIdArgs entriesRead(long id) { + this.entriesRead = id; + return this; + } + + @Override + public List toArgs() { + List args = new ArrayList<>(); + if (entriesRead > 0) { + args.add("ENTRIESREAD"); + args.add(Long.toString(entriesRead)); + } + + return args; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XReadArgs.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XReadArgs.java new file mode 100644 index 0000000000000..630b89b22f4ea --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/stream/XReadArgs.java @@ -0,0 +1,55 @@ +package io.quarkus.redis.datasource.stream; + +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; + +import io.quarkus.redis.datasource.RedisCommandExtraArguments; + +/** + * Represents the extra parameter of the XTRIM command. + */ +public class XTrimArgs implements RedisCommandExtraArguments { + + private long maxlen = -1; + + private boolean approximateTrimming; + + private String minid; + + private long limit = -1; + + /** + * Sets the max length of the stream. + * + * @param maxlen the max length of the stream, must be positive + * @return the current {@code XAddArgs} + */ + public XTrimArgs maxlen(long maxlen) { + this.maxlen = maxlen; + return this; + } + + /** + * When set, prefix the {@link #maxlen} with {@code ~} to enable the almost exact trimming. + * This is recommended when using {@link #maxlen(long)}. + * + * @return the current {@code XAddArgs} + */ + public XTrimArgs nearlyExactTrimming() { + this.approximateTrimming = true; + return this; + } + + /** + * Evicts entries from the stream having IDs lower to the specified one. + * + * @param minid the min id, must not be {@code null}, must be a valid stream id + * @return the current {@code XAddArgs} + */ + public XTrimArgs minid(String minid) { + this.minid = minid; + return this; + } + + /** + * Sets the maximum entries that can get evicted. + * + * @param limit the limit, must be positive + * @return the current {@code XAddArgs} + */ + public XTrimArgs limit(long limit) { + this.limit = limit; + return this; + } + + @Override + public List toArgs() { + List args = new ArrayList<>(); + + if (maxlen > 0) { + if (minid != null) { + throw new IllegalArgumentException("Cannot use `MAXLEN` and `MINID` together"); + } + + args.add("MAXLEN"); + if (approximateTrimming) { + args.add("~"); + } else { + args.add("="); + } + args.add(Long.toString(maxlen)); + } + + if (minid != null) { + args.add("MINID"); + if (approximateTrimming) { + args.add("~"); + } else { + args.add("="); + } + args.add(minid); + } + + if (limit > 0) { + if (!approximateTrimming) { + throw new IllegalArgumentException("Cannot set the eviction limit when using exact trimming"); + } + args.add("LIMIT"); + args.add(Long.toString(limit)); + } + + return args; + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/ReactiveTransactionalRedisDataSource.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/ReactiveTransactionalRedisDataSource.java index 3afa07c073ada..580de0d4b112a 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/ReactiveTransactionalRedisDataSource.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/ReactiveTransactionalRedisDataSource.java @@ -15,6 +15,7 @@ import io.quarkus.redis.datasource.search.ReactiveTransactionalSearchCommands; import io.quarkus.redis.datasource.set.ReactiveTransactionalSetCommands; import io.quarkus.redis.datasource.sortedset.ReactiveTransactionalSortedSetCommands; +import io.quarkus.redis.datasource.stream.ReactiveTransactionalStreamCommands; import io.quarkus.redis.datasource.string.ReactiveTransactionalStringCommands; import io.quarkus.redis.datasource.timeseries.ReactiveTransactionalTimeSeriesCommands; import io.quarkus.redis.datasource.topk.ReactiveTransactionalTopKCommands; @@ -279,6 +280,34 @@ default ReactiveTransactionalBitMapCommands bitmap() { return bitmap(String.class); } + /** + * Gets the object to execute commands manipulating streams. + *

+ * + * @param redisKeyType the class of the keys + * @param typeOfField the class of the fields + * @param typeOfValue the class of the values + * @param the type of the redis key + * @param the type of the fields (map's keys) + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + ReactiveTransactionalStreamCommands stream(Class redisKeyType, Class typeOfField, + Class typeOfValue); + + /** + * Gets the object to execute commands manipulating stream.. + *

+ * This is a shortcut on {@code stream(String.class, String.class, V)} + * + * @param typeOfValue the class of the values + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + default ReactiveTransactionalStreamCommands stream(Class typeOfValue) { + return stream(String.class, String.class, typeOfValue); + } + /** * Gets the object to manipulate JSON values. * This group requires the RedisJSON module. diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/TransactionalRedisDataSource.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/TransactionalRedisDataSource.java index 69ddfa28b208a..948014527dc8f 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/TransactionalRedisDataSource.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/datasource/transactions/TransactionalRedisDataSource.java @@ -15,6 +15,7 @@ import io.quarkus.redis.datasource.search.TransactionalSearchCommands; import io.quarkus.redis.datasource.set.TransactionalSetCommands; import io.quarkus.redis.datasource.sortedset.TransactionalSortedSetCommands; +import io.quarkus.redis.datasource.stream.TransactionalStreamCommands; import io.quarkus.redis.datasource.string.TransactionalStringCommands; import io.quarkus.redis.datasource.timeseries.TransactionalTimeSeriesCommands; import io.quarkus.redis.datasource.topk.TransactionalTopKCommands; @@ -277,6 +278,34 @@ default TransactionalBitMapCommands bitmap() { return bitmap(String.class); } + /** + * Gets the object to execute commands manipulating streams. + *

+ * + * @param redisKeyType the class of the keys + * @param typeOfField the class of the fields + * @param typeOfValue the class of the values + * @param the type of the redis key + * @param the type of the fields (map's keys) + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + TransactionalStreamCommands stream(Class redisKeyType, Class typeOfField, + Class typeOfValue); + + /** + * Gets the object to execute commands manipulating stream.. + *

+ * This is a shortcut on {@code stream(String.class, String.class, V)} + * + * @param typeOfValue the class of the values + * @param the type of the value + * @return the object to execute commands manipulating streams. + */ + default TransactionalStreamCommands stream(Class typeOfValue) { + return stream(String.class, String.class, typeOfValue); + } + /** * Gets the object to manipulate JSON values. * This group requires the RedisJSON module. diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/AbstractStreamCommands.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/AbstractStreamCommands.java new file mode 100644 index 0000000000000..18083a00de470 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/AbstractStreamCommands.java @@ -0,0 +1,430 @@ +package io.quarkus.redis.runtime.datasource; + +import static io.quarkus.redis.runtime.datasource.Validation.notNullOrBlank; +import static io.quarkus.redis.runtime.datasource.Validation.notNullOrEmpty; +import static io.quarkus.redis.runtime.datasource.Validation.positive; +import static io.smallrye.mutiny.helpers.ParameterValidation.doesNotContainNull; +import static io.smallrye.mutiny.helpers.ParameterValidation.nonNull; + +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; +import io.smallrye.mutiny.Uni; +import io.smallrye.mutiny.helpers.ParameterValidation; +import io.vertx.mutiny.redis.client.Command; +import io.vertx.mutiny.redis.client.Response; + +public class AbstractStreamCommands extends AbstractRedisCommands { + + AbstractStreamCommands(RedisCommandExecutor redis, Class k, Class m, Class v) { + super(redis, new Marshaller(k, m, v)); + } + + Uni _xack(K key, String group, String... ids) { + nonNull(key, "key"); + nonNull(group, "group"); + notNullOrEmpty(ids, "ids"); + doesNotContainNull(ids, "ids"); + + RedisCommand cmd = RedisCommand.of(Command.XACK) + .put(marshaller.encode(key)) + .put(group) + .putAll(ids); + return execute(cmd); + } + + Uni _xadd(K key, Map payload) { + return _xadd(key, new XAddArgs(), payload); + } + + Uni _xadd(K key, XAddArgs args, Map payload) { + nonNull(key, "key"); + nonNull(args, "args"); + nonNull(payload, "payload"); + RedisCommand cmd = RedisCommand.of(Command.XADD) + .put(marshaller.encode(key)) + .putArgs(args); + for (Map.Entry entry : payload.entrySet()) { + cmd.put(marshaller.encode(entry.getKey())); + cmd.putNullable(marshaller.encode(entry.getValue())); + } + return execute(cmd); + } + + Uni _xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count) { + nonNull(key, "key"); + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + ParameterValidation.validate(minIdleTime, "minIdleTime"); + notNullOrBlank(start, "start"); + positive(count, "count"); + RedisCommand cmd = RedisCommand.of(Command.XAUTOCLAIM) + .put(marshaller.encode(key)) + .put(group).put(consumer).put(minIdleTime.toMillis()).put(start) + .put("COUNT").put(count); + + return execute(cmd); + } + + Uni _xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start) { + nonNull(key, "key"); + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + ParameterValidation.validate(minIdleTime, "minIdleTime"); + notNullOrBlank(start, "start"); + RedisCommand cmd = RedisCommand.of(Command.XAUTOCLAIM) + .put(marshaller.encode(key)) + .put(group).put(consumer).put(minIdleTime.toMillis()).put(start); + + return execute(cmd); + } + + Uni _xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, + boolean justId) { + nonNull(key, "key"); + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + ParameterValidation.validate(minIdleTime, "minIdleTime"); + notNullOrBlank(start, "start"); + positive(count, "count"); + RedisCommand cmd = RedisCommand.of(Command.XAUTOCLAIM) + .put(marshaller.encode(key)) + .put(group).put(consumer).put(minIdleTime.toMillis()).put(start); + if (count > 0) { + cmd.put("COUNT").put(count); + } + if (justId) { + cmd.put("JUSTID"); + } + return execute(cmd); + } + + Uni _xclaim(K key, String group, String consumer, Duration minIdleTime, String... id) { + nonNull(key, "key"); + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + ParameterValidation.validate(minIdleTime, "minIdleTime"); + notNullOrEmpty(id, "id"); + doesNotContainNull(id, "id"); + + RedisCommand cmd = RedisCommand.of(Command.XCLAIM) + .put(marshaller.encode(key)) + .put(group) + .put(consumer) + .put(Long.toString(minIdleTime.toMillis())) + .putAll(id); + return execute(cmd); + } + + Uni _xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, String... id) { + nonNull(key, "key"); + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + ParameterValidation.validate(minIdleTime, "minIdleTime"); + nonNull(args, "args"); + notNullOrEmpty(id, "id"); + doesNotContainNull(id, "id"); + + RedisCommand cmd = RedisCommand.of(Command.XCLAIM) + .put(marshaller.encode(key)) + .put(group) + .put(consumer) + .put(Long.toString(minIdleTime.toMillis())) + .putAll(id) + .putArgs(args); + return execute(cmd); + } + + Uni _xdel(K key, String... id) { + nonNull(key, "key"); + notNullOrEmpty(id, "id"); + doesNotContainNull(id, "id"); + + RedisCommand cmd = RedisCommand.of(Command.XDEL) + .put(marshaller.encode(key)) + .putAll(id); + return execute(cmd); + } + + Uni _xgroupCreate(K key, String groupname, String from) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(from, "from"); + + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("CREATE") + .put(marshaller.encode(key)) + .put(groupname) + .put(from); + return execute(cmd); + } + + Uni _xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(from, "from"); + nonNull(args, "args"); + + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("CREATE") + .put(marshaller.encode(key)) + .put(groupname) + .put(from) + .putArgs(args); + return execute(cmd); + } + + Uni _xgroupCreateConsumer(K key, String groupname, String consumername) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(consumername, "consumername"); + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("CREATECONSUMER") + .put(marshaller.encode(key)) + .put(groupname) + .put(consumername); + return execute(cmd); + } + + Uni _xgroupDelConsumer(K key, String groupname, String consumername) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(consumername, "consumername"); + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("DELCONSUMER") + .put(marshaller.encode(key)) + .put(groupname) + .put(consumername); + return execute(cmd); + } + + Uni _xgroupDestroy(K key, String groupname) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("DESTROY") + .put(marshaller.encode(key)) + .put(groupname); + return execute(cmd); + } + + Uni _xgroupSetId(K key, String groupname, String from) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(from, "from"); + + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("SETID") + .put(marshaller.encode(key)) + .put(groupname) + .put(from); + return execute(cmd); + } + + Uni _xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args) { + nonNull(key, "key"); + notNullOrBlank(groupname, "groupname"); + notNullOrBlank(from, "from"); + nonNull(args, "args"); + + RedisCommand cmd = RedisCommand.of(Command.XGROUP) + .put("SETID") + .put(marshaller.encode(key)) + .put(groupname) + .put(from) + .putArgs(args); + return execute(cmd); + } + + Uni _xlen(K key) { + nonNull(key, "key"); + RedisCommand cmd = RedisCommand.of(Command.XLEN) + .put(marshaller.encode(key)); + return execute(cmd); + } + + Uni _xrange(K key, StreamRange range, int count) { + nonNull(key, "key"); + nonNull(range, "range"); + positive(count, "count"); + RedisCommand cmd = RedisCommand.of(Command.XRANGE) + .put(marshaller.encode(key)) + .putArgs(range) + .put("COUNT").put(count); + return execute(cmd); + } + + Uni _xrange(K key, StreamRange range) { + nonNull(key, "key"); + nonNull(range, "range"); + RedisCommand cmd = RedisCommand.of(Command.XRANGE) + .put(marshaller.encode(key)) + .putArgs(range); + return execute(cmd); + } + + Uni _xread(K key, String id) { + nonNull(key, "key"); + notNullOrBlank(id, "id"); + RedisCommand cmd = RedisCommand.of(Command.XREAD) + .put("STREAMS") + .put(marshaller.encode(key)) + .put(id); + return execute(cmd); + } + + Uni _xread(Map lastIdsPerStream) { + nonNull(lastIdsPerStream, "lastIdsPerStream"); + RedisCommand cmd = RedisCommand.of(Command.XREAD) + .put("STREAMS"); + + writeStreamsAndIds(lastIdsPerStream, cmd); + + return execute(cmd); + } + + Uni _xread(K key, String id, XReadArgs args) { + nonNull(key, "key"); + notNullOrBlank(id, "id"); + nonNull(args, "args"); + RedisCommand cmd = RedisCommand.of(Command.XREAD) + .putArgs(args) + .put("STREAMS") + .put(marshaller.encode(key)) + .put(id); + return execute(cmd); + } + + Uni _xread(Map lastIdsPerStream, XReadArgs args) { + nonNull(args, "args"); + RedisCommand cmd = RedisCommand.of(Command.XREAD) + .putArgs(args) + .put("STREAMS"); + + writeStreamsAndIds(lastIdsPerStream, cmd); + + return execute(cmd); + } + + private void writeStreamsAndIds(Map lastIdsPerStream, RedisCommand cmd) { + List ids = new ArrayList<>(); + for (Map.Entry entry : lastIdsPerStream.entrySet()) { + cmd.put(marshaller.encode(entry.getKey())); + ids.add(entry.getValue()); + } + cmd.putAll(ids); + } + + Uni _xreadgroup(String group, String consumer, K key, String id) { + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + nonNull(key, "key"); + notNullOrBlank(id, "id"); + + RedisCommand cmd = RedisCommand.of(Command.XREADGROUP) + .put("GROUP") + .put(group) + .put(consumer) + .put("STREAMS") + .put(marshaller.encode(key)) + .put(id); + return execute(cmd); + } + + Uni _xreadgroup(String group, String consumer, Map lastIdsPerStream) { + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + nonNull(lastIdsPerStream, "lastIdsPerStream"); + + RedisCommand cmd = RedisCommand.of(Command.XREADGROUP) + .put("GROUP") + .put(group) + .put(consumer) + .put("STREAMS"); + + writeStreamsAndIds(lastIdsPerStream, cmd); + + return execute(cmd); + + } + + Uni _xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args) { + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + nonNull(key, "key"); + notNullOrBlank(id, "id"); + nonNull(args, "args"); + + RedisCommand cmd = RedisCommand.of(Command.XREADGROUP) + .put("GROUP") + .put(group) + .put(consumer) + .putArgs(args) + .put("STREAMS") + .put(marshaller.encode(key)) + .put(id); + return execute(cmd); + } + + Uni _xreadgroup(String group, String consumer, Map lastIdsPerStream, XReadGroupArgs args) { + notNullOrBlank(group, "group"); + notNullOrBlank(consumer, "consumer"); + nonNull(lastIdsPerStream, "lastIdsPerStream"); + nonNull(args, "args"); + + RedisCommand cmd = RedisCommand.of(Command.XREADGROUP) + .put("GROUP") + .put(group) + .put(consumer) + .putArgs(args) + .put("STREAMS"); + + writeStreamsAndIds(lastIdsPerStream, cmd); + + return execute(cmd); + } + + Uni _xrevrange(K key, StreamRange range, int count) { + nonNull(key, "key"); + nonNull(range, "range"); + positive(count, "count"); + + RedisCommand cmd = RedisCommand.of(Command.XREVRANGE) + .put(marshaller.encode(key)) + .putArgs(range) + .put("COUNT") + .put(count); + return execute(cmd); + } + + Uni _xrevrange(K key, StreamRange range) { + nonNull(key, "key"); + nonNull(range, "range"); + RedisCommand cmd = RedisCommand.of(Command.XREVRANGE) + .put(marshaller.encode(key)) + .putArgs(range); + return execute(cmd); + } + + Uni _xtrim(K key, XTrimArgs args) { + nonNull(key, "key"); + nonNull(args, "args"); + + RedisCommand cmd = RedisCommand.of(Command.XTRIM) + .put(marshaller.encode(key)) + .putArgs(args); + + return execute(cmd); + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingRedisDataSourceImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingRedisDataSourceImpl.java index 36c4c420016d3..3a54d936bd2c2 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingRedisDataSourceImpl.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingRedisDataSourceImpl.java @@ -25,6 +25,7 @@ import io.quarkus.redis.datasource.search.SearchCommands; import io.quarkus.redis.datasource.set.SetCommands; import io.quarkus.redis.datasource.sortedset.SortedSetCommands; +import io.quarkus.redis.datasource.stream.StreamCommands; import io.quarkus.redis.datasource.string.StringCommands; import io.quarkus.redis.datasource.timeseries.TimeSeriesCommands; import io.quarkus.redis.datasource.topk.TopKCommands; @@ -230,6 +231,11 @@ public BitMapCommands bitmap(Class redisKeyType) { return new BlockingBitmapCommandsImpl<>(this, reactive.bitmap(redisKeyType), timeout); } + @Override + public StreamCommands stream(Class redisKeyType, Class fieldType, Class valueType) { + return new BlockingStreamCommandsImpl<>(this, reactive.stream(redisKeyType, fieldType, valueType), timeout); + } + @Override public JsonCommands json(Class redisKeyType) { return new BlockingJsonCommandsImpl<>(this, reactive.json(redisKeyType), timeout); diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingStreamCommandsImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingStreamCommandsImpl.java new file mode 100644 index 0000000000000..da8f62c8048cb --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingStreamCommandsImpl.java @@ -0,0 +1,188 @@ +package io.quarkus.redis.runtime.datasource; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.RedisDataSource; +import io.quarkus.redis.datasource.stream.ClaimedMessages; +import io.quarkus.redis.datasource.stream.ReactiveStreamCommands; +import io.quarkus.redis.datasource.stream.StreamCommands; +import io.quarkus.redis.datasource.stream.StreamMessage; +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; + +public class BlockingStreamCommandsImpl extends AbstractRedisCommandGroup implements StreamCommands { + + private final ReactiveStreamCommands reactive; + + public BlockingStreamCommandsImpl(RedisDataSource ds, ReactiveStreamCommands reactive, Duration timeout) { + super(ds, timeout); + this.reactive = reactive; + } + + @Override + public int xack(K key, String group, String... ids) { + return reactive.xack(key, group, ids).await().atMost(timeout); + } + + @Override + public String xadd(K key, Map payload) { + return reactive.xadd(key, payload).await().atMost(timeout); + } + + @Override + public String xadd(K key, XAddArgs args, Map payload) { + return reactive.xadd(key, args, payload).await().atMost(timeout); + } + + @Override + public ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count) { + return reactive.xautoclaim(key, group, consumer, minIdleTime, start, count).await().atMost(timeout); + } + + @Override + public ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start) { + return reactive.xautoclaim(key, group, consumer, minIdleTime, start).await().atMost(timeout); + } + + @Override + public ClaimedMessages xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count, boolean justId) { + return reactive.xautoclaim(key, group, consumer, minIdleTime, start, count, justId).await().atMost(timeout); + } + + @Override + public List> xclaim(K key, String group, String consumer, Duration minIdleTime, String... id) { + return reactive.xclaim(key, group, consumer, minIdleTime, id).await().atMost(timeout); + } + + @Override + public List> xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, + String... id) { + return reactive.xclaim(key, group, consumer, minIdleTime, args, id).await().atMost(timeout); + } + + @Override + public int xdel(K key, String... id) { + return reactive.xdel(key, id).await().atMost(timeout); + } + + @Override + public void xgroupCreate(K key, String groupname, String from) { + reactive.xgroupCreate(key, groupname, from).await().atMost(timeout); + } + + @Override + public void xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args) { + reactive.xgroupCreate(key, groupname, from, args).await().atMost(timeout); + } + + @Override + public boolean xgroupCreateConsumer(K key, String groupname, String consumername) { + return reactive.xgroupCreateConsumer(key, groupname, consumername).await().atMost(timeout); + } + + @Override + public long xgroupDelConsumer(K key, String groupname, String consumername) { + return reactive.xgroupDelConsumer(key, groupname, consumername).await().atMost(timeout); + } + + @Override + public boolean xgroupDestroy(K key, String groupname) { + return reactive.xgroupDestroy(key, groupname).await().atMost(timeout); + } + + @Override + public void xgroupSetId(K key, String groupname, String from) { + reactive.xgroupSetId(key, groupname, from).await().atMost(timeout); + } + + @Override + public void xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args) { + reactive.xgroupSetId(key, groupname, from, args).await().atMost(timeout); + } + + @Override + public long xlen(K key) { + return reactive.xlen(key).await().atMost(timeout); + } + + @Override + public List> xrange(K key, StreamRange range, int count) { + return reactive.xrange(key, range, count).await().atMost(timeout); + } + + @Override + public List> xrange(K key, StreamRange range) { + return reactive.xrange(key, range).await().atMost(timeout); + } + + @Override + public List> xread(K key, String id) { + return reactive.xread(key, id).await().atMost(timeout); + } + + @Override + public List> xread(Map lastIdsPerStream) { + return reactive.xread(lastIdsPerStream).await().atMost(timeout); + } + + @Override + public List> xread(K key, String id, XReadArgs args) { + return reactive.xread(key, id, args).await().atMost(timeout); + } + + @Override + public List> xread(Map lastIdsPerStream, XReadArgs args) { + return reactive.xread(lastIdsPerStream, args).await().atMost(timeout); + } + + @Override + public List> xreadgroup(String group, String consumer, K key, String id) { + return reactive.xreadgroup(group, consumer, key, id).await().atMost(timeout); + } + + @Override + public List> xreadgroup(String group, String consumer, Map lastIdsPerStream) { + return reactive.xreadgroup(group, consumer, lastIdsPerStream).await().atMost(timeout); + } + + @Override + public List> xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args) { + return reactive.xreadgroup(group, consumer, key, id, args).await().atMost(timeout); + } + + @Override + public List> xreadgroup(String group, String consumer, Map lastIdsPerStream, + XReadGroupArgs args) { + return reactive.xreadgroup(group, consumer, lastIdsPerStream, args).await().atMost(timeout); + } + + @Override + public List> xrevrange(K key, StreamRange range, int count) { + return reactive.xrevrange(key, range, count).await().atMost(timeout); + } + + @Override + public List> xrevrange(K key, StreamRange range) { + return reactive.xrevrange(key, range).await().atMost(timeout); + } + + @Override + public long xtrim(K key, String threshold) { + return reactive.xtrim(key, threshold).await().atMost(timeout); + } + + @Override + public long xtrim(K key, XTrimArgs args) { + return reactive.xtrim(key, args).await().atMost(timeout); + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalRedisDataSourceImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalRedisDataSourceImpl.java index 82ef33163733b..81e3f8b6d27e2 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalRedisDataSourceImpl.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalRedisDataSourceImpl.java @@ -17,6 +17,7 @@ import io.quarkus.redis.datasource.search.TransactionalSearchCommands; import io.quarkus.redis.datasource.set.TransactionalSetCommands; import io.quarkus.redis.datasource.sortedset.TransactionalSortedSetCommands; +import io.quarkus.redis.datasource.stream.TransactionalStreamCommands; import io.quarkus.redis.datasource.string.TransactionalStringCommands; import io.quarkus.redis.datasource.timeseries.TransactionalTimeSeriesCommands; import io.quarkus.redis.datasource.topk.TransactionalTopKCommands; @@ -98,6 +99,13 @@ public TransactionalBitMapCommands bitmap(Class redisKeyType) { return new BlockingTransactionalBitMapCommandsImpl<>(this, reactive.bitmap(redisKeyType), timeout); } + @Override + public TransactionalStreamCommands stream(Class redisKeyType, Class typeOfField, + Class typeOfValue) { + return new BlockingTransactionalStreamCommandsImpl<>(this, reactive.stream(redisKeyType, typeOfField, typeOfValue), + timeout); + } + @Override public TransactionalJsonCommands json(Class redisKeyType) { return new BlockingTransactionalJsonCommandsImpl<>(this, reactive.json(redisKeyType), timeout); diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalStreamCommandsImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalStreamCommandsImpl.java new file mode 100644 index 0000000000000..2c4854c930447 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/BlockingTransactionalStreamCommandsImpl.java @@ -0,0 +1,184 @@ +package io.quarkus.redis.runtime.datasource; + +import java.time.Duration; +import java.util.Map; + +import io.quarkus.redis.datasource.stream.ReactiveTransactionalStreamCommands; +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.TransactionalStreamCommands; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; +import io.quarkus.redis.datasource.transactions.TransactionalRedisDataSource; + +public class BlockingTransactionalStreamCommandsImpl extends AbstractTransactionalRedisCommandGroup + implements TransactionalStreamCommands { + + private final ReactiveTransactionalStreamCommands reactive; + + public BlockingTransactionalStreamCommandsImpl(TransactionalRedisDataSource ds, + ReactiveTransactionalStreamCommands reactive, Duration timeout) { + super(ds, timeout); + this.reactive = reactive; + } + + @Override + public void xack(K key, String group, String... ids) { + reactive.xack(key, group, ids).await().atMost(timeout); + } + + @Override + public void xadd(K key, Map payload) { + reactive.xadd(key, payload).await().atMost(timeout); + } + + @Override + public void xadd(K key, XAddArgs args, Map payload) { + reactive.xadd(key, args, payload).await().atMost(timeout); + } + + @Override + public void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start) { + reactive.xautoclaim(key, group, consumer, minIdleTime, start).await().atMost(timeout); + } + + @Override + public void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count) { + reactive.xautoclaim(key, group, consumer, minIdleTime, start, count).await().atMost(timeout); + } + + @Override + public void xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, + boolean justId) { + reactive.xautoclaim(key, group, consumer, minIdleTime, start, count, justId).await().atMost(timeout); + } + + @Override + public void xclaim(K key, String group, String consumer, Duration minIdleTime, String... id) { + reactive.xclaim(key, group, consumer, minIdleTime, id).await().atMost(timeout); + } + + @Override + public void xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, String... id) { + reactive.xclaim(key, group, consumer, minIdleTime, args, id).await().atMost(timeout); + } + + @Override + public void xdel(K key, String... id) { + reactive.xdel(key, id).await().atMost(timeout); + } + + @Override + public void xgroupCreate(K key, String groupname, String from) { + reactive.xgroupCreate(key, groupname, from).await().atMost(timeout); + } + + @Override + public void xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args) { + reactive.xgroupCreate(key, groupname, from, args).await().atMost(timeout); + } + + @Override + public void xgroupCreateConsumer(K key, String groupname, String consumername) { + reactive.xgroupCreateConsumer(key, groupname, consumername).await().atMost(timeout); + } + + @Override + public void xgroupDelConsumer(K key, String groupname, String consumername) { + reactive.xgroupDelConsumer(key, groupname, consumername).await().atMost(timeout); + } + + @Override + public void xgroupDestroy(K key, String groupname) { + reactive.xgroupDestroy(key, groupname).await().atMost(timeout); + } + + @Override + public void xgroupSetId(K key, String groupname, String from) { + reactive.xgroupSetId(key, groupname, from).await().atMost(timeout); + } + + @Override + public void xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args) { + reactive.xgroupSetId(key, groupname, from, args).await().atMost(timeout); + } + + @Override + public void xlen(K key) { + reactive.xlen(key).await().atMost(timeout); + } + + @Override + public void xrange(K key, StreamRange range, int count) { + reactive.xrange(key, range, count).await().atMost(timeout); + } + + @Override + public void xrange(K key, StreamRange range) { + reactive.xrange(key, range).await().atMost(timeout); + } + + @Override + public void xread(K key, String id) { + reactive.xread(key, id).await().atMost(timeout); + } + + @Override + public void xread(Map lastIdsPerStream) { + reactive.xread(lastIdsPerStream).await().atMost(timeout); + } + + @Override + public void xread(K key, String id, XReadArgs args) { + reactive.xread(key, id, args).await().atMost(timeout); + } + + @Override + public void xread(Map lastIdsPerStream, XReadArgs args) { + reactive.xread(lastIdsPerStream, args).await().atMost(timeout); + } + + @Override + public void xreadgroup(String group, String consumer, K key, String id) { + reactive.xreadgroup(group, consumer, key, id).await().atMost(timeout); + } + + @Override + public void xreadgroup(String group, String consumer, Map lastIdsPerStream) { + reactive.xreadgroup(group, consumer, lastIdsPerStream).await().atMost(timeout); + } + + @Override + public void xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args) { + reactive.xreadgroup(group, consumer, key, id, args).await().atMost(timeout); + } + + @Override + public void xreadgroup(String group, String consumer, Map lastIdsPerStream, XReadGroupArgs args) { + reactive.xreadgroup(group, consumer, lastIdsPerStream, args).await().atMost(timeout); + } + + @Override + public void xrevrange(K key, StreamRange range, int count) { + reactive.xrevrange(key, range, count).await().atMost(timeout); + } + + @Override + public void xrevrange(K key, StreamRange range) { + reactive.xrevrange(key, range).await().atMost(timeout); + } + + @Override + public void xtrim(K key, String threshold) { + reactive.xtrim(key, threshold).await().atMost(timeout); + } + + @Override + public void xtrim(K key, XTrimArgs args) { + reactive.xtrim(key, args).await().atMost(timeout); + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveRedisDataSourceImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveRedisDataSourceImpl.java index 72f3a9e6a97ac..4819b478e4900 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveRedisDataSourceImpl.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveRedisDataSourceImpl.java @@ -26,6 +26,7 @@ import io.quarkus.redis.datasource.search.ReactiveSearchCommands; import io.quarkus.redis.datasource.set.ReactiveSetCommands; import io.quarkus.redis.datasource.sortedset.ReactiveSortedSetCommands; +import io.quarkus.redis.datasource.stream.ReactiveStreamCommands; import io.quarkus.redis.datasource.string.ReactiveStringCommands; import io.quarkus.redis.datasource.timeseries.ReactiveTimeSeriesCommands; import io.quarkus.redis.datasource.topk.ReactiveTopKCommands; @@ -286,6 +287,11 @@ public ReactiveBitMapCommands bitmap(Class redisKeyType) { return new ReactiveBitMapCommandsImpl<>(this, redisKeyType); } + @Override + public ReactiveStreamCommands stream(Class redisKeyType, Class fieldType, Class valueType) { + return new ReactiveStreamCommandsImpl<>(this, redisKeyType, fieldType, valueType); + } + @Override public ReactiveJsonCommands json(Class redisKeyType) { return new ReactiveJsonCommandsImpl<>(this, redisKeyType); diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveStreamCommandsImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveStreamCommandsImpl.java new file mode 100644 index 0000000000000..ef190787cad42 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveStreamCommandsImpl.java @@ -0,0 +1,330 @@ +package io.quarkus.redis.runtime.datasource; + +import java.time.Duration; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import io.quarkus.redis.datasource.ReactiveRedisCommands; +import io.quarkus.redis.datasource.ReactiveRedisDataSource; +import io.quarkus.redis.datasource.stream.ClaimedMessages; +import io.quarkus.redis.datasource.stream.ReactiveStreamCommands; +import io.quarkus.redis.datasource.stream.StreamMessage; +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; +import io.smallrye.mutiny.Uni; +import io.vertx.mutiny.redis.client.Response; +import io.vertx.redis.client.ResponseType; + +public class ReactiveStreamCommandsImpl extends AbstractStreamCommands + implements ReactiveStreamCommands, ReactiveRedisCommands { + + private final ReactiveRedisDataSource reactive; + private final Class typeOfValue; + private final Class typeOfField; + private final Class typeOfKey; + + public ReactiveStreamCommandsImpl(ReactiveRedisDataSourceImpl redis, Class k, Class f, Class v) { + super(redis, k, f, v); + this.typeOfKey = k; + this.typeOfField = f; + this.typeOfValue = v; + this.reactive = redis; + } + + @Override + public ReactiveRedisDataSource getDataSource() { + return reactive; + } + + @Override + public Uni xack(K key, String group, String... ids) { + return super._xack(key, group, ids) + .map(Response::toInteger); + } + + @Override + public Uni xadd(K key, Map payload) { + return super._xadd(key, payload) + .map(ReactiveStreamCommandsImpl::getIdOrNull); + } + + protected static String getIdOrNull(Response r) { + if (r == null) { + return null; + } + return r.toString(); + } + + @Override + public Uni xadd(K key, XAddArgs args, Map payload) { + return super._xadd(key, args, payload) + .map(ReactiveStreamCommandsImpl::getIdOrNull); + } + + @Override + public Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count) { + return super._xautoclaim(key, group, consumer, minIdleTime, start, count) + .map(r -> decodeAsClaimedMessages(key, r)); + } + + protected ClaimedMessages decodeAsClaimedMessages(K key, Response r) { + if (r == null) { + return new ClaimedMessages<>(null, List.of()); + } + var id = r.get(0).toString(); // This is the stream id for the next auto-claim call + var l = r.get(1); + var list = decodeListOfMessages(key, l); + // ignore the third item - competing messages + + return new ClaimedMessages<>(id, list); + } + + protected List> decodeMessageListPrefixedByKey(Response r) { + // Each response is a _list_ of two elements where the first element is the key. + // The second element is the list of messages + if (r == null) { + return List.of(); + } + var actualKey = marshaller.decode(typeOfKey, r.get(0)); + var listOfMessages = r.get(1); + List> list = new ArrayList<>(); + for (int i = 0; i < listOfMessages.size(); i++) { + list.add(decodeMessageWithStreamId(actualKey, listOfMessages.get(i))); + } + return list; + } + + private StreamMessage decodeMessageWithStreamId(K key, Response response) { + + // the response is an array with two elements: + // 1. the stream id + // 2. the payload (another array) + + if (response == null) { + return null; + } + + if (response.type() == ResponseType.BULK) { + // JUSTID was used + return new StreamMessage<>(key, response.toString(), Map.of()); + } else { + var streamId = response.get(0).toString(); + var payload = response.get(1); + var content = decodeMessagePayload(payload); + return new StreamMessage<>(key, streamId, content); + } + } + + Map decodeMessagePayload(Response response) { + Map map = new HashMap<>(); + F current = null; + for (Response nested : response) { + if (current == null) { + current = marshaller.decode(typeOfField, nested); + } else { + map.put(current, marshaller.decode(typeOfValue, nested)); + current = null; + } + } + return map; + } + + @Override + public Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start) { + return super._xautoclaim(key, group, consumer, minIdleTime, start) + .map(r -> decodeAsClaimedMessages(key, r)); + } + + @Override + public Uni> xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, + int count, boolean justId) { + return super._xautoclaim(key, group, consumer, minIdleTime, start, count, justId) + .map(r -> decodeAsClaimedMessages(key, r)); + } + + @Override + public Uni>> xclaim(K key, String group, String consumer, Duration minIdleTime, String... id) { + return super._xclaim(key, group, consumer, minIdleTime, id) + .map(r -> decodeListOfMessages(key, r)); + } + + @Override + public Uni>> xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, + String... id) { + return super._xclaim(key, group, consumer, minIdleTime, args, id) + .map(r -> decodeListOfMessages(key, r)); + } + + @Override + public Uni xdel(K key, String... id) { + return super._xdel(key, id) + .map(Response::toInteger); + } + + @Override + public Uni xgroupCreate(K key, String groupname, String from) { + return super._xgroupCreate(key, groupname, from) + .replaceWithVoid(); + } + + @Override + public Uni xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args) { + return super._xgroupCreate(key, groupname, from, args) + .replaceWithVoid(); + } + + @Override + public Uni xgroupCreateConsumer(K key, String groupname, String consumername) { + return super._xgroupCreateConsumer(key, groupname, consumername) + .map(Response::toBoolean); + } + + @Override + public Uni xgroupDelConsumer(K key, String groupname, String consumername) { + return super._xgroupDelConsumer(key, groupname, consumername) + .map(Response::toLong); + } + + @Override + public Uni xgroupDestroy(K key, String groupname) { + return super._xgroupDestroy(key, groupname) + .map(Response::toBoolean); + } + + @Override + public Uni xgroupSetId(K key, String groupname, String from) { + return super._xgroupSetId(key, groupname, from) + .replaceWithVoid(); + } + + @Override + public Uni xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args) { + return super._xgroupSetId(key, groupname, from, args) + .replaceWithVoid(); + } + + @Override + public Uni xlen(K key) { + return super._xlen(key) + .map(Response::toLong); + } + + @Override + public Uni>> xrange(K key, StreamRange range, int count) { + return super._xrange(key, range, count) + .map(r -> decodeListOfMessages(key, r)); + } + + @Override + public Uni>> xrange(K key, StreamRange range) { + return super._xrange(key, range) + .map(r -> decodeListOfMessages(key, r)); + } + + protected List> decodeListOfMessages(K key, Response r) { + if (r == null) { + return List.of(); + } + // The response is a list. + // Each element is a list of two element (stream id, payload) + List> list = new ArrayList<>(); + for (Response response : r) { + list.add(decodeMessageWithStreamId(key, response)); + } + return list; + } + + @Override + public Uni>> xread(K key, String id) { + return xread(Map.of(key, id)); + } + + protected List> decodeAsListOfMessagesFromXRead(Response r) { + if (r == null) { + return List.of(); + } + // The response is a _map_ key -> list, in this case + List> list = new ArrayList<>(); + for (Response response : r) { + // Each response is a _list_ where the first element is the key. + // The other elements are a list of array (stream id, message) + list.addAll(decodeMessageListPrefixedByKey(response)); + } + return list; + } + + @Override + public Uni>> xread(Map lastIdsPerStream) { + return super._xread(lastIdsPerStream) + .map(this::decodeAsListOfMessagesFromXRead); + } + + @Override + public Uni>> xread(K key, String id, XReadArgs args) { + return xread(Map.of(key, id), args); + } + + @Override + public Uni>> xread(Map lastIdsPerStream, XReadArgs args) { + return super._xread(lastIdsPerStream, args) + .map(this::decodeAsListOfMessagesFromXRead); + } + + @Override + public Uni>> xreadgroup(String group, String consumer, K key, String id) { + return xreadgroup(group, consumer, Map.of(key, id)); + + } + + @Override + public Uni>> xreadgroup(String group, String consumer, Map lastIdsPerStream) { + return super._xreadgroup(group, consumer, lastIdsPerStream) + .map(this::decodeAsListOfMessagesFromXRead); + } + + @Override + public Uni>> xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args) { + return xreadgroup(group, consumer, Map.of(key, id), args); + + } + + @Override + public Uni>> xreadgroup(String group, String consumer, Map lastIdsPerStream, + XReadGroupArgs args) { + return super._xreadgroup(group, consumer, lastIdsPerStream, args) + .map(this::decodeAsListOfMessagesFromXRead); + } + + @Override + public Uni>> xrevrange(K key, StreamRange range, int count) { + return super._xrevrange(key, range, count) + .map(r -> decodeListOfMessages(key, r)); + } + + @Override + public Uni>> xrevrange(K key, StreamRange range) { + return super._xrevrange(key, range) + .map(r -> decodeListOfMessages(key, r)); + } + + @Override + public Uni xtrim(K key, String threshold) { + return super._xtrim(key, new XTrimArgs().minid(threshold)) + .map(Response::toLong); + } + + @Override + public Uni xtrim(K key, XTrimArgs args) { + return super._xtrim(key, args) + .map(Response::toLong); + } +} diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalRedisDataSourceImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalRedisDataSourceImpl.java index 6e5185976b93c..df630d203eb35 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalRedisDataSourceImpl.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalRedisDataSourceImpl.java @@ -20,6 +20,7 @@ import io.quarkus.redis.datasource.search.ReactiveTransactionalSearchCommands; import io.quarkus.redis.datasource.set.ReactiveTransactionalSetCommands; import io.quarkus.redis.datasource.sortedset.ReactiveTransactionalSortedSetCommands; +import io.quarkus.redis.datasource.stream.ReactiveTransactionalStreamCommands; import io.quarkus.redis.datasource.string.ReactiveTransactionalStringCommands; import io.quarkus.redis.datasource.timeseries.ReactiveTransactionalTimeSeriesCommands; import io.quarkus.redis.datasource.topk.ReactiveTransactionalTopKCommands; @@ -106,6 +107,13 @@ public ReactiveTransactionalBitMapCommands bitmap(Class redisKeyType) (ReactiveBitMapCommandsImpl) this.reactive.bitmap(redisKeyType), tx); } + @Override + public ReactiveTransactionalStreamCommands stream(Class redisKeyType, Class typeOfField, + Class typeOfValue) { + return new ReactiveTransactionalStreamCommandsImpl<>(this, + (ReactiveStreamCommandsImpl) this.reactive.stream(redisKeyType, typeOfField, typeOfValue), tx); + } + @Override public ReactiveTransactionalJsonCommands json(Class redisKeyType) { return new ReactiveTransactionalJsonCommandsImpl<>(this, diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalStreamCommandsImpl.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalStreamCommandsImpl.java new file mode 100644 index 0000000000000..06d36b7ac1af2 --- /dev/null +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/datasource/ReactiveTransactionalStreamCommandsImpl.java @@ -0,0 +1,222 @@ +package io.quarkus.redis.runtime.datasource; + +import java.time.Duration; +import java.util.Map; + +import io.quarkus.redis.datasource.stream.ReactiveTransactionalStreamCommands; +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; +import io.quarkus.redis.datasource.transactions.ReactiveTransactionalRedisDataSource; +import io.smallrye.mutiny.Uni; +import io.vertx.mutiny.redis.client.Response; + +public class ReactiveTransactionalStreamCommandsImpl extends AbstractTransactionalCommands + implements ReactiveTransactionalStreamCommands { + + private final ReactiveStreamCommandsImpl reactive; + + public ReactiveTransactionalStreamCommandsImpl(ReactiveTransactionalRedisDataSource ds, + ReactiveStreamCommandsImpl reactive, TransactionHolder tx) { + super(ds, tx); + this.reactive = reactive; + } + + @Override + public Uni xack(K key, String group, String... ids) { + this.tx.enqueue(Response::toInteger); + return this.reactive._xack(key, group, ids).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xadd(K key, Map payload) { + this.tx.enqueue(Response::toString); + return this.reactive._xadd(key, payload).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xadd(K key, XAddArgs args, Map payload) { + this.tx.enqueue(Response::toString); + return this.reactive._xadd(key, args, payload).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start) { + this.tx.enqueue(r -> reactive.decodeAsClaimedMessages(key, r)); + return this.reactive._xautoclaim(key, group, consumer, minIdleTime, start).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count) { + this.tx.enqueue(r -> reactive.decodeAsClaimedMessages(key, r)); + return this.reactive._xautoclaim(key, group, consumer, minIdleTime, start, count).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xautoclaim(K key, String group, String consumer, Duration minIdleTime, String start, int count, + boolean justId) { + this.tx.enqueue(r -> reactive.decodeAsClaimedMessages(key, r)); + return this.reactive._xautoclaim(key, group, consumer, minIdleTime, start, count, justId).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xclaim(K key, String group, String consumer, Duration minIdleTime, String... id) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xclaim(key, group, consumer, minIdleTime, id).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xclaim(K key, String group, String consumer, Duration minIdleTime, XClaimArgs args, String... id) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xclaim(key, group, consumer, minIdleTime, args, id).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xdel(K key, String... id) { + this.tx.enqueue(Response::toInteger); + return this.reactive._xdel(key, id).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupCreate(K key, String groupname, String from) { + this.tx.enqueue(r -> null); + return this.reactive._xgroupCreate(key, groupname, from).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupCreate(K key, String groupname, String from, XGroupCreateArgs args) { + this.tx.enqueue(r -> null); + return this.reactive._xgroupCreate(key, groupname, from, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupCreateConsumer(K key, String groupname, String consumername) { + this.tx.enqueue(Response::toBoolean); + return this.reactive._xgroupCreateConsumer(key, groupname, consumername).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xgroupDelConsumer(K key, String groupname, String consumername) { + this.tx.enqueue(Response::toLong); + return this.reactive._xgroupDelConsumer(key, groupname, consumername).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupDestroy(K key, String groupname) { + this.tx.enqueue(Response::toBoolean); + return this.reactive._xgroupDestroy(key, groupname).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupSetId(K key, String groupname, String from) { + this.tx.enqueue(r -> null); + return this.reactive._xgroupSetId(key, groupname, from).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xgroupSetId(K key, String groupname, String from, XGroupSetIdArgs args) { + this.tx.enqueue(r -> null); + return this.reactive._xgroupSetId(key, groupname, from, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xlen(K key) { + this.tx.enqueue(Response::toLong); + return this.reactive._xlen(key).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xrange(K key, StreamRange range, int count) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xrange(key, range, count).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xrange(K key, StreamRange range) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xrange(key, range).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xread(K key, String id) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xread(key, id).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xread(Map lastIdsPerStream) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xread(lastIdsPerStream).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xread(K key, String id, XReadArgs args) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xread(key, id, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xread(Map lastIdsPerStream, XReadArgs args) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xread(lastIdsPerStream, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xreadgroup(String group, String consumer, K key, String id) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xreadgroup(group, consumer, key, id).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xreadgroup(String group, String consumer, Map lastIdsPerStream) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xreadgroup(group, consumer, lastIdsPerStream).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xreadgroup(String group, String consumer, K key, String id, XReadGroupArgs args) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xreadgroup(group, consumer, key, id, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xreadgroup(String group, String consumer, Map lastIdsPerStream, XReadGroupArgs args) { + this.tx.enqueue(r -> reactive.decodeAsListOfMessagesFromXRead(r)); + return this.reactive._xreadgroup(group, consumer, lastIdsPerStream, args).invoke(this::queuedOrDiscard) + .replaceWithVoid(); + } + + @Override + public Uni xrevrange(K key, StreamRange range, int count) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xrevrange(key, range, count).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xrevrange(K key, StreamRange range) { + this.tx.enqueue(r -> reactive.decodeListOfMessages(key, r)); + return this.reactive._xrevrange(key, range).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xtrim(K key, String threshold) { + this.tx.enqueue(Response::toLong); + return this.reactive._xtrim(key, new XTrimArgs().minid(threshold)).invoke(this::queuedOrDiscard).replaceWithVoid(); + } + + @Override + public Uni xtrim(K key, XTrimArgs args) { + this.tx.enqueue(Response::toLong); + return this.reactive._xtrim(key, args).invoke(this::queuedOrDiscard).replaceWithVoid(); + } +} diff --git a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/StreamCommandsTest.java b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/StreamCommandsTest.java new file mode 100644 index 0000000000000..d1b2c5ac2ba5e --- /dev/null +++ b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/StreamCommandsTest.java @@ -0,0 +1,628 @@ +package io.quarkus.redis.datasource; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.assertj.core.api.Assertions.entry; +import static org.awaitility.Awaitility.await; + +import java.time.Duration; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import io.quarkus.redis.datasource.stream.StreamCommands; +import io.quarkus.redis.datasource.stream.StreamMessage; +import io.quarkus.redis.datasource.stream.StreamRange; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.stream.XClaimArgs; +import io.quarkus.redis.datasource.stream.XGroupCreateArgs; +import io.quarkus.redis.datasource.stream.XGroupSetIdArgs; +import io.quarkus.redis.datasource.stream.XReadArgs; +import io.quarkus.redis.datasource.stream.XReadGroupArgs; +import io.quarkus.redis.datasource.stream.XTrimArgs; +import io.quarkus.redis.runtime.datasource.BlockingRedisDataSourceImpl; + +@RequiresCommand("xadd") +public class StreamCommandsTest extends DatasourceTestBase { + + private RedisDataSource ds; + + private StreamCommands stream; + + @BeforeEach + void initialize() { + ds = new BlockingRedisDataSourceImpl(vertx, redis, api, Duration.ofSeconds(1)); + stream = ds.stream(Integer.class); + } + + @AfterEach + void clear() { + ds.flushall(); + } + + @Test + void getDataSource() { + assertThat(ds).isEqualTo(stream.getDataSource()); + } + + @Test + void xreadTest() { + stream.xadd("my-stream", Map.of("duration", 1532, "event-id", 5, "user-id", 77788)); + stream.xadd("my-stream", Map.of("duration", 1533, "event-id", 6, "user-id", 77788)); + stream.xadd("my-stream", Map.of("duration", 1534, "event-id", 7, "user-id", 77788)); + + List> messages = stream.xread("my-stream", "0-0"); + assertThat(messages).hasSize(3) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo("my-stream"); + assertThat(m.id()).isNotEmpty().contains("-"); + assertThat(m.payload()).contains(entry("user-id", 77788)).containsKey("event-id").containsKey("duration"); + }); + } + + @Test + void xAdd() { + assertThat(stream.xadd("mystream", Map.of("sensor-id", 1234, "temperature", 19))) + .isNotBlank().contains("-"); + + long now = System.currentTimeMillis(); + assertThat(stream.xadd("mystream", new XAddArgs().id(now + 1000 + "-0"), + Map.of("sensor-id", 1234, "temperature", 19))).isEqualTo(now + 1000 + "-0"); + + for (int i = 0; i < 10; i++) { + assertThat(stream.xadd("my-second-stream", new XAddArgs().maxlen(5L), + Map.of("sensor-id", 1234, "temperature", 19))).isNotBlank(); + } + assertThat(stream.xlen("my-second-stream")).isEqualTo(5); + + for (int i = 0; i < 10; i++) { + assertThat(stream.xadd("my-third-stream", new XAddArgs().minid("12345-0").nearlyExactTrimming() + .limit(3).id("12346-" + i), + Map.of("sensor-id", 1234, "temperature", 19))).isNotBlank(); + } + assertThat(stream.xlen("my-third-stream")).isEqualTo(10); + assertThat(stream.xadd("another", new XAddArgs().nomkstream(), Map.of("foo", 12))).isNull(); + } + + @Test + void xLen() { + assertThat(stream.xlen("missing")).isEqualTo(0); + assertThat(stream.xadd("mystream", Map.of("sensor-id", 1234, "temperature", 19))) + .isNotBlank().contains("-"); + assertThat(stream.xlen("mystream")).isEqualTo(1); + } + + @Test + void xRangeAndxRevRange() { + List ids = new ArrayList<>(); + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 3; i++) { + ids.add(stream.xadd(key, payload)); + } + assertThat(stream.xlen(key)).isEqualTo(3); + + assertThat(stream.xrange(key, StreamRange.of("-", "+"))) + .hasSize(3) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xrange(key, StreamRange.of(ids.get(1), ids.get(2)))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xrange(key, StreamRange.of("-", "+"), 2)) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xrevrange(key, StreamRange.of("+", "-"))) + .hasSize(3) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xrevrange(key, StreamRange.of(ids.get(2), ids.get(1)))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xrevrange(key, StreamRange.of("+", "-"), 2)) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.id()).isNotBlank(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + } + + @Test + void xReadWithAndWithoutCount() { + List ids1 = new ArrayList<>(); + List ids2 = new ArrayList<>(); + String key2 = key + "2"; + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 3; i++) { + ids1.add(stream.xadd(key, payload)); + ids2.add(stream.xadd(key2, payload)); + } + assertThat(stream.xlen(key)).isEqualTo(3); + assertThat(stream.xlen(key2)).isEqualTo(3); + + assertThat(stream.xread(key, "0", new XReadArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(ids1).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xread(key2, "0")) + .hasSize(3) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key2); + assertThat(ids2).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + } + + @Test + void xReadMultipleStreams() { + List ids = new ArrayList<>(); + String key2 = key + "2"; + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 3; i++) { + ids.add(stream.xadd(key, payload)); + ids.add(stream.xadd(key2, payload)); + } + assertThat(stream.xlen(key)).isEqualTo(3); + assertThat(stream.xlen(key2)).isEqualTo(3); + + assertThat(stream.xread(Map.of(key2, "0", key, "0"))) + .hasSize(6) + .allSatisfy(m -> { + assertThat(m.key().equals(key) || m.key().equals(key2)).isTrue(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xread(Map.of(key2, "0", key, "0"), new XReadArgs().count(2))) + .hasSize(4) // the count is per stream + .allSatisfy(m -> { + assertThat(m.key().equals(key) || m.key().equals(key2)).isTrue(); + assertThat(ids).contains(m.id()); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + } + + @Test + void xReadBlocking() throws InterruptedException { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + + CountDownLatch latch = new CountDownLatch(1); + new Thread(() -> { + assertThat(stream.xread(key, "$", new XReadArgs().block(Duration.ofSeconds(10)))) + .isNotEmpty() + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + latch.countDown(); + }).start(); + + await() + .pollDelay(10, TimeUnit.MILLISECONDS) + .until(() -> { + stream.xadd(key, payload); + return latch.getCount() == 0; + }); + + } + + @Test + void xReadBlockingMultipleStreams() { + String key2 = key + "2"; + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + + CountDownLatch latch = new CountDownLatch(1); + new Thread(() -> { + assertThat(stream.xread(Map.of(key, "$", key2, "$"), new XReadArgs().block(Duration.ofSeconds(10)))) + .isNotEmpty() + .allSatisfy(m -> { + assertThat(m.key().equals(key) || m.key().equals(key2)).isTrue(); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + latch.countDown(); + }).start(); + + await() + .pollDelay(10, TimeUnit.MILLISECONDS) + .until(() -> { + stream.xadd(key2, payload); + stream.xadd(key, payload); + return latch.getCount() == 0; + }); + } + + @Test + void consumerGroupTests() { + String g1 = "my-group"; + stream.xgroupCreate(key, g1, "$", new XGroupCreateArgs().mkstream()); + String g2 = "my-group-2"; + stream.xgroupCreate(key, g2, "$"); + String g3 = "my-group-3"; + String key2 = key + "2"; + stream.xgroupCreate(key, g3, "$"); + stream.xgroupCreate(key2, g3, "$", new XGroupCreateArgs().mkstream()); + + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 5; i++) { + stream.xadd(key, payload); + stream.xadd(key2, payload); + } + + assertThat(stream.xreadgroup(g1, "c1", key, ">", new XReadGroupArgs().count(1))) + .hasSize(1) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + + assertThat(stream.xreadgroup(g1, "c2", key, ">")) + .hasSize(4) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + assertThat(stream.xack(m.key(), g1, m.id())).isEqualTo(1); + }); + + assertThat(stream.xreadgroup(g2, "c2", key, ">")) + .hasSize(5) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + assertThat(stream.xack(m.key(), g2, m.id())).isEqualTo(1); + }); + + assertThat(stream.xreadgroup(g2, "c2", key, ">")) + .hasSize(0); + + assertThat(stream.xreadgroup(g3, "c1", Map.of(key, ">", key2, ">"), new XReadGroupArgs().count(1))) + .hasSize(2); // 1 per stream + assertThat(stream.xreadgroup(g3, "c1", Map.of(key, ">", key2, ">"), + new XReadGroupArgs().block(Duration.ofSeconds(1)).noack())) + .hasSize(8); + assertThat(stream.xreadgroup(g3, "c1", Map.of(key, ">", key2, ">"))) + .hasSize(0); + } + + @Test + void consumerGroupTestsBlocking() { + String g1 = "my-group"; + stream.xgroupCreate(key, g1, "$", new XGroupCreateArgs().mkstream()); + String g3 = "my-group-3"; + String key2 = key + "2"; + stream.xgroupCreate(key, g3, "$"); + stream.xgroupCreate(key2, g3, "$", new XGroupCreateArgs().mkstream()); + + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + + CountDownLatch latch = new CountDownLatch(1); + new Thread(() -> { + assertThat(stream.xreadgroup(g1, "c1", key, ">", new XReadGroupArgs().block(Duration.ofSeconds(10)).count(1))) + .isNotEmpty() + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + }); + latch.countDown(); + }).start(); + + stream.xadd(key, payload); + + await() + .pollDelay(10, TimeUnit.MILLISECONDS) + .until(() -> { + stream.xadd(key, payload); + return latch.getCount() == 0; + }); + CountDownLatch latch2 = new CountDownLatch(1); + + new Thread(() -> { + assertThat(stream.xreadgroup(g3, "c1", Map.of(key, ">", key2, ">"), + new XReadGroupArgs().block(Duration.ofSeconds(10)))) + .isNotEmpty(); + latch2.countDown(); + }).start(); + + stream.xadd(key2, payload); + + await() + .pollDelay(10, TimeUnit.MILLISECONDS) + .until(() -> { + stream.xadd(key2, payload); + return latch.getCount() == 0; + }); + } + + @Test + void xClaim() throws InterruptedException { + String g1 = "my-group"; + stream.xgroupCreate(key, g1, "$", new XGroupCreateArgs().mkstream()); + + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 5; i++) { + stream.xadd(key, payload); + } + + List pending = new ArrayList<>(); + assertThat(stream.xreadgroup(g1, "c1", key, ">", new XReadGroupArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + // Do not ack + pending.add(m.id()); + }); + + List read = new ArrayList<>(); + assertThat(stream.xreadgroup(g1, "c2", key, ">", new XReadGroupArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + read.add(m.id()); + }); + + assertThat(stream.xack(key, g1, read.toArray(new String[0]))).isEqualTo(2); + + // Make sure that the message are pending for a bit of time before claiming the ownership + Thread.sleep(5); + + assertThat(stream.xclaim(key, g1, "c2", Duration.ofMillis(1), pending.toArray(new String[0]))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + stream.xack(key, g1, m.id()); + }); + + assertThat(stream.xreadgroup(g1, "c1", key, ">")).hasSize(1); + assertThat(stream.xreadgroup(g1, "c2", key, ">")).hasSize(0); + } + + @Test + void xClaimWithArgs() throws InterruptedException { + String g1 = "my-group"; + stream.xgroupCreate(key, g1, "$", new XGroupCreateArgs().mkstream()); + + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 5; i++) { + stream.xadd(key, payload); + } + + List pending = new ArrayList<>(); + assertThat(stream.xreadgroup(g1, "c1", key, ">", new XReadGroupArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + // Do not ack + pending.add(m.id()); + }); + + List read = new ArrayList<>(); + assertThat(stream.xreadgroup(g1, "c2", key, ">", new XReadGroupArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + read.add(m.id()); + }); + + assertThat(stream.xack(key, g1, read.toArray(new String[0]))).isEqualTo(2); + + // Make sure that the message are pending for a bit of time before claiming the ownership + Thread.sleep(5); + + assertThat(stream.xclaim(key, g1, "c2", Duration.ofMillis(1), new XClaimArgs() + .force().retryCount(5).idle(Duration.ofMillis(1)).justId(), pending.toArray(new String[0]))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).isEmpty(); // Justid + stream.xack(key, g1, m.id()); + }); + + assertThat(stream.xreadgroup(g1, "c1", key, ">")).hasSize(1); + assertThat(stream.xreadgroup(g1, "c2", key, ">")).hasSize(0); + } + + @Test + void xAutoClaim() throws InterruptedException { + String g1 = "my-group"; + stream.xgroupCreate(key, g1, "$", new XGroupCreateArgs().mkstream()); + + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 10; i++) { + stream.xadd(key, payload); + } + + assertThat(stream.xreadgroup(g1, "c1", key, ">", new XReadGroupArgs().count(4))) + .hasSize(4) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + // Do not ack + }); + + List read = new ArrayList<>(); + assertThat(stream.xreadgroup(g1, "c2", key, ">", new XReadGroupArgs().count(2))) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + read.add(m.id()); + }); + + assertThat(stream.xack(key, g1, read.toArray(new String[0]))).isEqualTo(2); + + // Make sure that the message are pending for a bit of time before claiming the ownership + Thread.sleep(5); + + var claimed = stream.xautoclaim(key, g1, "c2", Duration.ofMillis(1), "0", 1); + assertThat(claimed.getMessages()) + .hasSize(1) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + stream.xack(key, g1, m.id()); + }); + + claimed = stream.xautoclaim(key, g1, "c2", Duration.ofMillis(1), "0", 2, true); + assertThat(claimed.getMessages()) + .hasSize(2) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).isEmpty(); + stream.xack(key, g1, m.id()); + }); + + claimed = stream.xautoclaim(key, g1, "c2", Duration.ofMillis(1), claimed.getId()); + assertThat(claimed.getMessages()) + .hasSize(1) + .allSatisfy(m -> { + assertThat(m.key()).isEqualTo(key); + assertThat(m.payload()).containsExactlyInAnyOrderEntriesOf(payload); + stream.xack(key, g1, m.id()); + }); + } + + @Test + void xTrim() { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 100; i++) { + stream.xadd(key, payload); + } + + var l = stream.xtrim(key, new XTrimArgs().maxlen(50)); + + assertThat(l).isEqualTo(50); + assertThat(stream.xlen(key)).isEqualTo(50); + + var list = stream.xrange(key, StreamRange.of("-", "+")); + var id = list.get(10).id(); + l = stream.xtrim(key, id); + + assertThat(l).isEqualTo(10); + assertThat(stream.xlen(key)).isEqualTo(40); + + id = list.get(20).id(); + l = stream.xtrim(key, new XTrimArgs().minid(id)); + + assertThat(l).isEqualTo(10); + assertThat(stream.xlen(key)).isEqualTo(30); + } + + @Test + void xDel() { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 100; i++) { + stream.xadd(key, payload); + } + + var list = stream.xrange(key, StreamRange.of("-", "+")); + + assertThat(stream.xdel(key, list.get(0).id(), list.get(3).id(), "12345-01")).isEqualTo(2); + assertThat(stream.xlen(key)).isEqualTo(98); + } + + @Test + void xGroupCreateAndDeleteConsumer() { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + for (int i = 0; i < 100; i++) { + stream.xadd(key, payload); + } + + stream.xgroupCreate(key, "g1", "0"); + assertThat(stream.xgroupCreateConsumer(key, "g1", "c1")).isTrue(); + assertThat(stream.xgroupCreateConsumer(key, "g1", "c2")).isTrue(); + assertThat(stream.xgroupCreateConsumer(key, "g1", "c1")).isFalse(); + + assertThatThrownBy(() -> stream.xgroupCreateConsumer(key, "missing", "c3")) + .hasMessageContaining("missing"); + + assertThat(stream.xgroupDelConsumer(key, "g1", "c1")).isEqualTo(0); + + assertThat(stream.xreadgroup("g1", "c2", key, ">", new XReadGroupArgs().count(10))).hasSize(10); + + assertThat(stream.xgroupDelConsumer(key, "g1", "c2")).isEqualTo(10); + + assertThat(stream.xgroupDestroy(key, "g1")).isTrue(); + + } + + @Test + void xGroupSetId() { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + List ids = new ArrayList<>(); + for (int i = 0; i < 100; i++) { + ids.add(stream.xadd(key, payload)); + } + + stream.xgroupCreate(key, "g1", "0"); + + assertThat(stream.xreadgroup("g1", "c2", key, ">", new XReadGroupArgs().count(10))).hasSize(10); + + stream.xgroupSetId(key, "g1", ids.get(50)); + + assertThat(stream.xreadgroup("g1", "c2", key, ">")).hasSize(49); + + } + + @Test + void xGroupSetIdWithArgs() { + Map payload = Map.of("sensor-id", 1234, "temperature", 19); + List ids = new ArrayList<>(); + for (int i = 0; i < 100; i++) { + ids.add(stream.xadd(key, payload)); + } + + stream.xgroupCreate(key, "g1", "0"); + + assertThat(stream.xreadgroup("g1", "c2", key, ">", new XReadGroupArgs().count(10))).hasSize(10); + + stream.xgroupSetId(key, "g1", ids.get(50), new XGroupSetIdArgs().entriesRead(1234)); + + assertThat(stream.xreadgroup("g1", "c2", key, ">")).hasSize(49); + + } + +} diff --git a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/TransactionalStreamCommandsTest.java b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/TransactionalStreamCommandsTest.java new file mode 100644 index 0000000000000..d02ad9187a699 --- /dev/null +++ b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/TransactionalStreamCommandsTest.java @@ -0,0 +1,85 @@ +package io.quarkus.redis.datasource; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.time.Duration; +import java.util.List; +import java.util.Map; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import io.quarkus.redis.datasource.stream.StreamMessage; +import io.quarkus.redis.datasource.stream.TransactionalStreamCommands; +import io.quarkus.redis.datasource.stream.XAddArgs; +import io.quarkus.redis.datasource.transactions.TransactionResult; +import io.quarkus.redis.runtime.datasource.BlockingRedisDataSourceImpl; +import io.quarkus.redis.runtime.datasource.ReactiveRedisDataSourceImpl; + +@SuppressWarnings("unchecked") +@RequiresRedis6OrHigher +public class TransactionalStreamCommandsTest extends DatasourceTestBase { + + private RedisDataSource blocking; + private ReactiveRedisDataSource reactive; + + public static final Map payload = Map.of("message", "hello"); + + @BeforeEach + void initialize() { + blocking = new BlockingRedisDataSourceImpl(vertx, redis, api, Duration.ofSeconds(60)); + reactive = new ReactiveRedisDataSourceImpl(vertx, redis, api); + } + + @AfterEach + public void clear() { + blocking.flushall(); + } + + @Test + public void streamBlocking() { + TransactionResult result = blocking.withTransaction(tx -> { + TransactionalStreamCommands stream = tx.stream(String.class); + assertThat(stream.getDataSource()).isEqualTo(tx); + + stream.xadd(key, payload); + stream.xadd(key, new XAddArgs().nomkstream(), payload); + + stream.xread(key, "0"); // 3 -> 2 messages + stream.xgroupCreate(key, "g1", "0"); + stream.xreadgroup("g1", "c1", key, ">"); + + }); + assertThat(result.size()).isEqualTo(5); + assertThat(result.discarded()).isFalse(); + assertThat((String) result.get(0)).isNotBlank(); + assertThat((String) result.get(1)).isNotBlank(); + + assertThat((List>) result.get(2)).hasSize(2); + assertThat((List>) result.get(4)).hasSize(2); + } + + @Test + public void streamReactive() { + TransactionResult result = reactive.withTransaction(tx -> { + var stream = tx.stream(String.class); + assertThat(stream.getDataSource()).isEqualTo(tx); + + return stream.xadd(key, payload) + .chain((x) -> stream.xadd(key, new XAddArgs().nomkstream(), payload)) + .chain(x -> stream.xread(key, "0")) + .chain(x -> stream.xgroupCreate(key, "g1", "0")) + .chain(x -> stream.xreadgroup("g1", "c1", key, ">")); + + }).await().indefinitely(); + assertThat(result.size()).isEqualTo(5); + assertThat(result.discarded()).isFalse(); + assertThat((String) result.get(0)).isNotBlank(); + assertThat((String) result.get(1)).isNotBlank(); + + assertThat((List>) result.get(2)).hasSize(2); + assertThat((List>) result.get(4)).hasSize(2); + } + +} diff --git a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/generator/RedisApiGenerator.java b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/generator/RedisApiGenerator.java index 8e25972cf9154..b093157d4712c 100644 --- a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/generator/RedisApiGenerator.java +++ b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/generator/RedisApiGenerator.java @@ -39,7 +39,7 @@ import io.quarkus.redis.datasource.RedisCommands; import io.quarkus.redis.datasource.RedisDataSource; import io.quarkus.redis.datasource.TransactionalRedisCommands; -import io.quarkus.redis.datasource.timeseries.ReactiveTimeSeriesCommands; +import io.quarkus.redis.datasource.stream.ReactiveStreamCommands; import io.quarkus.redis.datasource.transactions.ReactiveTransactionalRedisDataSource; import io.quarkus.redis.datasource.transactions.TransactionalRedisDataSource; import io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup; @@ -63,8 +63,8 @@ public class RedisApiGenerator { public static void main(String[] args) throws FileNotFoundException { // PARAMETERS - String reactiveApi = ReactiveTimeSeriesCommands.class.getName(); - String prefix = "ts"; + String reactiveApi = ReactiveStreamCommands.class.getName(); + String prefix = "x"; // --------- File out = new File("extensions/redis-client/runtime/target/generation"); From c4c01507e627503c344fb8686fae2ef30ef7bb3c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:32:45 +0000 Subject: [PATCH 090/250] Bump com.gradle.enterprise from 3.12.2 to 3.12.3 in /devtools/gradle Bumps com.gradle.enterprise from 3.12.2 to 3.12.3. --- updated-dependencies: - dependency-name: com.gradle.enterprise dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- devtools/gradle/settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/gradle/settings.gradle b/devtools/gradle/settings.gradle index 14af5c77b0031..8bc9fdafbc6e7 100644 --- a/devtools/gradle/settings.gradle +++ b/devtools/gradle/settings.gradle @@ -1,5 +1,5 @@ plugins { - id "com.gradle.enterprise" version "3.12.2" + id "com.gradle.enterprise" version "3.12.3" } gradleEnterprise { From 3b047001eb9057e656c3c22178c27e1f3eef13af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:42:07 +0000 Subject: [PATCH 091/250] Bump jackson-bom from 2.14.1 to 2.14.2 Bumps [jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.14.1 to 2.14.2. - [Release notes](https://github.com/FasterXML/jackson-bom/releases) - [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.14.1...jackson-bom-2.14.2) --- updated-dependencies: - dependency-name: com.fasterxml.jackson:jackson-bom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- independent-projects/bootstrap/pom.xml | 2 +- independent-projects/extension-maven-plugin/pom.xml | 2 +- independent-projects/resteasy-reactive/pom.xml | 2 +- independent-projects/tools/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 70f1417d9ab82..d1482755cd12a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -86,7 +86,7 @@ 22.3.0 ${graal-sdk.version} 1.6.0.Final - 2.14.1 + 2.14.2 1.0.0.Final 3.12.0 1.15 diff --git a/independent-projects/bootstrap/pom.xml b/independent-projects/bootstrap/pom.xml index 8cabd4668cf6e..b16f12e073273 100644 --- a/independent-projects/bootstrap/pom.xml +++ b/independent-projects/bootstrap/pom.xml @@ -51,7 +51,7 @@ 3.5.3 4.4.16 1.0.0.Final - 2.14.1 + 2.14.2 1.3.5 2.0.2 1.0 diff --git a/independent-projects/extension-maven-plugin/pom.xml b/independent-projects/extension-maven-plugin/pom.xml index a0c627092f940..d54a66351ebe5 100644 --- a/independent-projects/extension-maven-plugin/pom.xml +++ b/independent-projects/extension-maven-plugin/pom.xml @@ -35,7 +35,7 @@ 11 3.0.0-M8 1.6.8 - 2.14.1 + 2.14.2 5.9.2 diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index bcf309d3b0057..e5e8bb906c3f8 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -61,7 +61,7 @@ 4.5.1 1.0.0.Final 2.0.0.Final - 2.14.1 + 2.14.2 1.3.0 2.0.2 1.0.11 diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 9421f4bcf1f10..77392ebfc3862 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -49,7 +49,7 @@ 3.24.2 - 2.14.1 + 2.14.2 2.0.2 5.9.2 1.22 From 7b14c36a9410b70f3cf4d7b7db30b62e1d8a23c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 15:46:21 +0000 Subject: [PATCH 092/250] Bump picocli.version from 4.7.0 to 4.7.1 Bumps `picocli.version` from 4.7.0 to 4.7.1. Updates `picocli` from 4.7.0 to 4.7.1 - [Release notes](https://github.com/remkop/picocli/releases) - [Changelog](https://github.com/remkop/picocli/blob/main/RELEASE-NOTES.md) - [Commits](https://github.com/remkop/picocli/compare/v4.7.0...v4.7.1) Updates `picocli-codegen` from 4.7.0 to 4.7.1 - [Release notes](https://github.com/remkop/picocli/releases) - [Changelog](https://github.com/remkop/picocli/blob/main/RELEASE-NOTES.md) - [Commits](https://github.com/remkop/picocli/compare/v4.7.0...v4.7.1) --- updated-dependencies: - dependency-name: info.picocli:picocli dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: info.picocli:picocli-codegen dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 70f1417d9ab82..b7ed69d18a2cb 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -186,7 +186,7 @@ 0.23.0 1.42.3 2.1 - 4.7.0 + 4.7.1 1.0.4 1.22 1.10.0 From d2df25d24b571827839eadde73146941313c8e6f Mon Sep 17 00:00:00 2001 From: Giovanni Barbaro Date: Tue, 10 Jan 2023 14:13:16 +0100 Subject: [PATCH 093/250] Improves documentation on SecurityIdentityAugmentor with Hibernate example --- .../main/asciidoc/security-customization.adoc | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/docs/src/main/asciidoc/security-customization.adoc b/docs/src/main/asciidoc/security-customization.adoc index 053ac4e3e6847..2c3fc782a2717 100644 --- a/docs/src/main/asciidoc/security-customization.adoc +++ b/docs/src/main/asciidoc/security-customization.adoc @@ -241,15 +241,18 @@ The solution is to activate the request context, the following example shows how import io.quarkus.security.identity.AuthenticationRequestContext; import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.security.identity.SecurityIdentityAugmentor; -import io.quarkus.security.runtime.QuarkusSecurityIdentity; import io.smallrye.mutiny.Uni; import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import java.util.function.Supplier; +import javax.enterprise.inject.Instance; +import javax.inject.Inject; @ApplicationScoped public class RolesAugmentor implements SecurityIdentityAugmentor { + + @Inject + Instance identitySupplierInstance; + @Override public Uni augment(SecurityIdentity identity, AuthenticationRequestContext context) { if(identity.isAnonymous()) { @@ -257,11 +260,30 @@ public class RolesAugmentor implements SecurityIdentityAugmentor { } // Hibernate ORM is blocking - return context.runBlocking(build(identity)); + SecurityIdentitySupplier identitySupplier = identitySupplierInstance.get(); + identitySupplier.setIdentity(identity); + return context.runBlocking(identitySupplier); } +} +---- - @ActivateRequestContext // Will activate the request context - Supplier build(SecurityIdentity identity) { +[source,java] +---- +import io.quarkus.security.identity.SecurityIdentity; +import io.quarkus.security.runtime.QuarkusSecurityIdentity; + +import javax.enterprise.context.Dependent; +import javax.enterprise.context.control.ActivateRequestContext; +import java.util.function.Supplier; + +@Dependent +class SecurityIdentitySupplier implements Supplier { + + private SecurityIdentity identity; + + @Override + @ActivateRequestContext + public SecurityIdentity get() { QuarkusSecurityIdentity.Builder builder = QuarkusSecurityIdentity.builder(identity); String user = identity.getPrincipal().getName(); @@ -269,7 +291,11 @@ public class RolesAugmentor implements SecurityIdentityAugmentor { .filter(role -> user.equals(role.user)) .forEach(role -> builder.addRole(role.role)); - return builder::build; + return builder.build(); + } + + public void setIdentity(SecurityIdentity identity) { + this.identity = identity; } } ---- From c4c40bee92ed6301e4841e832c55ceb896b0a39b Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Sun, 29 Jan 2023 17:10:14 +0000 Subject: [PATCH 094/250] Set SameSite Strict only on OIDC session cookie --- .../main/java/io/quarkus/oidc/OidcTenantConfig.java | 4 ++-- .../oidc/runtime/CodeAuthenticationMechanism.java | 11 +++++++++-- .../java/io/quarkus/it/keycloak/CodeFlowTest.java | 13 ++++++------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java index e25c963ca59bd..ebe214e2d7ea3 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java @@ -603,7 +603,7 @@ public static enum Source { public static class Authentication { /** - * SameSite attribute values for the session, state and post logout cookies. + * SameSite attribute values for the session cookie. */ public enum CookieSameSite { STRICT, @@ -767,7 +767,7 @@ public enum ResponseMode { public Optional cookieDomain = Optional.empty(); /** - * SameSite attribute for the session, state and post logout cookies. + * SameSite attribute for the session cookie. */ @ConfigItem(defaultValue = "strict") public CookieSameSite cookieSameSite = CookieSameSite.STRICT; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/CodeAuthenticationMechanism.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/CodeAuthenticationMechanism.java index 4dd98f1943255..fdf6a4fb4df6a 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/CodeAuthenticationMechanism.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/CodeAuthenticationMechanism.java @@ -799,7 +799,7 @@ public Uni apply(Void t) { public Void apply(String cookieValue) { String sessionCookie = createCookie(context, configContext.oidcConfig, getSessionCookieName(configContext.oidcConfig), - cookieValue, sessionMaxAge).getValue(); + cookieValue, sessionMaxAge, true).getValue(); if (sessionCookie.length() >= MAX_COOKIE_VALUE_LENGTH) { LOG.warnf( "Session cookie length for the tenant %s is equal or greater than %d bytes." @@ -914,6 +914,11 @@ private String generatePostLogoutState(RoutingContext context, TenantConfigConte static ServerCookie createCookie(RoutingContext context, OidcTenantConfig oidcConfig, String name, String value, long maxAge) { + return createCookie(context, oidcConfig, name, value, maxAge, false); + } + + static ServerCookie createCookie(RoutingContext context, OidcTenantConfig oidcConfig, + String name, String value, long maxAge, boolean sessionCookie) { ServerCookie cookie = new CookieImpl(name, value); cookie.setHttpOnly(true); cookie.setSecure(oidcConfig.authentication.cookieForceSecure || context.request().isSSL()); @@ -924,7 +929,9 @@ static ServerCookie createCookie(RoutingContext context, OidcTenantConfig oidcCo if (auth.cookieDomain.isPresent()) { cookie.setDomain(auth.getCookieDomain().get()); } - cookie.setSameSite(CookieSameSite.valueOf(auth.cookieSameSite.name())); + if (sessionCookie) { + cookie.setSameSite(CookieSameSite.valueOf(auth.cookieSameSite.name())); + } context.response().addCookie(cookie); return cookie; } diff --git a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java index e35ee29a41bc9..67f549bef42b0 100644 --- a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java +++ b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java @@ -55,9 +55,9 @@ public void testCodeFlowNoConsent() throws IOException { .loadWebResponse(new WebRequest(URI.create("http://localhost:8081/index.html").toURL())); verifyLocationHeader(webClient, webResponse.getResponseHeaderValue("location"), null, "web-app", false); - String stateCookieString = webResponse.getResponseHeaderValue("Set-Cookie"); - assertTrue(stateCookieString.startsWith("q_auth_Default_test=")); - assertTrue(stateCookieString.contains("SameSite=Strict")); + Cookie stateCookie = getStateCookie(webClient, null); + assertNotNull(stateCookie); + assertNull(stateCookie.getSameSite()); webClient.getCookieManager().clearCookies(); @@ -95,6 +95,7 @@ public void testCodeFlowNoConsent() throws IOException { Cookie sessionCookie = getSessionCookie(webClient, null); assertNotNull(sessionCookie); + assertEquals("strict", sessionCookie.getSameSite()); webClient.getCookieManager().clearCookies(); } @@ -176,10 +177,6 @@ public void testCodeFlowForceHttpsRedirectUriAndPkce() throws Exception { verifyLocationHeader(webClient, keycloakUrl, "tenant-https_test", "xforwarded%2Ftenant-https", true); - String stateCookieString = webResponse.getResponseHeaderValue("Set-Cookie"); - assertTrue(stateCookieString.startsWith("q_auth_tenant-https_test=")); - assertTrue(stateCookieString.contains("SameSite=Lax")); - HtmlPage page = webClient.getPage(keycloakUrl); assertEquals("Sign in to quarkus", page.getTitleText()); @@ -195,6 +192,7 @@ public void testCodeFlowForceHttpsRedirectUriAndPkce() throws Exception { String endpointLocation = webResponse.getResponseHeaderValue("location"); Cookie stateCookie = getStateCookie(webClient, "tenant-https_test"); + assertNull(stateCookie.getSameSite()); verifyCodeVerifier(stateCookie, keycloakUrl); assertTrue(endpointLocation.startsWith("https")); @@ -222,6 +220,7 @@ public void testCodeFlowForceHttpsRedirectUriAndPkce() throws Exception { assertEquals("tenant-https:reauthenticated", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "tenant-https_test"); assertNotNull(sessionCookie); + assertEquals("lax", sessionCookie.getSameSite()); webClient.getCookieManager().clearCookies(); } } From c80a3c67735dd6abaa9fa34e92ed6d26a04099d9 Mon Sep 17 00:00:00 2001 From: Robert Gonciarz Date: Fri, 9 Dec 2022 23:48:29 +0100 Subject: [PATCH 095/250] Install mock by TypeLiteral and Qualifiers --- .../java/io/quarkus/test/junit/QuarkusMock.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java index 11b2791389d75..06fa8a6951574 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java @@ -3,6 +3,7 @@ import java.lang.annotation.Annotation; import javax.enterprise.inject.spi.CDI; +import javax.enterprise.util.TypeLiteral; import org.junit.jupiter.api.TestInstance; @@ -56,4 +57,16 @@ public static void installMockForType(T mock, Class instance, Ann } MockSupport.installMock(CDI.current().select(instance, qualifiers).get(), mock); } + + /** + * Installs a mock for a CDI normal scoped bean by typeLiteral and qualifiers + * + * @param mock The mock object + * @param typeLiteral TypeLiteral representing the required type + * @param qualifiers The CDI qualifiers of the bean to mock + * @param The bean type + */ + public static void installMockForType(T mock, TypeLiteral typeLiteral, Annotation... qualifiers) { + MockSupport.installMock(CDI.current().select(typeLiteral, qualifiers).get(), mock); + } } From 84c1b5ab8531b11d0d0b4d3156b3ae31394e02e2 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 30 Jan 2023 18:08:33 +0100 Subject: [PATCH 096/250] Ban commons-io from quarkus-core-deployment Follow-up of #30542 --- core/deployment/pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/deployment/pom.xml b/core/deployment/pom.xml index 181f5b9fc2c05..27d1b159ef07c 100644 --- a/core/deployment/pom.xml +++ b/core/deployment/pom.xml @@ -174,6 +174,8 @@ com.google.code.findbugs:jsr305 com.google.guava:listenablefuture + + commons-io:commons-io From e5b97839029e8cfd4c8dbb77acc2545da815b615 Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Mon, 30 Jan 2023 19:10:59 +0100 Subject: [PATCH 097/250] Upgrade to Mutiny 1.9.0 This is a minor bugfix release for the 1.x series. --- bom/application/pom.xml | 2 +- independent-projects/qute/pom.xml | 2 +- independent-projects/resteasy-reactive/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 70f1417d9ab82..ed79fc8daf400 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -140,7 +140,7 @@ 1.8.0 1.0.3 3.5.0.Final - 1.8.0 + 1.9.0 3.3.2 1.8.0 1.1.8.4 diff --git a/independent-projects/qute/pom.xml b/independent-projects/qute/pom.xml index 4d30a955398b5..2000c354185aa 100644 --- a/independent-projects/qute/pom.xml +++ b/independent-projects/qute/pom.xml @@ -47,7 +47,7 @@ 3.5.0.Final 3.0.0-M8 1.6.8 - 1.8.0 + 1.9.0 diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index bcf309d3b0057..a40987676a9c4 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -55,7 +55,7 @@ 1.6.8 2.0.1.Final 1.1.6 - 1.8.0 + 1.9.0 1.13.2 4.3.5 4.5.1 From f29e918b7f829a5b3254c49440568310f3b1ad6d Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Mon, 30 Jan 2023 15:22:57 +0100 Subject: [PATCH 098/250] Use MapProperty instead of Map Changes the type of quarkusBuildProperties from Map to MapProperty. This allows build authors to specify values which may only become available later in the build by passed into the build using providers. Follow up to #29971 --- .../gradle/extension/QuarkusPluginExtension.java | 14 +++++++++----- .../java/io/quarkus/gradle/tasks/QuarkusBuild.java | 5 +++-- .../java/io/quarkus/gradle/tasks/QuarkusTask.java | 5 +++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/extension/QuarkusPluginExtension.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/extension/QuarkusPluginExtension.java index ee4fd9f4100fc..499ca60d7a3cc 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/extension/QuarkusPluginExtension.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/extension/QuarkusPluginExtension.java @@ -3,7 +3,6 @@ import java.io.File; import java.nio.file.Path; import java.nio.file.Paths; -import java.util.HashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Objects; @@ -19,6 +18,7 @@ import org.gradle.api.file.FileCollection; import org.gradle.api.file.RegularFile; import org.gradle.api.plugins.JavaPlugin; +import org.gradle.api.provider.MapProperty; import org.gradle.api.provider.Property; import org.gradle.api.provider.Provider; import org.gradle.api.tasks.SourceSet; @@ -39,7 +39,7 @@ public class QuarkusPluginExtension { private final Property finalName; - private Map quarkusBuildProperties; + private final MapProperty quarkusBuildProperties; private final SourceSetExtension sourceSetExtension; public QuarkusPluginExtension(Project project) { @@ -49,7 +49,7 @@ public QuarkusPluginExtension(Project project) { finalName.convention(project.provider(() -> String.format("%s-%s", project.getName(), project.getVersion()))); this.sourceSetExtension = new SourceSetExtension(); - quarkusBuildProperties = new HashMap<>(); + this.quarkusBuildProperties = project.getObjects().mapProperty(String.class, String.class); } public void beforeTest(Test task) { @@ -99,7 +99,7 @@ public void beforeTest(Test task) { public String buildNativeRunnerName(final Map taskSystemProps) { Properties properties = new Properties(taskSystemProps.size()); properties.putAll(taskSystemProps); - quarkusBuildProperties.entrySet() + quarkusBuildProperties.get().entrySet() .forEach(buildEntry -> properties.putIfAbsent(buildEntry.getKey(), buildEntry.getValue())); System.getProperties().entrySet() .forEach(propEntry -> properties.putIfAbsent(propEntry.getKey(), propEntry.getValue())); @@ -215,7 +215,7 @@ public Path appJarOrClasses() { return classesDir; } - public Map getQuarkusBuildProperties() { + public MapProperty getQuarkusBuildProperties() { return quarkusBuildProperties; } @@ -223,4 +223,8 @@ public void set(String name, @Nullable String value) { quarkusBuildProperties.put(String.format("quarkus.%s", name), value); } + public void set(String name, Property value) { + quarkusBuildProperties.put(String.format("quarkus.%s", name), value); + } + } diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java index 4d98e2e99a3d8..1b3698e4f668a 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuild.java @@ -256,8 +256,9 @@ private String getPropValueWithPrecedence(final String propName, final java.util } }); } - if (extension().getQuarkusBuildProperties().containsKey(propName)) { - return extension().getQuarkusBuildProperties().get(propName); + Map quarkusBuildProperties = extension().getQuarkusBuildProperties().get(); + if (quarkusBuildProperties.containsKey(propName)) { + return quarkusBuildProperties.get(propName); } else if (applicationProperties.contains(propName)) { return applicationProperties.getProperty(propName); } else if (getQuarkusBuildEnvProperties().containsKey(propName)) { diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java index 62a24bbdc5abc..e16c737d6009f 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java @@ -34,8 +34,9 @@ protected Properties getBuildSystemProperties(ResolvedDependency appArtifact) { realProperties.setProperty(key, (String) value); } } - if (!extension().getQuarkusBuildProperties().isEmpty()) { - extension().getQuarkusBuildProperties().entrySet().stream().filter(entry -> entry.getKey().startsWith("quarkus.")) + Map quarkusBuildProperties = extension().getQuarkusBuildProperties().get(); + if (!quarkusBuildProperties.isEmpty()) { + quarkusBuildProperties.entrySet().stream().filter(entry -> entry.getKey().startsWith("quarkus.")) .forEach(entry -> { realProperties.put(entry.getKey(), entry.getValue()); }); From 8eb01d41f02932613aa725fd78ea434d71bafe0a Mon Sep 17 00:00:00 2001 From: Falko Modler Date: Mon, 30 Jan 2023 21:43:12 +0100 Subject: [PATCH 099/250] Remove explicit mock-maker-inline configs It's the default now in Mockito 5. --- .../resources/mockito-extensions/org.mockito.plugins.MockMaker | 1 - .../resources/mockito-extensions/org.mockito.plugins.MockMaker | 1 - .../resources/mockito-extensions/org.mockito.plugins.MockMaker | 1 - .../resources/mockito-extensions/org.mockito.plugins.MockMaker | 1 - 4 files changed, 4 deletions(-) delete mode 100644 extensions/grpc/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker delete mode 100644 extensions/mongodb-client/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker delete mode 100644 integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/extensions/example-extension/deployment/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker delete mode 100644 test-framework/junit5-internal/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker diff --git a/extensions/grpc/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/extensions/grpc/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker deleted file mode 100644 index 1f0955d450f0d..0000000000000 --- a/extensions/grpc/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ /dev/null @@ -1 +0,0 @@ -mock-maker-inline diff --git a/extensions/mongodb-client/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/extensions/mongodb-client/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker deleted file mode 100644 index ca6ee9cea8ec1..0000000000000 --- a/extensions/mongodb-client/runtime/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ /dev/null @@ -1 +0,0 @@ -mock-maker-inline \ No newline at end of file diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/extensions/example-extension/deployment/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/extensions/example-extension/deployment/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker deleted file mode 100644 index ca6ee9cea8ec1..0000000000000 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/extensions/example-extension/deployment/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ /dev/null @@ -1 +0,0 @@ -mock-maker-inline \ No newline at end of file diff --git a/test-framework/junit5-internal/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/test-framework/junit5-internal/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker deleted file mode 100644 index ca6ee9cea8ec1..0000000000000 --- a/test-framework/junit5-internal/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker +++ /dev/null @@ -1 +0,0 @@ -mock-maker-inline \ No newline at end of file From d4d0af671d5ed11672bc96380a7b352a0805a581 Mon Sep 17 00:00:00 2001 From: Erin Schnabel Date: Tue, 24 Jan 2023 13:09:29 -0500 Subject: [PATCH 100/250] Move Vale configuration file to a standard location --- docs/{.vale/vale.ini => .vale.ini} | 2 +- .../asciidoc/doc-contribute-docs-howto.adoc | 11 ++++++---- .../quarkus/docs/vale/LocalValeLintTest.java | 3 +++ .../quarkus/docs/vale/ValeAsciidocLint.java | 21 ++++++++++++++++--- 4 files changed, 29 insertions(+), 8 deletions(-) rename docs/{.vale/vale.ini => .vale.ini} (98%) diff --git a/docs/.vale/vale.ini b/docs/.vale.ini similarity index 98% rename from docs/.vale/vale.ini rename to docs/.vale.ini index 2eecd470b7c65..78b9fd6b3e9ad 100644 --- a/docs/.vale/vale.ini +++ b/docs/.vale.ini @@ -2,7 +2,7 @@ # For more information, see: https://docs.errata.ai/vale/config. # The relative path to the folder containing linting rules (styles). -StylesPath = ./styles +StylesPath = ./.vale/styles # Minimum alert level # ------------------- diff --git a/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc b/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc index 8da3b71c68159..363274ea3fb46 100644 --- a/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc +++ b/docs/src/main/asciidoc/doc-contribute-docs-howto.adoc @@ -133,7 +133,7 @@ Our builds use https://vale.sh[Vale] to check grammar, style, and word usage in [NOTE] ==== -* The Quarkus configuration for vale is `vale.ini`, which is in the `docs/.vale` directory. +* The Quarkus configuration for Vale is in `docs/.vale.ini`. * The Quarkus style rules are in YAML format in the `docs/.vale/styles` directory. ==== @@ -166,7 +166,11 @@ If you install the https://vale.sh/docs/vale-cli/installation/[Vale CLI], you mu [source,shell] ---- -vale --config=docs/.vale/vale.ini --minAlertLevel=warning docs/src/main/asciidoc +# Run from the Quarkus project root +vale --config=docs/.vale.ini --minAlertLevel=warning docs/src/main/asciidoc + +# Run from within the docs directory +vale --minAlertLevel=warning src/main/asciidoc ---- For more information, see the https://vale.sh/manual/[Vale CLI Manual]. @@ -175,11 +179,10 @@ For more information, see the https://vale.sh/manual/[Vale CLI Manual]. https://vale.sh/docs/integrations/guide/[Vale IDE integrations] require the Vale CLI to be installed. -Each has its own configuration requirements. The Visual Studio Code IDE extension, for example, requires two workspace settings: +Each IDE integration has its own configuration requirements. The Visual Studio Code IDE extension, for example, requires definition of the Vale CLI path: [source,json] ---- -"vale.valeCLI.config": "/path/to/quarkus/docs/.vale/vale.ini", "vale.valeCLI.path": "/path/to/vale" ---- diff --git a/docs/src/test/java/io/quarkus/docs/vale/LocalValeLintTest.java b/docs/src/test/java/io/quarkus/docs/vale/LocalValeLintTest.java index af4c363b9474c..d256658fcc192 100644 --- a/docs/src/test/java/io/quarkus/docs/vale/LocalValeLintTest.java +++ b/docs/src/test/java/io/quarkus/docs/vale/LocalValeLintTest.java @@ -24,6 +24,8 @@ public void testAsciidocFiles() throws Exception { Path valeDir = ChangedFiles.getPath("vale.dir", ".vale"); Path gitDir = ChangedFiles.getPath("git.dir", "../.git"); + Path configFile = Path.of(System.getProperty("vale.config", ".vale.ini")); + YamlMetadataGenerator metadataGenerator = new YamlMetadataGenerator() .setSrcDir(srcDir) .setTargetDir(targetDir); @@ -31,6 +33,7 @@ public void testAsciidocFiles() throws Exception { ValeAsciidocLint linter = new ValeAsciidocLint() .setValeAlertLevel(System.getProperty("valeLevel")) .setValeImageName(System.getProperty("vale.image")) + .setValeConfig(configFile) .setValeDir(valeDir) .setSrcDir(srcDir) .setTargetDir(targetDir); diff --git a/docs/src/test/java/io/quarkus/docs/vale/ValeAsciidocLint.java b/docs/src/test/java/io/quarkus/docs/vale/ValeAsciidocLint.java index 78aace5d84e25..52d95769af80e 100644 --- a/docs/src/test/java/io/quarkus/docs/vale/ValeAsciidocLint.java +++ b/docs/src/test/java/io/quarkus/docs/vale/ValeAsciidocLint.java @@ -21,6 +21,7 @@ import org.testcontainers.containers.output.OutputFrame.OutputType; import org.testcontainers.containers.startupcheck.IndefiniteWaitOneShotStartupCheckStrategy; import org.testcontainers.utility.DockerImageName; +import org.testcontainers.utility.MountableFile; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @@ -47,6 +48,7 @@ public class ValeAsciidocLint { Path valeDir; Path srcDir; Path targetDir; + Path valeConfigFile; public static void main(String[] args) throws Exception { if (args == null) { @@ -64,7 +66,10 @@ public static void main(String[] args) throws Exception { : docsDir().resolve("src/main/asciidoc")) .setTargetDir(args.length >= 3 ? Path.of(args[2]) - : docsDir().resolve("target")); + : docsDir().resolve("target")) + .setValeConfig(args.length >= 4 + ? Path.of(args[0]) + : docsDir().resolve(".vale.ini")); Map results = linter.lintFiles(); linter.resultsToYaml(results, null); @@ -85,6 +90,11 @@ public ValeAsciidocLint setValeDir(Path valeDir) { return this; } + public ValeAsciidocLint setValeConfig(Path valeConfig) { + this.valeConfigFile = valeConfig; + return this; + } + public ValeAsciidocLint setSrcDir(Path srcDir) { this.srcDir = srcDir; return this; @@ -151,10 +161,14 @@ public Map lintFiles() throws Exception { throw new IllegalStateException( String.format("Target directory (%s) does not exist. Exiting.%n", targetDir.toAbsolutePath())); } + if (!Files.exists(valeConfigFile) || !Files.isRegularFile(valeConfigFile)) { + throw new IllegalStateException( + String.format("Vale config file (%s) does not exist. Exiting.%n", valeConfigFile.toAbsolutePath())); + } DockerImageName valeImage = DockerImageName.parse(imageName); - List command = new ArrayList<>(List.of("--config=/vale/vale.ini", + List command = new ArrayList<>(List.of("--config=/.vale.ini", "--minAlertLevel=" + minAlertLevel.name(), "--output=JSON", "--no-exit")); @@ -174,8 +188,9 @@ public Map lintFiles() throws Exception { } try (GenericContainer container = new GenericContainer<>(valeImage) - .withFileSystemBind(valeDir.toString(), "/vale", BindMode.READ_ONLY) + .withFileSystemBind(valeDir.toString(), "/.vale", BindMode.READ_ONLY) .withFileSystemBind(srcDir.toString(), "/asciidoc", BindMode.READ_ONLY) + .withCopyFileToContainer(MountableFile.forHostPath(valeConfigFile), "/.vale.ini") .withStartupCheckStrategy(new IndefiniteWaitOneShotStartupCheckStrategy()) .withCommand(command.toArray(new String[0]))) { From 6d72e84cbc6d5f6d226093b0ad028ab6f76f04b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 22:18:04 +0000 Subject: [PATCH 101/250] Bump mariadb-java-client from 3.1.1 to 3.1.2 Bumps [mariadb-java-client](https://github.com/mariadb-corporation/mariadb-connector-j) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/mariadb-corporation/mariadb-connector-j/releases) - [Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/blob/master/CHANGELOG.md) - [Commits](https://github.com/mariadb-corporation/mariadb-connector-j/compare/3.1.1...3.1.2) --- updated-dependencies: - dependency-name: org.mariadb.jdbc:mariadb-java-client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index aebfe5653c28a..8ea77b84c9797 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -122,7 +122,7 @@ 2.3.2 2.1.214 42.5.1 - 3.1.1 + 3.1.2 8.0.30 11.2.3.jre11 1.6.7 From 1466fd6dd790170e80e6683885744c2f2dab427e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jan 2023 22:33:11 +0000 Subject: [PATCH 102/250] Bump font-awesome from 6.2.0 to 6.2.1 Bumps [font-awesome](https://github.com/webjars/font-awesome) from 6.2.0 to 6.2.1. - [Release notes](https://github.com/webjars/font-awesome/releases) - [Commits](https://github.com/webjars/font-awesome/compare/font-awesome-6.2.0...font-awesome-6.2.1) --- updated-dependencies: - dependency-name: org.webjars:font-awesome dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index f0d9c380bb7e1..1c5fc8a625993 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -132,7 +132,7 @@ 4.6.2 0.9.15 1.9.1 - 6.2.0 + 6.2.1 3.6.3 5.62.2 From bca49a0d8aed4e238803a4db6e1c1faf13b8b301 Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Mon, 30 Jan 2023 14:44:25 +0100 Subject: [PATCH 103/250] Avoids using "password" as default password when loading / reading key stores. Fix https://github.com/quarkusio/quarkus/issues/29573. This should be considered as a breaking change for users using "password" as password. --- .../io/quarkus/grpc/runtime/GrpcSslUtils.java | 11 ++++++---- .../grpc/runtime/config/SslServerConfig.java | 4 ++-- ...edentials-jwt-private-key-store.properties | 2 ++ .../oidc/common/runtime/OidcCommonConfig.java | 14 ++++++------- .../oidc/common/runtime/OidcCommonUtils.java | 21 ++++++++++++++++--- .../vertx/http/runtime/CertificateConfig.java | 2 +- 6 files changed, 37 insertions(+), 17 deletions(-) diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcSslUtils.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcSslUtils.java index 80d8100f94170..5c418de5588ad 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcSslUtils.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcSslUtils.java @@ -52,7 +52,6 @@ static boolean applySslOptions(GrpcServerConfiguration config, HttpServerOptions final Optional certFile = sslConfig.certificate; final Optional keyFile = sslConfig.key; final Optional keyStoreFile = sslConfig.keyStore; - final String keystorePassword = sslConfig.keyStorePassword; final Optional trustStoreFile = sslConfig.trustStore; final Optional trustStorePassword = sslConfig.trustStorePassword; @@ -77,15 +76,19 @@ static boolean applySslOptions(GrpcServerConfiguration config, HttpServerOptions switch (type) { case "pkcs12": { PfxOptions o = new PfxOptions() - .setPassword(keystorePassword) .setValue(Buffer.buffer(data)); + if (sslConfig.keyStorePassword.isPresent()) { + o.setPassword(sslConfig.keyStorePassword.get()); + } options.setPfxKeyCertOptions(o); break; } case "jks": { JksOptions o = new JksOptions() - .setPassword(keystorePassword) .setValue(Buffer.buffer(data)); + if (sslConfig.keyStorePassword.isPresent()) { + o.setPassword(sslConfig.keyStorePassword.get()); + } options.setKeyStoreOptions(o); break; } @@ -97,7 +100,7 @@ static boolean applySslOptions(GrpcServerConfiguration config, HttpServerOptions } if (trustStoreFile.isPresent()) { - if (!trustStorePassword.isPresent()) { + if (trustStorePassword.isEmpty()) { throw new IllegalArgumentException("No trust store password provided"); } String type; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/config/SslServerConfig.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/config/SslServerConfig.java index 77f47bfd2a09a..c557ecbd43c05 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/config/SslServerConfig.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/config/SslServerConfig.java @@ -44,8 +44,8 @@ public class SslServerConfig { /** * A parameter to specify the password of the key store file. If not given, the default ("password") is used. */ - @ConfigItem(defaultValue = "password") - public String keyStorePassword; + @ConfigItem + public Optional keyStorePassword; /** * An optional trust store which holds the certificate information of the certificates to trust diff --git a/extensions/oidc-client/deployment/src/test/resources/application-oidc-client-credentials-jwt-private-key-store.properties b/extensions/oidc-client/deployment/src/test/resources/application-oidc-client-credentials-jwt-private-key-store.properties index 3a1248af6b726..f4006a52316b2 100644 --- a/extensions/oidc-client/deployment/src/test/resources/application-oidc-client-credentials-jwt-private-key-store.properties +++ b/extensions/oidc-client/deployment/src/test/resources/application-oidc-client-credentials-jwt-private-key-store.properties @@ -4,4 +4,6 @@ quarkus.oidc.client-id=quarkus-app quarkus.oidc-client.auth-server-url=${quarkus.oidc.auth-server-url} quarkus.oidc-client.client-id=${quarkus.oidc.client-id} quarkus.oidc-client.credentials.jwt.key-store-file=keystore.jks +quarkus.oidc-client.credentials.jwt.key-store-password=password quarkus.oidc-client.credentials.jwt.key-id=keycloak +quarkus.oidc-client.credentials.jwt.key-password=password diff --git a/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonConfig.java b/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonConfig.java index 433dbe70c1b88..d60c4f8f95579 100644 --- a/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonConfig.java +++ b/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonConfig.java @@ -257,10 +257,10 @@ public static class Jwt { public Optional keyStoreFile = Optional.empty(); /** - * A parameter to specify the password of the key store file. If not given, the default ("password") is used. + * A parameter to specify the password of the key store file. */ - @ConfigItem(defaultValue = "password") - public String keyStorePassword; + @ConfigItem + public Optional keyStorePassword; /** * The private key id/alias @@ -271,8 +271,8 @@ public static class Jwt { /** * The private key password */ - @ConfigItem(defaultValue = "password") - public String keyPassword; + @ConfigItem + public Optional keyPassword; /** * JWT audience ('aud') claim value. @@ -456,8 +456,8 @@ public enum Verification { /** * A parameter to specify the password of the key store file. If not given, the default ("password") is used. */ - @ConfigItem(defaultValue = "password") - public String keyStorePassword; + @ConfigItem + public Optional keyStorePassword; /** * An optional parameter to select a specific key in the key store. When SNI is disabled, if the key store contains diff --git a/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonUtils.java b/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonUtils.java index 6afd8a4664209..8c66e1a5a3d8a 100644 --- a/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonUtils.java +++ b/extensions/oidc-common/runtime/src/main/java/io/quarkus/oidc/common/runtime/OidcCommonUtils.java @@ -147,12 +147,16 @@ public static void setHttpClientOptions(OidcCommonConfig oidcConfig, TlsConfig t try { byte[] keyStoreData = getFileContent(oidcConfig.tls.keyStoreFile.get()); io.vertx.core.net.KeyStoreOptions keyStoreOptions = new KeyStoreOptions() - .setPassword(oidcConfig.tls.keyStorePassword) .setAlias(oidcConfig.tls.keyStoreKeyAlias.orElse(null)) .setAliasPassword(oidcConfig.tls.keyStoreKeyPassword.orElse(null)) .setValue(io.vertx.core.buffer.Buffer.buffer(keyStoreData)) .setType(getStoreType(oidcConfig.tls.keyStoreFileType, oidcConfig.tls.keyStoreFile.get())) .setProvider(oidcConfig.tls.keyStoreProvider.orElse(null)); + + if (oidcConfig.tls.keyStorePassword.isPresent()) { + keyStoreOptions.setPassword(oidcConfig.tls.keyStorePassword.get()); + } + options.setKeyCertOptions(keyStoreOptions); } catch (IOException ex) { @@ -310,8 +314,19 @@ public static Key clientJwtKey(Credentials creds) { } else if (creds.jwt.keyStoreFile.isPresent()) { KeyStore ks = KeyStore.getInstance("JKS"); InputStream is = ResourceUtils.getResourceStream(creds.jwt.keyStoreFile.get()); - ks.load(is, creds.jwt.keyStorePassword.toCharArray()); - key = ks.getKey(creds.jwt.keyId.get(), creds.jwt.keyPassword.toCharArray()); + + if (creds.jwt.keyStorePassword.isPresent()) { + ks.load(is, creds.jwt.keyStorePassword.get().toCharArray()); + } else { + ks.load(is, null); + } + + if (creds.jwt.keyPassword.isPresent()) { + key = ks.getKey(creds.jwt.keyId.get(), creds.jwt.keyPassword.get().toCharArray()); + } else { + throw new ConfigurationException( + "When using a key store, the `quarkus.oidc-client.credentials.jwt.key-password` property must be set"); + } } } catch (Exception ex) { throw new ConfigurationException("Key can not be loaded", ex); diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CertificateConfig.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CertificateConfig.java index fa4ffb8ad5517..ede0b22e7e484 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CertificateConfig.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CertificateConfig.java @@ -96,7 +96,7 @@ public class CertificateConfig { /** * A parameter to specify the password of the key store file. If not given, and if it can not be retrieved from - * {@linkplain CredentialsProvider}, then the default ("password") is used. + * {@linkplain CredentialsProvider}. * * @see {@link #credentialsProvider} */ From 7944c06a14ef0629511e7033cd3c815f43718e5c Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 23 Jan 2023 10:42:41 +0100 Subject: [PATCH 104/250] Higher timeout for Native tests - Misc4 --- .github/native-tests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/native-tests.json b/.github/native-tests.json index a77ea33a73c1a..b05452b61fb57 100644 --- a/.github/native-tests.json +++ b/.github/native-tests.json @@ -116,7 +116,7 @@ }, { "category": "Misc4", - "timeout": 75, + "timeout": 120, "test-modules": "picocli-native, gradle, micrometer-mp-metrics, micrometer-prometheus, logging-json, jaxp, jaxb, opentelemetry, opentelemetry-jdbc-instrumentation, webjars-locator", "os-name": "ubuntu-latest" }, From cb5cca76973b39f3f573c824a15f6a74ad4569fb Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Mon, 30 Jan 2023 17:18:01 +0200 Subject: [PATCH 105/250] Add Q&A about `AnalysisError\$ParsingError` with link-at-build-time --- docs/src/main/asciidoc/native-reference.adoc | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/src/main/asciidoc/native-reference.adoc b/docs/src/main/asciidoc/native-reference.adoc index 44fd4062fd6c3..fc216a13e5a22 100644 --- a/docs/src/main/asciidoc/native-reference.adoc +++ b/docs/src/main/asciidoc/native-reference.adoc @@ -1514,6 +1514,37 @@ For example, when registering types and methods for reflection access, the analysis can’t easily see what’s behind those types or methods, so it has to do more work to complete the analysis step. +=== I get a `AnalysisError\$ParsingError` when building a native executable due to an `UnresolvedElementException`, what can I do? + +When building a native executable Quarkus requires all classes being referenced by the code, no matter if they are build-time or run-time initialized, to be present in the classpath. +This way it ensures that there will be no crashes at runtime due to potential `NoClassDefFoundError` exceptions. +To achieve this it makes use of GraalVM's `--link-at-build-time` parameter: + +[source] +---- +--link-at-build-time require types to be fully defined at image build-time. If used + without args, all classes in scope of the option are required to + be fully defined. +---- + +This, however, may result in an `AnalysisError\$ParsingError` due to an `UnresolvedElementException` at build time. +This is often caused because the application references a class from an https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html#optional-dependencies[optional dependency]. + +If you have access to the source code responsible for the reference to the missing dependency and can alter it, you should consider one of the following: + +1. Remove the reference if it's not actually necessary. +2. Move the affected code in a sub-module and make the dependency non-optional (as is the best practice). +3. Make the dependency non-optional. + +In the unfortunate case where the reference causing the issue is made by a 3rd party library, that you cannot modify, you should consider one of the following: + +1. Use a class/method substitution to remove the said reference. +2. Add the optional dependency as a non-optional dependency of your project. + +Note that although option (1) is the best choice performance wise, as it minimizes the applications footprint,it might not be trivial to implement. +To make matters worse, it's also not easy to maintain as it is tightly coupled to the 3rd party library implementation. +Option (2) is a straight forward alternative to work around the issue, but comes at the cost of including possibly never invoked code in the resulting native executable. + === I get an `OutOfMemoryError` (OOME) building native executables, what can I do? Building native executables is not only time consuming, but it also takes a fair amount of memory. From c93ba507f7418f23cb314bf9a5eaf136b34a50ed Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Tue, 31 Jan 2023 12:56:17 +0100 Subject: [PATCH 106/250] Qute ValueResolverGenerator - also use gizmo switch for fields --- .../generatedresolvers/HierarchyTest.java | 3 + .../generator/ValueResolverGenerator.java | 68 +++++++++++-------- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java index cd2eaf69664f8..a8288591c856d 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java @@ -67,6 +67,9 @@ public String getName() { @TemplateData public static class Bar extends Foo { + // getName() takes precedence + public final String name = "Manny"; + @Override public String getName() { return "bar"; diff --git a/independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java b/independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java index 3e1a4d5456b0b..fe00046e02921 100644 --- a/independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java +++ b/independent-projects/qute/generator/src/main/java/io/quarkus/qute/generator/ValueResolverGenerator.java @@ -348,11 +348,13 @@ private boolean implementResolve(ClassCreator valueResolver, String clazzName, C } } - BytecodeCreator zeroParamsBranch = resolve.ifZero(paramsCount).trueBranch(); + if (!noParamMethods.isEmpty() || !fields.isEmpty()) { + + BytecodeCreator zeroParamsBranch = resolve.ifZero(paramsCount).trueBranch(); - if (!noParamMethods.isEmpty()) { Switch.StringSwitch nameSwitch = zeroParamsBranch.stringSwitch(name); Set matchedNames = new HashSet<>(); + for (MethodKey methodKey : noParamMethods) { // No params - just invoke the method if the name matches MethodInfo method = methodKey.method; @@ -390,34 +392,42 @@ public void accept(BytecodeCreator bc) { }; nameSwitch.caseOf(matchingNames, invokeMethod); } - } - for (FieldInfo field : fields) { - String getterName = fieldToGetterFun != null ? fieldToGetterFun.apply(field) : null; - if (getterName != null && noneMethodMatches(methods, getterName)) { - LOGGER.debugf("Forced getter added: %s", field); - BytecodeCreator getterMatch = zeroParamsBranch.createScope(); - // Match the getter name - BytecodeCreator notMatched = getterMatch.ifTrue(Gizmo.equals(getterMatch, getterMatch.load(getterName), - name)).falseBranch(); - // Match the property name - notMatched.ifTrue(Gizmo.equals(notMatched, notMatched.load(field.name()), - name)).falseBranch().breakScope(getterMatch); - ResultHandle value = getterMatch.invokeVirtualMethod( - MethodDescriptor.ofMethod(clazz.name().toString(), getterName, - DescriptorUtils.typeToString(field.type())), - base); - getterMatch.returnValue(getterMatch.invokeStaticMethod(Descriptors.COMPLETED_STAGE, value)); - } else { - LOGGER.debugf("Field added: %s", field); - // Match field name - BytecodeCreator fieldMatch = zeroParamsBranch - .ifTrue(Gizmo.equals(zeroParamsBranch, resolve.load(field.name()), name)) - .trueBranch(); - ResultHandle value = fieldMatch - .readInstanceField(FieldDescriptor.of(clazzName, field.name(), field.type().name().toString()), - base); - fieldMatch.returnValue(fieldMatch.invokeStaticMethod(Descriptors.COMPLETED_STAGE, value)); + for (FieldInfo field : fields) { + String getterName = fieldToGetterFun != null ? fieldToGetterFun.apply(field) : null; + if (getterName != null && noneMethodMatches(methods, getterName) && matchedNames.add(getterName)) { + LOGGER.debugf("Forced getter added: %s", field); + List matching; + if (matchedNames.add(field.name())) { + matching = List.of(getterName, field.name()); + } else { + matching = List.of(getterName); + } + Consumer invokeMethod = new Consumer() { + @Override + public void accept(BytecodeCreator bc) { + ResultHandle value = bc.invokeVirtualMethod( + MethodDescriptor.ofMethod(clazz.name().toString(), getterName, + DescriptorUtils.typeToString(field.type())), + base); + bc.returnValue(bc.invokeStaticMethod(Descriptors.COMPLETED_STAGE, value)); + } + }; + nameSwitch.caseOf(matching, invokeMethod); + } else if (matchedNames.add(field.name())) { + LOGGER.debugf("Field added: %s", field); + Consumer invokeMethod = new Consumer() { + @Override + public void accept(BytecodeCreator bc) { + ResultHandle value = bc.readInstanceField( + FieldDescriptor.of(clazzName, field.name(), field.type().name().toString()), + base); + ResultHandle ret = bc.invokeStaticMethod(Descriptors.COMPLETED_STAGE, value); + bc.returnValue(ret); + } + }; + nameSwitch.caseOf(field.name(), invokeMethod); + } } } From 07db73723874aed7465c4063c36f19dec5e778d8 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 31 Jan 2023 13:35:10 +0100 Subject: [PATCH 107/250] Jakarta - Adjust TestNG version update TestNG has been recently moved outside of the BOM. --- jakarta/rewrite.yml | 13 +++++++++---- pom.xml | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/jakarta/rewrite.yml b/jakarta/rewrite.yml index ec7dfd509d99e..45b0025da109f 100644 --- a/jakarta/rewrite.yml +++ b/jakarta/rewrite.yml @@ -8,6 +8,15 @@ styleConfigs: indentSize: 4 --- type: specs.openrewrite.org/v1beta/recipe +name: io.quarkus.parent +displayName: Adjust versions in parent +recipeList: + # TestNG update, needed for the MicroProfile TCKs + - org.openrewrite.maven.ChangePropertyValue: + key: testng.version + newValue: '7.4.0' +--- +type: specs.openrewrite.org/v1beta/recipe name: io.quarkus.jakarta-versions displayName: Adjust Jakarta versions recipeList: @@ -627,10 +636,6 @@ recipeList: - org.openrewrite.maven.ChangePropertyValue: key: microprofile-rest-client.version newValue: '3.0' - # TestNG update, needed for the MicroProfile TCKs - - org.openrewrite.maven.ChangePropertyValue: - key: testng.version - newValue: '7.4.0' # TODO, these ones probably still need a change: # 1.0.1 # 1.0.13 diff --git a/pom.xml b/pom.xml index 7553613b390bf..38df7473994f2 100644 --- a/pom.xml +++ b/pom.xml @@ -377,6 +377,22 @@ + + + org.openrewrite.maven + rewrite-maven-plugin + 4.21.0-SNAPSHOT + + ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml + + + + + io.quarkus.parent + + + + From 9f923e17480fcd98ea16b95f621d61e62a215cd5 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 31 Jan 2023 15:23:02 +0200 Subject: [PATCH 108/250] Provide actionable warning when logging level is lower than min level Closes: #30739 --- .../runtime/logging/LoggingSetupRecorder.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/LoggingSetupRecorder.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/LoggingSetupRecorder.java index 4a956e57bba69..70c325c068037 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/LoggingSetupRecorder.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/LoggingSetupRecorder.java @@ -104,8 +104,9 @@ public ShutdownListener initializeLogging(LogConfig config, LogBuildTimeConfig b final Logger rootLogger = logContext.getLogger(""); if (config.level.intValue() < buildConfig.minLevel.intValue()) { - log.warnf("Root log level %s set below minimum logging level %s, promoting it to %s", - config.level, buildConfig.minLevel, buildConfig.minLevel); + log.warnf( + "Root log level %s set below minimum logging level %s, promoting it to %s. Set the build time configuration property 'quarkus.log.min-level' to '%s' to avoid this warning", + config.level, buildConfig.minLevel, buildConfig.minLevel, config.level); rootLogger.setLevel(buildConfig.minLevel); } else { @@ -222,9 +223,10 @@ public void accept(String categoryName, CategoryConfig config) { CategoryBuildTimeConfig::getMinLevel, categoryDefaultMinLevels, buildConfig.minLevel); if (logLevel.intValue() < minLogLevel.intValue()) { - log.warnf("Log level %s for category '%s' set below minimum logging level %s, promoting it to %s", + log.warnf( + "Log level %s for category '%s' set below minimum logging level %s, promoting it to %s. Set the build time configuration property 'quarkus.log.category.\"%s\".level' to '%s' to avoid this warning", logLevel, - categoryName, minLogLevel, minLogLevel); + categoryName, minLogLevel, minLogLevel, categoryName, logLevel); config.level = InheritableLevel.of(minLogLevel.toString()); } @@ -315,8 +317,12 @@ public static void initializeBuildTimeLogging(LogConfig config, LogBuildTimeConf categoryDefaultMinLevels, buildConfig.minLevel); if (logLevel.intValue() < minLogLevel.intValue()) { - log.warnf("Log level %s for category '%s' set below minimum logging level %s, promoting it to %s", logLevel, - entry.getKey(), minLogLevel, minLogLevel); + String category = entry.getKey(); + log.warnf("Log level %s for category '%s' set below minimum logging level %s, promoting it to %s. " + + + "Set the build time configuration property 'quarkus.log.category.\"%s\".level' to '%s' to avoid this warning", + logLevel, + category, minLogLevel, minLogLevel, category, logLevel); entry.getValue().level = InheritableLevel.of(minLogLevel.toString()); } From 8bc889410eb7aee922452321c274c5e7fcd8bf54 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 31 Jan 2023 16:02:28 +0200 Subject: [PATCH 109/250] Remove workaround for testing knative environment This can now be done because https://github.com/fabric8io/kubernetes-client/issues/4447 is included in version 6.3 of the k8s client --- .../kubernetes/deployment/KnativeDeployer.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java index 9905451f8abf9..4e9079689f8f2 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.Optional; +import io.fabric8.knative.client.DefaultKnativeClient; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.kubernetes.client.spi.KubernetesClientBuildItem; @@ -22,12 +23,13 @@ public void checkEnvironment(Optional Date: Tue, 31 Jan 2023 13:36:48 +0100 Subject: [PATCH 110/250] Jakarta - Upgrade to Narayana 6.0.0.CR1 Fixes #30475 --- extensions/narayana-jta/runtime/pom.xml | 7 +++ extensions/narayana-lra/runtime/pom.xml | 7 ++- jakarta/rewrite.yml | 68 ++----------------------- 3 files changed, 16 insertions(+), 66 deletions(-) diff --git a/extensions/narayana-jta/runtime/pom.xml b/extensions/narayana-jta/runtime/pom.xml index 46ecfb28a9f5a..a15244b309cac 100644 --- a/extensions/narayana-jta/runtime/pom.xml +++ b/extensions/narayana-jta/runtime/pom.xml @@ -59,6 +59,13 @@ org.jboss.narayana.jta narayana-jta + + + + jakarta.enterprise + jakarta.enterprise.lang-model + + org.jboss.narayana.jts diff --git a/extensions/narayana-lra/runtime/pom.xml b/extensions/narayana-lra/runtime/pom.xml index 80d5e12e7b252..110fe0f9ba3fb 100644 --- a/extensions/narayana-lra/runtime/pom.xml +++ b/extensions/narayana-lra/runtime/pom.xml @@ -26,6 +26,12 @@ org.jboss.narayana.rts lra-service-base + + + org.jboss.spec.javax.ws.rs + jboss-jaxrs-api_3.0_spec + + org.jboss.narayana.rts @@ -97,7 +103,6 @@ rewrite-maven-plugin - io.quarkus.narayana-lra-switch io.quarkus.jakarta-jaxrs-switch io.quarkus.jakarta-angus-activation-switch diff --git a/jakarta/rewrite.yml b/jakarta/rewrite.yml index ec7dfd509d99e..96081d69518ca 100644 --- a/jakarta/rewrite.yml +++ b/jakarta/rewrite.yml @@ -140,19 +140,12 @@ recipeList: - org.openrewrite.maven.ChangePropertyValue: key: jakarta.transaction-api.version newValue: '2.0.1' - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.jta - oldArtifactId: narayana-jta - newGroupId: org.jboss.narayana.jta - newArtifactId: narayana-jta-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.jts - oldArtifactId: narayana-jts-integration - newGroupId: org.jboss.narayana.jts - newArtifactId: narayana-jts-integration-jakarta - org.openrewrite.maven.ChangePropertyValue: key: agroal.version newValue: '2.0' + - org.openrewrite.maven.ChangePropertyValue: + key: narayana.version + newValue: 6.0.0.CR1 # Validation - org.openrewrite.maven.ChangePropertyValue: key: jakarta.validation-api.version @@ -463,16 +456,6 @@ recipeList: artifactId: hibernate-core exclusionGroupId: javax.activation exclusionArtifactId: javax.activation-api - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.jta - oldArtifactId: narayana-jta - newGroupId: org.jboss.narayana.jta - newArtifactId: narayana-jta-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.jts - oldArtifactId: narayana-jts-integration - newGroupId: org.jboss.narayana.jts - newArtifactId: narayana-jts-integration-jakarta - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: oldGroupId: org.hibernate oldArtifactId: hibernate-core @@ -525,31 +508,6 @@ recipeList: newArtifactId: hibernate-search-mapper-orm-jakarta --- type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.narayana-lra-switch -displayName: Switch Narayana LRA dependencies -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: narayana-lra - newGroupId: org.jboss.narayana.rts - newArtifactId: narayana-lra-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-service-base - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-service-base-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-proxy-api - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-proxy-api-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-client - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-client-jakarta ---- -type: specs.openrewrite.org/v1beta/recipe name: io.quarkus.smallrye displayName: Adjust SmallRye dependencies recipeList: @@ -586,26 +544,6 @@ recipeList: - org.openrewrite.maven.ChangePropertyValue: key: microprofile-lra.version newValue: '2.0-RC1' - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: narayana-lra - newGroupId: org.jboss.narayana.rts - newArtifactId: narayana-lra-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-service-base - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-service-base-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-proxy-api - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-proxy-api-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.narayana.rts - oldArtifactId: lra-client - newGroupId: org.jboss.narayana.rts - newArtifactId: lra-client-jakarta - org.openrewrite.maven.ChangePropertyValue: key: microprofile-metrics-api.version newValue: '4.0.1' From 68ec20c4a06718c7b692fee849bb7866d79765cc Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Tue, 31 Jan 2023 14:36:35 -0300 Subject: [PATCH 111/250] Improve JDBC driver error message in Agroal processor This improves the error message when the DB Kind is not found. ``` Unable to find a JDBC driver corresponding to the database kind 'postgres' for the default datasource (available: 'postgresql'). Check if it's a typo, otherwise provide a suitable JDBC driver extension, define the driver manually, or disable the JDBC datasource by adding 'quarkus.datasource.jdbc=false' to your configuration if you don't need it. ``` Based on feedback from https://github.com/quarkusio/quarkus/issues/30701#issuecomment-1410757424 --- .../agroal/deployment/AgroalProcessor.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java index 482f95f8cf1f5..fa4df5c2782cd 100644 --- a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java +++ b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java @@ -7,6 +7,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Optional; +import java.util.stream.Collectors; import javax.enterprise.inject.Default; import javax.inject.Singleton; @@ -344,14 +345,13 @@ private String resolveDriver(String dataSourceName, String dbKind, } } - throw new ConfigurationException("Unable to find a JDBC driver corresponding to the database kind '" - + dbKind + "' for the " - + (DataSourceUtil.isDefault(dataSourceName) ? "default datasource" - : "datasource '" + dataSourceName + "'") - + ". Either provide a suitable JDBC driver extension, define the driver manually, or disable the JDBC datasource by adding " - + (DataSourceUtil.isDefault(dataSourceName) ? "'quarkus.datasource.jdbc=false'" - : "'quarkus.datasource." + dataSourceName + ".jdbc=false'") - + " to your configuration if you don't need it."); + throw new ConfigurationException(String.format( + "Unable to find a JDBC driver corresponding to the database kind '%s' for the %s (available: '%s'). " + + "Check if it's a typo, otherwise provide a suitable JDBC driver extension, define the driver manually, or disable the JDBC datasource by adding %s to your configuration if you don't need it.", + dbKind, DataSourceUtil.isDefault(dataSourceName) ? "default datasource" : "datasource '" + dataSourceName + "'", + jdbcDriverBuildItems.stream().map(JdbcDriverBuildItem::getDbKind).collect(Collectors.joining("','")), + DataSourceUtil.isDefault(dataSourceName) ? "'quarkus.datasource.jdbc=false'" + : "'quarkus.datasource." + dataSourceName + ".jdbc=false'")); } @BuildStep From 2ef45c5247525ff1fe810bfb5db11842e13eb1f6 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Tue, 31 Jan 2023 19:25:11 +0000 Subject: [PATCH 112/250] Update ForwardedParser to validate the port --- .../quarkus/vertx/http/ForwardedForHeaderTest.java | 13 +++++++++++++ .../quarkus/vertx/http/runtime/ForwardedParser.java | 13 +++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedForHeaderTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedForHeaderTest.java index d06e24b4066db..162fcdcabe34b 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedForHeaderTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedForHeaderTest.java @@ -32,6 +32,19 @@ public void test() { .body(Matchers.equalTo("https|somehost|backend:4444")); } + @Test + public void testInvalidPort() { + assertThat(RestAssured.get("/forward").asString()).startsWith("http|"); + + RestAssured.given().header("X-Forwarded-Proto", "https").header("X-Forwarded-For", "backend:-4444") + .header("X-Forwarded-Host", "somehost").get("/forward").then() + .body(Matchers.not(Matchers.endsWith(":44444444"))); + + RestAssured.given().header("X-Forwarded-Proto", "https").header("X-Forwarded-For", "backend:-4444") + .header("X-Forwarded-Host", "somehost").get("/forward").then() + .body(Matchers.not(Matchers.endsWith(":44444444"))); + } + @Test public void testIPV4WithPort() { assertThat(RestAssured.get("/forward").asString()).startsWith("http|"); diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java index c428050791f61..09ec83ecdab0f 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedParser.java @@ -45,6 +45,9 @@ class ForwardedParser { private static final Pattern FORWARDED_PROTO_PATTERN = Pattern.compile("proto=\"?([^;,\"]+)\"?"); private static final Pattern FORWARDED_FOR_PATTERN = Pattern.compile("for=\"?([^;,\"]+)\"?"); + private final static int PORT_MIN_VALID_VALUE = 0; + private final static int PORT_MAX_VALID_VALUE = 65535; + private final HttpServerRequest delegate; private final ForwardingProxyOptions forwardingProxyOptions; private final TrustedProxyCheck trustedProxyCheck; @@ -226,9 +229,15 @@ private String[] parseHostAndPort(String hostToParse) { private int parsePort(String portToParse, int defaultPort) { if (portToParse != null && portToParse.length() > 0) { try { - return Integer.parseInt(portToParse); + int port = Integer.parseInt(portToParse); + if (port < PORT_MIN_VALID_VALUE || port > PORT_MAX_VALID_VALUE) { + log.errorf("Failed to validate a port from \"forwarded\"-type headers, using the default port %d", + defaultPort); + return defaultPort; + } + return port; } catch (NumberFormatException ignored) { - log.error("Failed to parse a port from \"forwarded\"-type headers."); + log.errorf("Failed to parse a port from \"forwarded\"-type headers, using the default port %d", defaultPort); } } return defaultPort; From 00f0fb6191383f8e44d1e05a8a1efd254a83812a Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Tue, 31 Jan 2023 16:55:18 +0100 Subject: [PATCH 113/250] Use quotes for the path to find maven basedir --- .../codestarts/quarkus/tooling/maven-wrapper/base/mvnw.tpl.qute | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/maven-wrapper/base/mvnw.tpl.qute b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/maven-wrapper/base/mvnw.tpl.qute index 6e36dcc7b0e52..08fc65ae6ceb8 100755 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/maven-wrapper/base/mvnw.tpl.qute +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/maven-wrapper/base/mvnw.tpl.qute @@ -164,7 +164,7 @@ concat_lines() { fi } -BASE_DIR=$(find_maven_basedir "$(dirname $0)") +BASE_DIR=$(find_maven_basedir "$(dirname "$0")") if [ -z "$BASE_DIR" ]; then exit 1; fi From 86e1edd03a4d3e0c72b69c7ea59ec9d7841a7a85 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 31 Jan 2023 22:15:44 +0100 Subject: [PATCH 114/250] Revert "Pass quarkus args to dev mode gradle task" --- .../io/quarkus/gradle/tasks/QuarkusDev.java | 1 - .../build.gradle | 38 ---------- .../gradle.properties | 2 - .../settings.gradle | 15 ---- .../src/main/java/org/acme/EntryPoint.java | 15 ---- ...cJavaMainApplicationModuleDevModeTest.java | 70 ------------------- 6 files changed, 141 deletions(-) delete mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle delete mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties delete mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle delete mode 100644 integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java delete mode 100644 integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index 3f64ea80e5d0b..9a3ebcf051b5b 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -371,7 +371,6 @@ private QuarkusDevModeLauncher newLauncher() throws Exception { .debug(System.getProperty("debug")) .debugHost(System.getProperty("debugHost")) .debugPort(System.getProperty("debugPort")) - .applicationArgs(System.getProperty("quarkus.args")) .suspend(System.getProperty("suspend")); if (System.getProperty(IO_QUARKUS_DEVMODE_ARGS) == null) { builder.jvmArgs("-Dquarkus.test.basic-console=true") diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle deleted file mode 100644 index b5987d2fda26c..0000000000000 --- a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/build.gradle +++ /dev/null @@ -1,38 +0,0 @@ -plugins { - id 'java' - id 'io.quarkus' - id 'application' -} - -repositories { - mavenLocal { - content { - includeGroupByRegex 'io.quarkus.*' - } - } - mavenCentral() -} - -dependencies { - implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}") - implementation 'io.quarkus:quarkus-arc' -} - -compileJava { - options.compilerArgs << '-parameters' -} - -application { - mainClass = 'org.acme.EntryPoint' -} - -run { - // propagate the custom local maven repo, in case it's configured - if (System.properties.containsKey('maven.repo.local')) { - systemProperty 'maven.repo.local', System.properties.get('maven.repo.local') - } -} - -test { - systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager" -} diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties deleted file mode 100644 index ec2b6ef199c2c..0000000000000 --- a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/gradle.properties +++ /dev/null @@ -1,2 +0,0 @@ -quarkusPlatformArtifactId=quarkus-bom -quarkusPlatformGroupId=io.quarkus diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle deleted file mode 100644 index 673d02a044226..0000000000000 --- a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/settings.gradle +++ /dev/null @@ -1,15 +0,0 @@ -pluginManagement { - repositories { - mavenLocal { - content { - includeGroupByRegex 'io.quarkus.*' - } - } - mavenCentral() - gradlePluginPortal() - } - plugins { - id 'io.quarkus' version "${quarkusPluginVersion}" - } -} -rootProject.name='code-with-quarkus' diff --git a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java b/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java deleted file mode 100644 index 80d6bee834580..0000000000000 --- a/integration-tests/gradle/src/main/resources/basic-java-main-application-project/src/main/java/org/acme/EntryPoint.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.acme; - -import java.util.Arrays; - -import io.quarkus.runtime.Quarkus; -import io.quarkus.runtime.annotations.QuarkusMain; - -@QuarkusMain -public class EntryPoint { - - public static void main(String[] args) { - System.out.println("basic-java-main-application-project: args.length: " + args.length); - System.out.println("basic-java-main-application-project: args: " + Arrays.toString(args)); - } -} diff --git a/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java b/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java deleted file mode 100644 index 11952c4e4c790..0000000000000 --- a/integration-tests/gradle/src/test/java/io/quarkus/gradle/devmode/BasicJavaMainApplicationModuleDevModeTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package io.quarkus.gradle.devmode; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.awaitility.Awaitility.await; - -import java.io.BufferedReader; -import java.io.File; -import java.io.RandomAccessFile; -import java.nio.file.Files; -import java.util.Arrays; -import java.util.concurrent.TimeUnit; - -public class BasicJavaMainApplicationModuleDevModeTest extends QuarkusDevGradleTestBase { - private static final String ARGS_LOG_LINE_PREFIX = "basic-java-main-application-project: args"; - - @Override - protected String projectDirectoryName() { - return "basic-java-main-application-project"; - } - - @Override - protected String[] buildArguments() { - return new String[] { "clean", "quarkusDev", "-s", "-Dquarkus.args=param1=1 param2=2" }; - } - - protected void testDevMode() throws Exception { - File logOutput = new File(projectDir, "command-output.log"); - await().atMost(30, TimeUnit.SECONDS).until(() -> { - try { - String logLine; - RandomAccessFile commandOutputLogFile = new RandomAccessFile(logOutput, "r"); - while ((logLine = commandOutputLogFile.readLine()) != null) { - if (logLine.startsWith(ARGS_LOG_LINE_PREFIX)) { - commandOutputLogFile.close(); - return true; - } - } - commandOutputLogFile.close(); - return false; - } catch (Exception e) { - System.out.println(String.format("e: , ", e.getMessage(), e.getCause())); - System.out.println("e: " + Arrays.toString(e.getStackTrace())); - return false; - } - }); - String argsLengthLogLine = null; - String argsLogLine = null; - if (logOutput.exists()) { - try (BufferedReader reader = Files.newBufferedReader(logOutput.toPath())) { - String line = reader.readLine(); - while (line != null) { - if (line.startsWith(ARGS_LOG_LINE_PREFIX)) { - if (line.contains("length")) { - argsLengthLogLine = line; - } else { - argsLogLine = line; - } - } - line = reader.readLine(); - } - } - } - assertThat(argsLengthLogLine).isNotNull(); - assertThat(argsLengthLogLine).isNotEmpty(); - assertThat(argsLogLine).isNotNull(); - assertThat(argsLogLine).isNotEmpty(); - assertThat(argsLengthLogLine).contains("basic-java-main-application-project: args.length: 2"); - assertThat(argsLogLine).contains("basic-java-main-application-project: args: [param1=1, param2=2]"); - } -} From 6d6b400125e19ee5d18c083e0fb0a29d797f056c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:06:45 +0000 Subject: [PATCH 115/250] Bump flyway.version from 9.12.0 to 9.14.0 Bumps `flyway.version` from 9.12.0 to 9.14.0. Updates `flyway-core` from 9.12.0 to 9.14.0 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/commits/flyway-9.14.0) Updates `flyway-sqlserver` from 9.12.0 to 9.14.0 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/commits/flyway-9.14.0) Updates `flyway-mysql` from 9.12.0 to 9.14.0 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/commits/flyway-9.14.0) --- updated-dependencies: - dependency-name: org.flywaydb:flyway-core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.flywaydb:flyway-sqlserver dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.flywaydb:flyway-mysql dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f81b075d9acc7..b990b3a76f81a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -158,7 +158,7 @@ 3.2.0 4.2.0 1.0.11 - 9.12.0 + 9.14.0 1.0.11 4.19.0 1.33 From 25123e7b15658ae7a555f31515603bc1f517f3cb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:13:45 +0000 Subject: [PATCH 116/250] Bump mockito-bom from 4.11.0 to 5.1.1 Bumps [mockito-bom](https://github.com/mockito/mockito) from 4.11.0 to 5.1.1. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](https://github.com/mockito/mockito/compare/v4.11.0...v5.1.1) --- updated-dependencies: - dependency-name: org.mockito:mockito-bom dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- independent-projects/tools/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f81b075d9acc7..33915697746af 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -175,7 +175,7 @@ 2.1.SP2 5.4.Final 2.1.SP1 - 5.1.0 + 5.1.1 5.8.0 4.10.1 1.1.4.Final diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 77392ebfc3862..84eb09de2fe9d 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -55,7 +55,7 @@ 1.22 3.5.0.Final 3.8.7 - 4.11.0 + 5.1.1 3.0.0-M8 1.6.8 999-SNAPSHOT From e3146c01c87ffec4645f9b2958c59894440c61b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:28:19 +0000 Subject: [PATCH 117/250] Bump mongodb-crypt from 1.6.1 to 1.7.1 Bumps [mongodb-crypt](https://github.com/mongodb/libmongocrypt) from 1.6.1 to 1.7.1. - [Release notes](https://github.com/mongodb/libmongocrypt/releases) - [Changelog](https://github.com/mongodb/libmongocrypt/blob/master/CHANGELOG.md) - [Commits](https://github.com/mongodb/libmongocrypt/compare/1.6.1...java-1.7.1) --- updated-dependencies: - dependency-name: org.mongodb:mongodb-crypt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f81b075d9acc7..14cca391b73ea 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -164,7 +164,7 @@ 1.33 6.0.0 4.8.2 - 1.6.1 + 1.7.1 0.34.0 3.24.2 3.14.9 From bc1d2b299c050b4976f056e78d6714412dce0111 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:37:15 +0000 Subject: [PATCH 118/250] Bump postgresql from 42.5.1 to 42.5.2 Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.5.1 to 42.5.2. - [Release notes](https://github.com/pgjdbc/pgjdbc/releases) - [Changelog](https://github.com/pgjdbc/pgjdbc/blob/master/CHANGELOG.md) - [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.5.1...REL42.5.2) --- updated-dependencies: - dependency-name: org.postgresql:postgresql dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f81b075d9acc7..a9cb452f97f8c 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -121,7 +121,7 @@ 9.2.0 2.3.2 2.1.214 - 42.5.1 + 42.5.2 3.1.2 8.0.30 11.2.3.jre11 From 8a4897e35ca1beb15d8d1be23c6cb30304309e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 1 Feb 2023 10:07:38 +0100 Subject: [PATCH 119/250] Rely on DataSourceUtil.dataSourcePropertyKey for error messages --- .../io/quarkus/agroal/deployment/AgroalProcessor.java | 6 +++--- .../java/io/quarkus/agroal/runtime/DataSources.java | 10 ++-------- .../datasource/common/runtime/DataSourceUtil.java | 8 ++++++++ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java index fa4df5c2782cd..59f72061b792d 100644 --- a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java +++ b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java @@ -347,11 +347,11 @@ private String resolveDriver(String dataSourceName, String dbKind, throw new ConfigurationException(String.format( "Unable to find a JDBC driver corresponding to the database kind '%s' for the %s (available: '%s'). " - + "Check if it's a typo, otherwise provide a suitable JDBC driver extension, define the driver manually, or disable the JDBC datasource by adding %s to your configuration if you don't need it.", + + "Check if it's a typo, otherwise provide a suitable JDBC driver extension, define the driver manually," + + " or disable the JDBC datasource by adding '%s=false' to your configuration if you don't need it.", dbKind, DataSourceUtil.isDefault(dataSourceName) ? "default datasource" : "datasource '" + dataSourceName + "'", jdbcDriverBuildItems.stream().map(JdbcDriverBuildItem::getDbKind).collect(Collectors.joining("','")), - DataSourceUtil.isDefault(dataSourceName) ? "'quarkus.datasource.jdbc=false'" - : "'quarkus.datasource." + dataSourceName + ".jdbc=false'")); + DataSourceUtil.dataSourcePropertyKey(dataSourceName, "jdbc"))); } @BuildStep diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java index 28172208ff026..e0c703bc38a0c 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java @@ -138,16 +138,10 @@ public AgroalDataSource doCreateDataSource(String dataSourceName) { DataSourceSupport.Entry matchingSupportEntry = dataSourceSupport.entries.get(dataSourceName); if (!dataSourceJdbcRuntimeConfig.url.isPresent()) { - String errorMessage; - // we don't have any URL configuration so using a standard message - if (DataSourceUtil.isDefault(dataSourceName)) { - errorMessage = "quarkus.datasource.jdbc.url has not been defined"; - } else { - errorMessage = "quarkus.datasource." + dataSourceName + ".jdbc.url has not been defined"; - } //this is not an error situation, because we want to allow the situation where a JDBC extension //is installed but has not been configured - return new UnconfiguredDataSource(errorMessage); + return new UnconfiguredDataSource( + DataSourceUtil.dataSourcePropertyKey(dataSourceName, "jdbc.url") + " has not been defined"); } // we first make sure that all available JDBC drivers are loaded in the current TCCL diff --git a/extensions/datasource/common/src/main/java/io/quarkus/datasource/common/runtime/DataSourceUtil.java b/extensions/datasource/common/src/main/java/io/quarkus/datasource/common/runtime/DataSourceUtil.java index 7fdf31b27cf9e..f0a4b3378f1ba 100644 --- a/extensions/datasource/common/src/main/java/io/quarkus/datasource/common/runtime/DataSourceUtil.java +++ b/extensions/datasource/common/src/main/java/io/quarkus/datasource/common/runtime/DataSourceUtil.java @@ -15,6 +15,14 @@ public static boolean hasDefault(Collection dataSourceNames) { return dataSourceNames.contains(DEFAULT_DATASOURCE_NAME); } + public static String dataSourcePropertyKey(String datasourceName, String radical) { + if (datasourceName == null || DataSourceUtil.isDefault(datasourceName)) { + return "quarkus.datasource." + radical; + } else { + return "quarkus.datasource.\"" + datasourceName + "\"." + radical; + } + } + public static List dataSourcePropertyKeys(String datasourceName, String radical) { if (datasourceName == null || DataSourceUtil.isDefault(datasourceName)) { return List.of("quarkus.datasource." + radical); From b66feb244c7202a5aaccae51d0420f4fd0773cc2 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 1 Feb 2023 10:30:27 +0100 Subject: [PATCH 120/250] Jakarta - Adjust commit pointer for JAX-RS branch --- jakarta/transform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jakarta/transform.sh b/jakarta/transform.sh index 1323ebfd09455..46dc48bc7f47d 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -367,7 +367,7 @@ git cherry-pick -x ${JAKARTA_10_CDI_HASH} ## JAX-RS/RESTEasy Reactive git fetch origin jakarta-10-jaxrs -git rev-list 3e7b6d56854a7402f7e2cfc6edbaa49b2da0f959..origin/jakarta-10-jaxrs | tac | xargs git cherry-pick -x +git rev-list 0608f5eeaf4109214a40d9342d2b89405f831155..origin/jakarta-10-jaxrs | tac | xargs git cherry-pick -x ## Kotlin not parent first git fetch origin jakarta-10-misc From 2409f3e468a52e9ec631d7753a1c93ce43729cd3 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 31 Jan 2023 12:41:41 +0100 Subject: [PATCH 121/250] refactor: use KubernetesClientBuilder instead of DefaultKubernetesClient Signed-off-by: Marc Nuri --- .../kubernetes/client/runtime/KubernetesClientUtils.java | 9 +++++---- .../client/runtime/KubernetesClientProducer.java | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/extensions/kubernetes-client/runtime-internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientUtils.java b/extensions/kubernetes-client/runtime-internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientUtils.java index 9a5e9c33056f4..d0e605c3b3d38 100644 --- a/extensions/kubernetes-client/runtime-internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientUtils.java +++ b/extensions/kubernetes-client/runtime-internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientUtils.java @@ -6,8 +6,8 @@ import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.ConfigBuilder; -import io.fabric8.kubernetes.client.DefaultKubernetesClient; import io.fabric8.kubernetes.client.KubernetesClient; +import io.fabric8.kubernetes.client.KubernetesClientBuilder; import io.quarkus.runtime.TlsConfig; public class KubernetesClientUtils { @@ -49,13 +49,13 @@ public static Config createConfig(KubernetesClientBuildConfig buildConfig, TlsCo } public static KubernetesClient createClient(KubernetesClientBuildConfig buildConfig, TlsConfig tlsConfig) { - return new DefaultKubernetesClient(createConfig(buildConfig, tlsConfig)); + return new KubernetesClientBuilder().withConfig(createConfig(buildConfig, tlsConfig)).build(); } public static KubernetesClient createClient() { org.eclipse.microprofile.config.Config config = ConfigProvider.getConfig(); Config base = Config.autoConfigure(null); - return new DefaultKubernetesClient(new ConfigBuilder() + return new KubernetesClientBuilder().withConfig(new ConfigBuilder() .withTrustCerts(config.getOptionalValue(PREFIX + "trust-certs", Boolean.class).orElse(base.isTrustCerts())) .withWatchReconnectLimit(config.getOptionalValue(PREFIX + "watch-reconnect-limit", Integer.class) .orElse(base.getWatchReconnectLimit())) @@ -92,6 +92,7 @@ public static KubernetesClient createClient() { .withProxyPassword( config.getOptionalValue(PREFIX + "proxy-password", String.class).orElse(base.getProxyPassword())) .withNoProxy(config.getOptionalValue(PREFIX + "no-proxy", String[].class).orElse(base.getNoProxy())) - .build()); + .build()) + .build(); } } diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java index e459973e3e10e..b87ce32197945 100644 --- a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java @@ -5,8 +5,8 @@ import javax.inject.Singleton; import io.fabric8.kubernetes.client.Config; -import io.fabric8.kubernetes.client.DefaultKubernetesClient; import io.fabric8.kubernetes.client.KubernetesClient; +import io.fabric8.kubernetes.client.KubernetesClientBuilder; import io.quarkus.arc.DefaultBean; @Singleton @@ -18,7 +18,7 @@ public class KubernetesClientProducer { @Singleton @Produces public KubernetesClient kubernetesClient(Config config) { - client = new DefaultKubernetesClient(config); + client = new KubernetesClientBuilder().withConfig(config).build(); return client; } From cee96ad1067c16cd1dc3d34f7447837808f67846 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Thu, 19 Jan 2023 14:59:56 +0100 Subject: [PATCH 122/250] deps: Bump kubernetes-client-bom from 6.3.1 to 6.4.1 - Switch to use Vert.x HttpClient implementation Signed-off-by: Marc Nuri --- .../deployment/pom.xml | 4 ++++ .../container-image-s2i/deployment/pom.xml | 4 ++++ .../deployment-internal/pom.xml | 10 ++++++++ .../runtime-internal/pom.xml | 11 +++++++++ extensions/kubernetes-client/runtime/pom.xml | 10 ++++++++ extensions/kubernetes-client/spi/pom.xml | 8 +++++++ .../deployment/pom.xml | 18 ++++++++++++++ extensions/kubernetes/kind/deployment/pom.xml | 4 ++++ .../kubernetes/openshift/deployment/pom.xml | 4 ++++ .../kubernetes/vanilla/deployment/pom.xml | 12 ++++++++++ .../quarkus-banned-dependencies.xml | 4 +++- .../istio/maven-invoker-way/pom.xml | 20 +++++++++++++++- .../kubernetes/maven-invoker-way/pom.xml | 18 ++++++++++++++ .../kubernetes/quarkus-standard-way/pom.xml | 24 +++++++++++++++++-- pom.xml | 2 +- test-framework/kubernetes-client/pom.xml | 10 ++++++++ test-framework/openshift-client/pom.xml | 4 ++-- 17 files changed, 160 insertions(+), 7 deletions(-) diff --git a/extensions/container-image/container-image-openshift/deployment/pom.xml b/extensions/container-image/container-image-openshift/deployment/pom.xml index c101061d05f68..0403d9e816c39 100644 --- a/extensions/container-image/container-image-openshift/deployment/pom.xml +++ b/extensions/container-image/container-image-openshift/deployment/pom.xml @@ -55,6 +55,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + diff --git a/extensions/container-image/container-image-s2i/deployment/pom.xml b/extensions/container-image/container-image-s2i/deployment/pom.xml index e717ba19077b3..70621164b7f18 100644 --- a/extensions/container-image/container-image-s2i/deployment/pom.xml +++ b/extensions/container-image/container-image-s2i/deployment/pom.xml @@ -51,6 +51,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + diff --git a/extensions/kubernetes-client/deployment-internal/pom.xml b/extensions/kubernetes-client/deployment-internal/pom.xml index 5f50448a7e887..a564ff686f0c2 100644 --- a/extensions/kubernetes-client/deployment-internal/pom.xml +++ b/extensions/kubernetes-client/deployment-internal/pom.xml @@ -33,6 +33,16 @@ io.fabric8 kubernetes-client + + + io.fabric8 + kubernetes-httpclient-okhttp + + + + + io.fabric8 + kubernetes-httpclient-vertx io.quarkus diff --git a/extensions/kubernetes-client/runtime-internal/pom.xml b/extensions/kubernetes-client/runtime-internal/pom.xml index 9a99ba4a8f9aa..2b01e9e2ab69f 100644 --- a/extensions/kubernetes-client/runtime-internal/pom.xml +++ b/extensions/kubernetes-client/runtime-internal/pom.xml @@ -23,6 +23,17 @@ io.fabric8 kubernetes-client provided + + + io.fabric8 + kubernetes-httpclient-okhttp + + + + + io.fabric8 + kubernetes-httpclient-vertx + provided diff --git a/extensions/kubernetes-client/runtime/pom.xml b/extensions/kubernetes-client/runtime/pom.xml index 044e3100e236d..7445df9dc8dd2 100644 --- a/extensions/kubernetes-client/runtime/pom.xml +++ b/extensions/kubernetes-client/runtime/pom.xml @@ -29,6 +29,16 @@ io.fabric8 kubernetes-client + + + io.fabric8 + kubernetes-httpclient-okhttp + + + + + io.fabric8 + kubernetes-httpclient-vertx org.graalvm.nativeimage diff --git a/extensions/kubernetes-client/spi/pom.xml b/extensions/kubernetes-client/spi/pom.xml index 57ef85a82ecfb..a2d91bf7654e7 100644 --- a/extensions/kubernetes-client/spi/pom.xml +++ b/extensions/kubernetes-client/spi/pom.xml @@ -22,6 +22,10 @@ io.fabric8 kubernetes-client + + io.fabric8 + kubernetes-httpclient-okhttp + javax.annotation javax.annotation-api @@ -36,6 +40,10 @@ + + io.fabric8 + kubernetes-httpclient-vertx + diff --git a/extensions/kubernetes-service-binding/deployment/pom.xml b/extensions/kubernetes-service-binding/deployment/pom.xml index 067af3efaecd1..958dccc3df41f 100644 --- a/extensions/kubernetes-service-binding/deployment/pom.xml +++ b/extensions/kubernetes-service-binding/deployment/pom.xml @@ -43,8 +43,26 @@ com.sun tools + + io.fabric8 + kubernetes-client + + + + + io.fabric8 + kubernetes-client + + + io.fabric8 + kubernetes-httpclient-okhttp + + + io.fabric8 + kubernetes-httpclient-vertx + diff --git a/extensions/kubernetes/kind/deployment/pom.xml b/extensions/kubernetes/kind/deployment/pom.xml index 1046c28165a32..cfbc1ef49ae53 100644 --- a/extensions/kubernetes/kind/deployment/pom.xml +++ b/extensions/kubernetes/kind/deployment/pom.xml @@ -34,6 +34,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + diff --git a/extensions/kubernetes/openshift/deployment/pom.xml b/extensions/kubernetes/openshift/deployment/pom.xml index 98a6583756a03..d4c4f315d6628 100644 --- a/extensions/kubernetes/openshift/deployment/pom.xml +++ b/extensions/kubernetes/openshift/deployment/pom.xml @@ -38,6 +38,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + diff --git a/extensions/kubernetes/vanilla/deployment/pom.xml b/extensions/kubernetes/vanilla/deployment/pom.xml index 3898ab1f2e153..8c1d9f4b0c8d7 100644 --- a/extensions/kubernetes/vanilla/deployment/pom.xml +++ b/extensions/kubernetes/vanilla/deployment/pom.xml @@ -42,6 +42,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + @@ -57,6 +61,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + @@ -72,6 +80,10 @@ com.sun tools + + io.fabric8 + kubernetes-client + diff --git a/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml b/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml index 30f9458575ccd..0e95dae390b0c 100644 --- a/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml +++ b/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml @@ -102,6 +102,8 @@ org.javassist:javassist org.jboss:jandex + + io.fabric8:kubernetes-httpclient-okhttp @@ -109,4 +111,4 @@ - \ No newline at end of file + diff --git a/integration-tests/istio/maven-invoker-way/pom.xml b/integration-tests/istio/maven-invoker-way/pom.xml index a06e4d17f8447..5996caa02d815 100644 --- a/integration-tests/istio/maven-invoker-way/pom.xml +++ b/integration-tests/istio/maven-invoker-way/pom.xml @@ -56,23 +56,41 @@ io.fabric8 - kubernetes-httpclient-okhttp + kubernetes-httpclient-vertx test io.dekorate kubernetes-annotations noapt + + + io.fabric8 + kubernetes-client + + io.dekorate openshift-annotations noapt + + + io.fabric8 + kubernetes-client + + io.dekorate knative-annotations noapt + + + io.fabric8 + kubernetes-client + + io.quarkus diff --git a/integration-tests/kubernetes/maven-invoker-way/pom.xml b/integration-tests/kubernetes/maven-invoker-way/pom.xml index 54b1df4d12d9e..2d4dd82b1d282 100644 --- a/integration-tests/kubernetes/maven-invoker-way/pom.xml +++ b/integration-tests/kubernetes/maven-invoker-way/pom.xml @@ -49,16 +49,34 @@ io.dekorate kubernetes-annotations noapt + + + io.fabric8 + kubernetes-client + + io.dekorate openshift-annotations noapt + + + io.fabric8 + kubernetes-client + + io.dekorate knative-annotations noapt + + + io.fabric8 + kubernetes-client + + io.quarkus diff --git a/integration-tests/kubernetes/quarkus-standard-way/pom.xml b/integration-tests/kubernetes/quarkus-standard-way/pom.xml index 8769ab42082de..db695f26cfe3b 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/pom.xml +++ b/integration-tests/kubernetes/quarkus-standard-way/pom.xml @@ -119,6 +119,26 @@ io.dekorate servicebinding-annotations noapt + + + io.fabric8 + kubernetes-client + + + + + io.fabric8 + kubernetes-client + + + io.fabric8 + kubernetes-httpclient-okhttp + + + + + io.fabric8 + kubernetes-httpclient-vertx @@ -214,7 +234,7 @@ - + basic-test-suite @@ -249,5 +269,5 @@ - + diff --git a/pom.xml b/pom.xml index 38df7473994f2..a9d1c5c15d237 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ 0.8.8 - 6.3.1 + 6.4.1 1.52.1 diff --git a/test-framework/kubernetes-client/pom.xml b/test-framework/kubernetes-client/pom.xml index 257f3eb1438d0..ad83c16dba30f 100644 --- a/test-framework/kubernetes-client/pom.xml +++ b/test-framework/kubernetes-client/pom.xml @@ -46,6 +46,16 @@ io.fabric8 kubernetes-server-mock + + + io.fabric8 + kubernetes-httpclient-okhttp + + + + + io.fabric8 + kubernetes-httpclient-vertx jakarta.annotation diff --git a/test-framework/openshift-client/pom.xml b/test-framework/openshift-client/pom.xml index 4f74c92e8868d..734f9725baeb3 100644 --- a/test-framework/openshift-client/pom.xml +++ b/test-framework/openshift-client/pom.xml @@ -22,8 +22,8 @@ openshift-server-mock - com.squareup.okhttp3 - okhttp + io.fabric8 + kubernetes-httpclient-okhttp javax.annotation From 86a60403ac281ccf84967a54e853a82e0ffc479d Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 31 Jan 2023 14:48:32 +0100 Subject: [PATCH 123/250] feat: reuse Vert.x object in KubernetesClient Signed-off-by: Marc Nuri --- .../kubernetes-client/deployment/pom.xml | 4 ++ extensions/kubernetes-client/runtime/pom.xml | 4 ++ .../runtime/QuarkusHttpClientFactory.java | 38 +++++++++++++++++++ ....kubernetes.client.http.HttpClient$Factory | 1 + 4 files changed, 47 insertions(+) create mode 100644 extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java create mode 100644 extensions/kubernetes-client/runtime/src/main/resources/META-INF/services/io.fabric8.kubernetes.client.http.HttpClient$Factory diff --git a/extensions/kubernetes-client/deployment/pom.xml b/extensions/kubernetes-client/deployment/pom.xml index e2b5006e0b5b8..bd989bda54851 100644 --- a/extensions/kubernetes-client/deployment/pom.xml +++ b/extensions/kubernetes-client/deployment/pom.xml @@ -25,6 +25,10 @@ io.quarkus quarkus-jackson-deployment + + io.quarkus + quarkus-vertx-deployment + diff --git a/extensions/kubernetes-client/runtime/pom.xml b/extensions/kubernetes-client/runtime/pom.xml index 7445df9dc8dd2..1d6a02ef24a3b 100644 --- a/extensions/kubernetes-client/runtime/pom.xml +++ b/extensions/kubernetes-client/runtime/pom.xml @@ -26,6 +26,10 @@ io.quarkus quarkus-jackson + + io.quarkus + quarkus-vertx + io.fabric8 kubernetes-client diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java new file mode 100644 index 0000000000000..9660b7913b657 --- /dev/null +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java @@ -0,0 +1,38 @@ +package io.quarkus.kubernetes.client.runtime; + +import io.fabric8.kubernetes.client.Config; +import io.fabric8.kubernetes.client.http.HttpClient; +import io.fabric8.kubernetes.client.vertx.VertxHttpClientBuilder; +import io.vertx.core.Vertx; + +import javax.enterprise.inject.spi.CDI; + +public class QuarkusHttpClientFactory implements io.fabric8.kubernetes.client.http.HttpClient.Factory { + + private Vertx vertx; + + public QuarkusHttpClientFactory() { + // The client might get initialized outside a Quarkus context that can provide the Vert.x instance + // This is the case for the MockServer / @KubernetesTestServer where the server provides the KubernetesClient instance + try { + this.vertx = CDI.current().select(Vertx.class).get(); + } catch (Exception e) { + this.vertx = Vertx.vertx(); + } + } + + @Override + public HttpClient.Builder newBuilder(Config config) { + return HttpClient.Factory.super.newBuilder(config); + } + + @Override + public VertxHttpClientBuilder newBuilder() { + return new VertxHttpClientBuilder<>(this, vertx); + } + + @Override + public int priority() { + return 1; + } +} diff --git a/extensions/kubernetes-client/runtime/src/main/resources/META-INF/services/io.fabric8.kubernetes.client.http.HttpClient$Factory b/extensions/kubernetes-client/runtime/src/main/resources/META-INF/services/io.fabric8.kubernetes.client.http.HttpClient$Factory new file mode 100644 index 0000000000000..5ad0eb6326624 --- /dev/null +++ b/extensions/kubernetes-client/runtime/src/main/resources/META-INF/services/io.fabric8.kubernetes.client.http.HttpClient$Factory @@ -0,0 +1 @@ +io.quarkus.kubernetes.client.runtime.QuarkusHttpClientFactory From 9d5d1975af59a99bb80fc4a2cd02cd0bde9cdd7e Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 31 Jan 2023 15:46:56 +0100 Subject: [PATCH 124/250] fix: Kubernetes extension doesn't leak KubernetesClient resources Signed-off-by: Marc Nuri --- .../deployment/OpenshiftProcessor.java | 88 ++++++++++--------- .../image/s2i/deployment/S2iProcessor.java | 61 +++++++------ .../deployment/KubernetesClientBuildStep.java | 2 +- .../runtime/QuarkusHttpClientFactory.java | 4 +- .../client/spi/KubernetesClientBuildItem.java | 18 ++-- .../deployment/KnativeDeployer.java | 6 +- .../deployment/KubernetesDeployer.java | 11 +-- .../deployment/OpenshiftDeployer.java | 4 +- 8 files changed, 105 insertions(+), 89 deletions(-) diff --git a/extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/OpenshiftProcessor.java b/extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/OpenshiftProcessor.java index 256a45aec62a1..00236e4da2849 100644 --- a/extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/OpenshiftProcessor.java +++ b/extensions/container-image/container-image-openshift/deployment/src/main/java/io/quarkus/container/image/openshift/deployment/OpenshiftProcessor.java @@ -231,7 +231,7 @@ public void openshiftRequirementsNative(OpenshiftConfig openshiftConfig, public void openshiftBuildFromJar(OpenshiftConfig openshiftConfig, S2iConfig s2iConfig, ContainerImageConfig containerImageConfig, - KubernetesClientBuildItem kubernetesClient, + KubernetesClientBuildItem kubernetesClientSupplier, ContainerImageInfoBuildItem containerImage, ArchiveRootBuildItem archiveRoot, OutputTargetBuildItem out, PackageConfig packageConfig, List generatedResources, @@ -263,26 +263,28 @@ public void openshiftBuildFromJar(OpenshiftConfig openshiftConfig, return; } - String namespace = Optional.ofNullable(kubernetesClient.getClient().getNamespace()).orElse("default"); - LOG.info("Starting (in-cluster) container image build for jar using: " + config.buildStrategy + " on server: " - + kubernetesClient.getClient().getMasterUrl() + " in namespace:" + namespace + "."); - //The contextRoot is where inside the tarball we will add the jars. A null value means everything will be added under '/' while "target" means everything will be added under '/target'. - //For docker kind of builds where we use instructions like: `COPY target/*.jar /deployments` it using '/target' is a requirement. - //For s2i kind of builds where jars are expected directly in the '/' we have to use null. - String outputDirName = out.getOutputDirectory().getFileName().toString(); - String contextRoot = getContextRoot(outputDirName, packageConfig.isFastJar(), config.buildStrategy); - if (packageConfig.isFastJar()) { - createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), - jar.getPath().getParent()); - } else if (jar.getLibraryDir() != null) { //When using uber-jar the libraryDir is going to be null, potentially causing NPE. - createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), - jar.getPath(), jar.getLibraryDir()); - } else { - createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), - jar.getPath()); + try (KubernetesClient kubernetesClient = kubernetesClientSupplier.getClient().get()) { + String namespace = Optional.ofNullable(kubernetesClient.getNamespace()).orElse("default"); + LOG.info("Starting (in-cluster) container image build for jar using: " + config.buildStrategy + " on server: " + + kubernetesClient.getMasterUrl() + " in namespace:" + namespace + "."); + //The contextRoot is where inside the tarball we will add the jars. A null value means everything will be added under '/' while "target" means everything will be added under '/target'. + //For docker kind of builds where we use instructions like: `COPY target/*.jar /deployments` it using '/target' is a requirement. + //For s2i kind of builds where jars are expected directly in the '/' we have to use null. + String outputDirName = out.getOutputDirectory().getFileName().toString(); + String contextRoot = getContextRoot(outputDirName, packageConfig.isFastJar(), config.buildStrategy); + if (packageConfig.isFastJar()) { + createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), + jar.getPath().getParent()); + } else if (jar.getLibraryDir() != null) { //When using uber-jar the libraryDir is going to be null, potentially causing NPE. + createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), + jar.getPath(), jar.getLibraryDir()); + } else { + createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, jar.getPath().getParent(), + jar.getPath()); + } + artifactResultProducer.produce(new ArtifactResultBuildItem(null, "jar-container", Collections.emptyMap())); + containerImageBuilder.produce(new ContainerImageBuilderBuildItem(OPENSHIFT)); } - artifactResultProducer.produce(new ArtifactResultBuildItem(null, "jar-container", Collections.emptyMap())); - containerImageBuilder.produce(new ContainerImageBuilderBuildItem(OPENSHIFT)); } private String getContextRoot(String outputDirName, boolean isFastJar, BuildStrategy buildStrategy) { @@ -298,7 +300,7 @@ private String getContextRoot(String outputDirName, boolean isFastJar, BuildStra @BuildStep(onlyIf = { IsNormalNotRemoteDev.class, OpenshiftBuild.class, NativeBuild.class }) public void openshiftBuildFromNative(OpenshiftConfig openshiftConfig, S2iConfig s2iConfig, ContainerImageConfig containerImageConfig, - KubernetesClientBuildItem kubernetesClient, + KubernetesClientBuildItem kubernetesClientSupplier, ContainerImageInfoBuildItem containerImage, ArchiveRootBuildItem archiveRoot, OutputTargetBuildItem out, PackageConfig packageConfig, List generatedResources, @@ -319,31 +321,33 @@ public void openshiftBuildFromNative(OpenshiftConfig openshiftConfig, S2iConfig return; } - String namespace = Optional.ofNullable(kubernetesClient.getClient().getNamespace()).orElse("default"); + try (KubernetesClient kubernetesClient = kubernetesClientSupplier.getClient().get()) { + String namespace = Optional.ofNullable(kubernetesClient.getNamespace()).orElse("default"); - LOG.info("Starting (in-cluster) container image build for jar using: " + config.buildStrategy + " on server: " - + kubernetesClient.getClient().getMasterUrl() + " in namespace:" + namespace + "."); - Optional openshiftYml = generatedResources - .stream() - .filter(r -> r.getName().endsWith("kubernetes" + File.separator + "openshift.yml")) - .findFirst(); + LOG.info("Starting (in-cluster) container image build for jar using: " + config.buildStrategy + " on server: " + + kubernetesClient.getMasterUrl() + " in namespace:" + namespace + "."); + Optional openshiftYml = generatedResources + .stream() + .filter(r -> r.getName().endsWith("kubernetes" + File.separator + "openshift.yml")) + .findFirst(); - if (openshiftYml.isEmpty()) { - LOG.warn( - "No Openshift manifests were generated so no openshift build process will be taking place"); - return; + if (openshiftYml.isEmpty()) { + LOG.warn( + "No Openshift manifests were generated so no openshift build process will be taking place"); + return; + } + //The contextRoot is where inside the tarball we will add the jars. A null value means everything will be added under '/' while "target" means everything will be added under '/target'. + //For docker kind of builds where we use instructions like: `COPY target/*.jar /deployments` it using '/target' is a requirement. + //For s2i kind of builds where jars are expected directly in the '/' we have to use null. + String contextRoot = config.buildStrategy == BuildStrategy.DOCKER ? "target" : null; + createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, out.getOutputDirectory(), + nativeImage.getPath()); + artifactResultProducer.produce(new ArtifactResultBuildItem(null, "native-container", Collections.emptyMap())); + containerImageBuilder.produce(new ContainerImageBuilderBuildItem(OPENSHIFT)); } - //The contextRoot is where inside the tarball we will add the jars. A null value means everything will be added under '/' while "target" means everything will be added under '/target'. - //For docker kind of builds where we use instructions like: `COPY target/*.jar /deployments` it using '/target' is a requirement. - //For s2i kind of builds where jars are expected directly in the '/' we have to use null. - String contextRoot = config.buildStrategy == BuildStrategy.DOCKER ? "target" : null; - createContainerImage(kubernetesClient, openshiftYml.get(), config, contextRoot, out.getOutputDirectory(), - nativeImage.getPath()); - artifactResultProducer.produce(new ArtifactResultBuildItem(null, "native-container", Collections.emptyMap())); - containerImageBuilder.produce(new ContainerImageBuilderBuildItem(OPENSHIFT)); } - public static void createContainerImage(KubernetesClientBuildItem kubernetesClient, + public static void createContainerImage(KubernetesClient kubernetesClient, GeneratedFileSystemResourceBuildItem openshiftManifests, OpenshiftConfig openshiftConfig, String base, @@ -360,7 +364,7 @@ public static void createContainerImage(KubernetesClientBuildItem kubernetesClie throw new RuntimeException("Error creating the openshift binary build archive.", e); } - Config config = kubernetesClient.getClient().getConfiguration(); + Config config = kubernetesClient.getConfiguration(); //Let's disable http2 as it causes issues with duplicate build triggers. config.setHttp2Disable(true); try (KubernetesClient client = Clients.fromConfig(config)) { diff --git a/extensions/container-image/container-image-s2i/deployment/src/main/java/io/quarkus/container/image/s2i/deployment/S2iProcessor.java b/extensions/container-image/container-image-s2i/deployment/src/main/java/io/quarkus/container/image/s2i/deployment/S2iProcessor.java index 3052fe0666e5a..7585ad2111932 100644 --- a/extensions/container-image/container-image-s2i/deployment/src/main/java/io/quarkus/container/image/s2i/deployment/S2iProcessor.java +++ b/extensions/container-image/container-image-s2i/deployment/src/main/java/io/quarkus/container/image/s2i/deployment/S2iProcessor.java @@ -171,7 +171,7 @@ public void s2iRequirementsNative(S2iConfig s2iConfig, @BuildStep(onlyIf = { IsNormalNotRemoteDev.class, S2iBuild.class }, onlyIfNot = NativeBuild.class) public void s2iBuildFromJar(S2iConfig s2iConfig, ContainerImageConfig containerImageConfig, - KubernetesClientBuildItem kubernetesClient, + KubernetesClientBuildItem kubernetesClientSupplier, ContainerImageInfoBuildItem containerImage, ArchiveRootBuildItem archiveRoot, OutputTargetBuildItem out, PackageConfig packageConfig, List generatedResources, @@ -201,20 +201,21 @@ public void s2iBuildFromJar(S2iConfig s2iConfig, ContainerImageConfig containerI "No Openshift manifests were generated so no s2i process will be taking place"); return; } - - String namespace = Optional.ofNullable(kubernetesClient.getClient().getNamespace()).orElse("default"); - LOG.info("Performing s2i binary build with jar on server: " + kubernetesClient.getClient().getMasterUrl() - + " in namespace:" + namespace + "."); - - createContainerImage(kubernetesClient, openshiftYml.get(), s2iConfig, out.getOutputDirectory(), jar.getPath(), - out.getOutputDirectory().resolve("lib")); - artifactResultProducer.produce(new ArtifactResultBuildItem(null, "jar-container", Collections.emptyMap())); - containerImageBuilder.produce(new ContainerImageBuilderBuildItem(S2I)); + try (KubernetesClient kubernetesClient = kubernetesClientSupplier.getClient().get()) { + String namespace = Optional.ofNullable(kubernetesClient.getNamespace()).orElse("default"); + LOG.info("Performing s2i binary build with jar on server: " + kubernetesClient.getMasterUrl() + + " in namespace:" + namespace + "."); + + createContainerImage(kubernetesClient, openshiftYml.get(), s2iConfig, out.getOutputDirectory(), jar.getPath(), + out.getOutputDirectory().resolve("lib")); + artifactResultProducer.produce(new ArtifactResultBuildItem(null, "jar-container", Collections.emptyMap())); + containerImageBuilder.produce(new ContainerImageBuilderBuildItem(S2I)); + } } @BuildStep(onlyIf = { IsNormalNotRemoteDev.class, S2iBuild.class, NativeBuild.class }) public void s2iBuildFromNative(S2iConfig s2iConfig, ContainerImageConfig containerImageConfig, - KubernetesClientBuildItem kubernetesClient, + KubernetesClientBuildItem kubernetesClientSupplier, ContainerImageInfoBuildItem containerImage, ArchiveRootBuildItem archiveRoot, OutputTargetBuildItem out, PackageConfig packageConfig, List generatedResources, @@ -233,28 +234,30 @@ public void s2iBuildFromNative(S2iConfig s2iConfig, ContainerImageConfig contain return; } - String namespace = Optional.ofNullable(kubernetesClient.getClient().getNamespace()).orElse("default"); - LOG.info("Performing s2i binary build with native image on server: " + kubernetesClient.getClient().getMasterUrl() - + " in namespace:" + namespace + "."); + try (KubernetesClient kubernetesClient = kubernetesClientSupplier.getClient().get()) { + String namespace = Optional.ofNullable(kubernetesClient.getNamespace()).orElse("default"); + LOG.info("Performing s2i binary build with native image on server: " + kubernetesClient.getMasterUrl() + + " in namespace:" + namespace + "."); - Optional openshiftYml = generatedResources - .stream() - .filter(r -> r.getName().endsWith("kubernetes" + File.separator + "openshift.yml")) - .findFirst(); + Optional openshiftYml = generatedResources + .stream() + .filter(r -> r.getName().endsWith("kubernetes" + File.separator + "openshift.yml")) + .findFirst(); - if (openshiftYml.isEmpty()) { - LOG.warn( - "No Openshift manifests were generated so no s2i process will be taking place"); - return; - } + if (openshiftYml.isEmpty()) { + LOG.warn( + "No Openshift manifests were generated so no s2i process will be taking place"); + return; + } - createContainerImage(kubernetesClient, openshiftYml.get(), s2iConfig, out.getOutputDirectory(), - nativeImage.getPath()); - artifactResultProducer.produce(new ArtifactResultBuildItem(null, "native-container", Collections.emptyMap())); - containerImageBuilder.produce(new ContainerImageBuilderBuildItem(S2I)); + createContainerImage(kubernetesClient, openshiftYml.get(), s2iConfig, out.getOutputDirectory(), + nativeImage.getPath()); + artifactResultProducer.produce(new ArtifactResultBuildItem(null, "native-container", Collections.emptyMap())); + containerImageBuilder.produce(new ContainerImageBuilderBuildItem(S2I)); + } } - public static void createContainerImage(KubernetesClientBuildItem kubernetesClient, + public static void createContainerImage(KubernetesClient kubernetesClient, GeneratedFileSystemResourceBuildItem openshiftManifests, S2iConfig s2iConfig, Path output, @@ -270,7 +273,7 @@ public static void createContainerImage(KubernetesClientBuildItem kubernetesClie throw new RuntimeException("Error creating the s2i binary build archive.", e); } - Config config = kubernetesClient.getClient().getConfiguration(); + Config config = kubernetesClient.getConfiguration(); //Let's disable http2 as it causes issues with duplicate build triggers. config.setHttp2Disable(true); try (KubernetesClient client = Clients.fromConfig(config)) { diff --git a/extensions/kubernetes-client/deployment-internal/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientBuildStep.java b/extensions/kubernetes-client/deployment-internal/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientBuildStep.java index a65b82da207ae..6c5bd544cf0cd 100644 --- a/extensions/kubernetes-client/deployment-internal/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientBuildStep.java +++ b/extensions/kubernetes-client/deployment-internal/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientBuildStep.java @@ -13,6 +13,6 @@ public class KubernetesClientBuildStep { @BuildStep public KubernetesClientBuildItem process(TlsConfig tlsConfig) { - return new KubernetesClientBuildItem(createClient(buildConfig, tlsConfig)); + return new KubernetesClientBuildItem(createConfig(buildConfig, tlsConfig)); } } diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java index 9660b7913b657..31c5c53d2618c 100644 --- a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java @@ -1,12 +1,12 @@ package io.quarkus.kubernetes.client.runtime; +import javax.enterprise.inject.spi.CDI; + import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.http.HttpClient; import io.fabric8.kubernetes.client.vertx.VertxHttpClientBuilder; import io.vertx.core.Vertx; -import javax.enterprise.inject.spi.CDI; - public class QuarkusHttpClientFactory implements io.fabric8.kubernetes.client.http.HttpClient.Factory { private Vertx vertx; diff --git a/extensions/kubernetes-client/spi/src/main/java/io/quarkus/kubernetes/client/spi/KubernetesClientBuildItem.java b/extensions/kubernetes-client/spi/src/main/java/io/quarkus/kubernetes/client/spi/KubernetesClientBuildItem.java index c8f9971b3e03d..b68b3fd113fb1 100644 --- a/extensions/kubernetes-client/spi/src/main/java/io/quarkus/kubernetes/client/spi/KubernetesClientBuildItem.java +++ b/extensions/kubernetes-client/spi/src/main/java/io/quarkus/kubernetes/client/spi/KubernetesClientBuildItem.java @@ -1,18 +1,26 @@ package io.quarkus.kubernetes.client.spi; +import java.util.function.Supplier; + +import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.KubernetesClient; +import io.fabric8.kubernetes.client.KubernetesClientBuilder; import io.quarkus.builder.item.SimpleBuildItem; public final class KubernetesClientBuildItem extends SimpleBuildItem { - private final KubernetesClient client; + private final Config config; + + public KubernetesClientBuildItem(Config config) { + this.config = config; + } - public KubernetesClientBuildItem(KubernetesClient client) { - this.client = client; + public Supplier getClient() { + return () -> new KubernetesClientBuilder().withConfig(config).build(); } - public KubernetesClient getClient() { - return this.client; + public Config getConfig() { + return config; } } diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java index 4e9079689f8f2..7edfbeb45d6a9 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KnativeDeployer.java @@ -17,14 +17,14 @@ public class KnativeDeployer { @BuildStep public void checkEnvironment(Optional selectedDeploymentTarget, List resources, - KubernetesClientBuildItem client, BuildProducer deploymentCluster) { + KubernetesClientBuildItem clientSupplier, BuildProducer deploymentCluster) { selectedDeploymentTarget.ifPresent(target -> { if (!KubernetesDeploy.INSTANCE.checkSilently()) { return; } if (target.getEntry().getName().equals(KNATIVE)) { - try (DefaultKnativeClient knativeClient = client.getClient().adapt(DefaultKnativeClient.class)) { - if (knativeClient.isSupported()) { + try (DefaultKnativeClient client = clientSupplier.getClient().get().adapt(DefaultKnativeClient.class)) { + if (client.isSupported()) { deploymentCluster.produce(new KubernetesDeploymentClusterBuildItem(KNATIVE)); } else { throw new IllegalStateException( diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesDeployer.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesDeployer.java index 8e2e067cecf34..e5037121a6c7c 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesDeployer.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/KubernetesDeployer.java @@ -102,7 +102,7 @@ public void checkEnvironment(Optional deploymentClusters, Optional selectedDeploymentTarget, @@ -130,10 +130,11 @@ public void deploy(KubernetesClientBuildItem kubernetesClient, return; } - final KubernetesClient client = Clients.fromConfig(kubernetesClient.getClient().getConfiguration()); - deploymentResult - .produce(deploy(selectedDeploymentTarget.get().getEntry(), client, outputTarget.getOutputDirectory(), - openshiftConfig, applicationInfo, optionalResourceDefinitions)); + try (final KubernetesClient client = Clients.fromConfig(kubernetesClientSupplier.getConfig())) { + deploymentResult + .produce(deploy(selectedDeploymentTarget.get().getEntry(), client, outputTarget.getOutputDirectory(), + openshiftConfig, applicationInfo, optionalResourceDefinitions)); + } } /** diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftDeployer.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftDeployer.java index 82ecd5a305eed..b74b863826fd7 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftDeployer.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/OpenshiftDeployer.java @@ -18,13 +18,13 @@ public class OpenshiftDeployer { @BuildStep public void checkEnvironment(Optional selectedDeploymentTarget, List resources, - KubernetesClientBuildItem client, BuildProducer deploymentCluster) { + KubernetesClientBuildItem clientSupplier, BuildProducer deploymentCluster) { selectedDeploymentTarget.ifPresent(target -> { if (!KubernetesDeploy.INSTANCE.checkSilently()) { return; } if (target.getEntry().getName().equals(OPENSHIFT)) { - try (var openShiftClient = client.getClient().adapt(OpenShiftClient.class)) { + try (var openShiftClient = clientSupplier.getClient().get().adapt(OpenShiftClient.class)) { if (openShiftClient.isSupported()) { deploymentCluster.produce(new KubernetesDeploymentClusterBuildItem(OPENSHIFT)); } else { From fc790db47cf55ca1d53e98953314c86df1d8d38b Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 1 Feb 2023 12:28:18 +0200 Subject: [PATCH 125/250] Ensure that AwsProxyRequestContext can be used with @Context in RESTEasy Reactive Fixes: #23442 --- extensions/amazon-lambda-rest/deployment/pom.xml | 4 ++++ .../deployment/AmazonLambdaHttpProcessor.java | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/extensions/amazon-lambda-rest/deployment/pom.xml b/extensions/amazon-lambda-rest/deployment/pom.xml index 893a1316b2ca5..3f4646f1e7ce3 100644 --- a/extensions/amazon-lambda-rest/deployment/pom.xml +++ b/extensions/amazon-lambda-rest/deployment/pom.xml @@ -39,6 +39,10 @@ io.quarkus quarkus-amazon-lambda-rest-event-server + + io.quarkus + quarkus-resteasy-reactive-server-spi-deployment + diff --git a/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java b/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java index cf05cf8c56681..bf47c6d40d2cc 100644 --- a/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java +++ b/extensions/amazon-lambda-rest/deployment/src/main/java/io/quarkus/amazon/lambda/http/deployment/AmazonLambdaHttpProcessor.java @@ -2,7 +2,7 @@ import static io.vertx.core.file.impl.FileResolverImpl.CACHE_DIR_BASE_PROP_NAME; -import org.jboss.logging.Logger; +import org.jboss.jandex.DotName; import io.quarkus.amazon.lambda.deployment.LambdaUtil; import io.quarkus.amazon.lambda.deployment.ProvidedAmazonLambdaHandlerBuildItem; @@ -23,6 +23,7 @@ import io.quarkus.amazon.lambda.http.model.Headers; import io.quarkus.amazon.lambda.http.model.MultiValuedTreeMap; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.ExecutionTime; @@ -31,15 +32,16 @@ import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.pkg.builditem.ArtifactResultBuildItem; import io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem; +import io.quarkus.resteasy.reactive.server.spi.ContextTypeBuildItem; import io.quarkus.vertx.http.deployment.RequireVirtualHttpBuildItem; public class AmazonLambdaHttpProcessor { - private static final Logger log = Logger.getLogger(AmazonLambdaHttpProcessor.class); + private static final DotName AWS_PROXY_REQUEST_CONTEXT = DotName.createSimple(AwsProxyRequestContext.class); @BuildStep public void setupCDI(BuildProducer additionalBeans) { AdditionalBeanBuildItem.Builder builder = AdditionalBeanBuildItem.builder(); - builder.addBeanClasses(AwsHttpContextProducers.class); + builder.addBeanClasses(AwsHttpContextProducers.class).setUnremovable(); additionalBeans.produce(builder.build()); } @@ -112,4 +114,11 @@ public void generateScripts(OutputTargetBuildItem target, .replace("${lambdaName}", lambdaName); LambdaUtil.writeFile(target, "sam.native.yaml", output); } + + @BuildStep + public void resteasyReactiveIntegration(BuildProducer contextTypeProducer, + BuildProducer unremovableBeanProducer) { + contextTypeProducer.produce(new ContextTypeBuildItem(AWS_PROXY_REQUEST_CONTEXT)); + unremovableBeanProducer.produce(UnremovableBeanBuildItem.beanTypes(AWS_PROXY_REQUEST_CONTEXT)); + } } From 47c9871c97da30fa0632ada131355ff78a323bf8 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Wed, 1 Feb 2023 12:21:28 +0200 Subject: [PATCH 126/250] Switch amazon-lambda-rest IT to RESTEasy Reactive --- integration-tests/amazon-lambda-rest/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/amazon-lambda-rest/pom.xml b/integration-tests/amazon-lambda-rest/pom.xml index 0885ca631a049..7dc64afe1ce81 100644 --- a/integration-tests/amazon-lambda-rest/pom.xml +++ b/integration-tests/amazon-lambda-rest/pom.xml @@ -19,7 +19,7 @@ io.quarkus - quarkus-resteasy + quarkus-resteasy-reactive io.quarkus @@ -79,7 +79,7 @@ io.quarkus - quarkus-resteasy-deployment + quarkus-resteasy-reactive-deployment ${project.version} pom test From d4eebd0d0521b348d611647a9163c69b02ccf40b Mon Sep 17 00:00:00 2001 From: Mazen Khalil Date: Wed, 1 Feb 2023 12:50:31 +0100 Subject: [PATCH 127/250] Avoid creating 3 Liquibase instances for startup operations --- .../runtime/LiquibaseMongodbRecorder.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java b/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java index e27c2caaffeba..7b6315c66961c 100644 --- a/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java +++ b/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java @@ -47,18 +47,21 @@ public void doStartActions() { for (InstanceHandle liquibaseFactoryHandle : liquibaseFactoryInstance.handles()) { try { LiquibaseMongodbFactory liquibaseFactory = liquibaseFactoryHandle.get(); - if (liquibaseFactory.getConfiguration().cleanAtStart) { - try (Liquibase liquibase = liquibaseFactory.createLiquibase()) { + + if (!liquibaseFactory.getConfiguration().cleanAtStart + && !liquibaseFactory.getConfiguration().migrateAtStart) { + // Don't initialize if no clean or migration required at start + return; + } + + try (Liquibase liquibase = liquibaseFactory.createLiquibase()) { + if (liquibaseFactory.getConfiguration().cleanAtStart) { liquibase.dropAll(); } - } - if (liquibaseFactory.getConfiguration().migrateAtStart) { - if (liquibaseFactory.getConfiguration().validateOnMigrate) { - try (Liquibase liquibase = liquibaseFactory.createLiquibase()) { + if (liquibaseFactory.getConfiguration().migrateAtStart) { + if (liquibaseFactory.getConfiguration().validateOnMigrate) { liquibase.validate(); } - } - try (Liquibase liquibase = liquibaseFactory.createLiquibase()) { liquibase.update(liquibaseFactory.createContexts(), liquibaseFactory.createLabels()); } } From 5d5c239f6d2285ed9a39063f0f3df78d0595ed51 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 1 Feb 2023 13:06:40 +0100 Subject: [PATCH 128/250] Retire cancel-previous-runs We have been using the concurrency feature from GitHub Actions for a while. Fixes #30733 --- .github/workflows/ci-actions-incremental.yml | 5 ----- .github/workflows/ci-fork-mvn-cache.yml | 4 ---- .github/workflows/doc-build.yml | 3 --- .github/workflows/jdk-early-access-build.yml | 4 ---- 4 files changed, 16 deletions(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index c4b5c902f5a20..e18256e8801da 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -120,11 +120,6 @@ jobs: - name: Add quarkusio remote shell: bash run: git remote show quarkusio &> /dev/null || git remote add quarkusio https://github.com/quarkusio/quarkus.git - - uses: n1hility/cancel-previous-runs@v2 - # quarkus-bot will handle this much more efficiently, but it's not active in/for forks - if: github.repository != 'quarkusio/quarkus' - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 diff --git a/.github/workflows/ci-fork-mvn-cache.yml b/.github/workflows/ci-fork-mvn-cache.yml index c048951db82f4..7d25aa7f99454 100644 --- a/.github/workflows/ci-fork-mvn-cache.yml +++ b/.github/workflows/ci-fork-mvn-cache.yml @@ -35,10 +35,6 @@ jobs: if: github.repository != 'quarkusio/quarkus' steps: - uses: actions/checkout@v3 - - uses: n1hility/cancel-previous-runs@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: ci-fork-mvn-cache.yml - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Set up JDK 11 diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index cdb0462ae5860..c01b537470125 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -33,9 +33,6 @@ jobs: if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" steps: - uses: actions/checkout@v3 - - uses: n1hility/cancel-previous-runs@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/jdk-early-access-build.yml b/.github/workflows/jdk-early-access-build.yml index 978b6f6838812..8ad76a1791a0c 100644 --- a/.github/workflows/jdk-early-access-build.yml +++ b/.github/workflows/jdk-early-access-build.yml @@ -77,10 +77,6 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'main' }} - - uses: n1hility/cancel-previous-runs@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: jdk-early-access-build.yml - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - name: Get Date From 69e3ee6aa06c1d94ab1e8fd291bf7589c90bc31b Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 1 Feb 2023 13:07:15 +0100 Subject: [PATCH 129/250] Remove long time deprecated CI workflows --- .github/workflows/ci-actions.yml.disabled | 590 --------------------- .github/workflows/cleanup-prs.yml.disabled | 17 - 2 files changed, 607 deletions(-) delete mode 100644 .github/workflows/ci-actions.yml.disabled delete mode 100644 .github/workflows/cleanup-prs.yml.disabled diff --git a/.github/workflows/ci-actions.yml.disabled b/.github/workflows/ci-actions.yml.disabled deleted file mode 100644 index 6dfc23395335a..0000000000000 --- a/.github/workflows/ci-actions.yml.disabled +++ /dev/null @@ -1,590 +0,0 @@ -name: Quarkus CI - -on: - push: - branches-ignore: - - 'dependabot/**' - # paths-ignore in ci-fork-mvn-cache.yml should match - paths-ignore: - - '.gitignore' - - '.dockerignore' - - '*.md' - - '*.adoc' - - '*.txt' - - 'docs/src/main/asciidoc/**' - - '.github/ISSUE_TEMPLATE/**' - - '.github/*.yml' - - '.github/*.java' - - '.github/*.conf' - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - paths-ignore: - - '.gitignore' - - '.dockerignore' - - '*.md' - - '*.adoc' - - '*.txt' - - 'docs/src/main/asciidoc/**' - - '.github/ISSUE_TEMPLATE/**' - - '.github/*.yml' - - '.github/*.java' - - '.github/*.conf' - -concurrency: - group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}" - cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'quarkusio/quarkus' }} - -env: - # Workaround testsuite locale issue - LANG: en_US.UTF-8 - NATIVE_TEST_MAVEN_OPTS: "-B --settings .github/mvn-settings.xml --fail-at-end -Dquarkus.native.container-build=true -Dtest-containers -Dstart-containers -Dnative-image.xmx=5g -Dnative -Dnative.surefire.skip -Dformat.skip -Dno-descriptor-tests install -DskipDocs" - JVM_TEST_MAVEN_OPTS: "-e -B --settings .github/mvn-settings.xml -Dtest-containers -Dstart-containers -Dformat.skip -DskipDocs" - DB_USER: hibernate_orm_test - DB_PASSWORD: hibernate_orm_test - DB_NAME: hibernate_orm_test -jobs: - ci-sanity-check: - name: "CI Sanity Check" - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - steps: - - name: Build - run: sleep 30 - build-jdk11: - name: "Initial JDK 11 Build" - runs-on: ubuntu-latest - # Skip main in forks - # Skip draft PRs and those with WIP in the subject, rerun as soon as its removed - if: "(github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')) && ( \ - github.event_name != 'pull_request' || ( \ - github.event.pull_request.draft == false && \ - github.event.pull_request.state != 'closed' && \ - contains(github.event.pull_request.title, 'wip ') == false && \ - contains(github.event.pull_request.title, '[wip]') == false && \ - ( - github.event.action != 'edited' || \ - contains(github.event.changes.title.from, 'wip ') || \ - contains(github.event.changes.title.from, '[wip]') \ - ) \ - ) \ - )" - steps: - - uses: actions/checkout@v2 - - uses: n1hility/cancel-previous-runs@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: Reclaim Disk Space - run: .github/ci-prerequisites.sh - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Get Date - id: get-date - run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" - shell: bash - - name: Cache Maven Repository - id: cache-maven - uses: actions/cache@v2 - with: - path: ~/.m2/repository - # refresh cache every month to avoid unlimited growth - key: q2maven-${{ steps.get-date.outputs.date }} - - name: Build - run: | - ./mvnw -T1C -e -B -DskipTests -DskipITs -Dinvoker.skip -Dno-format -Dtcks --settings .github/mvn-settings.xml clean install - - name: Verify extension dependencies - shell: bash - run: | - ./update-extension-dependencies.sh -B --settings .github/mvn-settings.xml - if [ `git status -s -u no '*pom.xml' | wc -l` -ne 0 ] - then - echo -e '\033[0;31mError:\033[0m Dependencies to extension artifacts are outdated! Run ./update-extension-dependencies.sh and add the modified pom.xml files to your commit.' 1>&2 - exit 1 - fi - - name: Tar Maven Repo - shell: bash - run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository - - name: Persist Maven Repo - uses: actions/upload-artifact@v1 - with: - name: maven-repo - path: maven-repo.tgz - - name: Delete Local Artifacts From Cache - shell: bash - run: rm -r ~/.m2/repository/io/quarkus - - linux-jvm-tests: - name: JVM Tests - JDK ${{matrix.java.name}} - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 240 - env: - MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m - strategy: - fail-fast: false - matrix: - java : - - { name: "8", - java-version: 8, - maven_args: "-pl !integration-tests/kubernetes/quarkus-standard-way" - } - - { - name: "11", - java-version: 11, - maven_args: "" - } - - { - name: "15", - java-version: 15, - maven_args: "-pl !integration-tests/kubernetes/quarkus-standard-way" - } - - steps: - - name: Stop mysql - shell: bash - run: | - ss -ln - sudo service mysql stop || true - - - uses: actions/checkout@v2 - - - name: apt clean - shell: bash - run: sudo apt-get clean - - - name: Reclaim Disk Space - run: .github/ci-prerequisites.sh - - - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: ${{ matrix.java.java-version }} - - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Build with Maven - run: eval ./mvnw $JVM_TEST_MAVEN_OPTS install -pl !integration-tests/gradle -pl !integration-tests/maven -pl !integration-tests/devtools ${{ matrix.java.maven_args}} - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-linux-jvm${{matrix.java.name}} - path: 'test-reports.tgz' - - windows-jdk11-jvm-tests: - name: JVM Tests - JDK 11 Windows - runs-on: windows-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 180 - env: - MAVEN_OPTS: -Xmx1408m -XX:MaxMetaspaceSize=1000m - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Build with Maven - shell: bash - run: ./mvnw -B --settings .github/mvn-settings.xml -DskipDocs -Dformat.skip -pl !integration-tests/gradle -pl !integration-tests/maven -pl !integration-tests/devtools install - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: | - # Disambiguate windows find from cygwin find - /usr/bin/find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-windows-jdk11-jvm - path: 'test-reports.tgz' - - linux-jvm-maven-tests: - name: Maven Tests - JDK ${{matrix.java.name}} - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - java: - - { - name: "11", - java-version: 11 - } - steps: - - uses: actions/checkout@v2 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: ${{ matrix.java.java-version }} - - name: Run Maven integration tests - run: eval ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/maven' - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-linux-maven-java${{matrix.java.name}} - path: 'test-reports.tgz' - - windows-jdk11-jvm-maven-tests: - name: Maven Tests - JDK 11 Windows - runs-on: windows-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 60 - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Run Maven integration tests - shell: bash - run: ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/maven' - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-windows-maven-java11 - path: 'test-reports.tgz' - - linux-jvm-gradle-tests: - name: Gradle Tests - JDK ${{matrix.java.name}} - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - java: - - { - name: "11", - java-version: 11 - } - steps: - - uses: actions/checkout@v2 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: ${{ matrix.java.java-version }} - - name: Build with Gradle - uses: eskatos/gradle-command-action@v1 - env: - GRADLE_OPTS: -Xmx1408m - with: - gradle-version: wrapper - wrapper-directory: integration-tests/gradle - build-root-directory: integration-tests/gradle - arguments: clean test -i -S --stacktrace --no-daemon - - windows-jdk11-jvm-gradle-tests: - name: Gradle Tests - JDK 11 Windows - needs: build-jdk11 - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - runs-on: windows-latest - timeout-minutes: 80 - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Build with Gradle - uses: eskatos/gradle-command-action@v1 - timeout-minutes: 60 - env: - GRADLE_OPTS: -Xmx1408m - with: - gradle-version: wrapper - wrapper-directory: integration-tests/gradle - build-root-directory: integration-tests/gradle - arguments: clean test -i -S --stacktrace --no-daemon - - linux-jvm-devtools-tests: - name: Devtools Tests - JDK ${{matrix.java.name}} - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - java: - - { - name: "11", - java-version: 11 - } - steps: - - uses: actions/checkout@v2 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Set up JDK ${{ matrix.java.name }} - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: ${{ matrix.java.java-version }} - - name: Run Devtools integration tests - run: eval ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/devtools' - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-linux-devtools-java${{matrix.java.name}} - path: 'test-reports.tgz' - - windows-jdk11-jvm-devtools-tests: - name: Devtools Tests - JDK 11 Windows - runs-on: windows-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - needs: build-jdk11 - timeout-minutes: 60 - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v2 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Run Devtools integration tests - shell: bash - run: ./mvnw $JVM_TEST_MAVEN_OPTS install -pl 'integration-tests/devtools' - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-windows-devtools-java11 - path: 'test-reports.tgz' - - tcks-test: - name: MicroProfile TCKs Tests - needs: build-jdk11 - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - runs-on: ubuntu-latest - timeout-minutes: 150 - - steps: - - uses: actions/checkout@v2 - with: - path: tcks - - name: Download RESTEasy Reactive Testsuite - uses: actions/checkout@v2 - with: - repository: quarkusio/resteasy-reactive-testsuite - path: resteasy-reactive-testsuite - - name: Reclaim Disk Space - run: .github/ci-prerequisites.sh - working-directory: ./tcks - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Run RESTEasy Reactive TCK - run: mvn -B --settings ../tcks/.github/mvn-settings.xml install - working-directory: ./resteasy-reactive-testsuite - - name: Verify with Maven - run: ../mvnw -B --settings .github/mvn-settings.xml -f tcks/pom.xml install - working-directory: ./tcks - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -name '*-reports' -type d -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-tcks - path: 'test-reports.tgz' - - native-tests-read-json-matrix: - name: Native Tests - Read JSON matrix - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - outputs: - matrix: ${{ steps.read.outputs.matrix }} - steps: - - uses: actions/checkout@v2 - - id: read - run: | - json=$(tr -d '\n' < .github/native-tests.json ) - echo $json - echo "::set-output name=matrix::${json}" - - native-tests: - name: Native Tests - ${{matrix.category}} - needs: [build-jdk11, native-tests-read-json-matrix] - runs-on: ubuntu-latest - # Skip main in forks - if: "github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')" - # Ignore the following YAML Schema error - timeout-minutes: ${{matrix.timeout}} - strategy: - max-parallel: 8 - fail-fast: false - matrix: ${{ fromJson(needs.native-tests-read-json-matrix.outputs.matrix) }} - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: temurin - java-version: 11 - - name: Reclaim Disk Space - run: .github/ci-prerequisites.sh - # We do this so we can get better analytics for the downloaded version of the build images - - name: Update Docker Client User Agent - shell: bash - run: | - cat <<< $(jq '.HttpHeaders += {"User-Agent": "Quarkus-CI-Docker-Client"}' ~/.docker/config.json) > ~/.docker/config.json - - name: Download Maven Repo - uses: actions/download-artifact@v1 - with: - name: maven-repo - path: . - - name: Extract Maven Repo - shell: bash - run: tar -xzf maven-repo.tgz -C ~ - - name: Build with Maven - env: - TEST_MODULES: ${{matrix.test-modules}} - CATEGORY: ${{matrix.category}} - run: | - for i in $TEST_MODULES - do modules+=("integration-tests/$i"); done - IFS=, - eval ./mvnw -pl "${modules[*]}" $NATIVE_TEST_MAVEN_OPTS - # add the 'simple with spaces' project to the run of 'Misc1' by executing it explicitly - # done because there is no good way to pass strings with empty values to the previous command - # so this hack is as good as any - if [ "$CATEGORY" == "Misc1" ]; then - ./mvnw -Dnative -Dquarkus.native.container-build=true -B --settings .github/mvn-settings.xml -f 'integration-tests/simple with space/' verify - fi - - name: Prepare failure archive (if maven failed) - if: failure() - shell: bash - run: find . -type d -name '*-reports' -o -wholename '*/build/reports/tests/functionalTest' -o -name '*.log' | tar -czf test-reports.tgz -T - - - name: Upload failure Archive (if maven failed) - uses: actions/upload-artifact@v1 - if: failure() - with: - name: test-reports-native-${{matrix.category}} - path: 'test-reports.tgz' diff --git a/.github/workflows/cleanup-prs.yml.disabled b/.github/workflows/cleanup-prs.yml.disabled deleted file mode 100644 index aa735c8eee1ee..0000000000000 --- a/.github/workflows/cleanup-prs.yml.disabled +++ /dev/null @@ -1,17 +0,0 @@ -name: Cleanup Duplicate CI Runs - -on: - schedule: - # * is a special character in YAML so you have to quote this string - - cron: '*/5 * * * *' - -jobs: - cleanup-prs: - if: github.repository == 'quarkusio/quarkus' - name: "Cleanup Duplicate PRs" - runs-on: ubuntu-latest - steps: - - uses: n1hility/cancel-previous-runs@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: ci-actions.yml From 7df5c21371b14b7945f1e2c2a5bd4639f1b43be2 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Mon, 23 Jan 2023 15:47:56 +0100 Subject: [PATCH 130/250] ArC: fix obtaining priority of a producer-based alternative from class-level @Priority --- .../java/io/quarkus/arc/processor/Beans.java | 4 +- ...lternativeProducerPriorityOnClassTest.java | 60 +++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java index 5a02c4824185b..b22eaeaa4e83b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java @@ -172,7 +172,7 @@ static BeanInfo createProducerMethod(Set beanTypes, MethodInfo producerMet if (isAlternative) { if (priority == null) { - priority = declaringBean.getAlternativePriority(); + priority = declaringBean.getPriority(); } priority = initAlternativePriority(producerMethod, priority, stereotypes, beanDeployment); if (priority == null) { @@ -287,7 +287,7 @@ static BeanInfo createProducerField(FieldInfo producerField, BeanInfo declaringB if (isAlternative) { if (priority == null) { - priority = declaringBean.getAlternativePriority(); + priority = declaringBean.getPriority(); } priority = initAlternativePriority(producerField, priority, stereotypes, beanDeployment); // after all attempts, priority is still null diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java new file mode 100644 index 0000000000000..298d1a508aa2a --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java @@ -0,0 +1,60 @@ +package io.quarkus.arc.test.alternatives.priority; + +import static org.junit.jupiter.api.Assertions.assertNotNull; + +import javax.annotation.Priority; +import javax.enterprise.context.Dependent; +import javax.enterprise.inject.Alternative; +import javax.enterprise.inject.Produces; +import javax.inject.Inject; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.test.ArcTestContainer; +import io.quarkus.arc.test.MyQualifier; + +public class AlternativeProducerPriorityOnClassTest { + @RegisterExtension + ArcTestContainer testContainer = new ArcTestContainer(Producer.class, Consumer.class); + + @Test + public void testAlternativePriorityResolution() { + Consumer bean = Arc.container().instance(Consumer.class).get(); + assertNotNull(bean.foo); + assertNotNull(bean.bar); + } + + static class Foo { + } + + @MyQualifier + static class Bar { + } + + @Dependent + @Priority(1000) + static class Producer { + @Produces + @Alternative + Foo produceFoo = new Foo(); + + @Produces + @Alternative + @MyQualifier + Bar produceBar() { + return new Bar(); + } + } + + @Dependent + static class Consumer { + @Inject + Foo foo; + + @Inject + @MyQualifier + Bar bar; + } +} From 605f5b0ac3217c808e714be6c8e85045f88561cb Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Wed, 25 Jan 2023 14:08:36 +0100 Subject: [PATCH 131/250] ArC: fix generating Bean.create() to wrap checked exceptions in CreationException --- .../quarkus/arc/processor/BeanGenerator.java | 37 +++++--- .../java/io/quarkus/arc/impl/Reflections.java | 14 ++- .../test/bean/create/BeanCreateErrorTest.java | 86 +++++++++++++++++++ 3 files changed, 126 insertions(+), 11 deletions(-) create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index 828fb73107911..279f4b60c6687 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -940,22 +940,23 @@ protected void implementCreate(ClassOutput classOutput, ClassCreator beanCreator Map decoratorToProviderSupplierField, String targetPackage, boolean isApplicationClass) { - MethodCreator create = beanCreator.getMethodCreator("create", providerType.descriptorName(), CreationalContext.class) - .setModifiers(ACC_PUBLIC); + MethodCreator doCreate = beanCreator + .getMethodCreator("doCreate", providerType.descriptorName(), CreationalContext.class) + .setModifiers(ACC_PRIVATE); if (bean.isClassBean()) { implementCreateForClassBean(classOutput, beanCreator, bean, providerType, baseName, injectionPointToProviderSupplierField, interceptorToProviderSupplierField, decoratorToProviderSupplierField, reflectionRegistration, - targetPackage, isApplicationClass, create); + targetPackage, isApplicationClass, doCreate); } else if (bean.isProducerMethod()) { implementCreateForProducerMethod(classOutput, beanCreator, bean, providerType, baseName, injectionPointToProviderSupplierField, reflectionRegistration, - targetPackage, isApplicationClass, create); + targetPackage, isApplicationClass, doCreate); } else if (bean.isProducerField()) { implementCreateForProducerField(classOutput, beanCreator, bean, providerType, baseName, injectionPointToProviderSupplierField, reflectionRegistration, - targetPackage, isApplicationClass, create); + targetPackage, isApplicationClass, doCreate); } else if (bean.isSynthetic()) { if (bean.getScope().isNormal()) { // Normal scoped synthetic beans should never return null @@ -963,21 +964,37 @@ protected void implementCreate(ClassOutput classOutput, ClassCreator beanCreator .getMethodCreator("createSynthetic", providerType.descriptorName(), CreationalContext.class) .setModifiers(ACC_PRIVATE); bean.getCreatorConsumer().accept(createSynthetic); - ResultHandle ret = create.invokeVirtualMethod(createSynthetic.getMethodDescriptor(), create.getThis(), - create.getMethodParam(0)); - BytecodeCreator nullBeanInstance = create.ifNull(ret).trueBranch(); + ResultHandle ret = doCreate.invokeVirtualMethod(createSynthetic.getMethodDescriptor(), doCreate.getThis(), + doCreate.getMethodParam(0)); + BytecodeCreator nullBeanInstance = doCreate.ifNull(ret).trueBranch(); StringBuilderGenerator message = Gizmo.newStringBuilder(nullBeanInstance); message.append("Null contextual instance was produced by a normal scoped synthetic bean: "); message.append(Gizmo.toString(nullBeanInstance, nullBeanInstance.getThis())); ResultHandle e = nullBeanInstance.newInstance( MethodDescriptor.ofConstructor(CreationException.class, String.class), message.callToString()); nullBeanInstance.throwException(e); - create.returnValue(ret); + doCreate.returnValue(ret); } else { - bean.getCreatorConsumer().accept(create); + bean.getCreatorConsumer().accept(doCreate); } } + MethodCreator create = beanCreator.getMethodCreator("create", providerType.descriptorName(), CreationalContext.class) + .setModifiers(ACC_PUBLIC); + TryBlock tryBlock = create.tryBlock(); + tryBlock.returnValue( + tryBlock.invokeSpecialMethod(doCreate.getMethodDescriptor(), tryBlock.getThis(), tryBlock.getMethodParam(0))); + // `Reflections.newInstance()` throws `CreationException` on its own, + // but that's handled like all other `RuntimeException`s + // also ignore custom Throwables, they are virtually never used in practice + CatchBlockCreator catchBlock = tryBlock.addCatch(Exception.class); + catchBlock.ifFalse(catchBlock.instanceOf(catchBlock.getCaughtException(), RuntimeException.class)) + .falseBranch().throwException(catchBlock.getCaughtException()); + ResultHandle creationException = catchBlock.newInstance( + MethodDescriptor.ofConstructor(CreationException.class, Throwable.class), + catchBlock.getCaughtException()); + catchBlock.throwException(creationException); + // Bridge method needed MethodCreator bridgeCreate = beanCreator.getMethodCreator("create", Object.class, CreationalContext.class) .setModifiers(ACC_PUBLIC | ACC_BRIDGE); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java index 465a338fd01d7..804d48862b104 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java @@ -21,6 +21,8 @@ import java.util.Set; import java.util.function.Function; +import javax.enterprise.inject.CreationException; + /** * Neither the class nor its methods are considered a public API and should only be used internally. */ @@ -129,7 +131,17 @@ public static Object newInstance(Class clazz, Class[] parameterTypes, Obje } try { return constructor.newInstance(args); - } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { + } catch (InvocationTargetException e) { + Throwable cause = e.getCause(); + if (cause instanceof RuntimeException) { + throw (RuntimeException) cause; + } + if (cause instanceof Error) { + throw (Error) cause; + } + // this method is only used to instantiate beans, so throwing `CreationException` is fine + throw new CreationException(cause); + } catch (InstantiationException | IllegalAccessException | IllegalArgumentException e) { throw new RuntimeException("Cannot invoke constructor: " + clazz.getName(), e); } } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java new file mode 100644 index 0000000000000..57c04fbc7fc79 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java @@ -0,0 +1,86 @@ +package io.quarkus.arc.test.bean.create; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +import java.math.BigDecimal; +import java.math.BigInteger; + +import javax.enterprise.context.Dependent; +import javax.enterprise.inject.CreationException; +import javax.enterprise.inject.Produces; +import javax.inject.Inject; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.test.ArcTestContainer; + +public class BeanCreateErrorTest { + @RegisterExtension + ArcTestContainer container = new ArcTestContainer(CheckedExceptionBean.class, CheckedExceptionProducerBean.class, + UncheckedExceptionBean.class, UncheckedExceptionProducerBean.class); + + @Test + public void checkedExceptionWrapped() { + // Test that the checked exception is wrapped + + CreationException exception = assertThrows(CreationException.class, () -> { + Arc.container().instance(CheckedExceptionBean.class); + }); + assertEquals("foo", exception.getCause().getMessage()); + + exception = assertThrows(CreationException.class, () -> { + Arc.container().instance(BigInteger.class); + }); + assertEquals("bar", exception.getCause().getMessage()); + } + + @Test + public void uncheckedExceptionNotWrapped() { + // Test that the unchecked exception is _not_ wrapped + + assertThrows(IllegalArgumentException.class, () -> { + Arc.container().instance(UncheckedExceptionBean.class); + }); + + assertThrows(IllegalStateException.class, () -> { + Arc.container().instance(BigDecimal.class); + }); + } + + @Dependent + static class CheckedExceptionBean { + @Inject + public CheckedExceptionBean() throws Exception { + throw new Exception("foo"); + } + } + + @Dependent + static class CheckedExceptionProducerBean { + @Produces + @Dependent + BigInteger produce() throws Exception { + throw new Exception("bar"); + } + } + + @Dependent + static class UncheckedExceptionBean { + @Inject + public UncheckedExceptionBean() { + throw new IllegalArgumentException(); + } + } + + @Dependent + static class UncheckedExceptionProducerBean { + @Produces + @Dependent + BigDecimal produce() { + throw new IllegalStateException(); + } + } +} From ac7c0b0bd0ed79e3aa465f73f04af0b727c8d272 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Fri, 27 Jan 2023 15:12:52 +0100 Subject: [PATCH 132/250] ArC: add support for static disposer methods This commit also fixes a NPE in case of static producer method declared on a `@Dependent` bean. --- .../quarkus/arc/processor/BeanGenerator.java | 44 ++++--- .../producer/disposer/StaticDisposerTest.java | 112 ++++++++++++++++++ 2 files changed, 140 insertions(+), 16 deletions(-) create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index 279f4b60c6687..fea18c51b3f30 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -846,6 +846,7 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide // Invoke the disposer method // declaringProvider.get(new CreationalContextImpl<>()).dispose() MethodInfo disposerMethod = bean.getDisposer().getDisposerMethod(); + boolean isStatic = Modifier.isStatic(disposerMethod.flags()); ResultHandle declaringProviderSupplierHandle = destroy.readInstanceField( FieldDescriptor.of(beanCreator.getClassName(), FIELD_NAME_DECLARING_PROVIDER_SUPPLIER, @@ -855,15 +856,21 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide MethodDescriptors.SUPPLIER_GET, declaringProviderSupplierHandle); ResultHandle ctxHandle = destroy.newInstance( MethodDescriptor.ofConstructor(CreationalContextImpl.class, Contextual.class), destroy.loadNull()); - ResultHandle declaringProviderInstanceHandle = destroy.invokeInterfaceMethod( - MethodDescriptors.INJECTABLE_REF_PROVIDER_GET, declaringProviderHandle, - ctxHandle); - - if (bean.getDeclaringBean().getScope().isNormal()) { - // We need to unwrap the client proxy + ResultHandle declaringProviderInstanceHandle; + if (isStatic) { + // for static disposers, we don't need to resolve this handle + // the `null` will only be used for reflective invocation in case the disposer is private, which is OK + declaringProviderInstanceHandle = destroy.loadNull(); + } else { declaringProviderInstanceHandle = destroy.invokeInterfaceMethod( - MethodDescriptors.CLIENT_PROXY_GET_CONTEXTUAL_INSTANCE, - declaringProviderInstanceHandle); + MethodDescriptors.INJECTABLE_REF_PROVIDER_GET, declaringProviderHandle, + ctxHandle); + if (bean.getDeclaringBean().getScope().isNormal()) { + // We need to unwrap the client proxy + declaringProviderInstanceHandle = destroy.invokeInterfaceMethod( + MethodDescriptors.CLIENT_PROXY_GET_CONTEXTUAL_INSTANCE, + declaringProviderInstanceHandle); + } } ResultHandle[] referenceHandles = new ResultHandle[disposerMethod.parametersCount()]; @@ -904,6 +911,8 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide destroy.invokeStaticMethod(MethodDescriptors.REFLECTIONS_INVOKE_METHOD, destroy.loadClass(disposerMethod.declaringClass().name().toString()), destroy.load(disposerMethod.name()), paramTypesArray, declaringProviderInstanceHandle, argsArray); + } else if (isStatic) { + destroy.invokeStaticMethod(MethodDescriptor.of(disposerMethod), referenceHandles); } else { destroy.invokeVirtualMethod(MethodDescriptor.of(disposerMethod), declaringProviderInstanceHandle, referenceHandles); @@ -912,8 +921,8 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide // Destroy @Dependent instances injected into method parameters of a disposer method destroy.invokeInterfaceMethod(MethodDescriptors.CREATIONAL_CTX_RELEASE, ctxHandle); - // If the declaring bean is @Dependent we must destroy the instance afterwards - if (BuiltinScope.DEPENDENT.is(bean.getDisposer().getDeclaringBean().getScope())) { + // If the declaring bean is @Dependent and the disposer is not static, we must destroy the instance afterwards + if (BuiltinScope.DEPENDENT.is(bean.getDisposer().getDeclaringBean().getScope()) && !isStatic) { destroy.invokeInterfaceMethod(MethodDescriptors.INJECTABLE_BEAN_DESTROY, declaringProviderHandle, declaringProviderInstanceHandle, ctxHandle); } @@ -927,7 +936,7 @@ protected void implementDestroy(BeanInfo bean, ClassCreator beanCreator, Provide // Bridge method needed MethodCreator bridgeDestroy = beanCreator.getMethodCreator("destroy", void.class, Object.class, CreationalContext.class) - .setModifiers(ACC_PUBLIC); + .setModifiers(ACC_PUBLIC | ACC_BRIDGE); bridgeDestroy.returnValue(bridgeDestroy.invokeVirtualMethod(destroy.getMethodDescriptor(), bridgeDestroy.getThis(), bridgeDestroy.getMethodParam(0), bridgeDestroy.getMethodParam(1))); @@ -1241,6 +1250,8 @@ void implementCreateForProducerMethod(ClassOutput classOutput, ClassCreator bean AssignableResultHandle instanceHandle; MethodInfo producerMethod = bean.getTarget().get().asMethod(); + boolean isStatic = Modifier.isStatic(producerMethod.flags()); + instanceHandle = create.createVariable(DescriptorUtils.extToInt(providerType.className())); // instance = declaringProviderSupplier.get().get(new CreationalContextImpl<>()).produce() ResultHandle ctxHandle = create.newInstance( @@ -1252,8 +1263,9 @@ void implementCreateForProducerMethod(ClassOutput classOutput, ClassCreator bean create.getThis()); ResultHandle declaringProviderHandle = create.invokeInterfaceMethod( MethodDescriptors.SUPPLIER_GET, declaringProviderSupplierHandle); - if (Modifier.isStatic(producerMethod.flags())) { - // for static producers, we don't need to resolve this this handle + if (isStatic) { + // for static producers, we don't need to resolve this handle + // the `null` will only be used for reflective invocation in case the producer is private, which is OK declaringProviderInstanceHandle = create.loadNull(); } else { declaringProviderInstanceHandle = create.invokeInterfaceMethod( @@ -1309,7 +1321,7 @@ void implementCreateForProducerMethod(ClassOutput classOutput, ClassCreator bean argsArray)); } else { ResultHandle invokeMethodHandle; - if (Modifier.isStatic(producerMethod.flags())) { + if (isStatic) { invokeMethodHandle = create.invokeStaticMethod(MethodDescriptor.of(producerMethod), referenceHandles); } else { @@ -1326,8 +1338,8 @@ void implementCreateForProducerMethod(ClassOutput classOutput, ClassCreator bean bean.getTarget().get().asMethod().name() + "()"); } - // If the declaring bean is @Dependent we must destroy the instance afterwards - if (BuiltinScope.DEPENDENT.is(bean.getDeclaringBean().getScope())) { + // If the declaring bean is @Dependent and the producer is not static, we must destroy the instance afterwards + if (BuiltinScope.DEPENDENT.is(bean.getDeclaringBean().getScope()) && !isStatic) { create.invokeInterfaceMethod(MethodDescriptors.INJECTABLE_BEAN_DESTROY, declaringProviderHandle, declaringProviderInstanceHandle, ctxHandle); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java new file mode 100644 index 0000000000000..264ce8ab98c7a --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java @@ -0,0 +1,112 @@ +package io.quarkus.arc.test.producer.disposer; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; + +import java.math.BigDecimal; +import java.math.BigInteger; + +import javax.annotation.PostConstruct; +import javax.annotation.PreDestroy; +import javax.enterprise.context.Dependent; +import javax.enterprise.inject.Disposes; +import javax.enterprise.inject.Produces; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.InstanceHandle; +import io.quarkus.arc.test.ArcTestContainer; + +public class StaticDisposerTest { + @RegisterExtension + ArcTestContainer container = new ArcTestContainer(Producers.class, Dependency.class); + + @Test + public void testProducersDisposers() { + assertState(0, 0, false, false, 0, 0); + + InstanceHandle intHandle = Arc.container().instance(BigInteger.class); + assertEquals(1, intHandle.get().intValue()); // instance producer + assertState(1, 1, false, false, 1, 0); + intHandle.destroy(); // static disposer + assertState(1, 1, false, true, 2, 2); + + InstanceHandle decHandle = Arc.container().instance(BigDecimal.class); + assertEquals(2, decHandle.get().intValue()); // static producer + assertState(1, 1, false, true, 3, 2); + decHandle.destroy(); // instance disposer + assertState(2, 2, true, true, 4, 4); + } + + private void assertState(int expectedInstancesCreated, int expectedInstancesDestroyed, + boolean expectedInstanceDisposerCalled, boolean expectedStaticDisposerCalled, + int expectedDependencyCreated, int expectedDependencyDestroyed) { + assertEquals(expectedInstancesCreated, Producers.instancesCreated); + assertEquals(expectedInstancesDestroyed, Producers.instancesDestroyed); + assertEquals(expectedInstanceDisposerCalled, Producers.instanceDisposerCalled); + assertEquals(expectedStaticDisposerCalled, Producers.staticDisposerCalled); + assertEquals(expectedDependencyCreated, Dependency.created); + assertEquals(expectedDependencyDestroyed, Dependency.destroyed); + } + + @Dependent + static class Producers { + static int instancesCreated = 0; + static int instancesDestroyed = 0; + + static boolean instanceDisposerCalled = false; + static boolean staticDisposerCalled = false; + + @PostConstruct + void created() { + instancesCreated++; + } + + @PreDestroy + void destroy() { + instancesDestroyed++; + } + + @Produces + @Dependent + BigInteger instanceProducer(Dependency ignored) { + return new BigInteger("1"); + } + + @Produces + @Dependent + static BigDecimal staticProducer(Dependency ignored) { + return new BigDecimal("2.0"); + } + + void instanceDisposer(@Disposes BigDecimal disposed, Dependency ignored) { + assertFalse(instanceDisposerCalled); + assertEquals(2, disposed.intValue()); + instanceDisposerCalled = true; + } + + static void staticDisposer(@Disposes BigInteger disposed, Dependency ignored) { + assertFalse(staticDisposerCalled); + assertEquals(1, disposed.intValue()); + staticDisposerCalled = true; + } + } + + @Dependent + static class Dependency { + static int created = 0; + static int destroyed = 0; + + @PostConstruct + void created() { + created++; + } + + @PreDestroy + void destroyed() { + destroyed++; + } + } +} From 7ad0ccc581b41047dbe49e9c60e7d2c257c0705e Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Fri, 27 Jan 2023 15:23:02 +0100 Subject: [PATCH 133/250] ArC: improve runtime representation of array bean types Previously, we always used `GenericArrayType` to represent array bean types at runtime. This is unexpected for people, and also for at least one TCK test that expects a `java.lang.Class` representation of `String[]`. This commit makes sure that arrays of primitive types and simple class types are represented using an array-typed `java.lang.Class` object. --- .../java/io/quarkus/arc/processor/Types.java | 28 ++++++-- .../test/bean/types/ArrayBeanTypesTest.java | 72 +++++++++++++++++++ 2 files changed, 93 insertions(+), 7 deletions(-) create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index 5066d07f874d2..878c6404afb76 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -21,6 +21,7 @@ import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationValue; +import org.jboss.jandex.ArrayType; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; import org.jboss.jandex.FieldInfo; @@ -186,13 +187,26 @@ private static void getTypeHandle(AssignableResultHandle variable, BytecodeCreat getParameterizedType(variable, creator, tccl, type.asParameterizedType(), cache, typeVariables); } else if (Kind.ARRAY.equals(type.kind())) { - Type componentType = type.asArrayType().component(); - // E.g. String[] -> new GenericArrayTypeImpl(String.class) - AssignableResultHandle componentTypeHandle = creator.createVariable(Object.class); - getTypeHandle(componentTypeHandle, creator, componentType, tccl, cache, typeVariables); - ResultHandle arrayHandle = creator.newInstance( - MethodDescriptor.ofConstructor(GenericArrayTypeImpl.class, java.lang.reflect.Type.class), - componentTypeHandle); + ArrayType array = type.asArrayType(); + Type elementType = array.component(); + while (elementType.kind() == Kind.ARRAY) { + elementType = elementType.asArrayType().component(); + } + + ResultHandle arrayHandle; + if (elementType.kind() == Kind.PRIMITIVE || elementType.kind() == Kind.CLASS) { + // can produce a java.lang.Class representation of the array type + // E.g. String[] -> String[].class + arrayHandle = doLoadClass(creator, array.name().toString(), tccl); + } else { + // E.g. List[] -> new GenericArrayTypeImpl(new ParameterizedTypeImpl(List.class, String.class)) + Type componentType = type.asArrayType().component(); + AssignableResultHandle componentTypeHandle = creator.createVariable(Object.class); + getTypeHandle(componentTypeHandle, creator, componentType, tccl, cache, typeVariables); + arrayHandle = creator.newInstance( + MethodDescriptor.ofConstructor(GenericArrayTypeImpl.class, java.lang.reflect.Type.class), + componentTypeHandle); + } if (cache != null) { cache.put(type, arrayHandle, creator); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java new file mode 100644 index 0000000000000..90d3ae1b2b2fb --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java @@ -0,0 +1,72 @@ +package io.quarkus.arc.test.bean.types; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.lang.reflect.Type; +import java.util.List; +import java.util.Set; + +import javax.enterprise.context.Dependent; +import javax.enterprise.inject.Produces; +import javax.enterprise.inject.spi.Bean; +import javax.enterprise.util.TypeLiteral; +import javax.inject.Named; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.InjectableBean; +import io.quarkus.arc.test.ArcTestContainer; + +public class ArrayBeanTypesTest { + @RegisterExtension + ArcTestContainer container = new ArcTestContainer(Producer.class); + + @Test + public void test() { + InjectableBean intArray = Arc.container().instance("intArray").getBean(); + assertBeanTypes(intArray, Object.class, int[][].class); + + InjectableBean stringArray = Arc.container().instance("stringArray").getBean(); + assertBeanTypes(stringArray, Object.class, String[].class); + + InjectableBean listArray = Arc.container().instance("listArray").getBean(); + assertBeanTypes(listArray, Object.class, new TypeLiteral[]>() { + }.getType()); + } + + private void assertBeanTypes(Bean bean, Type... expectedTypes) { + Set types = bean.getTypes(); + + assertEquals(expectedTypes.length, types.size()); + for (Type expectedType : expectedTypes) { + assertTrue(types.contains(expectedType)); + } + } + + @Dependent + static class Producer { + @Produces + @Dependent + @Named("intArray") + int[][] intArray() { + return new int[0][0]; + } + + @Produces + @Dependent + @Named("stringArray") + String[] stringArray() { + return new String[0]; + } + + @Produces + @Dependent + @Named("listArray") + List[] listArray() { + return (List[]) new List[0]; + } + } +} From 975224754d2dea415904e69c3487c9ee96201cc7 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Fri, 27 Jan 2023 17:11:37 +0100 Subject: [PATCH 134/250] ArC: add validation for array-typed producers --- .../java/io/quarkus/arc/processor/Types.java | 31 +++++++++++-- .../io/quarkus/arc/processor/TypesTest.java | 44 ++++++++++++++----- 2 files changed, 59 insertions(+), 16 deletions(-) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index 878c6404afb76..92f61b5a91c1a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -188,10 +188,7 @@ private static void getTypeHandle(AssignableResultHandle variable, BytecodeCreat } else if (Kind.ARRAY.equals(type.kind())) { ArrayType array = type.asArrayType(); - Type elementType = array.component(); - while (elementType.kind() == Kind.ARRAY) { - elementType = elementType.asArrayType().component(); - } + Type elementType = getArrayElementType(array); ResultHandle arrayHandle; if (elementType.kind() == Kind.PRIMITIVE || elementType.kind() == Kind.CLASS) { @@ -351,6 +348,14 @@ static Type getProviderType(ClassInfo classInfo) { } } + static Type getArrayElementType(ArrayType array) { + Type elementType = array.component(); + while (elementType.kind() == Kind.ARRAY) { + elementType = elementType.asArrayType().component(); + } + return elementType; + } + static Set getProducerMethodTypeClosure(MethodInfo producerMethod, BeanDeployment beanDeployment) { Set types; Set unrestrictedBeanTypes = new HashSet<>(); @@ -358,6 +363,9 @@ static Set getProducerMethodTypeClosure(MethodInfo producerMethod, BeanDep if (returnType.kind() == Kind.TYPE_VARIABLE) { throw new DefinitionException("A type variable is not a legal bean type: " + producerMethod); } + if (returnType.kind() == Kind.ARRAY) { + checkArrayType(returnType.asArrayType(), producerMethod); + } if (returnType.kind() == Kind.PRIMITIVE || returnType.kind() == Kind.ARRAY) { types = new HashSet<>(); types.add(returnType); @@ -393,6 +401,9 @@ static Set getProducerFieldTypeClosure(FieldInfo producerField, BeanDeploy if (fieldType.kind() == Kind.TYPE_VARIABLE) { throw new DefinitionException("A type variable is not a legal bean type: " + producerField); } + if (fieldType.kind() == Kind.ARRAY) { + checkArrayType(fieldType.asArrayType(), producerField); + } if (fieldType.kind() == Kind.PRIMITIVE || fieldType.kind() == Kind.ARRAY) { types = new HashSet<>(); types.add(fieldType); @@ -482,6 +493,18 @@ static List getResolvedParameters(ClassInfo classInfo, Map r } } + /** + * Throws {@code DefinitionException} if given {@code producerFieldOrMethod}, + * whose type is given {@code arrayType}, is invalid due to the rules for arrays. + */ + static void checkArrayType(ArrayType arrayType, AnnotationTarget producerFieldOrMethod) { + Type elementType = getArrayElementType(arrayType); + if (elementType.kind() == Kind.TYPE_VARIABLE) { + throw new DefinitionException("A type variable array is not a legal bean type: " + producerFieldOrMethod); + } + containsWildcard(elementType, producerFieldOrMethod, true); + } + /** * Detects wildcard for given type. * In case this is related to a producer field or method, it either logs or throws a {@link DefinitionException} diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java index 64f9539567b85..bcf5651f7bb2a 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java @@ -7,6 +7,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; +import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -69,18 +70,13 @@ public void testGetTypeClosure() throws IOException { } } ClassInfo producerClass = index.getClassByName(producerName); - final String producersName = "produce"; - assertThrows(DefinitionException.class, - () -> Types.getProducerMethodTypeClosure(producerClass.method(producersName), dummyDeployment)); - assertThrows(DefinitionException.class, - () -> Types.getProducerFieldTypeClosure(producerClass.field(producersName), dummyDeployment)); - - // now assert the same with nested wildcard - final String nestedWildCardProducersName = "produceNested"; - assertThrows(DefinitionException.class, - () -> Types.getProducerMethodTypeClosure(producerClass.method(nestedWildCardProducersName), dummyDeployment)); - assertThrows(DefinitionException.class, - () -> Types.getProducerFieldTypeClosure(producerClass.field(nestedWildCardProducersName), dummyDeployment)); + for (String name : Arrays.asList("produce", "produceNested", "produceTypeVar", + "produceArray", "produceNestedArray", "produceTypeVarArray")) { + assertThrows(DefinitionException.class, + () -> Types.getProducerMethodTypeClosure(producerClass.method(name), dummyDeployment)); + assertThrows(DefinitionException.class, + () -> Types.getProducerFieldTypeClosure(producerClass.field(name), dummyDeployment)); + } // now assert following ones do NOT throw, the wildcard in the hierarchy is just ignored final String wildcardInTypeHierarchy = "eagleProducer"; @@ -140,10 +136,34 @@ public List> produceNested() { return null; } + public T produceTypeVar() { + return null; + } + + public List[][] produceArray() { + return null; + } + + public List>[][] produceNestedArray() { + return null; + } + + public T[][] produceTypeVarArray() { + return null; + } + List produce; List> produceNested; + public T produceTypeVar; + + List[] produceArray; + + List>[] produceNestedArray; + + public T[] produceTypeVarArray; + // following producer should NOT throw an exception because the return types doesn't contain wildcard // but the hierarchy of the return type actually contains one // taken from CDI TCK setup, see https://github.com/jakartaee/cdi-tck/blob/4.0.7/impl/src/main/java/org/jboss/cdi/tck/tests/definition/bean/types/illegal/BeanTypesWithIllegalTypeTest.java From 6fda132ff46e65e6b16ca42e29a6a104c16d9045 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Wed, 1 Feb 2023 14:16:15 +0100 Subject: [PATCH 135/250] uses 'quarkus.platform.artifact-id' property --- docs/src/main/asciidoc/getting-started.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/getting-started.adoc b/docs/src/main/asciidoc/getting-started.adoc index bbc3dfa80ed2f..d15d72e023133 100644 --- a/docs/src/main/asciidoc/getting-started.adoc +++ b/docs/src/main/asciidoc/getting-started.adoc @@ -93,7 +93,7 @@ In addition, you can see the `quarkus-maven-plugin` responsible of the packaging ${quarkus.platform.group-id} - quarkus-bom + ${quarkus.platform.artifact-id} ${quarkus.platform.version} pom import From bf14ddf19c3a60893df487409645fc0c70eb6f6c Mon Sep 17 00:00:00 2001 From: Ozan Gunalp Date: Wed, 1 Feb 2023 00:19:15 +0000 Subject: [PATCH 136/250] Bump Reactive Messaging version to 3.23.0 --- bom/application/pom.xml | 2 +- .../java/io/quarkus/it/opentelemetry/OpenTelemetryTestCase.java | 2 +- jakarta/rewrite.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index f81b075d9acc7..698b3e4fd4d91 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -55,7 +55,7 @@ 1.0.13 2.7.0 2.30.1 - 3.22.1 + 3.23.0 1.4.1 1.2.1 1.3.5 diff --git a/integration-tests/opentelemetry-reactive-messaging/src/test/java/io/quarkus/it/opentelemetry/OpenTelemetryTestCase.java b/integration-tests/opentelemetry-reactive-messaging/src/test/java/io/quarkus/it/opentelemetry/OpenTelemetryTestCase.java index d035749275179..eef2b75cb6daf 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/test/java/io/quarkus/it/opentelemetry/OpenTelemetryTestCase.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/test/java/io/quarkus/it/opentelemetry/OpenTelemetryTestCase.java @@ -163,7 +163,7 @@ private static void verifyConsumer(Map spanData, Assertions.assertEquals("opentelemetry-integration-test", spanData.get("attr_messaging.kafka.consumer_group")); Assertions.assertEquals("0", spanData.get("attr_messaging.kafka.partition")); Assertions.assertEquals("kafka-consumer-" + channel, spanData.get("attr_messaging.kafka.client_id")); - Assertions.assertEquals("0", spanData.get("attr_offset")); + Assertions.assertEquals("0", spanData.get("attr_messaging.kafka.message.offset")); } private void verifyCdiCall(Map spanData, Map parentSpanData) { diff --git a/jakarta/rewrite.yml b/jakarta/rewrite.yml index 45b0025da109f..68a9333181c98 100644 --- a/jakarta/rewrite.yml +++ b/jakarta/rewrite.yml @@ -632,7 +632,7 @@ recipeList: newValue: '3.0.0' - org.openrewrite.maven.ChangePropertyValue: key: smallrye-reactive-messaging.version - newValue: '4.1.1' + newValue: '4.2.0' - org.openrewrite.maven.ChangePropertyValue: key: microprofile-rest-client.version newValue: '3.0' From 38ee8bee752c802ac1818868e699f5e5f4b3851c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Wed, 7 Sep 2022 09:55:56 +0200 Subject: [PATCH 137/250] PLANNER-1709 Avoid deprecated penalize/reward overloads This PR is a DRAFT and will not undrafted before https://github.com/quarkusio/quarkus-quickstarts/pull/1167. --- docs/src/main/asciidoc/optaplanner.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/optaplanner.adoc b/docs/src/main/asciidoc/optaplanner.adoc index abac11775db43..1de048f099bce 100644 --- a/docs/src/main/asciidoc/optaplanner.adoc +++ b/docs/src/main/asciidoc/optaplanner.adoc @@ -456,7 +456,8 @@ public class TimeTableConstraintProvider implements ConstraintProvider { // ... and the pair is unique (different id, no reverse pairs) ... Joiners.lessThan(Lesson::getId)) // ... then penalize each pair with a hard weight. - .penalize("Room conflict", HardSoftScore.ONE_HARD); + .penalize(HardSoftScore.ONE_HARD) + .asConstraint("Room conflict"); } Constraint teacherConflict(ConstraintFactory constraintFactory) { @@ -466,7 +467,8 @@ public class TimeTableConstraintProvider implements ConstraintProvider { Joiners.equal(Lesson::getTimeslot), Joiners.equal(Lesson::getTeacher), Joiners.lessThan(Lesson::getId)) - .penalize("Teacher conflict", HardSoftScore.ONE_HARD); + .penalize(HardSoftScore.ONE_HARD) + .asConstraint(""Teacher conflict"); } Constraint studentGroupConflict(ConstraintFactory constraintFactory) { @@ -476,7 +478,8 @@ public class TimeTableConstraintProvider implements ConstraintProvider { Joiners.equal(Lesson::getTimeslot), Joiners.equal(Lesson::getStudentGroup), Joiners.lessThan(Lesson::getId)) - .penalize("Student group conflict", HardSoftScore.ONE_HARD); + .penalize(HardSoftScore.ONE_HARD) + .asConstraint(""Student group conflict"); } } From 9cc50e10f86ef5368302c671948318101a1c5970 Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Wed, 1 Feb 2023 15:58:54 +0100 Subject: [PATCH 138/250] Improve robustness of the Redis Search - Aggregation test (io.quarkus.redis.datasource.SearchCommandsTest.testAggregation) --- .../java/io/quarkus/redis/datasource/SearchCommandsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/SearchCommandsTest.java b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/SearchCommandsTest.java index 981836ab05c1f..93c09446ec9e7 100644 --- a/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/SearchCommandsTest.java +++ b/extensions/redis-client/runtime/src/test/java/io/quarkus/redis/datasource/SearchCommandsTest.java @@ -487,7 +487,7 @@ void testAggregation() { "num_visits")) .sortBy(new AggregateArgs.SortBy().ascending("@day").descending("@country")) .withCursor().cursorCount(2)); - assertThat(result.count()).isBetween(1, 2); + assertThat(result.count()).isBetween(0, 2); assertThat(result.documents()).allSatisfy(d -> { assertThat(d.property("day").asInteger()).isPositive(); assertThat(d.property("country").asString()).isNotNull(); @@ -501,7 +501,7 @@ void testAggregation() { fail("Too many cursor read commands before reaching the end of the stream: " + read); } result = search.ftCursorRead("myIndex", result.cursor()); - assertThat(result.count()).isBetween(1, 2); + assertThat(result.count()).isBetween(0, 2); assertThat(result.documents()).allSatisfy(d -> { assertThat(d.property("day").asInteger()).isPositive(); assertThat(d.property("country").asString()).isNotNull(); From e8bde3e889af5de6f9980539f04b594da1e6009e Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 1 Feb 2023 12:22:56 -0300 Subject: [PATCH 139/250] Fix `@EngineConfiguration` sample in Qute Reference documentation --- docs/src/main/asciidoc/qute-reference.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/qute-reference.adoc b/docs/src/main/asciidoc/qute-reference.adoc index e8214bae34bc0..77870949ce2f5 100644 --- a/docs/src/main/asciidoc/qute-reference.adoc +++ b/docs/src/main/asciidoc/qute-reference.adoc @@ -1461,7 +1461,7 @@ import io.quarkus.qute.SectionHelper; import io.quarkus.qute.SectionHelperFactory; @EngineConfiguration <1> -public class CustomSectionFactory implements SectionHelperFactory { +public class CustomSectionFactory implements SectionHelperFactory { @Inject Service service; <2> @@ -1472,7 +1472,7 @@ public class CustomSectionFactory implements SectionHelperFactory } From cea88a52b14d281b6ed1a0324e0e44ffbda69ba1 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 1 Feb 2023 12:52:58 -0300 Subject: [PATCH 140/250] Support `OptionalInt`,`OptionalDouble` and `OptionalLong` in `SingleResultNode` --- .../io/quarkus/qute/SingleResultNode.java | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java b/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java index e04604da39ea7..a1ed3db18f4f1 100644 --- a/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java +++ b/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java @@ -1,6 +1,9 @@ package io.quarkus.qute; import java.util.Optional; +import java.util.OptionalDouble; +import java.util.OptionalInt; +import java.util.OptionalLong; import java.util.function.Consumer; /** @@ -12,10 +15,26 @@ public final class SingleResultNode implements ResultNode { private final ExpressionNode node; public SingleResultNode(Object value, ExpressionNode expressionNode) { - this.value = value instanceof Optional ? ((Optional) value).orElse(null) : value; + this.value = extractValue(value); this.node = expressionNode != null && expressionNode.hasEngineResultMappers() ? expressionNode : null; } + private static Object extractValue(Object value) { + if (value instanceof Optional) { + return ((Optional) value).orElse(null); + } + if (value instanceof OptionalInt) { + return ((OptionalInt) value).orElse(0); + } + if (value instanceof OptionalDouble) { + return ((OptionalDouble) value).orElse(0D); + } + if (value instanceof OptionalLong) { + return ((OptionalLong) value).orElse(0L); + } + return value; + } + @Override public void process(Consumer consumer) { if (value != null) { From 9fca9c2b9bc0af274f0e8a8db99a40616685ad40 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 1 Feb 2023 12:44:28 -0300 Subject: [PATCH 141/250] Introduce `io.quarkus.qute.SingleResultNode#SingleResultNode(Object)` Make `io.quarkus.qute.SingleResultNode#SingleResultNode(java.lang.Object, io.quarkus.qute.ExpressionNode)` package-protected --- docs/src/main/asciidoc/qute-reference.adoc | 2 +- .../engineconfigurations/section/CustomSectionFactory.java | 2 +- .../src/main/java/io/quarkus/qute/SingleResultNode.java | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/qute-reference.adoc b/docs/src/main/asciidoc/qute-reference.adoc index 77870949ce2f5..c0da62306af59 100644 --- a/docs/src/main/asciidoc/qute-reference.adoc +++ b/docs/src/main/asciidoc/qute-reference.adoc @@ -1483,7 +1483,7 @@ public class CustomSectionFactory implements SectionHelperFactory resolve(SectionResolutionContext context) { - return CompletableFuture.completedStage(new SingleResultNode(service.getValue(), null)); <4> + return CompletableFuture.completedStage(new SingleResultNode(service.getValue())); <4> } } } diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java index 019cf40a5f100..8ea7b30b56d62 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java @@ -36,7 +36,7 @@ class CustomSectionHelper implements SectionHelper { @Override public CompletionStage resolve(SectionResolutionContext context) { - return CompletableFuture.completedStage(new SingleResultNode(bar, null)); + return CompletableFuture.completedStage(new SingleResultNode(bar)); } } diff --git a/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java b/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java index a1ed3db18f4f1..36fe86500fb8e 100644 --- a/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java +++ b/independent-projects/qute/core/src/main/java/io/quarkus/qute/SingleResultNode.java @@ -14,7 +14,11 @@ public final class SingleResultNode implements ResultNode { private final Object value; private final ExpressionNode node; - public SingleResultNode(Object value, ExpressionNode expressionNode) { + public SingleResultNode(Object value) { + this(value, null); + } + + SingleResultNode(Object value, ExpressionNode expressionNode) { this.value = extractValue(value); this.node = expressionNode != null && expressionNode.hasEngineResultMappers() ? expressionNode : null; } From 423f5834a836d14191715ea9a8da061082a005a9 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Wed, 1 Feb 2023 17:36:50 +0100 Subject: [PATCH 142/250] Note about clean option for build and dev --- docs/src/main/asciidoc/cli-tooling.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/main/asciidoc/cli-tooling.adoc b/docs/src/main/asciidoc/cli-tooling.adoc index e1e1a0dd173dc..6a333fb3ffb7c 100644 --- a/docs/src/main/asciidoc/cli-tooling.adoc +++ b/docs/src/main/asciidoc/cli-tooling.adoc @@ -503,6 +503,8 @@ quarkus build NOTE: Output will vary depending on the build tool your project is using (Maven, Gradle, or JBang). +NOTE: Run `quarkus build --clean` to perform clean as part of the build. + === Development mode [source,shell] @@ -537,6 +539,7 @@ Tests paused, press [r] to resume NOTE: Output will vary depending on the build tool your project is using (Maven, Gradle, or JBang). +NOTE: Run `quarkus dev --clean` to perform clean as part of the build. [[quarkus-version-compatibility]] [WARNING] From 03ff3a7460a4ca3d4f85c0bb372291ed3b5f9f1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 22:21:17 +0000 Subject: [PATCH 143/250] Bump nimbus-jose-jwt from 9.29 to 9.30.1 Bumps [nimbus-jose-jwt](https://bitbucket.org/connect2id/nimbus-jose-jwt) from 9.29 to 9.30.1. - [Changelog](https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt) - [Commits](https://bitbucket.org/connect2id/nimbus-jose-jwt/branches/compare/9.30.1..9.29) --- updated-dependencies: - dependency-name: com.nimbusds:nimbus-jose-jwt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index fa48e180b4a89..9b25b55b350bc 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -204,7 +204,7 @@ 2.7 0.11.0 - 9.29 + 9.30.1 0.0.6 0.1.3 2.9.2 From f849b4832b1b261d5806668ea8ada974f28d317f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Feb 2023 22:41:34 +0000 Subject: [PATCH 144/250] Bump flyway.version from 9.14.0 to 9.14.1 Bumps `flyway.version` from 9.14.0 to 9.14.1. Updates `flyway-core` from 9.14.0 to 9.14.1 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/compare/flyway-9.14.0...flyway-9.14.1) Updates `flyway-sqlserver` from 9.14.0 to 9.14.1 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/compare/flyway-9.14.0...flyway-9.14.1) Updates `flyway-mysql` from 9.14.0 to 9.14.1 - [Release notes](https://github.com/flyway/flyway/releases) - [Commits](https://github.com/flyway/flyway/compare/flyway-9.14.0...flyway-9.14.1) --- updated-dependencies: - dependency-name: org.flywaydb:flyway-core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.flywaydb:flyway-sqlserver dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.flywaydb:flyway-mysql dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index fa48e180b4a89..0bc7947505c33 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -158,7 +158,7 @@ 3.2.0 4.2.0 1.0.11 - 9.14.0 + 9.14.1 1.0.11 4.19.0 1.33 From 258fa64eb41cf92720fcdb5502e224354a67e83e Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 2 Feb 2023 09:21:47 +0200 Subject: [PATCH 145/250] Remove okhttp related processing in KubernetesClientProcessor With #30480, the k8s client no longer uses OkHttp --- .../client/deployment/KubernetesClientProcessor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java index 597338d834999..ee14d8968c9e3 100644 --- a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java +++ b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java @@ -67,7 +67,6 @@ public class KubernetesClientProcessor { private static final DotName VISITABLE_BUILDER = DotName.createSimple(VisitableBuilder.class.getName()); private static final DotName CUSTOM_RESOURCE = DotName.createSimple(CustomResource.class.getName()); - private static final Predicate IS_OKHTTP_CLASS = d -> d.toString().startsWith("okhttp3"); private static final DotName JSON_FORMAT = DotName.createSimple(JsonFormat.class.getName()); private static final String[] EMPTY_STRINGS_ARRAY = new String[0]; @@ -114,8 +113,7 @@ public void process(ApplicationIndexBuildItem applicationIndex, CombinedIndexBui findWatchedClasses(CUSTOM_RESOURCE, applicationIndex, combinedIndexBuildItem, watchedClasses, 2, false); - Predicate reflectionIgnorePredicate = ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate.INSTANCE - .or(IS_OKHTTP_CLASS); + Predicate reflectionIgnorePredicate = ReflectiveHierarchyBuildItem.DefaultIgnoreTypePredicate.INSTANCE; for (DotName className : watchedClasses) { if (reflectionIgnorePredicate.test(className)) { continue; From 9b2b1b0d54b8e48597f807f1c0e3c579e5c8563e Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Thu, 2 Feb 2023 12:14:45 +0100 Subject: [PATCH 146/250] Change default reactive SQL pools max size Use the same value as JDBC pools by default --- .../datasource/runtime/DataSourceReactiveRuntimeConfig.java | 2 +- .../io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java | 2 ++ .../reactive/mssql/client/runtime/MSSQLPoolRecorder.java | 2 ++ .../reactive/mysql/client/runtime/MySQLPoolRecorder.java | 2 ++ .../reactive/oracle/client/runtime/OraclePoolRecorder.java | 2 ++ .../io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java | 2 ++ 6 files changed, 11 insertions(+), 1 deletion(-) diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java index 5a8b64802039a..f1004d7d105b4 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java @@ -31,7 +31,7 @@ public class DataSourceReactiveRuntimeConfig { /** * The datasource pool maximum size. */ - @ConfigItem + @ConfigItem(defaultValueDocumentation = "20") public OptionalInt maxSize = OptionalInt.empty(); /** diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java index ff9a794e19ef9..7dc4b2276402a 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java @@ -96,6 +96,8 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); + } else { + poolOptions.setMaxSize(20); } if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java index 7c14613815975..788320fc3fea3 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java @@ -96,6 +96,8 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); + } else { + poolOptions.setMaxSize(20); } if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java index 95eb1aad8645f..28e9f8a3440e5 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java @@ -97,6 +97,8 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); + } else { + poolOptions.setMaxSize(20); } if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index a24a80f7997bb..e28834c0dbc09 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -90,6 +90,8 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); + } else { + poolOptions.setMaxSize(20); } if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java index 9c5708b440de5..9760ee690d645 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java @@ -96,6 +96,8 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); + } else { + poolOptions.setMaxSize(20); } if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { From 02b0a0ab8026be4d655a6aa629be27309ff0d622 Mon Sep 17 00:00:00 2001 From: Martin Panzer Date: Wed, 11 May 2022 22:12:24 +0200 Subject: [PATCH 147/250] Refine how resource classes with same components are merged Resources classes where merged by using all components as map key. This leads to situations where the only differing property of a component may be its name. The name is for a DEFAULT_REGEX however not enough to be considered a different path itself. The merge is now based on a custom (String) key, build on properties which should enforce uniqueness when needed: type, literal, and pattern. --- .../startup/RuntimeDeploymentManager.java | 67 +++++++++++- .../test/matching/ResourceClassMergeTest.java | 103 ++++++++++++++++++ 2 files changed, 164 insertions(+), 6 deletions(-) create mode 100644 independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java index 3ef5ad8f2d11c..0003a7d6d8c87 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java @@ -7,6 +7,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.TreeMap; import java.util.concurrent.Executor; import java.util.function.Consumer; @@ -131,7 +132,7 @@ public BeanFactory.BeanInstance apply(Class aClass) { //it is possible that multiple resource classes use the same path //we use this map to merge them - Map>>>> mappers = new TreeMap<>(); + Map>>>> mappers = new TreeMap<>(); for (int i = 0; i < resourceClasses.size(); i++) { ResourceClass clazz = resourceClasses.get(i); @@ -139,9 +140,12 @@ public BeanFactory.BeanInstance apply(Class aClass) { continue; } URITemplate classTemplate = new URITemplate(clazz.getPath(), true); - var perClassMappers = mappers.get(classTemplate); + + MappersKey key = new MappersKey(classTemplate); + + var perClassMappers = mappers.get(key); if (perClassMappers == null) { - mappers.put(classTemplate, perClassMappers = new HashMap<>()); + mappers.put(key, perClassMappers = new HashMap<>()); } for (int j = 0; j < clazz.getMethods().size(); j++) { ResourceMethod method = clazz.getMethods().get(j); @@ -153,6 +157,7 @@ public BeanFactory.BeanInstance apply(Class aClass) { } } + classMappers = new ArrayList<>(mappers.size()); mappers.forEach(this::forEachMapperEntry); @@ -208,14 +213,14 @@ public BeanFactory.BeanInstance apply(Class aClass) { runtimeConfigurableServerRestHandlers, exceptionMapper, info.isResumeOn404(), info.getResteasyReactiveConfig()); } - private void forEachMapperEntry(URITemplate path, + private void forEachMapperEntry(MappersKey key, Map>>> classTemplates) { - int classTemplateNameCount = path.countPathParamNames(); + int classTemplateNameCount = key.path.countPathParamNames(); RuntimeMappingDeployment runtimeMappingDeployment = new RuntimeMappingDeployment(classTemplates); ClassRoutingHandler classRoutingHandler = new ClassRoutingHandler(runtimeMappingDeployment.buildClassMapper(), classTemplateNameCount, info.isResumeOn404()); - classMappers.add(new RequestMapper.RequestPath<>(true, path, + classMappers.add(new RequestMapper.RequestPath<>(true, key.path, new RestInitialHandler.InitialMatch(new ServerRestHandler[] { classRoutingHandler }, runtimeMappingDeployment.getMaxMethodTemplateNameCount() + classTemplateNameCount))); } @@ -267,4 +272,54 @@ private String sanitizePathPrefix(String prefix) { return prefix; } + private static class MappersKey implements Comparable { + private final String key; + private final URITemplate path; + + public MappersKey(URITemplate path) { + this.path = path; + + // create a key without any names. Names of e.g. default regex components can differ, but the component still has the same meaning. + StringBuilder keyBuilder = new StringBuilder(); + for (URITemplate.TemplateComponent component : path.components) { + keyBuilder.append(component.type); + keyBuilder.append(";"); + keyBuilder.append(component.literalText); + keyBuilder.append(";"); + if (component.pattern != null) { + // (?[a-zA-Z]+) -> [a-zA-Z]+ + String pattern = component.pattern.pattern(); + keyBuilder.append(component.pattern.pattern(), pattern.indexOf('>') + 1, pattern.length() - 1); + } + keyBuilder.append("|"); + } + + this.key = keyBuilder.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + if (o == null || getClass() != o.getClass()) + return false; + MappersKey that = (MappersKey) o; + return key.equals(that.key); + } + + @Override + public int hashCode() { + return Objects.hash(key); + } + + @Override + public int compareTo(MappersKey o) { + if (key.compareTo(o.key) == 0) { + return 0; + } + + return path.compareTo(o.path); + } + } + } diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java new file mode 100644 index 0000000000000..b5ae2b66821cb --- /dev/null +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java @@ -0,0 +1,103 @@ +package org.jboss.resteasy.reactive.server.vertx.test.matching; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.is; + +import java.util.function.Supplier; + +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; + +import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +public class ResourceClassMergeTest { + @RegisterExtension + static ResteasyReactiveUnitTest test = new ResteasyReactiveUnitTest() + .setArchiveProducer(new Supplier<>() { + @Override + public JavaArchive get() { + return ShrinkWrap.create(JavaArchive.class) + .addClasses(MatchDefaultRegexDifferentNameResourceA.class, + MatchDefaultRegexDifferentNameResourceB.class, MatchCustomRegexDifferentNameResourceA.class, + MatchCustomRegexDifferentNameResourceB.class); + } + }); + + @Test + public void testCallMatchDefaultRegexDifferentNameResource() { + given() + .when().get("routing-broken/abc/some/other/path") + .then() + .statusCode(200) + .body(is("abc")); + + given() + .when().get("routing-broken/efg/some/path") + .then() + .statusCode(200) + .body(is("efg")); + } + + @Test + public void testCallMatchCustomRegexDifferentNameResource() { + given() + .when().get("routing-broken-custom-regex/abc/some/other/path") + .then() + .statusCode(200) + .body(is("abc")); + + given() + .when().get("routing-broken-custom-regex/efg/some/path") + .then() + .statusCode(200) + .body(is("efg")); + } + + @Path("/routing-broken/{id1}") + public static class MatchDefaultRegexDifferentNameResourceA { + @GET + @Path("/some/other/path") + @Produces(MediaType.TEXT_PLAIN) + public Response doSomething(@PathParam("id1") String id) { + return Response.ok(id).build(); + } + } + + @Path("/routing-broken/{id}") + public static class MatchDefaultRegexDifferentNameResourceB { + @GET + @Path("/some/path") + @Produces(MediaType.TEXT_PLAIN) + public Response doSomething(@PathParam("id") String id) { + return Response.ok(id).build(); + } + } + + @Path("/routing-broken-custom-regex/{id1: [a-zA-Z]+}") + public static class MatchCustomRegexDifferentNameResourceA { + @GET + @Path("/some/other/path") + @Produces(MediaType.TEXT_PLAIN) + public Response doSomething(@PathParam("id1") String id) { + return Response.ok(id).build(); + } + } + + @Path("/routing-broken-custom-regex/{id: [a-zA-Z]+}") + public static class MatchCustomRegexDifferentNameResourceB { + @GET + @Path("/some/path") + @Produces(MediaType.TEXT_PLAIN) + public Response doSomething(@PathParam("id") String id) { + return Response.ok(id).build(); + } + } +} From 97ba0c3632a4bc17647cf16d3c85f95676c82d56 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 2 Feb 2023 11:14:10 +0100 Subject: [PATCH 148/250] Apply some minor performance tweaks to MappersKey This all comes from the observations I did in HV: - Objects.hash() can be costly as it creates an array - no real need to compare the classes given we know this object will only be used in a map that is consistent Also: - we don't need to cache the hashCode as String.hashCode() has a cache - better use equals() than compareTo() --- .../core/startup/RuntimeDeploymentManager.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java index 0003a7d6d8c87..619e1922f96de 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java @@ -7,7 +7,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.TreeMap; import java.util.concurrent.Executor; import java.util.function.Consumer; @@ -299,22 +298,24 @@ public MappersKey(URITemplate path) { @Override public boolean equals(Object o) { - if (this == o) + if (this == o) { return true; - if (o == null || getClass() != o.getClass()) + } + if (o == null) { return false; - MappersKey that = (MappersKey) o; - return key.equals(that.key); + } + + return key.equals(((MappersKey) o).key); } @Override public int hashCode() { - return Objects.hash(key); + return key.hashCode(); } @Override public int compareTo(MappersKey o) { - if (key.compareTo(o.key) == 0) { + if (key.equals(o.key)) { return 0; } From e828d276fecf05d24d4910821fa89ebcc81e23c0 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 2 Feb 2023 13:50:00 +0200 Subject: [PATCH 149/250] Reduce allocations on RuntimeDeploymentManager.MappersKey --- .../startup/RuntimeDeploymentManager.java | 39 ++++++++++++------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java index 619e1922f96de..9206d4f93e0b8 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java @@ -278,22 +278,35 @@ private static class MappersKey implements Comparable { public MappersKey(URITemplate path) { this.path = path; - // create a key without any names. Names of e.g. default regex components can differ, but the component still has the same meaning. - StringBuilder keyBuilder = new StringBuilder(); - for (URITemplate.TemplateComponent component : path.components) { - keyBuilder.append(component.type); - keyBuilder.append(";"); - keyBuilder.append(component.literalText); - keyBuilder.append(";"); - if (component.pattern != null) { - // (?[a-zA-Z]+) -> [a-zA-Z]+ - String pattern = component.pattern.pattern(); - keyBuilder.append(component.pattern.pattern(), pattern.indexOf('>') + 1, pattern.length() - 1); + if (path.components.length == 0) { + this.key = ""; + } else { + // create a key without any names. Names of e.g. default regex components can differ, but the component still has the same meaning. + StringBuilder keyBuilder = new StringBuilder(); + for (URITemplate.TemplateComponent component : path.components) { + int standardLength = component.type.name().length() + 1 + + (component.literalText != null ? component.literalText.length() : 0) + 1 + 1; + int additionalLength = 0; + if (component.pattern != null) { + additionalLength = component.pattern.pattern().length(); + } + StringBuilder kb = new StringBuilder(standardLength + additionalLength); + kb.append(component.type); + kb.append(";"); + kb.append(component.literalText); + kb.append(";"); + if (component.pattern != null) { + // (?[a-zA-Z]+) -> [a-zA-Z]+ + String pattern = component.pattern.pattern(); + kb.append(component.pattern.pattern(), pattern.indexOf('>') + 1, pattern.length() - 1); + } + kb.append("|"); + keyBuilder.append(kb); } - keyBuilder.append("|"); + + this.key = keyBuilder.toString(); } - this.key = keyBuilder.toString(); } @Override From 9c19b82b3eec17d41db1e7fbfa30d83fad47754f Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 2 Feb 2023 09:20:55 -0300 Subject: [PATCH 150/250] Support file and byte array attachments in `MailTemplateInstance` --- .../java/io/quarkus/mailer/MailTemplate.java | 6 ++++++ .../runtime/MailTemplateInstanceImpl.java | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MailTemplate.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MailTemplate.java index 7b1785a36a4fe..c3807ea1190e9 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MailTemplate.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/MailTemplate.java @@ -56,6 +56,12 @@ interface MailTemplateInstance { MailTemplateInstance addInlineAttachment(String name, File file, String contentType, String contentId); + MailTemplateInstance addInlineAttachment(String name, byte[] data, String contentType, String contentId); + + MailTemplateInstance addAttachment(String name, File file, String contentType); + + MailTemplateInstance addAttachment(String name, byte[] data, String contentType); + /** * * @param key diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateInstanceImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateInstanceImpl.java index 83faa7f8562c6..546cd66ab12de 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateInstanceImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateInstanceImpl.java @@ -87,6 +87,24 @@ public MailTemplateInstance addInlineAttachment(String name, File file, String c return this; } + @Override + public MailTemplateInstance addInlineAttachment(String name, byte[] data, String contentType, String contentId) { + this.mail.addInlineAttachment(name, data, contentType, contentId); + return this; + } + + @Override + public MailTemplateInstance addAttachment(String name, File file, String contentType) { + this.mail.addAttachment(name, file, contentType); + return this; + } + + @Override + public MailTemplateInstance addAttachment(String name, byte[] data, String contentType) { + this.mail.addAttachment(name, data, contentType); + return this; + } + @Override public MailTemplateInstance data(String key, Object value) { this.templateInstance.data(key, value); From fe95e5f02fc1e73610f09dd36cbffbd63eccbc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Thu, 2 Feb 2023 13:36:54 +0100 Subject: [PATCH 151/250] Fix automatic module name of the change agent (fixes #29719) --- bom/application/pom.xml | 2 +- core/class-change-agent/pom.xml | 3 ++- core/deployment/pom.xml | 2 +- core/runtime/pom.xml | 2 +- .../src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java | 2 +- devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 357c04a176462..851edf99a8f7a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -462,7 +462,7 @@ io.quarkus - quarkus-class-change-agent + quarkus-klass-change-agent ${project.version} diff --git a/core/class-change-agent/pom.xml b/core/class-change-agent/pom.xml index 5b57062f854b3..c06c2d3d25cb2 100644 --- a/core/class-change-agent/pom.xml +++ b/core/class-change-agent/pom.xml @@ -11,7 +11,8 @@ ../../build-parent/pom.xml - quarkus-class-change-agent + + quarkus-klass-change-agent Quarkus - Core - Class Change Agent A Java Agent that exposes the instrumentation API. This allows for super fast diff --git a/core/deployment/pom.xml b/core/deployment/pom.xml index 27d1b159ef07c..85b957e574dc8 100644 --- a/core/deployment/pom.xml +++ b/core/deployment/pom.xml @@ -52,7 +52,7 @@ io.quarkus - quarkus-class-change-agent + quarkus-klass-change-agent io.quarkus diff --git a/core/runtime/pom.xml b/core/runtime/pom.xml index 43deb0b227331..c8aefbc0bee62 100644 --- a/core/runtime/pom.xml +++ b/core/runtime/pom.xml @@ -177,7 +177,7 @@ org.junit.jupiter:junit-jupiter-params org.junit.platform:junit-platform-commons org.junit.platform:junit-platform-engine - io.quarkus:quarkus-class-change-agent + io.quarkus:quarkus-klass-change-agent org.jacoco:org.jacoco.agent:runtime io.quarkus:quarkus-bootstrap-gradle-resolver io.quarkus:quarkus-junit5-mockito-config diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index 9a3ebcf051b5b..f77b86fb8cec2 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -538,7 +538,7 @@ private void addQuarkusDevModeDeps(GradleDevModeLauncher.Builder builder, Applic if (!(artifactId.getGroup().equals("io.quarkus") && artifactId.getName().equals("quarkus-ide-launcher"))) { if (artifactId.getGroup().equals("io.quarkus") - && artifactId.getName().equals("quarkus-class-change-agent")) { + && artifactId.getName().equals("quarkus-klass-change-agent")) { builder.jvmArgs("-javaagent:" + appDep.getFile().getAbsolutePath()); } else { builder.classpathEntry(ArtifactKey.of(appDep.getModuleVersion().getId().getGroup(), appDep.getName(), diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index c57a75a2c501f..7c2eb6d49707a 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -1293,7 +1293,7 @@ private void addQuarkusDevModeDeps(MavenDevModeLauncher.Builder builder, Applica final org.eclipse.aether.artifact.Artifact a = appDep.getArtifact(); if (!(a.getArtifactId().equals("quarkus-ide-launcher") && a.getGroupId().equals("io.quarkus"))) { - if (a.getArtifactId().equals("quarkus-class-change-agent") + if (a.getArtifactId().equals("quarkus-klass-change-agent") && a.getGroupId().equals("io.quarkus")) { builder.jvmArgs("-javaagent:" + a.getFile().getAbsolutePath()); } else { From e57cbb4522d3529f21028a14760e677bbc897c40 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 2 Feb 2023 15:15:48 +0200 Subject: [PATCH 152/250] Remove tika configuration from the bot This extension has long been moved to the Quarkiverse --- .github/quarkus-github-bot.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/quarkus-github-bot.yml b/.github/quarkus-github-bot.yml index e6fe720293c75..10d50a51d61fe 100644 --- a/.github/quarkus-github-bot.yml +++ b/.github/quarkus-github-bot.yml @@ -567,13 +567,6 @@ triage: directories: - extensions/vertx - integration-tests/vertx - - id: tika - labels: [area/tika] - title: tika - notify: [sberyozkin] - directories: - - extensions/tika/ - - integration-tests/tika/ - id: testing title: "quarkusintegrationtest" labels: [area/testing] From 376827ba9e1422fe0e63cccb04ca067c7e8b214e Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 2 Feb 2023 13:25:01 +0100 Subject: [PATCH 153/250] Jakarta - Remove remaining javax instances in doc --- docs/src/main/asciidoc/resteasy-reactive.adoc | 3 ++- jakarta/transform.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index d27aa03e9356b..45ecdb31be79e 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -13,6 +13,7 @@ include::_attributes.adoc[] :mutinyapi: https://javadoc.io/doc/io.smallrye.reactive/mutiny/1.6.0 :httpspec: https://tools.ietf.org/html/rfc7231 :jsonpapi: https://javadoc.io/doc/javax.json/javax.json-api/1.1.4 +:injectapi: https://javadoc.io/static/jakarta.inject/jakarta.inject/1 :vertxapi: https://javadoc.io/doc/io.vertx/vertx-core/latest/index.html :resteasy-reactive-api: https://javadoc.io/doc/io.quarkus.resteasy.reactive/resteasy-reactive/{quarkus-version} :resteasy-reactive-common-api: https://javadoc.io/doc/io.quarkus.resteasy.reactive/resteasy-reactive-common/{quarkus-version} @@ -1068,7 +1069,7 @@ public class Endpoint { ---- You can also inject those context objects using -https://javadoc.io/static/javax.inject/javax.inject/1/javax/inject/Inject.html[`@Inject`] on fields of the same +{injectapi}/javax/inject/Inject.html[`@Inject`] on fields of the same type: [source,java] diff --git a/jakarta/transform.sh b/jakarta/transform.sh index 46dc48bc7f47d..f966ae1fd0d7d 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -311,7 +311,12 @@ find integration-tests/gradle -name build.gradle | xargs sed -i 's/javax.ws.rs.P transform_documentation sed -i 's@javax/ws/rs@jakarta/ws/rs@g' docs/src/main/asciidoc/resteasy-reactive.adoc +sed -i 's@javax/json@jakarta/json@g' docs/src/main/asciidoc/resteasy-reactive.adoc +sed -i 's@javax/inject@jakarta/inject@g' docs/src/main/asciidoc/resteasy-reactive.adoc sed -i 's@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/2.1.1@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/3.1.0@g' docs/src/main/asciidoc/resteasy-reactive.adoc +sed -i 's@https://javadoc.io/doc/io.smallrye.reactive/mutiny/1.6.0@https://javadoc.io/doc/io.smallrye.reactive/mutiny/2.1.0@g' docs/src/main/asciidoc/resteasy-reactive.adoc +sed -i 's@https://javadoc.io/doc/javax.json/javax.json-api/1.1.4@https://javadoc.io/doc/jakarta.json/jakarta.json-api/2.1.1@g' docs/src/main/asciidoc/resteasy-reactive.adoc +sed -i 's@https://javadoc.io/static/jakarta.inject/jakarta.inject/1@https://javadoc.io/static/jakarta.inject/jakarta.inject-api/2.0.1@g' docs/src/main/asciidoc/resteasy-reactive.adoc sed -i 's@/specs/jaxrs/2.1/index.html@https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html@g' docs/src/main/asciidoc/resteasy-reactive.adoc # Clean some Transformer issues From 696456724b6cb0071116b16e135f14b778e0f68a Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 2 Feb 2023 15:06:55 +0100 Subject: [PATCH 154/250] Jakarta - Kotlin - Also transform all-open annotations in pom files --- jakarta/transform.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/jakarta/transform.sh b/jakarta/transform.sh index f966ae1fd0d7d..4f4ac5243a309 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -79,6 +79,7 @@ transform_kotlin_module () { find $1 -name '*.kt' | xargs --no-run-if-empty sed -i "s@import ${package}@import ${newPackage}@g" find $1 -name '*.kts' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" find $1 -name 'build*.gradle' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" + find $1 -name 'pom*.xml' | grep -v 'integration-tests/simple' | xargs --no-run-if-empty sed -i "s@annotation=${package}@annotation=${newPackage}@g" done } From d767b10f63544edc226d76bd4c8a364363321a3b Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Thu, 2 Feb 2023 14:48:46 +0000 Subject: [PATCH 155/250] Update SmallRye Config to 2.13.2 --- bom/application/pom.xml | 2 +- jakarta/rewrite.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 3ac7d71b1c1cd..3aa2b172e41a5 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -43,7 +43,7 @@ 1.0 2.0.1 1.13.2 - 2.13.1 + 2.13.2 3.3.1 3.0.5 3.1.1 diff --git a/jakarta/rewrite.yml b/jakarta/rewrite.yml index 5c13e63ddd777..43396b5b0140e 100644 --- a/jakarta/rewrite.yml +++ b/jakarta/rewrite.yml @@ -534,7 +534,7 @@ recipeList: newValue: '3.0' - org.openrewrite.maven.ChangePropertyValue: key: smallrye-config.version - newValue: '3.1.1' + newValue: '3.1.2' - org.openrewrite.maven.ChangePropertyValue: key: smallrye-fault-tolerance.version newValue: '6.1.0' From 32da1f14ee97be863bee3fc22edc2c4a25961a04 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 2 Feb 2023 17:51:07 +0100 Subject: [PATCH 156/250] Fix comment about Caffeine optimization Per Ben Manes request in #30744 --- docs/src/main/asciidoc/cache.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/cache.adoc b/docs/src/main/asciidoc/cache.adoc index 471352b3aeb33..524f28c61cb54 100644 --- a/docs/src/main/asciidoc/cache.adoc +++ b/docs/src/main/asciidoc/cache.adoc @@ -1027,7 +1027,7 @@ It will instead result in another attempt to call the remote. The Cache extension supports building native executables. -However, to optimize runtime speed, Caffeine embarks many cache implementation classes that are selected depending on the cache configuration. +However, to optimize runtime memory, Caffeine embarks many cache implementation classes that are selected depending on the cache configuration. We are not registering all of them for reflection (and the ones not registered are not included into the native executables) as registering all of them would be very costly. From 49b8a109c733e3b9ff668b658c8c40098c60dd6e Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Wed, 23 Nov 2022 15:36:51 -0500 Subject: [PATCH 157/250] Azure Functions Extension azure func docs qaf fixes doc fixes qaf rebase update codestart pom fix fix stuff azf cleanup fix integration tests for azf --- bom/application/pom.xml | 18 +- .../java/io/quarkus/deployment/Feature.java | 1 + devtools/bom-descriptor-json/pom.xml | 13 ++ .../base/README.tpl.qute.md | 3 + .../azure-functions-example/base/host.json | 7 + .../base}/local.settings.json | 14 +- .../base/pom.tpl.qute.xml | 67 ++++++ .../main/resources/application.tpl.qute.yml | 0 .../azure-functions-example/codestart.yml | 26 +++ .../java/src/main/java/org/acme/Function.java | 47 ++++ .../main/java/org/acme/GreetingService.java | 10 + .../src/test/java/org/acme/FunctionTest.java | 68 ++++++ .../org/acme/HttpResponseMessageMock.java | 83 +++++++ .../base/azure-config/function.tpl.qute.json | 17 -- .../base/azure-config/host.json | 3 - .../base/host.json | 7 + .../{azure-config => }/local.settings.json | 14 +- .../base/pom.tpl.qute.xml | 125 +++-------- .../main/resources/application.tpl.qute.yml | 2 - .../codestart.yml | 14 +- .../main/java/org/acme}/GreetingResource.java | 5 +- .../src/test/java/org/acme/GreetingTest.java | 21 ++ docs/pom.xml | 13 ++ .../main/asciidoc/azure-functions-http.adoc | 81 ++++--- docs/src/main/asciidoc/azure-functions.adoc | 149 +++++++++++++ .../azure-functions-http/deployment/pom.xml | 8 + .../AzureFunctionsHttpProcessor.java | 23 +- .../maven-archetype/pom.xml | 37 ---- .../META-INF/maven/archetype-metadata.xml | 74 ------- .../azure-config/function.json | 17 -- .../azure-config/host.json | 3 - .../resources/archetype-resources/pom.xml | 203 ------------------ .../src/main/java/GreetingFunction.java | 11 - .../src/main/java/GreetingServlet.java | 19 -- .../src/main/java/GreetingVertx.java | 14 -- .../src/main/resources/application.properties | 1 - .../src/test/java/GreetingTest.java | 45 ---- extensions/azure-functions-http/pom.xml | 1 - .../azure-functions-http/runtime/pom.xml | 5 - .../resteasy/runtime/BaseFunction.java | 38 ++-- .../functions/resteasy/runtime/Function.java | 16 +- .../resteasy/runtime/FunctionTest.java | 4 + extensions/azure-functions/deployment/pom.xml | 50 +++++ .../deployment/AzureFunctionsDotNames.java | 44 ++++ .../deployment/AzureFunctionsProcessor.java | 84 ++++++++ extensions/azure-functions/pom.xml | 37 ++++ extensions/azure-functions/runtime/pom.xml | 58 +++++ .../QuarkusAzureFunctionsInjector.java | 18 ++ .../QuarkusAzureFunctionsMiddleware.java | 26 +++ .../resources/META-INF/quarkus-extension.yaml | 15 ++ ...nctions.internal.spi.middleware.Middleware | 1 + ...ctions.spi.inject.FunctionInstanceInjector | 1 + extensions/pom.xml | 1 + .../buildtool/maven/base/pom.tpl.qute.xml | 4 + .../quarkus/buildtool/maven/codestart.yml | 1 + .../quarkus/AzureFunctionsCodestartTest.java | 23 ++ .../AzureFunctionsHttpCodestartTest.java | 7 - .../testContent/azure-config_function.json | 17 -- .../testContent/azure-config_host.json | 3 - .../azure-config_local.settings.json | 7 - .../io/quarkus/it/virtual/FunctionTest.java | 7 + .../io/quarkus/it/virtual/FunctionTest.java | 6 + 62 files changed, 1052 insertions(+), 685 deletions(-) create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/README.tpl.qute.md create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/host.json rename {extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config => devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base}/local.settings.json (94%) create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/pom.tpl.qute.xml create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/src/main/resources/application.tpl.qute.yml create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/codestart.yml create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/HttpResponseMessageMock.java delete mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/function.tpl.qute.json delete mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/host.json create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/host.json rename devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/{azure-config => }/local.settings.json (94%) rename {extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java => devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme}/GreetingResource.java (83%) create mode 100644 devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java create mode 100644 docs/src/main/asciidoc/azure-functions.adoc delete mode 100644 extensions/azure-functions-http/maven-archetype/pom.xml delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingFunction.java delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingVertx.java delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/resources/application.properties delete mode 100644 extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/test/java/GreetingTest.java create mode 100644 extensions/azure-functions/deployment/pom.xml create mode 100644 extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDotNames.java create mode 100644 extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java create mode 100644 extensions/azure-functions/pom.xml create mode 100644 extensions/azure-functions/runtime/pom.xml create mode 100644 extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsInjector.java create mode 100644 extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsMiddleware.java create mode 100644 extensions/azure-functions/runtime/src/main/resources/META-INF/quarkus-extension.yaml create mode 100644 extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.internal.spi.middleware.Middleware create mode 100644 extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector create mode 100644 integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsCodestartTest.java delete mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_function.json delete mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_host.json delete mode 100644 integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_local.settings.json diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 357c04a176462..afafb4ef4b0a8 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -150,7 +150,8 @@ 1.2.2 3.11.0 2.13.0 - 1.4.2 + 2.2.0 + 1.0.0 1.7.22 1.6.4 1.4.1 @@ -2454,6 +2455,16 @@ quarkus-reactive-datasource ${project.version} + + io.quarkus + quarkus-azure-functions + ${project.version} + + + io.quarkus + quarkus-azure-functions-deployment + ${project.version} + io.quarkus quarkus-azure-functions-http @@ -5512,6 +5523,11 @@ azure-functions-java-library ${azure-functions-java-library.version} + + com.microsoft.azure.functions + azure-functions-java-spi + ${azure-functions-java-spi.version} + org.apache.maven.shared diff --git a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java index 98e241b758551..d21a35d623f12 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java @@ -11,6 +11,7 @@ public enum Feature { AGROAL, AMAZON_LAMBDA, + AZURE_FUNCTIONS, APICURIO_REGISTRY_AVRO, AWT, CACHE, diff --git a/devtools/bom-descriptor-json/pom.xml b/devtools/bom-descriptor-json/pom.xml index 826e49408ecf0..358b35dd454ee 100644 --- a/devtools/bom-descriptor-json/pom.xml +++ b/devtools/bom-descriptor-json/pom.xml @@ -239,6 +239,19 @@ + + io.quarkus + quarkus-azure-functions + ${project.version} + pom + test + + + * + * + + + io.quarkus quarkus-azure-functions-http diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/README.tpl.qute.md b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/README.tpl.qute.md new file mode 100644 index 0000000000000..26809cc0bf4ec --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/README.tpl.qute.md @@ -0,0 +1,3 @@ +{#include readme-header /} + +> :warning: **INCOMPATIBLE WITH NATIVE**: Azure Functions Integration is not compatible with native yet! diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/host.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/host.json new file mode 100644 index 0000000000000..9f633be4856b6 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/host.json @@ -0,0 +1,7 @@ +{ + "version": "2.0", + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[3.*, 4.0.0)" + } +} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/local.settings.json similarity index 94% rename from extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json rename to devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/local.settings.json index 8804ca029cf22..359101f1f57b2 100644 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/local.settings.json +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/local.settings.json @@ -1,7 +1,7 @@ -{ - "IsEncrypted": false, - "Values": { - "AzureWebJobsStorage": "", - "FUNCTIONS_WORKER_RUNTIME": "java" - } -} +{ + "IsEncrypted": false, + "Values": { + "AzureWebJobsStorage": "", + "FUNCTIONS_WORKER_RUNTIME": "java" + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/pom.tpl.qute.xml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/pom.tpl.qute.xml new file mode 100644 index 0000000000000..c5e6ca47def6a --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/pom.tpl.qute.xml @@ -0,0 +1,67 @@ + + + 1.22.0 + 11 + $\{artifactId}-{gen-info.time} + {app-region} + {resource-group} + + + + + com.microsoft.azure + azure-functions-maven-plugin + $\{azure.functions.maven.plugin.version} + + + $\{functionAppName} + + $\{functionResourceGroup} + + java-functions-app-service-plan + + + $\{functionAppRegion} + + + + + + + + + {function-os} + 11 + + + + FUNCTIONS_EXTENSION_VERSION + ~4 + + + + + + package-functions + + package + + + + + + + maven-clean-plugin + 3.1.0 + + + + obj + + + + + + + diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/src/main/resources/application.tpl.qute.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/base/src/main/resources/application.tpl.qute.yml new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/codestart.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/codestart.yml new file mode 100644 index 0000000000000..8d5ddfdca6adf --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/codestart.yml @@ -0,0 +1,26 @@ +name: azure-functions-example +ref: azure-functions +type: code +tags: + - example + - maven-only +metadata: + title: Azure Functions Integration example + description: This example contains a HttpTrigger function ready for Azure. + related-guide-section: https://quarkus.io/guides/azure-functions +language: + base: + shared-data: + generate-native: false + data: + app-region: + eastus + resource-group: + quarkus-examples + function-os: + linux + dependencies: + - io.quarkus:quarkus-azure-functions + - com.microsoft.azure.functions:azure-functions-java-library + test-dependencies: + - org.mockito:mockito-core diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java new file mode 100644 index 0000000000000..a3810190447fa --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java @@ -0,0 +1,47 @@ +package org.acme; + +import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpMethod; +import com.microsoft.azure.functions.HttpRequestMessage; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.annotation.AuthorizationLevel; +import com.microsoft.azure.functions.annotation.FunctionName; +import com.microsoft.azure.functions.annotation.HttpTrigger; + +import javax.inject.Inject; +import java.util.Optional; + +/** + * Azure Functions with HTTP Trigger integrated with Quarkus + */ +public class Function { + @Inject + GreetingService service; + + /** + * This function listens at endpoint "/api/HttpExample". Two ways to invoke it using "curl" command in bash: + * 1. curl -d "HTTP Body" {your host}/api/HttpExample + * 2. curl "{your host}/api/HttpExample?name=HTTP%20Query" + */ + @FunctionName("HttpExample") + public HttpResponseMessage run( + @HttpTrigger( + name = "req", + methods = {HttpMethod.GET, HttpMethod.POST}, + authLevel = AuthorizationLevel.ANONYMOUS) + HttpRequestMessage> request, + final ExecutionContext context) { + context.getLogger().info("Java HTTP trigger processed a request."); + + // Parse query parameter + final String query = request.getQueryParameters().get("name"); + final String name = request.getBody().orElse(query); + + if (name == null) { + return request.createResponseBuilder(HttpStatus.BAD_REQUEST).body("Please pass a name on the query string or in the request body").build(); + } else { + return request.createResponseBuilder(HttpStatus.OK).body(service.greeting(name)).build(); + } + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java new file mode 100644 index 0000000000000..8a7d5a383e7a5 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java @@ -0,0 +1,10 @@ +package org.acme; + +import javax.enterprise.context.ApplicationScoped; + +@ApplicationScoped +public class GreetingService { + public String greeting(String name) { + return "Guten Tag " + name; + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java new file mode 100644 index 0000000000000..cc484aca49cd6 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java @@ -0,0 +1,68 @@ +package org.acme; + +import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpRequestMessage; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; +import org.mockito.invocation.InvocationOnMock; +import org.mockito.stubbing.Answer; + +import javax.inject.Inject; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; +import java.util.logging.Logger; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doAnswer; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; + + + +/** + * Unit test for Function class. + */ +@QuarkusTest +public class FunctionTest { + + @Inject + Function function; + + /** + * Unit test for HttpTriggerJava method. + */ + @Test + public void testHttpTriggerJava() throws Exception { + // Setup + @SuppressWarnings("unchecked") + final HttpRequestMessage> req = mock(HttpRequestMessage.class); + + final Map queryParams = new HashMap<>(); + queryParams.put("name", "Azure"); + doReturn(queryParams).when(req).getQueryParameters(); + + final Optional queryBody = Optional.empty(); + doReturn(queryBody).when(req).getBody(); + + doAnswer(new Answer() { + @Override + public HttpResponseMessage.Builder answer(InvocationOnMock invocation) { + HttpStatus status = (HttpStatus) invocation.getArguments()[0]; + return new HttpResponseMessageMock.HttpResponseMessageBuilderMock().status(status); + } + }).when(req).createResponseBuilder(any(HttpStatus.class)); + + final ExecutionContext context = mock(ExecutionContext.class); + doReturn(Logger.getGlobal()).when(context).getLogger(); + + // Invoke + final HttpResponseMessage ret = function.run(req, context); + + // Verify + assertEquals(ret.getStatus(), HttpStatus.OK); + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/HttpResponseMessageMock.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/HttpResponseMessageMock.java new file mode 100644 index 0000000000000..75891d483587f --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/HttpResponseMessageMock.java @@ -0,0 +1,83 @@ +package org.acme; + +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.HttpStatusType; + +import java.util.HashMap; +import java.util.Map; + +/** + * The mock for HttpResponseMessage, can be used in unit tests to verify if the + * returned response by HTTP trigger function is correct or not. + */ +public class HttpResponseMessageMock implements HttpResponseMessage { + private int httpStatusCode; + private HttpStatusType httpStatus; + private Object body; + private Map headers; + + public HttpResponseMessageMock(HttpStatusType status, Map headers, Object body) { + this.httpStatus = status; + this.httpStatusCode = status.value(); + this.headers = headers; + this.body = body; + } + + @Override + public HttpStatusType getStatus() { + return this.httpStatus; + } + + @Override + public int getStatusCode() { + return httpStatusCode; + } + + @Override + public String getHeader(String key) { + return this.headers.get(key); + } + + @Override + public Object getBody() { + return this.body; + } + + public static class HttpResponseMessageBuilderMock implements HttpResponseMessage.Builder { + private Object body; + private int httpStatusCode; + private Map headers = new HashMap<>(); + private HttpStatusType httpStatus; + + public Builder status(HttpStatus status) { + this.httpStatusCode = status.value(); + this.httpStatus = status; + return this; + } + + @Override + public Builder status(HttpStatusType httpStatusType) { + this.httpStatusCode = httpStatusType.value(); + this.httpStatus = httpStatusType; + return this; + } + + @Override + public HttpResponseMessage.Builder header(String key, String value) { + this.headers.put(key, value); + return this; + } + + @Override + public HttpResponseMessage.Builder body(Object body) { + this.body = body; + return this; + } + + @Override + public HttpResponseMessage build() { + return new HttpResponseMessageMock(this.httpStatus, this.headers, this.body); + } + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/function.tpl.qute.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/function.tpl.qute.json deleted file mode 100644 index ee7d430606236..0000000000000 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/function.tpl.qute.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scriptFile" : "../{project.artifact-id}-{project.version}.jar", - "entryPoint" : "io.quarkus.azure.functions.resteasy.runtime.Function.run", - "bindings" : [ { - "type" : "httpTrigger", - "direction" : "in", - "name" : "req", - "route" : "{*path}", - "methods" : [ "GET", "POST", "HEAD", "PUT", "OPTIONS", "DELETE" ], - "dataType" : "binary", - "authLevel" : "ANONYMOUS" - }, { - "type" : "http", - "direction" : "out", - "name" : "$return" - } ] -} \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/host.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/host.json deleted file mode 100644 index a8fe8c4c8e513..0000000000000 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/host.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "2.0" -} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/host.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/host.json new file mode 100644 index 0000000000000..9f633be4856b6 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/host.json @@ -0,0 +1,7 @@ +{ + "version": "2.0", + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[3.*, 4.0.0)" + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/local.settings.json b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/local.settings.json similarity index 94% rename from devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/local.settings.json rename to devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/local.settings.json index 8804ca029cf22..359101f1f57b2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/azure-config/local.settings.json +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/local.settings.json @@ -1,7 +1,7 @@ -{ - "IsEncrypted": false, - "Values": { - "AzureWebJobsStorage": "", - "FUNCTIONS_WORKER_RUNTIME": "java" - } -} +{ + "IsEncrypted": false, + "Values": { + "AzureWebJobsStorage": "", + "FUNCTIONS_WORKER_RUNTIME": "java" + } +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/pom.tpl.qute.xml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/pom.tpl.qute.xml index e83efe601cc45..58b634e17a6b2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/pom.tpl.qute.xml +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/pom.tpl.qute.xml @@ -1,133 +1,66 @@ - 1.9.1 - 3.1.0 + 1.19.0 11 $\{artifactId}-{gen-info.time} {app-region} {resource-group} - {function} - $\{project.build.directory}/azure-functions/$\{functionAppName} - com.microsoft.azure azure-functions-maven-plugin $\{azure.functions.maven.plugin.version} - $\{functionResourceGroup} + $\{functionAppName} + + $\{functionResourceGroup} + + java-functions-app-service-plan + + $\{functionAppRegion} + + + + + + - windows + {function-os} 11 - - - - - FUNCTIONS_EXTENSION_VERSION - ~3 + ~4 - + - - - org.apache.maven.plugins - maven-resources-plugin - $\{resources-plugin.version} - - - copy-base-azure-config - package - - copy-resources - - - true - $\{stagingDirectory} - - - $\{project.basedir}/azure-config - - host.json - local.settings.json - - - - - - - - copy-function-json - install - - copy-resources - - - true - $\{stagingDirectory}/$\{function} - - - $\{project.basedir}/azure-config - true - - function.json - - - - - - - copy-uberjar - install + package-functions - copy-resources + package - - true - $\{stagingDirectory} - - - $\{project.build.directory} - - $\{project.artifactId}-$\{project.version}-runner.jar - - - - - + - com.coderplus.maven.plugins - copy-rename-maven-plugin - 1.0.1 - - - rename-file - package - - copy - - - $\{project.build.directory}/$\{project.artifactId}-$\{project.version}-runner.jar - $\{stagingDirectory}/$\{project.artifactId}-$\{project.version}.jar - - - + maven-clean-plugin + 3.1.0 + + + + obj + + + diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/src/main/resources/application.tpl.qute.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/src/main/resources/application.tpl.qute.yml index 0d3141362fddb..8d74884950fe6 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/src/main/resources/application.tpl.qute.yml +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/base/src/main/resources/application.tpl.qute.yml @@ -1,5 +1,3 @@ quarkus: http: root-path: {root-context-path} - package: - type: uber-jar \ No newline at end of file diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/codestart.yml b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/codestart.yml index b2dba0af52ccf..90d341f05b794 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/codestart.yml +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/codestart.yml @@ -10,14 +10,20 @@ metadata: related-guide-section: https://quarkus.io/guides/azure-functions-http language: base: + shared-data: + generate-native: false data: # /api is the default root context azure functions will prepend root-context-path: "/api" app-region: - westus + eastus resource-group: - java-functions-group - function: - greeting + quarkus-examples + function-os: + linux dependencies: - io.quarkus:quarkus-azure-functions-http + - io.quarkus:quarkus-resteasy-reactive + - com.microsoft.azure.functions:azure-functions-java-library + test-dependencies: + - io.rest-assured:rest-assured diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java similarity index 83% rename from extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java rename to devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java index 63cd0cdcc30ea..aa65b237e2b1e 100644 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java @@ -1,4 +1,4 @@ -package ${package}; +package org.acme; import javax.ws.rs.GET; import javax.ws.rs.Path; @@ -11,6 +11,7 @@ public class GreetingResource { @GET @Produces(MediaType.TEXT_PLAIN) public String hello() { - return "hello jaxrs"; + return "hello"; } + } diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java new file mode 100644 index 0000000000000..2b549c62a38f0 --- /dev/null +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java @@ -0,0 +1,21 @@ +package org.acme; + +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.CoreMatchers.is; + +@QuarkusTest +public class GreetingTest { + + @Test + public void testHelloEndpoint() { + given() + .when().get("/hello") + .then() + .statusCode(200) + .body(is("hello")); + } + +} \ No newline at end of file diff --git a/docs/pom.xml b/docs/pom.xml index 00c3867a16b4a..1334f83fed7f9 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -248,6 +248,19 @@ + + io.quarkus + quarkus-azure-functions-deployment + ${project.version} + pom + test + + + * + * + + + io.quarkus quarkus-azure-functions-http-deployment diff --git a/docs/src/main/asciidoc/azure-functions-http.adoc b/docs/src/main/asciidoc/azure-functions-http.adoc index e289cbd98b8ca..700f6c5720f07 100644 --- a/docs/src/main/asciidoc/azure-functions-http.adoc +++ b/docs/src/main/asciidoc/azure-functions-http.adoc @@ -3,7 +3,7 @@ This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// -= Azure Functions (Serverless) with RESTEasy Reactive, Undertow, or Reactive Routes += Azure Functions with RESTEasy Reactive, Undertow, or Reactive Routes :extension-status: preview include::_attributes.adoc[] :categories: cloud @@ -22,40 +22,25 @@ NOTE: Only text based media types are supported at the moment as Azure Functions include::{includes}/prerequisites.adoc[] * https://azure.microsoft.com[An Azure Account]. Free accounts work. +* https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local#v2[Azure Functions Core Tools] version 4.x * https://docs.microsoft.com/en-us/cli/azure/install-azure-cli[Azure CLI Installed] == Solution -This guide walks you through running a Maven Archetype to generate a sample project that contains three http endpoints -written with JAX-RS APIs, Servlet APIs, Reactive Routes, or xref:funqy-http.adoc[Funqy HTTP] APIs. After building, you will then be able to deploy -to Azure. +This guide walks you through running a maven project that can deploy a Resteasy Reactive endpoint to Azure Functions. +While only JAX-RS is provided as an example, you can easily replace it with the HTTP framework of your choice. == Creating the Maven Deployment Project -Create the Azure Maven project for your Quarkus application using our Maven Archetype. +You can download the example code from Quarkus's application generator at https://code.quarkus.io/d?e=azure-functions-http&cn=code.quarkus.io[this link]. +You can also generate this example with the Quarkus CLI: [source,bash,subs=attributes+] ---- -mvn archetype:generate \ - -DarchetypeGroupId=io.quarkus \ - -DarchetypeArtifactId=quarkus-azure-functions-http-archetype \ - -DarchetypeVersion={quarkus-version} +quarkus create app --extension=quarkus-azure-functions-http ---- -Running this command will run maven in interactive mode and it will ask you to fill in some build properties: - -* `groupId` - The maven groupId of this generated project. Type in `org.acme`. -* `artifactId` - The maven artifactId of this generated project. Type in `quarkus-demo` -* `version` - Version of this generated project. -* `package` - defaults to `groupId` -* `appName` - Use the default value. This is the application name in Azure. It must be a unique subdomain name under `*.azurewebsites.net`. Otherwise, deploying to Azure will fail. -* `appRegion` - Defaults to `westus`. Dependent on your azure region. -* `function` - Use the default which is `quarkus`. Name of your azure function. Can be anything you want. -* `resourceGroup` - Use the default value. Any value is fine though. - -The values above are defined as properties in the generated `pom.xml` file. - == Login to Azure If you don't log in to Azure you won't be able to deploy. @@ -65,52 +50,63 @@ If you don't log in to Azure you won't be able to deploy. az login ---- -== Build and Deploy to Azure +== Quarkus dev mode + +Quarkus dev mode works by just running your application as a HTTP endpoint. + +[source,bash,subs=attributes+] +---- +./mvnw clean package quarkus:dev +---- + + + +== Run locally in Azure Functions simulated environment + +If you want to try your app with a simulated local Azure Functions environment, you can +use this command -The `pom.xml` you generated in the previous step pulls in the `azure-functions-maven-plugin`. Running maven install +[source,bash,subs=attributes+] +---- +./mvnw clean package azure-functions:run +---- + +Note that you must have the https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local#v2[Azure Functions Core Tools] +installed for this to work! + +== Deploy to Azure + +The `pom.xml` you generated in the previous step pulls in the `azure-functions-maven-plugin`. Running maven package generates config files and a staging directory required by the `azure-functions-maven-plugin`. Here's how to execute it. [source,bash,subs=attributes+] ---- -./mvnw clean install azure-functions:deploy +./mvnw clean package azure-functions:deploy ---- -If you haven't already created your function up at azure, then build an uber-jar, package it, create the function -at Azure, and deploy it. - If deployment is a success, the azure plugin will tell you the base URL to access your function. i.e. [source] ---- -Successfully deployed the artifact to https://quarkus-demo-123451234.azurewebsites.net +[INFO] HTTP Trigger Urls: +[INFO] QuarkusHttp : https://{appName}.azurewebsites.net/api/{*path} ---- The URL to access the service would be https://{appName}.azurewebsites.net/api/hello -https://{appName}.azurewebsites.net/api/servlet/hello -https://{appName}.azurewebsites.net/api/vertx/hello -https://{appName}.azurewebsites.net/api/funqyHello == Extension maven dependencies -The sample project includes the RESTEasy Reactive, Undertow, Reactive Routes, xref:funqy-http.adoc[Funqy HTTP] extensions. If you are only using one of those -APIs (i.e. jax-rs only), respectively remove the maven dependency `quarkus-resteasy-reactive`, `quarkus-undertow`, `quarkus-funqy-http`, and/or -`quarkus-reactive-routes`. - You must include the `quarkus-azure-functions-http` extension as this is a generic bridge between the Azure Functions runtime and the HTTP framework you are writing your microservices in. == Azure Deployment Descriptors Templates for Azure Functions deployment descriptors (`host.json`, `function.json`) are within -the `azure-config` directory. Edit them as you need to. Rerun the build when you are ready. - -*NOTE*: If you change the `function.json` `path` attribute or if you add a `routePrefix`, -your jax-rs endpoints won't route correctly. See <> for more information. - +base Edit them as you need to. Rerun the build when you are ready. [#config-azure-paths] == Configuring Root Paths @@ -119,6 +115,3 @@ The default route prefix for an Azure Function is `/api`. All of your JAX-RS, S explicitly take this into account. In the generated project this is handled by the `quarkus.http.root-path` switch in `application.properties` -If you modify the `path` or add a `routePrefix` within the `azure-config/function.json` -deployment descriptor, your code or configuration must also reflect any prefixes you specify for your path. - diff --git a/docs/src/main/asciidoc/azure-functions.adoc b/docs/src/main/asciidoc/azure-functions.adoc new file mode 100644 index 0000000000000..2b8dcf1128122 --- /dev/null +++ b/docs/src/main/asciidoc/azure-functions.adoc @@ -0,0 +1,149 @@ +//// +This guide is maintained in the main Quarkus repository +and pull requests should be submitted there: +https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc +//// += Azure Functions +:extension-status: preview +include::_attributes.adoc[] +:categories: cloud +:summary: This guide explains how you can integrate Quarkus with any Azure Functions you write. + +The `quarkus-azure-functions` extension is a simple integration point between Azure Functions +and Quarkus. It interacts with Azure Functions runtime to bootstrap quarkus and turns any +Azure Functions class you write into a CDI/Arc bean. + +This allows you to inject any service or component initialized by quarkus directly into your function +classes. You can also change the lifecycle of your function class from request scoped (the default) +to application scope too if you want your function class to be a singleton. + +[source, java] +---- +import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpMethod; +import com.microsoft.azure.functions.HttpRequestMessage; +import com.microsoft.azure.functions.HttpResponseMessage; +import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.annotation.AuthorizationLevel; +import com.microsoft.azure.functions.annotation.FunctionName; +import com.microsoft.azure.functions.annotation.HttpTrigger; + +import javax.inject.Inject; +import java.util.Optional; + +public class Function { + @Inject + GreetingService service; + + @FunctionName("HttpExample") + public HttpResponseMessage run( + @HttpTrigger( + name = "req", + methods = {HttpMethod.GET, HttpMethod.POST}, + authLevel = AuthorizationLevel.ANONYMOUS) + HttpRequestMessage> request, + final ExecutionContext context) { + + // Parse query parameter + final String query = request.getQueryParameters().get("name"); + final String name = request.getBody().orElse(query); + + if (name == null) { + return request.createResponseBuilder(HttpStatus.BAD_REQUEST).body("Please pass a name on the query string or in the request body").build(); + } else { + return request.createResponseBuilder(HttpStatus.OK).body(service.greeting(name)).build(); + } + } +} +---- + +include::{includes}/extension-status.adoc[] + +== Prerequisites + +include::{includes}/prerequisites.adoc[] +* https://azure.microsoft.com[An Azure Account]. Free accounts work. +* https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local#v2[Azure Functions Core Tools] version 4.x +* https://docs.microsoft.com/en-us/cli/azure/install-azure-cli[Azure CLI Installed] + +== Solution + +This guide walks you through running a maven project that can deploy an Http Trigger Azure Function class. +This function class injects a CDI bean service that generates a greeting message that is passed back +to the client. + +== Creating the Maven Deployment Project + +You can download the example code from Quarkus's application generator at https://code.quarkus.io/d?e=azure-functions&cn=code.quarkus.io[this link]. + +You can also generate this example with the Quarkus CLI: + +[source,bash,subs=attributes+] +---- +quarkus create app --extension=quarkus-azure-functions +---- + + + +== Login to Azure + +If you don't log in to Azure you won't be able to deploy. + +[source,bash,subs=attributes+] +---- +az login +---- + +== Quarkus dev mode + +Quarkus dev mode does not work currently with Azure Functions. + +== Run locally in Azure Functions simulated environment + +If you want to try your app with a simulated local Azure Functions environment, you can +use this command + +[source,bash,subs=attributes+] +---- +./mvnw clean package azure-functions:run +---- + +Note that you must have the https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local#v2[Azure Functions Core Tools] +installed for this to work! + +== Deploy to Azure + +The `pom.xml` you generated in the previous step pulls in the `azure-functions-maven-plugin`. Running maven package +generates config files and a staging directory required by the `azure-functions-maven-plugin`. Here's +how to execute it. + +[source,bash,subs=attributes+] +---- +./mvnw clean package azure-functions:deploy +---- + +If deployment is a success, the azure maven plugin will tell you the base URL to access your function. + +i.e. +[source] +---- +[INFO] HTTP Trigger Urls: +[INFO] HttpExample : https://{appName}.azurewebsites.net/api/httpexample +---- + +The URL to access the service would be + +https://{appName}.azurewebsites.net/api/HttpExample + +== Extension maven dependencies + +You must include the `quarkus-azure-functions` extension as this is the integration point between +Quarkus and Azure Functions. It registers callback with the Azure Functions runtime to bootstrap +Quarkus and to set up Quarkus/Arc as the function factory for your function classes. + +== Azure Deployment Descriptors + +Templates for Azure Functions deployment descriptors (`host.json`, `function.json`) are within +base directory of the project. Edit them as you need to. Rerun the build when you are ready. + + diff --git a/extensions/azure-functions-http/deployment/pom.xml b/extensions/azure-functions-http/deployment/pom.xml index 873720ccb3ae7..fa285088c0a76 100644 --- a/extensions/azure-functions-http/deployment/pom.xml +++ b/extensions/azure-functions-http/deployment/pom.xml @@ -21,10 +21,18 @@ io.quarkus quarkus-core-deployment + + io.quarkus + quarkus-arc-deployment + io.quarkus quarkus-vertx-http-deployment + + com.microsoft.azure.functions + azure-functions-java-library + org.graalvm.nativeimage svm diff --git a/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java b/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java index aa2f04dbdf1df..c8e0f1f65169d 100644 --- a/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java +++ b/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java @@ -1,10 +1,17 @@ package io.quarkus.azure.functions.resteasy.deployment; +import java.util.Collections; +import java.util.List; + import org.jboss.logging.Logger; +import io.quarkus.builder.BuildException; +import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.FeatureBuildItem; import io.quarkus.deployment.builditem.LaunchModeBuildItem; -import io.quarkus.deployment.pkg.builditem.UberJarRequiredBuildItem; +import io.quarkus.deployment.pkg.PackageConfig; +import io.quarkus.deployment.pkg.builditem.LegacyJarRequiredBuildItem; import io.quarkus.runtime.LaunchMode; import io.quarkus.vertx.http.deployment.RequireVirtualHttpBuildItem; @@ -12,9 +19,17 @@ public class AzureFunctionsHttpProcessor { private static final Logger log = Logger.getLogger(AzureFunctionsHttpProcessor.class); @BuildStep - public UberJarRequiredBuildItem forceUberJar() { - // Azure Functions needs a single JAR inside a dedicated directory - return new UberJarRequiredBuildItem(); + public LegacyJarRequiredBuildItem forceLegacy(List features, PackageConfig config) throws BuildException { + for (FeatureBuildItem item : features) { + if (Feature.AZURE_FUNCTIONS.getName().equals(item.getName())) { + throw new BuildException( + "quarkus-azure-functions-http extension is incompatible with quarkus-azure-functions extension. Remove quarkus-azure-functions from your build.", + Collections.EMPTY_LIST); + } + } + // Azure Functions need a legacy jar and no runner + config.addRunnerSuffix = false; + return new LegacyJarRequiredBuildItem(); } @BuildStep diff --git a/extensions/azure-functions-http/maven-archetype/pom.xml b/extensions/azure-functions-http/maven-archetype/pom.xml deleted file mode 100644 index bbfd70a7670d9..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - quarkus-azure-functions-http-parent - io.quarkus - 999-SNAPSHOT - - 4.0.0 - - quarkus-azure-functions-http-archetype - Quarkus - HTTP Azure Functions - Archetype - maven-archetype - - - - - org.apache.maven.archetype - archetype-packaging - 3.0.1 - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.1.0 - - \ - - - - - - diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/extensions/azure-functions-http/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 7741b31fc2804..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - [A-Za-z0-9_\-\.]+ - - - - [A-Za-z0-9_\-\.]+ - - - - - ${artifactId}-${package.getClass().forName("java.time.LocalDateTime").getMethod("now").invoke(null).format($package.Class.forName("java.time.format.DateTimeFormatter").getMethod("ofPattern", $package.Class).invoke(null, "yyyyMMddHHmmssSSS"))} - - - - - - ${package.getClass().forName("java.lang.StringBuilder").getConstructor($package.getClass().forName("java.lang.String")).newInstance("westus").toString()} - - - - ${package.getClass().forName("java.lang.StringBuilder").getConstructor($package.getClass().forName("java.lang.String")).newInstance("java-functions-group").toString()} - - - ${package.getClass().forName("java.lang.StringBuilder").getConstructor($package.getClass().forName("java.lang.String")).newInstance("quarkus").toString()} - - - ${groupId} - - - - - src/main/java - - - src/main/resources - - - src/test/java - - - azure-config - - *.json - - - - diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json deleted file mode 100644 index c231ea814e369..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/function.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scriptFile" : "../\${artifactId}-\${version}.jar", - "entryPoint" : "io.quarkus.azure.functions.resteasy.runtime.Function.run", - "bindings" : [ { - "type" : "httpTrigger", - "direction" : "in", - "name" : "req", - "route" : "{*path}", - "methods" : [ "GET", "POST", "HEAD", "PUT", "OPTIONS", "DELETE" ], - "dataType" : "binary", - "authLevel" : "ANONYMOUS" - }, { - "type" : "http", - "direction" : "out", - "name" : "$return" - } ] -} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json deleted file mode 100644 index a8fe8c4c8e513..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/azure-config/host.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "2.0" -} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 49bedd6dd877f..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,203 +0,0 @@ - - - 4.0.0 - \${groupId} - \${artifactId} - \${version} - - 3.10.1 - true - 11 - 11 - UTF-8 - UTF-8 - 999-SNAPSHOT - quarkus-bom - io.quarkus - 999-SNAPSHOT - 3.1.0 - 3.0.0-M8 - - 1.9.1 - ${appName} - ${appRegion} - ${resourceGroup} - ${function} - \${project.build.directory}/azure-functions/\${functionAppName} - uber-jar - - - - - \${quarkus.platform.group-id} - \${quarkus.platform.artifact-id} - \${quarkus.platform.version} - pom - import - - - - - - - io.quarkus - quarkus-resteasy - - - - io.quarkus - quarkus-undertow - - - - io.quarkus - quarkus-reactive-routes - - - - io.quarkus - quarkus-funqy-http - - - io.quarkus - quarkus-azure-functions-http - - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - - - - - - io.quarkus - quarkus-maven-plugin - \${quarkus-plugin.version} - - - - build - - - - - - maven-compiler-plugin - \${compiler-plugin.version} - - - maven-surefire-plugin - \${surefire-plugin.version} - - - org.jboss.logmanager.LogManager - \${maven.home} - - - - - - com.microsoft.azure - azure-functions-maven-plugin - \${azure.functions.maven.plugin.version} - - \${functionResourceGroup} - \${functionAppName} - \${functionAppRegion} - - - windows - 11 - - - - - - - - FUNCTIONS_EXTENSION_VERSION - ~3 - - - - - - org.apache.maven.plugins - maven-resources-plugin - \${resources-plugin.version} - - - - copy-base-azure-config - package - - copy-resources - - - true - \${stagingDirectory} - - - \${project.basedir}/azure-config - - host.json - local.settings.json - - - - - - - - copy-function-json - install - - copy-resources - - - true - \${stagingDirectory}/\${function} - - - \${project.basedir}/azure-config - true - - function.json - - - - - - - - - - com.coderplus.maven.plugins - copy-rename-maven-plugin - 1.0.1 - - - rename-file - package - - copy - - - \${project.build.directory}/\${project.artifactId}-\${project.version}-runner.jar - \${stagingDirectory}/\${project.artifactId}-\${project.version}.jar - - - - - - - diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingFunction.java b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingFunction.java deleted file mode 100644 index a6b00f53041eb..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingFunction.java +++ /dev/null @@ -1,11 +0,0 @@ -package ${package}; - -import io.quarkus.funqy.Funq; - -public class GreetingFunction { - - @Funq - public String funqyHello() { - return "hello funqy"; - } -} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java deleted file mode 100644 index 9ea933ac90f4f..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java +++ /dev/null @@ -1,19 +0,0 @@ -package ${package}; - -import java.io.IOException; - -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -@WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") -public class GreetingServlet extends HttpServlet { - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - resp.setStatus(200); - resp.addHeader("Content-Type", "text/plain"); - resp.getWriter().write("hello servlet"); - } -} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingVertx.java b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingVertx.java deleted file mode 100644 index f9aad01092494..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingVertx.java +++ /dev/null @@ -1,14 +0,0 @@ -package ${package}; - -import static io.quarkus.vertx.web.Route.HttpMethod.*; - -import io.quarkus.vertx.web.Route; -import io.vertx.ext.web.RoutingContext; - -public class GreetingVertx { - @Route(path = "/vertx/hello", methods = GET) - void hello(RoutingContext context) { - context.response().headers().set("Content-Type", "text/plain"); - context.response().setStatusCode(200).end("hello vertx"); - } -} diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/resources/application.properties b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/resources/application.properties deleted file mode 100644 index 778bfce322b48..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -quarkus.http.root-path=/api \ No newline at end of file diff --git a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/test/java/GreetingTest.java b/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/test/java/GreetingTest.java deleted file mode 100644 index 7221dbb82cf5f..0000000000000 --- a/extensions/azure-functions-http/maven-archetype/src/main/resources/archetype-resources/src/test/java/GreetingTest.java +++ /dev/null @@ -1,45 +0,0 @@ -package ${package}; - -import io.quarkus.test.junit.QuarkusTest; -import io.restassured.RestAssured; -import org.junit.jupiter.api.Test; - -import static org.hamcrest.Matchers.equalTo; - -@QuarkusTest -public class GreetingTest -{ - // NOTE: RestAssured is aware of the application.properties quarkus.http.root-path switch - - @Test - public void testJaxrs() { - RestAssured.when().get("/hello").then() - .statusCode(200) - .contentType("text/plain") - .body(equalTo("hello jaxrs")); - } - - @Test - public void testServlet() { - RestAssured.when().get("/servlet/hello").then() - .statusCode(200) - .contentType("text/plain") - .body(equalTo("hello servlet")); - } - - @Test - public void testVertx() { - RestAssured.when().get("/vertx/hello").then() - .statusCode(200) - .contentType("text/plain") - .body(equalTo("hello vertx")); - } - - @Test - public void testFunqy() { - RestAssured.when().get("/funqyHello").then() - .statusCode(200) - .contentType("application/json") - .body(equalTo("\"hello funqy\"")); - } -} diff --git a/extensions/azure-functions-http/pom.xml b/extensions/azure-functions-http/pom.xml index b68a683b1ab58..7cc494144f4a2 100644 --- a/extensions/azure-functions-http/pom.xml +++ b/extensions/azure-functions-http/pom.xml @@ -32,7 +32,6 @@ runtime deployment - maven-archetype diff --git a/extensions/azure-functions-http/runtime/pom.xml b/extensions/azure-functions-http/runtime/pom.xml index 6b7429ab32ec5..7fd96d8e28293 100644 --- a/extensions/azure-functions-http/runtime/pom.xml +++ b/extensions/azure-functions-http/runtime/pom.xml @@ -22,11 +22,6 @@ io.quarkus quarkus-core - - org.graalvm.nativeimage - svm - provided - com.microsoft.azure.functions azure-functions-java-library diff --git a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/BaseFunction.java b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/BaseFunction.java index 27528cad4ac98..7d1967fe1fcb5 100644 --- a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/BaseFunction.java +++ b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/BaseFunction.java @@ -1,8 +1,6 @@ package io.quarkus.azure.functions.resteasy.runtime; import java.io.ByteArrayOutputStream; -import java.io.PrintWriter; -import java.io.StringWriter; import java.nio.channels.Channels; import java.nio.channels.WritableByteChannel; import java.util.Map; @@ -28,16 +26,12 @@ import io.netty.util.ReferenceCountUtil; import io.quarkus.netty.runtime.virtual.VirtualClientConnection; import io.quarkus.netty.runtime.virtual.VirtualResponseHandler; -import io.quarkus.runtime.Application; +import io.quarkus.runtime.Quarkus; import io.quarkus.vertx.http.runtime.VertxHttpRecorder; public class BaseFunction { private static final Logger log = Logger.getLogger("io.quarkus.azure"); - protected static String deploymentStatus; - protected static boolean started = false; - protected static boolean bootstrapError = false; - private static final int BUFFER_SIZE = 8096; protected static void ensureQuarkusInitialized() { @@ -46,28 +40,22 @@ protected static void ensureQuarkusInitialized() { QuarkusInitializer.ensureQuarkusInitialized(); } + // needed for mock tests + public static boolean throwException = true; + private static void initQuarkus() { - StringWriter error = new StringWriter(); - PrintWriter errorWriter = new PrintWriter(error, true); - if (Application.currentApplication() == null) { // were we already bootstrapped? Needed for mock azure unit testing. + if (throwException) { + Quarkus.manualInitialize(); + Quarkus.manualStart(); + } else { try { - Class appClass = Class.forName("io.quarkus.runner.ApplicationImpl"); - String[] args = {}; - Application app = (Application) appClass.getDeclaredConstructor().newInstance(); - app.start(args); - errorWriter.println("Quarkus bootstrapped successfully."); - started = true; - } catch (Throwable ex) { - bootstrapError = true; - errorWriter.println("Quarkus bootstrap failed."); - ex.printStackTrace(errorWriter); - log.error("Quarkus bootstrap failed.", ex); + Quarkus.manualInitialize(); + Quarkus.manualStart(); + + } catch (Exception ex) { + } - } else { - errorWriter.println("Quarkus bootstrapped successfully."); - started = true; } - deploymentStatus = error.toString(); } protected HttpResponseMessage dispatch(HttpRequestMessage> request) { diff --git a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java index 8e5c5c57ff197..dc199a5e7b384 100644 --- a/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java +++ b/extensions/azure-functions-http/runtime/src/main/java/io/quarkus/azure/functions/resteasy/runtime/Function.java @@ -1,28 +1,26 @@ package io.quarkus.azure.functions.resteasy.runtime; -import java.nio.charset.StandardCharsets; import java.util.Optional; import com.microsoft.azure.functions.ExecutionContext; +import com.microsoft.azure.functions.HttpMethod; import com.microsoft.azure.functions.HttpRequestMessage; import com.microsoft.azure.functions.HttpResponseMessage; -import com.microsoft.azure.functions.HttpStatus; +import com.microsoft.azure.functions.annotation.AuthorizationLevel; +import com.microsoft.azure.functions.annotation.FunctionName; import com.microsoft.azure.functions.annotation.HttpTrigger; public class Function extends BaseFunction { + @FunctionName("QuarkusHttp") public HttpResponseMessage run( - @HttpTrigger(name = "req") HttpRequestMessage> request, + @HttpTrigger(name = "req", dataType = "binary", methods = { HttpMethod.GET, HttpMethod.HEAD, HttpMethod.POST, + HttpMethod.PUT, + HttpMethod.OPTIONS }, route = "{*path}", authLevel = AuthorizationLevel.ANONYMOUS) HttpRequestMessage> request, final ExecutionContext context) { ensureQuarkusInitialized(); - if (bootstrapError) { - HttpResponseMessage.Builder responseBuilder = request - .createResponseBuilder(HttpStatus.valueOf(500)).body( - deploymentStatus.getBytes(StandardCharsets.UTF_8)); - return responseBuilder.build(); - } return dispatch(request); } } diff --git a/extensions/azure-functions-http/runtime/src/test/java/io/quarkus/azure/functions/resteasy/runtime/FunctionTest.java b/extensions/azure-functions-http/runtime/src/test/java/io/quarkus/azure/functions/resteasy/runtime/FunctionTest.java index f681a6981510d..4dc3a61516975 100644 --- a/extensions/azure-functions-http/runtime/src/test/java/io/quarkus/azure/functions/resteasy/runtime/FunctionTest.java +++ b/extensions/azure-functions-http/runtime/src/test/java/io/quarkus/azure/functions/resteasy/runtime/FunctionTest.java @@ -55,6 +55,10 @@ public class FunctionTest { private final HttpResponseMessage.Builder responseBuilder = mock(HttpResponseMessage.Builder.class); private final HttpResponseMessage response = mock(HttpResponseMessage.class); + static { + BaseFunction.throwException = false; + } + @BeforeEach public void mockSetup() { when(request.getHttpMethod()).thenReturn(METHOD); diff --git a/extensions/azure-functions/deployment/pom.xml b/extensions/azure-functions/deployment/pom.xml new file mode 100644 index 0000000000000..c0f783178d856 --- /dev/null +++ b/extensions/azure-functions/deployment/pom.xml @@ -0,0 +1,50 @@ + + + + quarkus-azure-functions-parent + io.quarkus + 999-SNAPSHOT + + 4.0.0 + + quarkus-azure-functions-deployment + Quarkus - Azure Functions - Deployment + + + + io.quarkus + quarkus-azure-functions + + + io.quarkus + quarkus-arc-deployment + + + io.quarkus + quarkus-core-deployment + + + com.microsoft.azure.functions + azure-functions-java-library + + + + + + + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + diff --git a/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDotNames.java b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDotNames.java new file mode 100644 index 0000000000000..4e6fc653265e9 --- /dev/null +++ b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsDotNames.java @@ -0,0 +1,44 @@ +package io.quarkus.azure.functions.deployment; + +import org.jboss.jandex.DotName; + +import com.microsoft.azure.functions.annotation.BlobTrigger; +import com.microsoft.azure.functions.annotation.CosmosDBTrigger; +import com.microsoft.azure.functions.annotation.EventGridTrigger; +import com.microsoft.azure.functions.annotation.EventHubTrigger; +import com.microsoft.azure.functions.annotation.FunctionName; +import com.microsoft.azure.functions.annotation.HttpTrigger; +import com.microsoft.azure.functions.annotation.KafkaTrigger; +import com.microsoft.azure.functions.annotation.QueueTrigger; +import com.microsoft.azure.functions.annotation.ServiceBusQueueTrigger; +import com.microsoft.azure.functions.annotation.TimerTrigger; +import com.microsoft.azure.functions.annotation.WarmupTrigger; + +public final class AzureFunctionsDotNames { + public static final DotName BLOB_TRIGGER = DotName.createSimple(BlobTrigger.class.getName()); + public static final DotName COSMOS_DB_TRIGGER = DotName.createSimple(CosmosDBTrigger.class.getName()); + public static final DotName EVENT_GRID_TRIGGER = DotName.createSimple(EventGridTrigger.class.getName()); + public static final DotName EVENT_HUB_TRIGGER = DotName.createSimple(EventHubTrigger.class.getName()); + public static final DotName FUNCTION_NAME = DotName.createSimple(FunctionName.class.getName()); + public static final DotName HTTP_TRIGGER = DotName.createSimple(HttpTrigger.class.getName()); + public static final DotName KAFKA_TRIGGER = DotName.createSimple(KafkaTrigger.class.getName()); + public static final DotName QUEUE_TRIGGER = DotName.createSimple(QueueTrigger.class.getName()); + public static final DotName SERVICE_BUS_QUEUE_TRIGGER = DotName.createSimple(ServiceBusQueueTrigger.class.getName()); + public static final DotName SERVICE_BUS_TOPIC_TRIGGER = DotName.createSimple(ServiceBusQueueTrigger.class.getName()); + public static final DotName TIMER_TRIGGER = DotName.createSimple(TimerTrigger.class.getName()); + public static final DotName WARMUP_TRIGGER = DotName.createSimple(WarmupTrigger.class.getName()); + + static final DotName[] PARAMETER_ANNOTATIONS = { + BLOB_TRIGGER, + COSMOS_DB_TRIGGER, + EVENT_GRID_TRIGGER, + EVENT_HUB_TRIGGER, + HTTP_TRIGGER, + KAFKA_TRIGGER, + QUEUE_TRIGGER, + SERVICE_BUS_QUEUE_TRIGGER, + SERVICE_BUS_TOPIC_TRIGGER, + TIMER_TRIGGER, + WARMUP_TRIGGER + }; +} diff --git a/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java new file mode 100644 index 0000000000000..f76c6f1e82411 --- /dev/null +++ b/extensions/azure-functions/deployment/src/main/java/io/quarkus/azure/functions/deployment/AzureFunctionsProcessor.java @@ -0,0 +1,84 @@ +package io.quarkus.azure.functions.deployment; + +import java.lang.reflect.Modifier; +import java.util.Collection; +import java.util.HashSet; +import java.util.Set; + +import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.ClassInfo; +import org.jboss.jandex.DotName; +import org.jboss.jandex.IndexView; +import org.jboss.logging.Logger; + +import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.arc.deployment.UnremovableBeanBuildItem; +import io.quarkus.arc.processor.BuiltinScope; +import io.quarkus.deployment.Feature; +import io.quarkus.deployment.annotations.BuildProducer; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.CombinedIndexBuildItem; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.pkg.PackageConfig; +import io.quarkus.deployment.pkg.builditem.LegacyJarRequiredBuildItem; + +public class AzureFunctionsProcessor { + private static final Logger log = Logger.getLogger(AzureFunctionsProcessor.class); + + @BuildStep + public LegacyJarRequiredBuildItem forceLegacy(PackageConfig config) { + // Azure Functions need a legacy jar and no runner + config.addRunnerSuffix = false; + return new LegacyJarRequiredBuildItem(); + } + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(Feature.AZURE_FUNCTIONS); + } + + @BuildStep + public void registerArc(CombinedIndexBuildItem combined, + BuildProducer unremovableBeans, + BuildProducer additionalBeans) { + IndexView index = combined.getIndex(); + Set functionClasses = new HashSet<>(); + for (DotName ann : AzureFunctionsDotNames.PARAMETER_ANNOTATIONS) { + Collection anns = index.getAnnotations(ann); + anns.forEach(annotationInstance -> { + ClassInfo ci = annotationInstance.target().asMethodParameter().method().declaringClass(); + //log.info("Param annotation: " + ci.name().toString()); + functionClasses + .add(ci); + }); + } + Collection anns = index.getAnnotations(AzureFunctionsDotNames.FUNCTION_NAME); + anns.forEach(annotationInstance -> { + ClassInfo ci = annotationInstance.target().asMethod().declaringClass(); + //log.info("FunctionName annotation: " + ci.name().toString()); + functionClasses.add(ci); + }); + + if (!functionClasses.isEmpty()) { + AdditionalBeanBuildItem.Builder builder = AdditionalBeanBuildItem.builder() + .setDefaultScope(BuiltinScope.REQUEST.getName()) + .setUnremovable(); + for (ClassInfo funcClass : functionClasses) { + if (Modifier.isInterface(funcClass.flags()) || Modifier.isAbstract(funcClass.flags())) + continue; + if (BuiltinScope.isDeclaredOn(funcClass)) { + //log.info("Add unremovable: " + funcClass.name().toString()); + // It has a built-in scope - just mark it as unremovable + unremovableBeans + .produce(new UnremovableBeanBuildItem( + new UnremovableBeanBuildItem.BeanClassNameExclusion(funcClass.name().toString()))); + } else { + // No built-in scope found - add as additional bean + //log.info("Add default: " + funcClass.name().toString()); + builder.addBeanClass(funcClass.name().toString()); + } + } + additionalBeans.produce(builder.build()); + } + } +} diff --git a/extensions/azure-functions/pom.xml b/extensions/azure-functions/pom.xml new file mode 100644 index 0000000000000..ce6e13f9b683d --- /dev/null +++ b/extensions/azure-functions/pom.xml @@ -0,0 +1,37 @@ + + + + + + quarkus-extensions-parent + io.quarkus + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-azure-functions-parent + Quarkus - Azure Functions + pom + + runtime + deployment + + + diff --git a/extensions/azure-functions/runtime/pom.xml b/extensions/azure-functions/runtime/pom.xml new file mode 100644 index 0000000000000..3dbb3a074311b --- /dev/null +++ b/extensions/azure-functions/runtime/pom.xml @@ -0,0 +1,58 @@ + + + + quarkus-azure-functions-parent + io.quarkus + 999-SNAPSHOT + + 4.0.0 + + quarkus-azure-functions + Quarkus - Azure Functions - Runtime + Write Microsoft Azure functions + + + + io.quarkus + quarkus-core + + + io.quarkus + quarkus-arc + + + com.microsoft.azure.functions + azure-functions-java-library + provided + + + com.microsoft.azure.functions + azure-functions-java-spi + provided + + + + + + + io.quarkus + quarkus-extension-maven-plugin + + + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + + diff --git a/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsInjector.java b/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsInjector.java new file mode 100644 index 0000000000000..2b71700b81308 --- /dev/null +++ b/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsInjector.java @@ -0,0 +1,18 @@ +package io.quarkus.azure.functions.runtime; + +import com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector; + +import io.quarkus.arc.Arc; +import io.quarkus.runtime.Quarkus; + +public class QuarkusAzureFunctionsInjector implements FunctionInstanceInjector { + public QuarkusAzureFunctionsInjector() { + Quarkus.manualInitialize(); + Quarkus.manualStart(); + } + + @Override + public T getInstance(Class aClass) throws Exception { + return Arc.container().instance(aClass).get(); + } +} diff --git a/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsMiddleware.java b/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsMiddleware.java new file mode 100644 index 0000000000000..563d2fed5df31 --- /dev/null +++ b/extensions/azure-functions/runtime/src/main/java/io/quarkus/azure/functions/runtime/QuarkusAzureFunctionsMiddleware.java @@ -0,0 +1,26 @@ +package io.quarkus.azure.functions.runtime; + +import com.microsoft.azure.functions.internal.spi.middleware.Middleware; +import com.microsoft.azure.functions.internal.spi.middleware.MiddlewareChain; +import com.microsoft.azure.functions.internal.spi.middleware.MiddlewareContext; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.ManagedContext; + +public class QuarkusAzureFunctionsMiddleware implements Middleware { + @Override + public void invoke(MiddlewareContext middlewareContext, MiddlewareChain middlewareChain) throws Exception { + ManagedContext requestContext = Arc.container().requestContext(); + boolean alreadyActive = requestContext.isActive(); + if (!alreadyActive) { + requestContext.activate(); + } + try { + middlewareChain.doNext(middlewareContext); + } finally { + if (!alreadyActive && requestContext.isActive()) { + requestContext.terminate(); + } + } + } +} diff --git a/extensions/azure-functions/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/azure-functions/runtime/src/main/resources/META-INF/quarkus-extension.yaml new file mode 100644 index 0000000000000..d13fc26401ed3 --- /dev/null +++ b/extensions/azure-functions/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -0,0 +1,15 @@ +--- +artifact: ${project.groupId}:${project.artifactId}:${project.version} +name: "Azure Functions" +metadata: + keywords: + - "azure" + categories: + - "cloud" + guide: "https://quarkus.io/guides/azure-functions" + status: "preview" + codestart: + name: "azure-functions" + kind: "example" + languages: "java" + artifact: "io.quarkus:quarkus-project-core-extension-codestarts" \ No newline at end of file diff --git a/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.internal.spi.middleware.Middleware b/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.internal.spi.middleware.Middleware new file mode 100644 index 0000000000000..e66c97385ecc8 --- /dev/null +++ b/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.internal.spi.middleware.Middleware @@ -0,0 +1 @@ +io.quarkus.azure.functions.runtime.QuarkusAzureFunctionsMiddleware \ No newline at end of file diff --git a/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector b/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector new file mode 100644 index 0000000000000..01278303ac22a --- /dev/null +++ b/extensions/azure-functions/runtime/src/main/resources/META-INF/services/com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector @@ -0,0 +1 @@ +io.quarkus.azure.functions.runtime.QuarkusAzureFunctionsInjector \ No newline at end of file diff --git a/extensions/pom.xml b/extensions/pom.xml index 47d7509ab9f5c..bd445197240d4 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -156,6 +156,7 @@ amazon-lambda-http amazon-lambda-rest + azure-functions azure-functions-http diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/base/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/base/pom.tpl.qute.xml index e6617efb50e4f..ae8e45f768df3 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/base/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/base/pom.tpl.qute.xml @@ -166,6 +166,7 @@ + {#if generate-native} org.apache.maven.plugins @@ -187,8 +188,10 @@ + {/if} + {#if generate-native} @@ -204,4 +207,5 @@ + {/if} diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml index 4a2904659c53d..ea3caa8044bc1 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/codestart.yml @@ -4,6 +4,7 @@ fallback: true language: base: shared-data: + generate-native: true buildtool: build-dir: target cli: mvn diff --git a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsCodestartTest.java new file mode 100644 index 0000000000000..a2ecec593fc50 --- /dev/null +++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsCodestartTest.java @@ -0,0 +1,23 @@ +package io.quarkus.devtools.codestarts.quarkus; + +import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.JAVA; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledIfSystemProperty; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest; + +public class AzureFunctionsCodestartTest { + @RegisterExtension + public static QuarkusCodestartTest codestartTest = QuarkusCodestartTest.builder() + .codestarts("azure-functions") + .languages(JAVA) + .build(); + + @Test + @EnabledIfSystemProperty(named = "build-projects", matches = "true") + void buildAllProjectsForLocalUse() throws Throwable { + codestartTest.buildAllProjects(); + } +} diff --git a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsHttpCodestartTest.java b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsHttpCodestartTest.java index 934838f8ddfdc..8097ee0cbbdbf 100644 --- a/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsHttpCodestartTest.java +++ b/integration-tests/devtools/src/test/java/io/quarkus/devtools/codestarts/quarkus/AzureFunctionsHttpCodestartTest.java @@ -15,13 +15,6 @@ public class AzureFunctionsHttpCodestartTest { .languages(JAVA) .build(); - @Test - void testContent() throws Throwable { - codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "azure-config/function.json"); - codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "azure-config/host.json"); - codestartTest.assertThatGeneratedFileMatchSnapshot(JAVA, "azure-config/local.settings.json"); - } - @Test @EnabledIfSystemProperty(named = "build-projects", matches = "true") void buildAllProjectsForLocalUse() throws Throwable { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_function.json b/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_function.json deleted file mode 100644 index c527fe7c0345c..0000000000000 --- a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_function.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scriptFile" : "../test-codestart-1.0.0-codestart.jar", - "entryPoint" : "io.quarkus.azure.functions.resteasy.runtime.Function.run", - "bindings" : [ { - "type" : "httpTrigger", - "direction" : "in", - "name" : "req", - "route" : "{*path}", - "methods" : [ "GET", "POST", "HEAD", "PUT", "OPTIONS", "DELETE" ], - "dataType" : "binary", - "authLevel" : "ANONYMOUS" - }, { - "type" : "http", - "direction" : "out", - "name" : "$return" - } ] -} \ No newline at end of file diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_host.json b/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_host.json deleted file mode 100644 index a8fe8c4c8e513..0000000000000 --- a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_host.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "2.0" -} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_local.settings.json b/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_local.settings.json deleted file mode 100644 index 8804ca029cf22..0000000000000 --- a/integration-tests/devtools/src/test/resources/__snapshots__/AzureFunctionsHttpCodestartTest/testContent/azure-config_local.settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "IsEncrypted": false, - "Values": { - "AzureWebJobsStorage": "", - "FUNCTIONS_WORKER_RUNTIME": "java" - } -} diff --git a/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java b/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java index 86da6d45baaca..9a8670932ab53 100644 --- a/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java +++ b/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java @@ -10,6 +10,7 @@ import javax.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import com.microsoft.azure.functions.ExecutionContext; @@ -17,6 +18,7 @@ import com.microsoft.azure.functions.HttpResponseMessage; import com.microsoft.azure.functions.HttpStatus; +import io.quarkus.azure.functions.resteasy.runtime.BaseFunction; import io.quarkus.azure.functions.resteasy.runtime.Function; import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; @@ -26,6 +28,11 @@ */ @QuarkusTest public class FunctionTest { + @BeforeAll + public static void setFlag() { + BaseFunction.throwException = false; + } + @Test public void testSwagger() { final HttpRequestMessageMock req = new HttpRequestMessageMock(); diff --git a/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java b/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java index 1db414ee51fac..e67e654e7357a 100644 --- a/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java +++ b/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java @@ -10,6 +10,7 @@ import javax.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import com.microsoft.azure.functions.ExecutionContext; @@ -17,6 +18,7 @@ import com.microsoft.azure.functions.HttpResponseMessage; import com.microsoft.azure.functions.HttpStatus; +import io.quarkus.azure.functions.resteasy.runtime.BaseFunction; import io.quarkus.azure.functions.resteasy.runtime.Function; import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; @@ -26,6 +28,10 @@ */ @QuarkusTest public class FunctionTest { + @BeforeAll + public static void setFlag() { + BaseFunction.throwException = false; + } @Test public void testFunqy() { From 1501eb871a2081b5ef6dbacb6fe912fb4582a13b Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Thu, 2 Feb 2023 18:55:59 +0000 Subject: [PATCH 158/250] Make OIDC session cookie same site lax by default --- .../src/main/java/io/quarkus/oidc/OidcTenantConfig.java | 4 ++-- .../oidc-code-flow/src/main/resources/application.properties | 2 +- .../src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java index ebe214e2d7ea3..d31a0acd5cda4 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java @@ -769,8 +769,8 @@ public enum ResponseMode { /** * SameSite attribute for the session cookie. */ - @ConfigItem(defaultValue = "strict") - public CookieSameSite cookieSameSite = CookieSameSite.STRICT; + @ConfigItem(defaultValue = "lax") + public CookieSameSite cookieSameSite = CookieSameSite.LAX; /** * If this property is set to 'true' then an OIDC UserInfo endpoint will be called. diff --git a/integration-tests/oidc-code-flow/src/main/resources/application.properties b/integration-tests/oidc-code-flow/src/main/resources/application.properties index e0165d8c3a2f2..21aee9df70ca6 100644 --- a/integration-tests/oidc-code-flow/src/main/resources/application.properties +++ b/integration-tests/oidc-code-flow/src/main/resources/application.properties @@ -107,7 +107,7 @@ quarkus.oidc.tenant-https.authentication.cookie-suffix=test quarkus.oidc.tenant-https.authentication.error-path=/tenant-https/error quarkus.oidc.tenant-https.authentication.pkce-required=true quarkus.oidc.tenant-https.authentication.pkce-secret=eUk1p7UB3nFiXZGUXi0uph1Y9p34YhBU -quarkus.oidc.tenant-https.authentication.cookie-same-site=lax +quarkus.oidc.tenant-https.authentication.cookie-same-site=strict quarkus.oidc.tenant-javascript.auth-server-url=${quarkus.oidc.auth-server-url} quarkus.oidc.tenant-javascript.client-id=quarkus-app diff --git a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java index 67f549bef42b0..bddaa98eeeb00 100644 --- a/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java +++ b/integration-tests/oidc-code-flow/src/test/java/io/quarkus/it/keycloak/CodeFlowTest.java @@ -95,7 +95,7 @@ public void testCodeFlowNoConsent() throws IOException { Cookie sessionCookie = getSessionCookie(webClient, null); assertNotNull(sessionCookie); - assertEquals("strict", sessionCookie.getSameSite()); + assertEquals("lax", sessionCookie.getSameSite()); webClient.getCookieManager().clearCookies(); } @@ -220,7 +220,7 @@ public void testCodeFlowForceHttpsRedirectUriAndPkce() throws Exception { assertEquals("tenant-https:reauthenticated", page.getBody().asNormalizedText()); Cookie sessionCookie = getSessionCookie(webClient, "tenant-https_test"); assertNotNull(sessionCookie); - assertEquals("lax", sessionCookie.getSameSite()); + assertEquals("strict", sessionCookie.getSameSite()); webClient.getCookieManager().clearCookies(); } } From f2409d0459ac06a16531b0ea8010c90af440e716 Mon Sep 17 00:00:00 2001 From: shjones Date: Fri, 20 Jan 2023 21:33:06 +0000 Subject: [PATCH 159/250] Quickstart content recomposed as a tutorial --- ...ity-authentication-mechanisms-concept.adoc | 2 +- ...ecurity-basic-authentication-tutorial.adoc | 6 +- docs/src/main/asciidoc/security-jwt.adoc | 2 +- .../security-keycloak-admin-client.adoc | 2 +- docs/src/main/asciidoc/security-oauth2.adoc | 2 +- ...ty-oidc-bearer-authentication-concept.adoc | 4 +- ...idc-code-flow-authentication-concept.adoc} | 393 ++++-------------- ...idc-code-flow-authentication-tutorial.adoc | 264 ++++++++++++ ...urity-openid-connect-client-reference.adoc | 8 +- .../security-openid-connect-dev-services.adoc | 8 +- .../security-openid-connect-multitenancy.adoc | 2 +- .../security-openid-connect-providers.adoc | 6 +- docs/src/main/asciidoc/security-testing.adoc | 4 +- 13 files changed, 370 insertions(+), 333 deletions(-) rename docs/src/main/asciidoc/{security-openid-connect-web-authentication.adoc => security-oidc-code-flow-authentication-concept.adoc} (79%) create mode 100644 docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc diff --git a/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc b/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc index 5ba8ecee7c2f5..8e71608e7cfde 100644 --- a/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc +++ b/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc @@ -154,7 +154,7 @@ For more information about OIDC authentication and authorization methods you can |==== |OIDC topic |Quarkus information resource |Bearer Token authentication mechanism|xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] -|Authorization Code Flow authentication mechanism|xref:security-openid-connect-web-authentication.adoc[OpenID Connect (OIDC) authorization code flow mechanism] +|Authorization Code Flow authentication mechanism|xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] |Multiple tenants that can support Bearer Token or Authorization Code Flow mechanisms|xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect (OIDC) multi-tenancy] |Using Keycloak to centralize authorization|xref:security-keycloak-authorization.adoc[Using OpenID Connect (OIDC) and Keycloak to centralize authorization] |Configuring Keycloak programmatically|xref:security-keycloak-admin-client.adoc[Using the Keycloak admin client] diff --git a/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc index a6cbfdec3a42f..2829879a2fae8 100644 --- a/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc +++ b/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc @@ -589,14 +589,12 @@ After you have completed this tutorial, explore some of the more advanced securi Use the following information to learn how you can securely use `OpenID Connect` to provide secure single sign-on access to your Quarkus endpoints: * xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] -* xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect (OIDC) to Protect Web Applications using Authorization Code Flow -] +* xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] == References * xref:security-overview-concept.adoc[Quarkus Security overview] * xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] -* xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect (OIDC) to Protect Web Applications using Authorization Code Flow -] +* xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] * xref:hibernate-orm-panache.adoc[Simplified Hibernate ORM with Panache] * xref:hibernate-orm.adoc[Using Hibernate ORM and JPA] diff --git a/docs/src/main/asciidoc/security-jwt.adoc b/docs/src/main/asciidoc/security-jwt.adoc index 73b707568761d..d523d030bb6d7 100644 --- a/docs/src/main/asciidoc/security-jwt.adoc +++ b/docs/src/main/asciidoc/security-jwt.adoc @@ -15,7 +15,7 @@ to verify https://tools.ietf.org/html/rfc7519[JSON Web Token]s, represent them a and provide secured access to the Quarkus HTTP endpoints using Bearer Token Authorization and https://en.wikipedia.org/wiki/Role-based_access_control[Role-Based Access Control]. NOTE: Quarkus OpenID Connect `quarkus-oidc` extension also supports Bearer Token Authorization and uses `smallrye-jwt` to represent the bearer tokens as `JsonWebToken`, please read the xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] guide for more information. -OpenID Connect extension has to be used if the Quarkus application needs to authenticate the users using OIDC Authorization Code Flow, please read xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect to Protect Web Applications] guide for more information. +OpenID Connect extension has to be used if the Quarkus application needs to authenticate the users using OIDC Authorization Code Flow. For more information, see xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] == Prerequisites diff --git a/docs/src/main/asciidoc/security-keycloak-admin-client.adoc b/docs/src/main/asciidoc/security-keycloak-admin-client.adoc index 8c2ebb11b417e..c0f59f3104897 100644 --- a/docs/src/main/asciidoc/security-keycloak-admin-client.adoc +++ b/docs/src/main/asciidoc/security-keycloak-admin-client.adoc @@ -201,7 +201,7 @@ include::{generated-dir}/config/quarkus-keycloak-admin-client.adoc[leveloffset=+ * https://www.keycloak.org/documentation.html[Keycloak Documentation] * xref:security-keycloak-authorization.adoc[Keycloak Authorization extension] -* xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect to Protect Web Application] +* xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] * xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] * xref:security-openid-connect-client.adoc[OpenID Connect Client and Token Propagation Quickstart] * xref:security-overview-concept.adoc[Quarkus Security overview] diff --git a/docs/src/main/asciidoc/security-oauth2.adoc b/docs/src/main/asciidoc/security-oauth2.adoc index 546b2784a3bb7..74e2f6ba85593 100644 --- a/docs/src/main/asciidoc/security-oauth2.adoc +++ b/docs/src/main/asciidoc/security-oauth2.adoc @@ -17,7 +17,7 @@ It can be used to implement an application authentication mechanism based on tok This extension provides a light-weight support for using the opaque Bearer Tokens and validating them by calling an introspection endpoint. If the OAuth2 Authentication server provides JWT Bearer Tokens then you should consider using either xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] or xref:security-jwt.adoc[SmallRye JWT] extensions instead. -OpenID Connect extension has to be used if the Quarkus application needs to authenticate the users using OIDC Authorization Code Flow, please read xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect to Protect Web Applications] guide for more information. +OpenID Connect extension has to be used if the Quarkus application needs to authenticate the users using OIDC Authorization Code Flow. For more information, see the xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] guide. include::{includes}/extension-status.adoc[] diff --git a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc index 037e5bab400b9..ca9d49d71748e 100644 --- a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc @@ -37,7 +37,7 @@ image::security-bearer-token-authorization-mechanism-2.png[alt=Bearer authentica 3. The Client uses the access token to retrieve the service data from the Quarkus service. 4. The Quarkus service verifies the bearer access token signature using the verification keys, checks the token expiry date and other claims, allows the request to proceed if the token is valid, and returns the service response to the Client. -If you need to authenticate and authorize the users using OpenID Connect Authorization Code Flow, see xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect to Protect Web Applications]. +If you need to authenticate and authorize the users using OpenID Connect Authorization Code Flow, see xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications]. Also, if you use Keycloak and bearer tokens, see xref:security-keycloak-authorization.adoc[Using Keycloak to Centralize Authorization]. For information about how to support multiple tenants, see xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect Multi-Tenancy]. @@ -313,7 +313,7 @@ Please see xref:security-openid-connect-client-reference.adoc#token-propagation[ [[oidc-provider-authentication]] === Oidc Provider Client Authentication -`quarkus.oidc.runtime.OidcProviderClient` is used when a remote request to an OpenID Connect Provider has to be done. If the bearer token has to be introspected then `OidcProviderClient` has to authenticate to the OpenID Connect Provider. Please see xref:security-openid-connect-web-authentication.adoc#oidc-provider-client-authentication[OidcProviderClient Authentication] for more information about all the supported authentication options. +`quarkus.oidc.runtime.OidcProviderClient` is used when a remote request to an OpenID Connect Provider has to be done. If the bearer token has to be introspected then `OidcProviderClient` has to authenticate to the OpenID Connect Provider. Please see xref:security-oidc-code-flow-authentication-concept.adoc#oidc-provider-client-authentication[OidcProviderClient Authentication] for more information about all the supported authentication options. [[integration-testing]] === Testing diff --git a/docs/src/main/asciidoc/security-openid-connect-web-authentication.adoc b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc similarity index 79% rename from docs/src/main/asciidoc/security-openid-connect-web-authentication.adoc rename to docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc index a74c361b85b67..abce2de972bf7 100644 --- a/docs/src/main/asciidoc/security-openid-connect-web-authentication.adoc +++ b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc @@ -1,17 +1,21 @@ //// -This guide is maintained in the main Quarkus repository +This document is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// -= OpenID Connect (OIDC) authorization code flow mechanism +[id="security-oidc-code-flow-authentication-concept"] += OpenID Connect authorization code flow mechanism for protecting web applications include::_attributes.adoc[] -:categories: security -:summary: This guide demonstrates how to use the OpenID Connect Extension to protect your web application based on the Authorization Code Flow using Quarkus. +:categories: security,web +:summary: To protect your web applications, you can use the authorization code flow mechanism provided by the Quarkus OpenID Connect (OIDC extension. + +== Overview of the OIDC authorization code flow mechanism The Quarkus OpenID Connect (OIDC) extension can protect application HTTP endpoints by using the OIDC Authorization Code Flow mechanism supported by OIDC-compliant authorization servers, such as link:https://www.keycloak.org[Keycloak]. The Authorization Code Flow mechanism authenticates users of your web application by redirecting them to an OIDC provider, such as Keycloak, to log in. -After authentication, the OIDC provider redirects the user back to the application with an authorization code that confirms that authentication was successful. Then, the application exchanges this code with the OIDC provider for an ID token (which represents the authenticated user), an access token, and a refresh token to authorize the user's access to the application. +After authentication, the OIDC provider redirects the user back to the application with an authorization code that confirms that authentication was successful. +Then, the application exchanges this code with the OIDC provider for an ID token (which represents the authenticated user), an access token, and a refresh token to authorize the user's access to the application. The following diagram outlines the Authorization Code Flow mechanism in Quarkus. @@ -31,248 +35,18 @@ The following tokens are issued: * Access token: The Quarkus web-app might use the access token to access the UserInfo API to get additional information about the authenticated user or propagate it to another endpoint. * Refresh token: (Optional) If the ID and access tokens expire, the Quarkus web-app can use the refresh token to get new ID and access tokens. -For information about protecting your applications using Bearer Token authorization, see xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication]. - -For information about multitenant support, see xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect Multi-Tenancy]. - -Also see the xref:security-oidc-configuration-properties-reference.adoc[OIDC configuration properties] reference guide. - -== Quickstart - -=== Prerequisites - -:prerequisites-docker: -include::{includes}/prerequisites.adoc[] - -=== Architecture - -In this example, we build a very simple web application with a single page: - -* `/index.html` - -This page is protected and can only be accessed by authenticated users. - -=== Solution - -We recommend that you follow the instructions in the next sections and create the application step by step. -However, you can go right to the completed example. - -Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive]. - -The solution is located in the `security-openid-connect-web-authentication-quickstart` {quickstarts-tree-url}/security-openid-connect-web-authentication-quickstart[directory]. - -=== Creating the Maven Project - -First, we need a new project. Create a new project with the following command: - -:create-app-artifact-id: security-openid-connect-web-authentication-quickstart -:create-app-extensions: resteasy-reactive,oidc -include::{includes}/devtools/create-app.adoc[] - -If you already have your Quarkus project configured, you can add the `oidc` extension -to your project by running the following command in your project base directory: - -:add-extension-extensions: oidc -include::{includes}/devtools/extension-add.adoc[] - -This will add the following to your build file: - -[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"] -.pom.xml ----- - - io.quarkus - quarkus-oidc - ----- - -[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"] -.build.gradle ----- -implementation("io.quarkus:quarkus-oidc") ----- - -=== Writing the application - -Let's write a simple JAX-RS resource which has all the tokens returned in the authorization code grant response injected: - -[source,java] ----- -package org.acme.security.openid.connect.web.authentication; - -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; - -import org.eclipse.microprofile.jwt.JsonWebToken; - -import io.quarkus.oidc.IdToken; -import io.quarkus.oidc.RefreshToken; - -@Path("/tokens") -public class TokenResource { - - /** - * Injection point for the ID Token issued by the OpenID Connect Provider - */ - @Inject - @IdToken - JsonWebToken idToken; - - /** - * Injection point for the Access Token issued by the OpenID Connect Provider - */ - @Inject - JsonWebToken accessToken; - - /** - * Injection point for the Refresh Token issued by the OpenID Connect Provider - */ - @Inject - RefreshToken refreshToken; - - /** - * Returns the tokens available to the application. This endpoint exists only for demonstration purposes, you should not - * expose these tokens in a real application. - * - * @return a HTML page containing the tokens available to the application - */ - @GET - @Produces("text/html") - public String getTokens() { - StringBuilder response = new StringBuilder().append("") - .append("") - .append("
    "); - - Object userName = this.idToken.getClaim("preferred_username"); - - if (userName != null) { - response.append("
  • username: ").append(userName.toString()).append("
  • "); - } - - Object scopes = this.accessToken.getClaim("scope"); - - if (scopes != null) { - response.append("
  • scopes: ").append(scopes.toString()).append("
  • "); - } - - response.append("
  • refresh_token: ").append(refreshToken.getToken() != null).append("
  • "); +See also the xref:security-oidc-configuration-properties-reference.adoc[OIDC configuration properties] reference guide. - return response.append("
").append("").append("").toString(); - } -} ----- - -This endpoint has ID, access and refresh tokens injected. It returns a `preferred_username` claim from the ID token, a `scope` claim from the access token and also a refresh token availability status. - -Note that you do not have to inject the tokens - it is only required if the endpoint needs to use the ID token to interact with the currently authenticated user or use the access token to access a downstream service on behalf of this user. - -Please see <> section below for more information. - -=== Configuring the application - -The OpenID Connect extension allows you to define the configuration using the `application.properties` file which should be located at the `src/main/resources` directory. - -[source,properties] ----- -quarkus.oidc.auth-server-url=http://localhost:8180/realms/quarkus -quarkus.oidc.client-id=frontend -quarkus.oidc.credentials.secret=secret -quarkus.oidc.application-type=web-app -quarkus.http.auth.permission.authenticated.paths=/* -quarkus.http.auth.permission.authenticated.policy=authenticated ----- - -This is the simplest configuration you can have when enabling authentication to your application. - -The `quarkus.oidc.client-id` property references the `client_id` issued by the OIDC provider and the `quarkus.oidc.credentials.secret` property sets the client secret. - -When the `quarkus.oidc.application-type` property is set to `web-app`, this intructs Quarkus to enable the OIDC Authorization Code Flow, so that your users get redirected to the OIDC provider to authenticate. - -The `quarkus.http.auth.permission.authenticated` property tells Quarkus about the paths that you want to protect. -In the example provided, all paths are being protected by a policy that ensures that only `authenticated` users are allowed to access. -For more information, see xref:security-authorize-web-endpoints-reference.adoc[Authorization of web endpoints]. - -=== Starting and Configuring the Keycloak Server - -To start a Keycloak Server you can use Docker and just run the following command: - -[source,bash,subs=attributes+] ----- -docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev ----- - -where `keycloak.version` should be set to `17.0.0` or higher. - -You should be able to access your Keycloak Server at http://localhost:8180[localhost:8180]. - -Log in as the `admin` user to access the Keycloak Administration Console. Username should be `admin` and password `admin`. - -Import the {quickstarts-tree-url}/security-openid-connect-web-authentication-quickstart/config/quarkus-realm.json[realm configuration file] to create a new realm. For more details, see the Keycloak documentation about how to https://www.keycloak.org/docs/latest/server_admin/index.html#_create-realm[create a new realm]. - -=== Running the Application in Dev and JVM modes - -To run the application in a dev mode, use: - -include::{includes}/devtools/dev.adoc[] - -When you're done playing with dev mode you can run it as a standard Java application. - -First compile it: - -include::{includes}/devtools/build.adoc[] - -Then run it: - -[source,bash] ----- -java -jar target/quarkus-app/quarkus-run.jar ----- - -=== Running the Application in Native Mode - -This same demo can be compiled into native code: no modifications required. - -This implies that you no longer need to install a JVM on your -production environment, as the runtime technology is included in -the produced binary, and optimized to run with minimal resource overhead. - -Compilation will take a bit longer, so this step is disabled by default; -let's build again by enabling the native build: - -include::{includes}/devtools/build-native.adoc[] - -After getting a cup of coffee, you'll be able to run this binary directly: - -[source,bash] ----- -./target/security-openid-connect-web-authentication-quickstart-runner ----- - -=== Testing the Application - -To test the application, you should open your browser and access the following URL: - -* http://localhost:8080/tokens[http://localhost:8080/tokens] - -If everything is working as expected, you should be redirected to the Keycloak server to authenticate. - -In order to authenticate to the application you should type the following credentials when at the Keycloak login page: - -* Username: *alice* -* Password: *alice* - -After clicking the `Login` button you should be redirected back to the application. +For information about protecting your applications using Bearer Token authorization, see xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication]. -Please also see the <> section below about writing the integration tests which depend on `Dev Services for Keycloak`. +For information about how to support multiple tenants, see xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect Multi-Tenancy]. -== Reference Guide +== Using the authorization code flow mechanism [[access_id_and_access_tokens]] -=== Accessing ID and Access Tokens - -OIDC Code Authentication Mechanism acquires three tokens during the authorization code flow: https://openid.net/specs/openid-connect-core-1_0.html#IDToken[IDToken], Access Token and Refresh Token. +=== Accessing ID and access tokens +//SJ: new concept topic to describe the different token types and usage proposed in next iteration +The OIDC code authentication mechanism acquires three tokens during the authorization code flow: https://openid.net/specs/openid-connect-core-1_0.html#IDToken[IDToken], Access Token, and Refresh Token. ID Token is always a JWT token and is used to represent a user authentication with the JWT claims. One can access ID Token claims by injecting `JsonWebToken` with an `IdToken` qualifier: @@ -338,23 +112,23 @@ Injection of the `JsonWebToken` and `AccessTokenCredential` is supported in both RefreshToken is only used to refresh the current ID and access tokens as part of its <> process. [[user-info]] -=== User Info +=== User info -If IdToken does not provide enough information about the currently authenticated user then you can set a `quarkus.oidc.authentication.user-info-required=true` property for a https://openid.net/specs/openid-connect-core-1_0.html#UserInfo[UserInfo] JSON object from the OIDC userinfo endpoint to be requested. +If the ID token does not provide enough information about the currently-authenticated user, then you can set a `quarkus.oidc.authentication.user-info-required=true` property for a https://openid.net/specs/openid-connect-core-1_0.html#UserInfo[UserInfo] JSON object from the OIDC userinfo endpoint to be requested. A request will be sent to the OpenID Provider UserInfo endpoint using the access token returned with the authorization code grant response and an `io.quarkus.oidc.UserInfo` (a simple `javax.json.JsonObject` wrapper) object will be created. `io.quarkus.oidc.UserInfo` can be either injected or accessed as a SecurityIdentity `userinfo` attribute. [[config-metadata]] -=== Configuration Metadata +=== Configuration metadata The current tenant's discovered link:https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata[OpenID Connect Configuration Metadata] is represented by `io.quarkus.oidc.OidcConfigurationMetadata` and can be either injected or accessed as a `SecurityIdentity` `configuration-metadata` attribute. The default tenant's `OidcConfigurationMetadata` is injected if the endpoint is public. [[token-claims-roles]] -=== Token Claims And SecurityIdentity Roles +=== Token claims and SecurityIdentity roles -The way the roles are mapped to the SecurityIdentity roles from the verified tokens is identical to how it is done for the xref:security-oidc-bearer-authentication-concept.adoc[Bearer tokens] with the only difference being is that https://openid.net/specs/openid-connect-core-1_0.html#IDToken[ID Token] is used as a source of the roles by default. +The way the roles are mapped to the SecurityIdentity roles from the verified tokens is identical to how it is done for the xref:security-oidc-bearer-authentication-concept.adoc[Bearer tokens] with the only difference being that https://openid.net/specs/openid-connect-core-1_0.html#IDToken[ID Token] is used as a source of the roles by default. Note if you use Keycloak then you should set a Microprofile JWT client scope for ID token to contain a `groups` claim, please see the https://www.keycloak.org/docs/latest/server_admin/#protocol[Keycloak Server Administration Guide] for more information. @@ -365,40 +139,40 @@ If UserInfo is the source of the roles then set `quarkus.oidc.authentication.use Additionally, a custom `SecurityIdentityAugmentor` can also be used to add the roles. For more information, see xref:security-customization.adoc#security-identity-customization[SecurityIdentity customization]. [[token-verification-introspection]] -=== Token Verification And Introspection +=== Token verification and introspection Please see xref:security-oidc-bearer-authentication-concept.adoc#token-verification-introspection[Token Verification And Introspection] for details about how the tokens are verified and introspected. -Note that in case of `web-app` applications only `IdToken` is verified by default since the access token is not used by default to access the current Quarkus `web-app` endpoint and instead meant to be propagated to the services expecting this access token, for example, to the OpenID Connect Provider's UserInfo endpoint, etc. However, if you expect the access token to contain the roles required to access the current Quarkus endpoint (`quarkus.oidc.roles.source=accesstoken`) then it will also be verified. +Note that in case of `web-app` applications only `IdToken` is verified by default since the access token is not used by default to access the current Quarkus `web-app` endpoint and instead meant to be propagated to the services expecting this access token, for example, to the OpenID Connect Provider's UserInfo endpoint, and so on. However, if you expect the access token to contain the roles required to access the current Quarkus endpoint (`quarkus.oidc.roles.source=accesstoken`) then it will also be verified. [[token-introspection-userinfo-cache]] -=== Token Introspection and UserInfo Cache +=== Token introspection and UserInfo cache Code flow access tokens are not introspected unless they are expected to be the source of roles but will be used to get `UserInfo`. So there will be one or two remote calls with the code flow access token, if the token introspection and/or `UserInfo` are required. Please see xref:security-oidc-bearer-authentication-concept.adoc#token-introspection-userinfo-cache[Token Introspection and UserInfo cache] for more information about using a default token cache or registering a custom cache implementation. [[jwt-claim-verification]] -=== JSON Web Token Claim Verification +=== JSON web token claim verification Please see xref:security-oidc-bearer-authentication-concept.adoc#jwt-claim-verification[JSON Web Token Claim verification] section about the claim verification, including the `iss` (issuer) claim. It applies to ID tokens but also to access tokens in a JWT format if the `web-app` application has requested the access token verification. === Redirection -When the user is redirected to the OpenID Connect Provider to authenticate, the redirect URL includes a `redirect_uri` query parameter which indicates to the Provider where the user has to be redirected to once the authentication has been completed. +When the user is redirected to the OpenID Connect Provider to authenticate, the redirect URL includes a `redirect_uri` query parameter which indicates to the provider where the user has to be redirected to once the authentication has been completed. Quarkus will set this parameter to the current request URL by default. For example, if the user is trying to access a Quarkus service endpoint at `http://localhost:8080/service/1` then the `redirect_uri` parameter will be set to `http://localhost:8080/service/1`. Similarly, if the request URL is `http://localhost:8080/service/2` then the `redirect_uri` parameter will be set to `http://localhost:8080/service/2`, etc. OpenID Connect Providers may be configured to require the `redirect_uri` parameter to have the same value (e.g. `http://localhost:8080/service/callback`) for all the redirect URLs. -In such cases a `quarkus.oidc.authentication.redirect-path` property has to be set, for example, `quarkus.oidc.authentication.redirect-path=/service/callback`, and Quarkus will set the `redirect_uri` parameter to an absolute URL such as `http://localhost:8080/service/callback` which will be the same regardless of the current request URL. +In such cases, a `quarkus.oidc.authentication.redirect-path` property has to be set, for example, `quarkus.oidc.authentication.redirect-path=/service/callback`, and Quarkus will set the `redirect_uri` parameter to an absolute URL such as `http://localhost:8080/service/callback` which will be the same regardless of the current request URL. -If `quarkus.oidc.authentication.redirect-path` is set but the original request URL has to be restored after the user has been redirected back to a callback URL such as `http://localhost:8080/service/callback` then a `quarkus.oidc.authentication.restore-path-after-redirect` property has to be set to `true` which will restore the request URL such as `http://localhost:8080/service/1`, etc. +If `quarkus.oidc.authentication.redirect-path` is set but the original request URL has to be restored after the user has been redirected back to a callback URL such as `http://localhost:8080/service/callback` then a `quarkus.oidc.authentication.restore-path-after-redirect` property has to be set to `true` which will restore the request URL such as `http://localhost:8080/service/1`, and so on. [[oidc-cookies]] -=== Dealing with Cookies +=== Cookies -The OIDC adapter uses cookies to keep the session, code flow and post logout state. +The OIDC adapter uses cookies to keep the session, code flow, and post-logout state. `quarkus.oidc.authentication.cookie-path` property is used to ensure the cookies are visible especially when you access the protected resources with overlapping or different roots, for example: @@ -419,6 +193,7 @@ If your application is deployed across multiple domains, make sure to set a `qua * https://another.address.company.net/ then the `quarkus.oidc.authentication.cookie-domain` property must be set to `company.net`. +//SJ: In next iteration, propose to recompose Logout information into a new concept topic === Logout @@ -427,7 +202,7 @@ By default, the logout is based on the expiration time of the ID Token issued by The current user session may be automatically extended by enabling a `quarkus.oidc.token.refresh-expired` property. If it is set to `true` then when the current ID Token expires a Refresh Token Grant will be used to refresh ID Token as well as Access and Refresh Tokens. [[user-initiated-logout]] -==== User-Initiated Logout +==== User-initiated logout Users can request a logout by sending a request to the Quarkus endpoint logout path set with a `quarkus.oidc.logout.path` property. For example, if the endpoint address is `https://application.com/webapp` and the `quarkus.oidc.logout.path` is set to "/logout" then the logout request has to be sent to `https://application.com/webapp/logout`. @@ -438,7 +213,7 @@ The user will be returned to the endpoint post logout page once the logout has b If the `quarkus.oidc.logout.post-logout-path` is set then a `q_post_logout` cookie will be created and a matching `state` query parameter will be added to the logout redirect URI and the OpenID Connect Provider will return this `state` once the logout has been completed. It is recommended for the Quarkus `web-app` applications to check that a `state` query parameter matches the value of the `q_post_logout` cookie which can be done for example in a JAX-RS filter. -Note that a cookie name will vary when using xref:security-openid-connect-multitenancy.adoc[OpenID Connect Multi-Tenancy]. For example, it will be named `q_post_logout_tenant_1` for a tenant with a `tenant_1` id, etc. +Note that a cookie name will vary when using xref:security-openid-connect-multitenancy.adoc[OpenID Connect Multi-Tenancy]. For example, it will be named `q_post_logout_tenant_1` for a tenant with a `tenant_1` ID, and so on. Here is an example of how to configure an RP initiated logout flow: @@ -463,7 +238,7 @@ quarkus.http.auth.permission.public.policy=permit ---- You may also need to set `quarkus.oidc.authentication.cookie-path` to a path value common to all the application resources which is `/` in this example. -See <> for more information. +For more information, see the <> section. Note that some OpenID Connect providers do not support https://openid.net/specs/openid-connect-session-1_0.html#RPLogout[RP-Initiated Logout] specification (possibly because it is still technically a draft) and do not return an OpenID Connect well-known `end_session_endpoint` metadata property. However, it should not be a problem since these providers' specific logout mechanisms may only differ in how the logout URL query parameters are named. @@ -492,7 +267,7 @@ quarkus.oidc.logout.extra-params.client_id=${quarkus.oidc.client-id} ---- [[back-channel-logout]] -==== Back-Channel Logout +==== Back-channel logout link:https://openid.net/specs/openid-connect-backchannel-1_0.html[Back-Channel Logout] is used by OpenID Connect providers to log out the current user from all the applications this user is currently logged in, bypassing the user agent. @@ -513,7 +288,7 @@ Absolute `Back-Channel Logout` URL is calculated by adding `quarkus.oidc.back-ch Note that you will also need to configure a token age property for the logout token verification to succeed if your OpenID Connect Provider does not set an expiry claim in the current logout token, for example, `quarkus.oidc.token.age=10S` sets a number of seconds that must not elapse since the logout token's `iat` (issued at) time to 10. [[front-channel-logout]] -==== Front-Channel Logout +==== Front-channel logout link:https://openid.net/specs/openid-connect-frontchannel-1_0.html[Front-Channel Logout] can be used to logout the current user directly from the user agent. @@ -532,9 +307,9 @@ quarkus.oidc.logout.frontchannel.path=/front-channel-logout This path will be compared against the current request's path and the user will be logged out if these paths match. [[local-logout]] -==== Local Logout +==== Local logout -If you work with a social provider such as Google and are concerned that the users can be logged out from all their Google applications with the <> which redirects the users to the provider's logout endpoint then you can support a local logout with the help of the <> which only clears the local session cookie, for example: +If you work with a social provider such as Google and are concerned that the users can be logged out from all their Google applications with the <> which redirects the users to the provider's logout endpoint then you can support a local logout with the help of the <> which only clears the local session cookie, for example: [source,java] ---- @@ -558,9 +333,8 @@ public class ServiceResource { } ---- - [[session-management]] -=== Session Management +=== Session management If you have a xref:security-oidc-bearer-authentication-concept.adoc#single-page-applications[Single Page Application for Service Applications] where your OpenID Connect Provider script such as `keycloak.js` is managing an authorization code flow then that script will also control the SPA authentication session lifespan. @@ -583,7 +357,7 @@ Note this user session can not be extended forever - the returning user with the [[oidc-session]] ==== OidcSession -`io.quarkus.oidc.OidcSession` is a wrapper around the current `IdToken`. It can help to perform a <>, retrieve the current session's tenant identifier and check when the session will expire. More useful methods will be added to it over time. +`io.quarkus.oidc.OidcSession` is a wrapper around the current `IdToken`. It can help to perform a <>, retrieve the current session's tenant identifier and check when the session will expire. More useful methods will be added to it over time. [[token-state-manager]] ==== TokenStateManager @@ -667,9 +441,9 @@ public class CustomTokenStateManager implements TokenStateManager { } ---- -=== Proof Of Key for Code Exchange (PKCE) +=== Proof key for code exchange (PKCE) -link:https://datatracker.ietf.org/doc/html/rfc7636[Proof Of Key for Code Exchange] (PKCE) minimizes the risk of the authorization code interception. +link:https://datatracker.ietf.org/doc/html/rfc7636[Proof Key for Code Exchange] (PKCE) minimizes the risk of the authorization code interception. While `PKCE` is of primary importance to the public OpenID Connect clients (such as the SPA scripts running in a browser), it can also provide an extra level of protection to Quarkus OIDC `web-app` applications which are confidential OpenID Connect clients capable of securely storing the client secret and using it to exchange the code for the tokens. @@ -710,11 +484,11 @@ public class SecurityEventListener { } ---- -=== Single Page Applications +=== Single-page applications -Please check if implementing SPAs the way it is suggested in the xref:security-oidc-bearer-authentication-concept.adoc#single-page-applications[Single Page Applications for Service Applications] section can meet your requirements. +Check if implementing SPAs the way it is suggested in the xref:security-oidc-bearer-authentication-concept.adoc#single-page-applications[Single-page Applications for Service Applications] section can meet your requirements. -If you prefer to use SPA and JavaScript API such as `Fetch` or `XMLHttpRequest`(XHR) with Quarkus web applications, please be aware that OpenID Connect Providers may not support CORS for Authorization endpoints where the users are authenticated after a redirect from Quarkus. This will lead to authentication failures if the Quarkus application and the OpenID Connect Provider are hosted on the different HTTP domains/ports. +If you prefer to use SPA and JavaScript API such as `Fetch` or `XMLHttpRequest`(XHR) with Quarkus web applications, be aware that OpenID Connect Providers may not support CORS for Authorization endpoints where the users are authenticated after a redirect from Quarkus. This will lead to authentication failures if the Quarkus application and the OpenID Connect Provider are hosted on the different HTTP domains/ports. In such cases, set the `quarkus.oidc.authentication.java-script-auto-redirect` property to `false` which will instruct Quarkus to return a `499` status code and `WWW-Authenticate` header with the `OIDC` value. The browser script also needs to be updated to set `X-Requested-With` header with the `JavaScript` value and reload the last requested page in case of `499`, for example: @@ -733,9 +507,9 @@ Future callQuarkusService() async { } ---- -=== Cross Origin Resource Sharing +=== Cross-origin resource sharing -If you plan to consume this application from a Single Page Application running on a different domain, you will need to configure CORS (Cross-Origin Resource Sharing). Please read the xref:http-reference.adoc#cors-filter[HTTP CORS documentation] for more details. +If you plan to consume this application from a Single-page application running on a different domain, you will need to configure CORS (Cross-Origin Resource Sharing). For more information, see the xref:http-reference.adoc#cors-filter[HTTP CORS documentation]. [[oauth2]] === Integration with GitHub and other OAuth2 providers @@ -749,7 +523,7 @@ OAuth2 providers such as GitHub do not return `IdToken`, the fact of the user au For example, when working with GitHub, the Quarkus endpoint can acquire an `access` token which will allow it to request a GitHub profile of the current user. In fact this is exactly how a standard OpenID Connect `UserInfo` acquisition also works - by authenticating into your OpenID Connect provider you also give a permission to Quarkus application to acquire your <> on your behalf - and it also shows what is meant by OpenID Connect being built on top of OAuth2. -In order to support the integration with such OAuth2 servers, `quarkus-oidc` needs to be configured to allow the authorization code flow responses without `IdToken`: `quarkus.oidc.authentication.id-token-required=false`. +To support the integration with such OAuth2 servers, `quarkus-oidc` needs to be configured to allow the authorization code flow responses without `IdToken`: `quarkus.oidc.authentication.id-token-required=false`. It is required because `quarkus-oidc` expects that not only `access` and `refresh` tokens but also `IdToken` will be returned once the authorization code flow completes. @@ -762,7 +536,7 @@ Configuring the endpoint to request <> is the only way `quar Note that requiring <> involves making a remote call on every request - therefore you may want to consider caching `UserInfo` data, see xref:security-oidc-bearer-authentication-concept.adoc#token-introspection-userinfo-cache[Token Introspection and UserInfo cache] for more details. -Alternatively, you may want to request that `UserInfo` is embedded into the internal generated `IdToken` with the `quarkus.oidc.cache-user-info-in-idtoken=true` property - the advantage of this approach is that by default no cached `UserInfo` state will be kept with the endpoint - instead it will be stored in a session cookie. You may also want to consider encrypting `IdToken` in this case if `UserInfo` contains sensitive data, please see <> for more information. +Alternatively, you may want to request that `UserInfo` is embedded into the internal generated `IdToken` with the `quarkus.oidc.cache-user-info-in-idtoken=true` property - the advantage of this approach is that by default no cached `UserInfo` state will be kept with the endpoint - instead it will be stored in a session cookie. You may also want to consider encrypting `IdToken` in this case if `UserInfo` contains sensitive data. For more information, see <>. Also, OAuth2 servers may not support a well-known configuration endpoint in which case the discovery has to be disabled and the authorization, token, and introspection and/or userinfo endpoint paths have to be configured manually. @@ -785,9 +559,9 @@ quarkus.oidc.credentials.secret=github_app_clientsecret # quarkus.oidc.cache-user-info-in-idtoken=true ---- -See xref:security-openid-connect-providers.adoc[Well Known OpenID Connect providers] for more details about configuring other well-known providers. +See xref:security-openid-connect-providers.adoc[OpenID Connect providers] for more details about configuring other well-known providers. -This is all what is needed for an endpoint like this one to return the currently authenticated user's profile with `GET http://localhost:8080/github/userinfo` and access it as the individual `UserInfo` properties: +This is all what is needed for an endpoint like this one to return the currently-authenticated user's profile with `GET http://localhost:8080/github/userinfo` and access it as the individual `UserInfo` properties: [source,java] ---- @@ -897,7 +671,7 @@ Possibly a simpler alternative is to inject both `@IdToken JsonWebToken` and `Us The last important point is to make sure the callback path you enter in the GitHub OAuth application configuration matches the endpoint path where you'd like the user be redirected to after a successful GitHub authentication and application authorization, in this case it has to be set to `http:localhost:8080/github/userinfo`. -=== Cloud Services +=== Cloud services ==== Google Cloud @@ -932,7 +706,7 @@ quarkus.oidc.credentials.secret={GOOGLE_CLIENT_SECRET} quarkus.oidc.token.issuer=https://accounts.google.com ---- -=== Provider Endpoint configuration +=== Provider endpoint configuration OIDC `web-app` application needs to know OpenID Connect provider's authorization, token, `JsonWebKey` (JWK) set and possibly `UserInfo`, introspection and end session (RP-initiated logout) endpoint addresses. @@ -958,7 +732,7 @@ quarkus.oidc.introspection-path=/protocol/openid-connect/token/introspect quarkus.oidc.end-session-path=/protocol/openid-connect/logout ---- -Sometimes your OpenId Connect provider supports a metadata discovery but does not return all the endpoint URLs required for the authorization code flow to complete or for the application to support the additional functions such as a user logout. In such cases you can simply configure a missing endpoint URL locally: +Sometimes, your OpenId Connect provider supports a metadata discovery but does not return all the endpoint URLs required for the authorization code flow to complete or for the application to support the additional functions such as a user logout. In such cases, you can simply configure a missing endpoint URL locally: [source, properties] ---- @@ -972,11 +746,11 @@ quarkus.oidc.end-session-path=logout Exactly the same configuration can be used to override a discovered endpoint URL if that URL does not work for the local Quarkus endpoint and a more specific value is required. For example, one can imagine that in the above example, a provider which supports both global and application specific end-session endpoints returns a global end-session URL such as `http://localhost:8180/oidcprovider/account/global-logout` which will logout the user from all the applications this user is currently logged in, while the current application only wants to get this user logged out from this application, therefore, `quarkus.oidc.end-session-path=logout` is used to override the global end-session URL. -=== Token Propagation -Please see xref:security-openid-connect-client-reference.adoc#token-propagation[Token Propagation] section about the Authorization Code Flow access token propagation to the downstream services. +=== Token propagation +For information about Authorization Code Flow access token propagation to the downstream services, see the xref:security-openid-connect-client-reference.adoc#token-propagation[Token Propagation] section. [[oidc-provider-client-authentication]] -=== Oidc Provider Client Authentication +=== OIDC provider client authentication `quarkus.oidc.runtime.OidcProviderClient` is used when a remote request to an OpenID Connect Provider has to be done. It has to authenticate to the OpenID Connect Provider when the authorization code has to be exchanged for the ID, access and refresh tokens, when the ID and access tokens have to be refreshed or introspected. @@ -1070,9 +844,9 @@ quarkus.oidc.credentials.jwt.key-id=mykeyAlias Using `client_secret_jwt` or `private_key_jwt` authentication methods ensures that no client secret goes over the wire. -==== Additional JWT Authentication options +==== Additional JWT authentication options -If `client_secret_jwt`, `private_key_jwt` authentication methods are used or an Apple `post_jwt` method is used then the JWT signature algorithm, key identifier, audience, subject and issuer can be customized, for example: +If `client_secret_jwt`, `private_key_jwt` authentication methods are used or an Apple `post_jwt` method is used, then the JWT signature algorithm, key identifier, audience, subject and issuer can be customized, for example: [source,properties] ---- @@ -1120,9 +894,9 @@ quarkus.oidc.credentials.jwt.subject=${apple.subject} quarkus.oidc.credentials.jwt.issuer=${apple.issuer} ---- -==== Mutual TLS +==== Mutual TLS (mTLS) -Some OpenID Connect Providers may require that a client is authenticated as part of the `Mutual TLS` (`mTLS`) authentication process. +Some OpenID Connect providers may require that a client is authenticated as part of the `Mutual TLS` authentication process. `quarkus-oidc` can be configured as follows to support `mTLS`: @@ -1145,11 +919,11 @@ quarkus.oidc.tls.trust-store-password=${trust-store-password} #quarkus.oidc.tls.trust-store-alias=certAlias ---- -=== Introspection Endpoint Authentication +=== Introspection endpoint authentication -Some OpenID Connect Providers may require authenticating to its introspection endpoint using Basic Authentication with the credentials different to `client_id` and `client_secret` which may have already been configured to support `client_secret_basic` or `client_secret_post` client authentication methods described in the <> section. +Some OpenID Connect Providers may require authenticating to its introspection endpoint using Basic authentication with the credentials different to `client_id` and `client_secret` which may have already been configured to support `client_secret_basic` or `client_secret_post` client authentication methods described in the <> section. -If the tokens have to be introspected and the introspection endpoint specific authentication mechanism is required then you can configure `quarkus-oidc` like this: +If the tokens have to be introspected and the introspection endpoint specific authentication mechanism is required, then you can configure `quarkus-oidc` like this: [source,properties] ---- @@ -1275,12 +1049,12 @@ Additionally, `OidcWiremockTestResource` set token issuer and audience to `https `OidcWiremockTestResource` can be used to emulate all OpenID Connect providers. [[integration-testing-keycloak-devservices]] -==== Dev Services for Keycloak +==== Dev services for Keycloak Using xref:security-openid-connect-dev-services.adoc[Dev Services for Keycloak] is recommended for the integration testing against Keycloak. `Dev Services for Keycloak` will launch and initialize a test container: it will create a `quarkus` realm, a `quarkus-app` client (`secret` secret) and add `alice` (`admin` and `user` roles) and `bob` (`user` role) users, where all of these properties can be customized. -First prepare `application.properties`. You can start with a completely empty `application.properties` as `Dev Services for Keycloak` will register `quarkus.oidc.auth-server-url` pointing to the running test container as well as `quarkus.oidc.client-id=quarkus-app` and `quarkus.oidc.credentials.secret=secret`. +First, prepare `application.properties`. You can start with a completely empty `application.properties` as `Dev Services for Keycloak` will register `quarkus.oidc.auth-server-url` pointing to the running test container as well as `quarkus.oidc.client-id=quarkus-app` and `quarkus.oidc.credentials.secret=secret`. But if you already have all the required `quarkus-oidc` properties configured then you only need to associate `quarkus.oidc.auth-server-url` with the `prod` profile for `Dev Services for Keycloak`to start a container, for example: @@ -1297,7 +1071,7 @@ If a custom realm file has to be imported into Keycloak before running the tests quarkus.keycloak.devservices.realm-path=quarkus-realm.json ---- -Finally, write a test code the same way as it is described in the <> section above. +Finally, write a test code the same way as it is described in the <> section. The only difference is that `@QuarkusTestResource` is no longer needed: [source, java] @@ -1308,10 +1082,10 @@ public class CodeFlowAuthorizationTest { ---- [[integration-testing-keycloak]] -==== KeycloakTestResourceLifecycleManager +==== Using KeycloakTestResourceLifecycleManager -If you need to do the integration testing against Keycloak then you are encouraged to do it with <>. Use `KeycloakTestResourceLifecycleManager` for your tests only if there is a good reason not to use `Dev Services for Keycloak`. +If you need to do the integration testing against Keycloak then you are encouraged to do it with <>. Start with adding the following dependency: @@ -1354,7 +1128,7 @@ And configure the Maven Surefire plugin as follows: (and similarly the Maven Failsafe plugin when testing in native image). -And now set the configuration and write the test code the same way as it is described in the <> section above. +And now set the configuration and write the test code the same way as it is described in the <> section. The only difference is the name of `QuarkusTestResource`: [source, java] @@ -1375,11 +1149,11 @@ Default realm name is `quarkus` and client id - `quarkus-web-app` - set `keycloa [[integration-testing-security-annotation]] ==== TestSecurity annotation -Please see xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-security-annotation[Use TestingSecurity with injected JsonWebToken] section for more information about using `@TestSecurity` and `@OidcSecurity` annotations for testing the `web-app` application endpoint code which depends on the injected ID and access `JsonWebToken` as well as `UserInfo` and `OidcConfigurationMetadata`. +See xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-security-annotation[Use TestingSecurity with injected JsonWebToken] section for more information about using `@TestSecurity` and `@OidcSecurity` annotations for testing the `web-app` application endpoint code which depends on the injected ID and access `JsonWebToken` as well as `UserInfo` and `OidcConfigurationMetadata`. -=== How to check the errors in the logs +=== Checking errors in the logs -Please enable `io.quarkus.oidc.runtime.OidcProvider` `TRACE` level logging to see more details about the token verification errors: +To see details about the token verification errors, you must enable `io.quarkus.oidc.runtime.OidcProvider` `TRACE` level logging: [source, properties] ---- @@ -1387,7 +1161,7 @@ quarkus.log.category."io.quarkus.oidc.runtime.OidcProvider".level=TRACE quarkus.log.category."io.quarkus.oidc.runtime.OidcProvider".min-level=TRACE ---- -Please enable `io.quarkus.oidc.runtime.OidcRecorder` `TRACE` level logging to see more details about the OidcProvider client initialization errors: +To see details about the OidcProvider client initialization errors, enable `io.quarkus.oidc.runtime.OidcRecorder` `TRACE` level logging: [source, properties] ---- @@ -1395,11 +1169,11 @@ quarkus.log.category."io.quarkus.oidc.runtime.OidcRecorder".level=TRACE quarkus.log.category."io.quarkus.oidc.runtime.OidcRecorder".min-level=TRACE ---- -=== Running behind a reverse proxy +=== Running Quarkus application behind a reverse proxy OIDC authentication mechanism can be affected if your Quarkus application is running behind a reverse proxy/gateway/firewall when HTTP `Host` header may be reset to the internal IP address, HTTPS connection may be terminated, etc. For example, an authorization code flow `redirect_uri` parameter may be set to the internal host instead of the expected external one. -In such cases configuring Quarkus to recognize the original headers forwarded by the proxy will be required, see xref:http-reference.adoc#reverse-proxy[Running behind a reverse proxy] Vert.x documentation section for more information. +In such cases configuring Quarkus to recognize the original headers forwarded by the proxy will be required, for more information, see the xref:http-reference.adoc#reverse-proxy[Running behind a reverse proxy] Vert.x documentation section. For example, if your Quarkus endpoint runs in a cluster behind Kubernetes Ingress then a redirect from the OpenID Connect Provider back to this endpoint may not work since the calculated `redirect_uri` parameter may point to the internal endpoint address. This problem can be resolved with the following configuration: @@ -1415,7 +1189,7 @@ where `X-ORIGINAL-HOST` is set by Kubernetes Ingress to represent the external e `quarkus.oidc.authentication.force-redirect-https-scheme` property may also be used when the Quarkus application is running behind an SSL terminating reverse proxy. -=== External and Internal Access to OpenID Connect Provider +=== External and internal access to the OIDC provider Note that the OpenID Connect Provider externally accessible authorization, logout and other endpoints may have different HTTP(S) URLs compared to the URLs auto-discovered or configured relative to `quarkus.oidc.auth-server-url` internal URL. In such cases an issuer verification failure may be reported by the endpoint and redirects to the externally accessible Connect Provider endpoints may fail. @@ -1423,7 +1197,7 @@ In such cases an issuer verification failure may be reported by the endpoint and In such cases, if you work with Keycloak then please start it with a `KEYCLOAK_FRONTEND_URL` system property set to the externally accessible base URL. If you work with other Openid Connect providers then please check your provider's documentation. -=== Customize authentication requests +=== Customizing authentication requests By default, only the `response_type` (set to `code`), `scope` (set to 'openid'), `client_id`, `redirect_uri` and `state` properties are passed as HTTP query parameters to the OpenID Connect provider's authorization endpoint when the user is redirected to it to authenticate. @@ -1434,7 +1208,7 @@ You can add more properties to it with `quarkus.oidc.authentication.extra-params quarkus.oidc.authentication.extra-params.response_mode=query ---- -=== Customize authentication error response +=== Customizing the authentication error response If the user authentication has failed at the OpenID Connect Authorization endpoint, for example, due to an invalid scope or other invalid parameters included in the redirect to the provider, then the provider will redirect the user back to Quarkus not with the `code` but `error` and `error_description` parameters. @@ -1453,12 +1227,13 @@ It is important that this error endpoint is a public resource to avoid the user == References * xref:security-oidc-configuration-properties-reference.adoc[OIDC configuration properties] -* https://www.keycloak.org/documentation.html[Keycloak Documentation] -* https://openid.net/connect/[OpenID Connect] -* https://tools.ietf.org/html/rfc7519[JSON Web Token] -* xref:security-openid-connect-providers.adoc[Well Known OpenID Connect providers]. +* xref:security-openid-connect-providers.adoc[OpenID Connect providers] * xref:security-openid-connect-client-reference.adoc[OpenID Connect and OAuth2 Client and Filters Reference Guide] * xref:security-openid-connect-dev-services.adoc[Dev Services for Keycloak] * xref:security-authentication-mechanisms.adoc#oidc-jwt-oauth2-comparison[Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms] * xref:security-authentication-mechanisms.adoc#combining-authentication-mechanisms[Combining authentication mechanisms] * xref:security-overview-concept.adoc[Quarkus Security overview] +* https://www.keycloak.org/documentation.html[Keycloak Documentation] +* https://openid.net/connect/[OpenID Connect] +* https://tools.ietf.org/html/rfc7519[JSON Web Token] + diff --git a/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc new file mode 100644 index 0000000000000..f56876df5d88c --- /dev/null +++ b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc @@ -0,0 +1,264 @@ +[id="security-oidc-code-flow-authentication-tutorial"] += Protect a web application by using OIDC authorization code flow mechanism +include::_attributes.adoc[] +:categories: security,web + +With the Quarkus OpenID Connect (OIDC) extension, you can protect application HTTP endpoints by using the OIDC Authorization Code Flow mechanism. + +To learn more about the OIDC authorization code flow mechanism, see xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] or to learn about other authentication mechanisms, see xref:security-authentication-mechanisms-concept.adoc#other-supported-authentication-mechanisms[authentication mechanisms]. + +== Prerequisites + +:prerequisites-docker: +include::{includes}/prerequisites.adoc[] + +== Architecture + +In this example, we build a very simple web application with a single page: + +* `/index.html` + +This page is protected and can only be accessed by authenticated users. + +== Solution + +We recommend that you follow the instructions in the next sections and create the application step by step. +However, you can go right to the completed example. + +Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive]. + +The solution is located in the `security-openid-connect-web-authentication-quickstart` {quickstarts-tree-url}/security-openid-connect-web-authentication-quickstart[directory]. + +== Procedure + +=== Create the Maven project + +First, we need a new project. +Create a new project with the following command: + +:create-app-artifact-id: security-openid-connect-web-authentication-quickstart +:create-app-extensions: resteasy-reactive,oidc +include::{includes}/devtools/create-app.adoc[] + +If you already have your Quarkus project configured, you can add the `oidc` extension to your project by running the following command in your project base directory: + +:add-extension-extensions: oidc +include::{includes}/devtools/extension-add.adoc[] + +This will add the following to your build file: + +[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"] +.pom.xml +---- + + io.quarkus + quarkus-oidc + +---- + +[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"] +.build.gradle +---- +implementation("io.quarkus:quarkus-oidc") +---- + +=== Write the application + +Let's write a simple JAX-RS resource which has all the tokens returned in the authorization code grant response injected: + +[source,java] +---- +package org.acme.security.openid.connect.web.authentication; + +import javax.inject.Inject; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; + +import org.eclipse.microprofile.jwt.JsonWebToken; + +import io.quarkus.oidc.IdToken; +import io.quarkus.oidc.RefreshToken; + +@Path("/tokens") +public class TokenResource { + + /** + * Injection point for the ID Token issued by the OpenID Connect Provider + */ + @Inject + @IdToken + JsonWebToken idToken; + + /** + * Injection point for the Access Token issued by the OpenID Connect Provider + */ + @Inject + JsonWebToken accessToken; + + /** + * Injection point for the Refresh Token issued by the OpenID Connect Provider + */ + @Inject + RefreshToken refreshToken; + + /** + * Returns the tokens available to the application. This endpoint exists only for demonstration purposes, you should not + * expose these tokens in a real application. + * + * @return a HTML page containing the tokens available to the application + */ + @GET + @Produces("text/html") + public String getTokens() { + StringBuilder response = new StringBuilder().append("") + .append("") + .append("
    "); + + + Object userName = this.idToken.getClaim("preferred_username"); + + if (userName != null) { + response.append("
  • username: ").append(userName.toString()).append("
  • "); + } + + Object scopes = this.accessToken.getClaim("scope"); + + if (scopes != null) { + response.append("
  • scopes: ").append(scopes.toString()).append("
  • "); + } + + response.append("
  • refresh_token: ").append(refreshToken.getToken() != null).append("
  • "); + + return response.append("
").append("").append("").toString(); + } +} +---- + +This endpoint has ID, access, and refresh tokens injected. +It returns a `preferred_username` claim from the ID token, a `scope` claim from the access token, and also a refresh token availability status. + +Note that you do not have to inject the tokens - it is only required if the endpoint needs to use the ID token to interact with the currently authenticated user or use the access token to access a downstream service on behalf of this user. + +// SJ: TO DO - update link to point to new reference guide. For more information, see <> section. + +=== Configure the application + +The OIDC extension allows you to define the configuration using the `application.properties` file which should be located at the `src/main/resources` directory. + +[source,properties] +---- +quarkus.oidc.auth-server-url=http://localhost:8180/realms/quarkus +quarkus.oidc.client-id=frontend +quarkus.oidc.credentials.secret=secret +quarkus.oidc.application-type=web-app +quarkus.http.auth.permission.authenticated.paths=/* +quarkus.http.auth.permission.authenticated.policy=authenticated +---- + +This is the simplest configuration you can have when enabling authentication to your application. + +The `quarkus.oidc.client-id` property references the `client_id` issued by the OIDC provider and the `quarkus.oidc.credentials.secret` property sets the client secret. + +The `quarkus.oidc.application-type` property is set to `web-app` in order to tell Quarkus that you want to enable the OIDC authorization code flow, so that your users are redirected to the OIDC provider to authenticate. + +Finally, the `quarkus.http.auth.permission.authenticated` permission is set to tell Quarkus about the paths you want to protect. +In this case, all paths are being protected by a policy that ensures that only `authenticated` users are allowed to access. +For more information, see xref:security-authorization-of-web-endpoints-reference.adoc[Security Authorization Guide]. + +=== Start and configure the Keycloak server + +To start a Keycloak server, use Docker and run the following command: + +[source,bash,subs=attributes+] +---- +docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev +---- + +where `keycloak.version` should be set to `17.0.0` or higher. + +You should be able to access your Keycloak Server at http://localhost:8180[localhost:8180]. + +To access the Keycloak Administration Console, log in as the `admin` user. +Username should be `admin` and password `admin`. + +Import the {quickstarts-tree-url}/security-openid-connect-web-authentication-quickstart/config/quarkus-realm.json[realm configuration file] to create a new realm. +For more information, see the Keycloak documentation about how to https://www.keycloak.org/docs/latest/server_admin/index.html#_create-realm[create a new realm]. + +=== Run the application in dev and JVM modes + +To run the application in a dev mode, use: + +include::{includes}/devtools/dev.adoc[] + +When you're done playing with dev mode, you can run it as a standard Java application. + +First, compile it: + +include::{includes}/devtools/build.adoc[] + +Then, run it: + +[source,bash] +---- +java -jar target/quarkus-app/quarkus-run.jar +---- + +=== Run the application in Native mode + +This same demo can be compiled into native code. +No modifications are required. + +This implies that you no longer need to install a JVM on your production environment, as the runtime technology is included in +the produced binary, and optimized to run with minimal resource overhead. + +Compilation will take a bit longer, so this step is disabled by default. +You can build again by enabling the native build: + +include::{includes}/devtools/build-native.adoc[] + +After getting a cup of coffee, you can run this binary directly: + +[source,bash] +---- +./target/security-openid-connect-web-authentication-quickstart-runner +---- + +=== Test the application + +To test the application, open your browser and access the following URL: + + +* http://localhost:8080/tokens[http://localhost:8080/tokens] + +If everything is working as expected, you are redirected to the Keycloak server to authenticate. + +To authenticate to the application, type the following credentials when at the Keycloak login page: + +* Username: *alice* +* Password: *alice* + +After clicking the `Login` button, you are redirected back to the application. + +For more information about writing the integration tests that depend on `Dev Services for Keycloak`, see the <> section. + +== Summary + +Congratulations! +You have learned how to set up and use the OIDC authorization code flow mechanism to protect and test application HTTP endpoints. +After you have completed this tutorial, explore some of the other security mechanisms in Quarkus. + +* xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] +* xref:security-overview-concept.adoc[Quarkus Security overview] + + +== References +* xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] +* https://www.keycloak.org/documentation.html[Keycloak Documentation] +* https://openid.net/connect/[OpenID Connect] +* https://tools.ietf.org/html/rfc7519[JSON Web Token] +* xref:security-openid-connect-client-reference.adoc[OpenID Connect and OAuth2 Client and Filters Reference Guide] +* xref:security-openid-connect-dev-services.adoc[Dev Services for Keycloak] +* xref:security-jwt-build.adoc[Sign and encrypt JWT tokens with SmallRye JWT Build] +* xref:security-authentication-mechanisms-concept.adoc#oidc-jwt-oauth2-comparison[Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms] +* xref:security-keycloak-admin-client.adoc[Quarkus Keycloak Admin Client] diff --git a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc index 1e3ca3bd65b41..e246378d6217b 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc @@ -125,7 +125,7 @@ and then you can use `OidcClient.refreshTokens` method with a provided refresh t Using the `urn:ietf:params:oauth:grant-type:token-exchange` or `urn:ietf:params:oauth:grant-type:jwt-bearer` grants may be required if you are building a complex microservices application and would like to avoid the same `Bearer` token be propagated to and used by more than one service. Please see <> and <> for more details. -Using `OidcClient` to support the `authorization code` grant might be required if for some reasons you can not use the xref:security-openid-connect-web-authentication.adoc[Quarkus OpenID Connect extension] to support Authorization Code Flow. If there is a very good reason for you to implement Authorization Code Flow then you can configure `OidcClient` as follows: +Using `OidcClient` to support the `authorization code` grant might be required if for some reason you cannot use the xref:security-oidc-code-flow-authentication-concept.adoc[Quarkus OIDC extension] to support Authorization Code Flow. If there is a very good reason for you to implement Authorization Code Flow then you can configure `OidcClient` as follows: [source,properties] ---- @@ -861,7 +861,7 @@ quarkus.log.category."io.quarkus.oidc.client.runtime.OidcClientRecorder".min-lev [[token-propagation-reactive]] == Token Propagation Reactive -The `quarkus-oidc-token-propagation-reactive` extension provides RestEasy Reactive Client `io.quarkus.oidc.token.propagation.reactive.AccessTokenRequestReactiveFilter` that simplifies the propagation of authentication information by propagating the xref:security-oidc-bearer-authentication-concept.adoc[Bearer token] present in the current active request or the token acquired from the xref:security-openid-connect-web-authentication.adoc[Authorization Code Flow], as the HTTP `Authorization` header's `Bearer` scheme value. +The `quarkus-oidc-token-propagation-reactive` extension provides RestEasy Reactive Client `io.quarkus.oidc.token.propagation.reactive.AccessTokenRequestReactiveFilter` that simplifies the propagation of authentication information by propagating the xref:security-oidc-bearer-authentication-concept.adoc[Bearer token] present in the current active request or the token acquired from the xref:security-oidc-code-flow-authentication-concept.adoc[Authorization code flow mechanism], as the HTTP `Authorization` header's `Bearer` scheme value. You can selectively register `AccessTokenRequestReactiveFilter` by using either `io.quarkus.oidc.token.propagation.AccessToken` or `org.eclipse.microprofile.rest.client.annotation.RegisterProvider` annotation, for example: @@ -937,7 +937,7 @@ quarkus.oidc-token-propagation-reactive.exchange-token=true == Token Propagation The `quarkus-oidc-token-propagation` extension provides two JAX-RS `javax.ws.rs.client.ClientRequestFilter` class implementations that simplify the propagation of authentication information. -`io.quarkus.oidc.token.propagation.AccessTokenRequestFilter` propagates the xref:security-oidc-bearer-authentication-concept.adoc[Bearer token] present in the current active request or the token acquired from the xref:security-openid-connect-web-authentication.adoc[Authorization Code Flow], as the HTTP `Authorization` header's `Bearer` scheme value. +`io.quarkus.oidc.token.propagation.AccessTokenRequestFilter` propagates the xref:security-oidc-bearer-authentication-concept.adoc[Bearer token] present in the current active request or the token acquired from the xref:security-oidc-code-flow-authentication-concept.adoc[Authorization code flow mechanism], as the HTTP `Authorization` header's `Bearer` scheme value. The `io.quarkus.oidc.token.propagation.JsonWebTokenRequestFilter` provides the same functionality, but in addition provides support for JWT tokens. When you need to propagate the current Authorization Code Flow access token then the immediate token propagation will work well - as the code flow access tokens (as opposed to ID tokens) are meant to be propagated for the current Quarkus endpoint to access the remote services on behalf of the currently authenticated user. @@ -1110,5 +1110,5 @@ However, these features may be added in the future. * xref:security-openid-connect-client.adoc[OpenID Connect Client and Token Propagation Quickstart] * xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] -* xref:security-openid-connect-web-authentication.adoc[Quarkus - Using OpenID Connect to Protect Web Applications using Authorization Code Flow] +* xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] * xref:security-overview-concept.adoc[Quarkus Security overview] diff --git a/docs/src/main/asciidoc/security-openid-connect-dev-services.adoc b/docs/src/main/asciidoc/security-openid-connect-dev-services.adoc index 53b5d54fda8ef..adc095e84b6f4 100644 --- a/docs/src/main/asciidoc/security-openid-connect-dev-services.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-dev-services.adoc @@ -174,7 +174,7 @@ Select a realm, enter the client id and secret, a relative service endpoint path [[develop-web-app-applications]] === Developing OpenID Connect Web App Applications -If you develop a xref:security-openid-connect-web-authentication.adoc[Quarkus OIDC web-app application] then you should set `quarkus.oidc.application-type=web-app` in `application.properties` before starting the application. +If you develop a xref:security-oidc-web-authentication-concept.adoc[Quarkus OIDC web-app application], then you should set `quarkus.oidc.application-type=web-app` in `application.properties` before starting the application. You will see a screen like this one: @@ -212,7 +212,7 @@ It will ensure that if you access the application from the browser in dev mode, You can run the tests against a Keycloak container started in a test mode in a xref:continuous-testing.adoc[Continuous Testing] mode. It is also recommended to run the integration tests against Keycloak using `Dev Services for Keycloak`. -Please see xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-keycloak-devservices[Testing OpenID Connect Service Applications with Dev Services] and xref:security-openid-connect-web-authentication.adoc#integration-testing-keycloak-devservices[Testing OpenID Connect WebApp Applications with Dev Services] for more information. +For more information, see xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-keycloak-devservices[Testing OpenID onnect Service Applications with Dev Services] and xref:security-oidc-web-authentication-concept.adoc#integration-testing-keycloak-devservices[Testing OpenID Connect WebApp Applications with Dev Services]. [[keycloak-initialization]] === Keycloak Initialization @@ -312,7 +312,7 @@ If you work with other providers then a Dev UI experience described in the < == References -* xref:security-openid-connect-web-authentication.adoc[Using OpenID Connect to Protect Web Applications] +* xref:security-oidc-web-authentication-concept.adoc[Web authentication using OIDC authorization code flow] * xref:security-overview-concept.adoc[Quarkus Security overview] diff --git a/docs/src/main/asciidoc/security-testing.adoc b/docs/src/main/asciidoc/security-testing.adoc index 299fe15df077b..269350509c857 100644 --- a/docs/src/main/asciidoc/security-testing.adoc +++ b/docs/src/main/asciidoc/security-testing.adoc @@ -89,7 +89,7 @@ This will run the test with an identity with the given username and roles. Note disable authorization while also providing an identity to run the test under, which can be useful if the endpoint expects an identity to be present. -See xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-security-annotation[OpenID Connect Bearer Token Integration testing], xref:security-openid-connect-web-authentication.adoc#integration-testing-security-annotation[OpenID Connect Authorization Code Flow Integration testing] and xref:security-jwt.adoc#integration-testing-security-annotation[SmallRye JWT Integration testing] for more details about testing the endpoint code which depends on the injected `JsonWebToken`. +See xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-security-annotation[OpenID Connect Bearer Token Integration testing], xref:security-oidc-web-authentication-concept.adoc#integration-testing-security-annotation[OpenID Connect Authorization Code Flow Integration testing] and xref:security-jwt.adoc#integration-testing-security-annotation[SmallRye JWT Integration testing] for more details about testing the endpoint code which depends on the injected `JsonWebToken`. [WARNING] ==== @@ -122,7 +122,7 @@ for example by setting `quarkus.http.auth.basic=true` or `%test.quarkus.http.aut == Use Wiremock for Integration Testing You can also use Wiremock to mock the authorization OAuth2 and OIDC services: -See xref:security-oauth2.adoc#integration-testing[OAuth2 Integration testing], xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-wiremock[OpenID Connect Bearer Token Integration testing], xref:security-openid-connect-web-authentication.adoc#integration-testing-wiremock[OpenID Connect Authorization Code Flow Integration testing] and xref:security-jwt.adoc#integration-testing-wiremock[SmallRye JWT Integration testing] for more details. +See xref:security-oauth2.adoc#integration-testing[OAuth2 Integration testing], xref:security-oidc-bearer-authentication-concept.adoc#integration-testing-wiremock[OpenID Connect Bearer Token Integration testing], xref:security-oidc-web-authentication-concept.adoc#integration-testing-wiremock[OpenID Connect Authorization Code Flow Integration testing] and xref:security-jwt.adoc#integration-testing-wiremock[SmallRye JWT Integration testing] for more details. == References From f0d23b6e094e5a65103a797aed5050f70ffabc88 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Thu, 2 Feb 2023 13:46:09 +0000 Subject: [PATCH 160/250] Manage the apache-mime4j dependency --- .github/dependabot.yml | 1 + bom/application/pom.xml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2ee4b572e3bb5..ca7295b6736e9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -21,6 +21,7 @@ updates: - dependency-name: org.freemarker:freemarker - dependency-name: io.fabric8:* - dependency-name: org.apache.httpcomponents:* + - dependency-name: org.apache.james:apache-mime4j - dependency-name: org.quartz-scheduler:quartz - dependency-name: com.cronutils:cron-utils - dependency-name: org.eclipse:yasson diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 2dca6a87084e9..b76da33611a84 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -208,6 +208,7 @@ 0.0.6 0.1.3 2.9.2 + 0.8.9 @@ -5989,6 +5990,11 @@
+ + org.apache.james + apache-mime4j + ${mime4j.version} + From 1e04f750dfce6195a751121e27eff7c04a2dd6a4 Mon Sep 17 00:00:00 2001 From: Alex Martel <13215031+manofthepeace@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:23:18 -0500 Subject: [PATCH 161/250] Change accept header to valid plain text in micrometer documentation --- docs/src/main/asciidoc/micrometer.adoc | 2 +- docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/micrometer.adoc b/docs/src/main/asciidoc/micrometer.adoc index ee3eb4039b207..43215db440cb7 100644 --- a/docs/src/main/asciidoc/micrometer.adoc +++ b/docs/src/main/asciidoc/micrometer.adoc @@ -401,7 +401,7 @@ string. For example, setting .Exported metrics format By default, the metrics are exported using the Prometheus format `application/openmetrics-text`, -you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`). +you can revert to the former format by specifying the `Accept` request header to `text/plain` (`curl -H "Accept: text/plain" localhost:8080/q/metrics/`). == Using MeterFilter to configure metrics diff --git a/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc b/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc index 5a2d0068d735f..386b2e24aa51d 100644 --- a/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc +++ b/docs/src/main/asciidoc/telemetry-micrometer-tutorial.adoc @@ -90,7 +90,7 @@ NOTE: Metrics appear lazily, you often won't see any data for your endpoint unti .Exported metrics format By default, the metrics are exported using the Prometheus format `application/openmetrics-text`, -you can revert to the former format by specifying the `Accept` request header to `plain/text` (`curl -H "Accept: plain/text" localhost:8080/q/metrics/`). +you can revert to the former format by specifying the `Accept` request header to `text/plain` (`curl -H "Accept: text/plain" localhost:8080/q/metrics/`). == Inject the MeterRegistry From 6931c56e9adf25fbdd9d5d71eb0162b31d44ada0 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 09:33:37 +0200 Subject: [PATCH 162/250] Update docs to show BuildProducer use as method parameter instead of field Closes: #29605 --- docs/src/main/asciidoc/writing-extensions.adoc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 51eebdcda1435..91e6bcb283a32 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -2684,13 +2684,9 @@ Not all configuration or resources can be consumed at build time. If you have cl [source,java] ---- public final class MyExtProcessor { - @Inject - BuildProducer resource; - @Inject - BuildProducer resourceBundle; @BuildStep - void registerNativeImageResources() { + void registerNativeImageResources(BuildProducer resource, BuildProducer resourceBundle) { resource.produce(new NativeImageResourceBuildItem("/security/runtime.keys")); //<1> resource.produce(new NativeImageResourceBuildItem( From 5e90afbb040f1beb2cc88b9c58ff02d584b02304 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 10:17:34 +0200 Subject: [PATCH 163/250] Increase timeout of Data6 group of native tests Doing this in response to a timeout seen in #30807 --- .github/native-tests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/native-tests.json b/.github/native-tests.json index b05452b61fb57..83f7ffaa7f4a7 100644 --- a/.github/native-tests.json +++ b/.github/native-tests.json @@ -38,7 +38,7 @@ }, { "category": "Data6", - "timeout": 65, + "timeout": 70, "test-modules": "elasticsearch-rest-client, elasticsearch-rest-high-level-client, hibernate-search-orm-elasticsearch, hibernate-search-orm-elasticsearch-tenancy, hibernate-search-orm-opensearch, hibernate-search-orm-elasticsearch-coordination-outbox-polling, hibernate-reactive-panache, hibernate-reactive-panache-kotlin", "os-name": "ubuntu-latest" }, From af6993609ffdab8a08fefc8196b9c9ce6f6db5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mal=C3=A9=C5=99?= Date: Wed, 25 Jan 2023 13:23:31 +0100 Subject: [PATCH 164/250] QDOCS-93: Authentication mechanisms revamping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Maléř Apply suggestions from code review Co-authored-by: sberyozkin Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Apply suggestions from code review Co-authored-by: jherrman Fixes from a peer review Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř Fixes Signed-off-by: Michal Maléř --- ...ity-authentication-mechanisms-concept.adoc | 150 +++++++++--------- ...ity-authorize-web-endpoints-reference.adoc | 2 +- ...hn.adoc => security-webauthn-concept.adoc} | 1 + 3 files changed, 75 insertions(+), 78 deletions(-) rename docs/src/main/asciidoc/{security-webauthn.adoc => security-webauthn-concept.adoc} (99%) diff --git a/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc b/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc index 8e71608e7cfde..d8b33cf4a4011 100644 --- a/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc +++ b/docs/src/main/asciidoc/security-authentication-mechanisms-concept.adoc @@ -3,19 +3,40 @@ include::_attributes.adoc[] :categories: security,web -The Quarkus Security framework supports multiple authentication mechanisms, which you can use to secure your applications. -Some of the supported authentication mechanisms are built into Quarkus and some require you to add an extension. -You can also combine authentication mechanisms. +The Quarkus Security framework supports multiple authentication mechanisms, which you can use to secure your applications. +Some supported authentication mechanisms are built into Quarkus, and some require you to add an extension. +You can also combine authentication mechanisms. Before you choose an authentication mechanism for securing your Quarkus applications, review the information provided. +.Authentication requirements and mechanisms +[source, adoc] +|=== +^|Authentication requirement ^| Authentication mechanism + +^|Username and password ^|xref:security-basic-authentication-concept.adoc[Basic], xref:security-authentication-mechanisms-concept.adoc#form-auth[Form] + +^|Bearer access token ^a| xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer], xref:security-jwt.adoc[JWT], xref:security-oauth2.adoc[OAuth2] + +^|Single sign-on (SSO) ^|xref:security-oidc-code-flow-authentication-concept.adoc[OIDC Code Flow], xref:security-authentication-mechanisms-concept.adoc#form-auth[Form] + +^|Client certificate ^|xref:security-authentication-mechanisms-concept.adoc#mutual-tls[Mutual TLS (MTLS)] + +^|WebAuthn ^|xref:security-webauthn-concept.adoc[WebAuthn] + +^|Kerberos ticket ^|link:https://quarkiverse.github.io/quarkiverse-docs/quarkus-kerberos/dev/index.html[Kerberos] +|=== + +* See also the <> table featured later in this section. + + == Built-in authentication support Quarkus Security provides the following built-in authentication mechanisms: * xref:security-basic-authentication-concept.adoc[Basic authentication] -* <> -* <> +* <> +* <> === Basic authentication @@ -31,9 +52,10 @@ Instead, the authentication information is stored in an encrypted cookie, which To apply encryption, add the `quarkus.http.auth.session.encryption-key` property, and ensure that the value you set is at least 16 characters long. This key is hashed using SHA-256. The resulting digest is used as a key for AES-256 encryption of the cookie value. -The cookie contains an expiry time as part of the encrypted value, so all nodes in the cluster must have their clocks synchronized. At one-minute intervals, a new cookie gets generated with an updated expiry time if the session is in use. +The cookie contains an expiry time as part of the encrypted value, so all nodes in the cluster must have their clocks synchronized. +At one-minute intervals, a new cookie gets generated with an updated expiry time if the session is in use. -Single Page Application (SPA) typically wants to avoid redirects, which can be done by removing default page paths, as outlined in the following example: +Single-page application (SPA) typically wants to avoid redirects, which can be done by removing default page paths, as outlined in the following example: [source,properties] ---- @@ -126,7 +148,7 @@ Quarkus Security also supports the following authentication mechanisms through e https://webauthn.guide/[WebAuthn] is an authentication mechanism that replaces passwords. When you write a service for registering new users, or logging them in, instead of asking for a password, you can use WebAuthn, which replaces the password. -For more information, see xref:security-webauthn.adoc[Secure a Quarkus application by using the WebAuthn authentication mechanism]. +For more information, see xref:security-webauthn-concept.adoc[Secure a Quarkus application by using the WebAuthn authentication mechanism]. === OpenID Connect authentication @@ -153,22 +175,24 @@ For more information about OIDC authentication and authorization methods you can [options="header"] |==== |OIDC topic |Quarkus information resource -|Bearer Token authentication mechanism|xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] -|Authorization Code Flow authentication mechanism|xref:security-oidc-code-flow-authentication-concept.adoc[OIDC code flow mechanism for protecting web applications] -|Multiple tenants that can support Bearer Token or Authorization Code Flow mechanisms|xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect (OIDC) multi-tenancy] +|Bearer token authentication mechanism|xref:security-oidc-bearer-authentication-concept.adoc[OIDC Bearer authentication] +|Authorization code flow authentication mechanism|xref:security-oidc-code-flow-authentication-concept.adoc[OpenID Connect (OIDC) authorization code flow mechanism] +|Multiple tenants that can support bearer token or authorization code flow mechanisms|xref:security-openid-connect-multitenancy.adoc[Using OpenID Connect (OIDC) multi-tenancy] |Using Keycloak to centralize authorization|xref:security-keycloak-authorization.adoc[Using OpenID Connect (OIDC) and Keycloak to centralize authorization] |Configuring Keycloak programmatically|xref:security-keycloak-admin-client.adoc[Using the Keycloak admin client] |==== [NOTE] ==== -* If you need to enable the Quarkus OIDC extension at runtime, set `quarkus.oidc.tenant-enabled=false` at build time and then re-enable it at runtime by using a system property. +If you need to enable the Quarkus OIDC extension at runtime, set `quarkus.oidc.tenant-enabled=false` at build time and then re-enable it at runtime by using a system property. + For more information about managing the individual tenant configurations in multitenant OIDC deployments, see the _Disabling tenant configurations_ section in the xref:security-openid-connect-multitenancy.adoc#disable-tenant[Using OpenID Connect (OIDC) multi-tenancy] guide. ==== ==== OpenID Connect client and filters The `quarkus-oidc-client` extension provides `OidcClient` for acquiring and refreshing access tokens from OpenID Connect and OAuth2 providers that support the following token grants: + * `client-credentials` * `password` * `refresh_token` @@ -193,7 +217,7 @@ For more information, see the xref:security-openid-connect-client.adoc[OpenID Co The `quarkus-smallrye-jwt` extension provides a MicroProfile JSON Web Token (JWT) 1.2.1 implementation and multiple options to verify signed and encrypted `JWT` tokens and represents them as `org.eclipse.microprofile.jwt.JsonWebToken`. -`quarkus-smallrye-jwt` is an alternative to the `quarkus-oidc` Bearer Token authentication mechanism, and verifies only `JWT` tokens by using either PEM keys or the refreshable `JWK` key set. +`quarkus-smallrye-jwt` is an alternative to the `quarkus-oidc` Bearer Token authentication mechanism, and verifies only `JWT` tokens by using either Privacy Enhanced Mail (PEM) keys or the refreshable `JWK` key set. `quarkus-smallrye-jwt` also provides the JWT generation API, which you can use to easily create `signed`, `inner-signed`, and `encrypted` `JWT` tokens. For more information, see xref:security-jwt.adoc[Using SmallRye JWT role-based access control]. @@ -207,7 +231,9 @@ For more information, see xref:security-oauth2.adoc[Using OAuth2]. == Choosing between OpenID Connect, SmallRye JWT, and OAuth2 authentication mechanisms -Use the following information to help you to decide which authentication mechanism to use to secure your Quarkus applications: +Use the following information to select the appropriate token authentication mechanism to secure your Quarkus applications. + +.List of authentication mechanism use-cases * `quarkus-oidc` requires an OpenID Connect provider such as Keycloak, which can be used to verify the Bearer tokens or authenticate the end users with the Authorization Code flow. In both cases, `quarkus-oidc` requires a connection to the specified OpenID Connect provider. @@ -217,14 +243,16 @@ In both cases, `quarkus-oidc` requires a connection to the specified OpenID Conn * If your Bearer tokens must be verified, use `quarkus-oidc`, `quarkus-smallrye-jwt`, or `quarkus-elytron-security-oauth2`. -* If your Bearer tokens are in a JWT format, you can use either of the three extensions. Both `quarkus-oidc` and `quarkus-smallrye-jwt` support refreshing the JsonWebKey (JWK) set when the OpenID Connect provider rotates the keys. +* If your Bearer tokens are in a JSON web token (JWT) format, you can use any of the extensions listed above. +Both `quarkus-oidc` and `quarkus-smallrye-jwt` support refreshing the JsonWebKey (JWK) set when the OpenID Connect provider rotates the keys. Therefore, if remote token introspection must be avoided or is unsupported by the providers, use `quarkus-oidc` or `quarkus-smallrye-jwt` for verifying JWT tokens. * If you need to introspect the JWT tokens remotely, you can use either `quarkus-oidc` or `quarkus-elytron-security-oauth2` because they support the verification of the opaque or binary tokens by using remote introspection. `quarkus-smallrye-jwt` does not support the remote introspection of both opaque or JWT tokens but instead relies on the locally available keys that are usually retrieved from the OpenID Connect provider. -* `quarkus-oidc` and `quarkus-smallrye-jwt` support the injecting of JWT and opaque tokens into the endpoint code. -Injected JWT tokens provide more information about the user. All extensions can have the tokens injected as `Principal`. +* `quarkus-oidc` and `quarkus-smallrye-jwt` support the JWT and opaque tokens injection into the endpoint code. +Injected JWT tokens provide more information about the user. +All extensions can have the tokens injected as `Principal`. * `quarkus-smallrye-jwt` supports more key formats than `quarkus-oidc`. `quarkus-oidc` uses only the JWK-formatted keys that are part of a JWK set, whereas `quarkus-smallrye-jwt` supports PEM keys. @@ -235,74 +263,42 @@ While `quarkus-oidc` and `quarkus-elytron-security-oauth2` can also verify such [NOTE] ==== -Your decision to choose whether to use opaque or JWT token format will be driven by architectural considerations. +Architectural considerations drive your decision to use opaque or JSON web token (JWT) token format. Opaque tokens tend to be much shorter than JWT tokens but need most of the token-associated state to be maintained in the provider database. Opaque tokens are effectively database pointers. -JWT tokens are significantly longer than the opaque tokens but the providers are effectively delegating storing most of the token-associated state to the client by storing it as the token claims and either signing or encrypting them. -==== -The following table provides a summary of the options for each authentication mechanism: +JWT tokens are significantly longer than opaque tokens. Still, the providers effectively delegate most of the token-associated state to the client by storing it as the token claims and either signing or encrypting them. +==== +[[table]] +.Token authentication mechanism comparison |=== -| | quarkus-oidc| quarkus-smallrye-jwt | quarkus-elytron-security-oauth2 - -|Requires Bearer JWT verification -|Local verification or introspection -|Local verification -|Introspection -|Requires Bearer opaque token verification -|Introspection -|No -|Introspection -|Refreshing `JsonWebKey` set for verifying JWT tokens -|Yes -|Yes -|No -|Represent token as `Principal` -|Yes -|Yes -|Yes -|Inject JWT as MP JSON Web Token (JWT) -|Yes -|Yes -|No -|Authorization Code Flow -|Yes -|No -|No -|Multi-tenancy -|Yes -|No -|No -|User info support -|Yes -|No -|No -|PEM key format support -|No -|Yes -|No -|SecretKey support -|No -|In JSON Web Key (JWK) format -|No -|Inner-signed and encrypted or encrypted tokens -|Introspection -|Local verification -|Introspection -|Custom token verification -|No -|With injected JWT parser -|No -|Accept JWT as a cookie -|No -|Yes -|No +^|Feature required 3+^| Authentication mechanism + +^| ^s|`quarkus-oidc` ^s|`quarkus-smallrye-jwt` ^s| `quarkus-elytron-security-oauth2` + +s|Bearer JWT verification ^|Local verification or introspection ^|Local verification ^|Introspection + +s|Bearer opaque token verification ^|Introspection ^|No ^|Introspection +s|Refreshing `JsonWebKey` set for verifying JWT tokens ^|Yes ^|Yes ^|No +s|Represent token as `Principal` ^|Yes ^|Yes ^|Yes +s|Inject JWT as MP JWT ^|Yes ^|Yes ^|No + +s|Authorization code flow ^| Yes ^|No ^|No +s|Multi-tenancy ^| Yes ^|No ^|No +s|User information support ^| Yes ^|No ^|No +s|PEM key format support ^|No ^|Yes ^|No + +s|SecretKey support ^|No ^|In JSON Web Key (JWK) format ^|No +s|Inner-signed and encrypted or encrypted tokens ^|Introspection ^|Local verification ^|Introspection +s|Custom token verification ^|No ^|With injected JWT parser ^|No +s|JWT as a cookie support ^|No ^|Yes ^|Yes |=== + == Combining authentication mechanisms -If the user credentials are provided by different sources, you can combine authentication mechanisms. +If the user credentials are provided by different sources, you can combine authentication mechanisms. For example, you can combine built-in `Basic` and `quarkus-oidc` `Bearer` authentication mechanisms. [IMPORTANT] @@ -333,4 +329,4 @@ Ensure that the value of the `auth-mechanism` property matches the authenticatio == Proactive authentication Proactive authentication is enabled in Quarkus by default. This means that if an incoming request has a credential then that request will always be authenticated, even if the target page does not require authentication. -For more information, see xref:security-proactive-authentication-concept.adoc[Proactive authentication]. \ No newline at end of file +For more information, see xref:security-proactive-authentication-concept.adoc[Proactive authentication]. diff --git a/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc b/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc index af9de1cc4851d..8720c9e4aca12 100644 --- a/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc +++ b/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc @@ -4,7 +4,7 @@ and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// [id="security-authorize-web-endpoints-reference"] -= Authorize web endpoints += Authorization of web endpoints include::_attributes.adoc[] :categories: security,web diff --git a/docs/src/main/asciidoc/security-webauthn.adoc b/docs/src/main/asciidoc/security-webauthn-concept.adoc similarity index 99% rename from docs/src/main/asciidoc/security-webauthn.adoc rename to docs/src/main/asciidoc/security-webauthn-concept.adoc index 5c21349b3614f..606cd1dab998f 100644 --- a/docs/src/main/asciidoc/security-webauthn.adoc +++ b/docs/src/main/asciidoc/security-webauthn-concept.adoc @@ -3,6 +3,7 @@ This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc //// +[id="security-webauthn-concept"] = Using Security with WebAuthn :extension-status: preview From 743d6d55c6ddbd1e185b3cfd899ca82ac1d2c5eb Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 2 Feb 2023 19:01:31 +0100 Subject: [PATCH 165/250] Caffeine - Automatically register metrics cache impls if Micrometer is around Fixes #30744 --- .../deployment/CaffeineProcessor.java | 18 +++++++++++ .../graal/CacheConstructorsFeature.java | 31 ++++++++++++++++--- .../src/main/resources/application.properties | 2 ++ 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/extensions/caffeine/deployment/src/main/java/io/quarkus/caffeine/deployment/CaffeineProcessor.java b/extensions/caffeine/deployment/src/main/java/io/quarkus/caffeine/deployment/CaffeineProcessor.java index 362742fff2d4b..c58b8d285d87f 100644 --- a/extensions/caffeine/deployment/src/main/java/io/quarkus/caffeine/deployment/CaffeineProcessor.java +++ b/extensions/caffeine/deployment/src/main/java/io/quarkus/caffeine/deployment/CaffeineProcessor.java @@ -3,6 +3,7 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.util.Optional; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; @@ -12,8 +13,11 @@ import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.CombinedIndexBuildItem; import io.quarkus.deployment.builditem.NativeImageFeatureBuildItem; +import io.quarkus.deployment.builditem.nativeimage.NativeImageSystemPropertyBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.metrics.MetricsCapabilityBuildItem; import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; +import io.quarkus.runtime.metrics.MetricsFactory; public class CaffeineProcessor { @@ -49,4 +53,18 @@ void cacheLoaders(CombinedIndexBuildItem combinedIndex, BuildProducer metricsCapability) { + if (metricsCapability.isEmpty()) { + return null; + } + if (!metricsCapability.get().metricsSupported(MetricsFactory.MICROMETER)) { + return null; + } + + return new NativeImageSystemPropertyBuildItem(CacheConstructorsFeature.REGISTER_RECORD_STATS_IMPLEMENTATIONS, + "true"); + } } diff --git a/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java b/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java index 599100d1aad72..8456a80860cf2 100644 --- a/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java +++ b/extensions/caffeine/runtime/src/main/java/io/quarkus/caffeine/runtime/graal/CacheConstructorsFeature.java @@ -20,13 +20,15 @@ */ public class CacheConstructorsFeature implements Feature { - private final AtomicBoolean triggered = new AtomicBoolean(false); + public static final String REGISTER_RECORD_STATS_IMPLEMENTATIONS = "io.quarkus.caffeine.graalvm.recordStats"; /** * To set this, add `-J-Dio.quarkus.caffeine.graalvm.diagnostics=true` to the native-image parameters */ private static final boolean log = Boolean.getBoolean("io.quarkus.caffeine.graalvm.diagnostics"); + private final AtomicBoolean triggered = new AtomicBoolean(false); + @Override public void beforeAnalysis(BeforeAnalysisAccess access) { Class caffeineCoreClazz = access.findClassByName("com.github.benmanes.caffeine.cache.Caffeine"); @@ -49,6 +51,12 @@ private void registerCaffeineReflections(DuringAnalysisAccess duringAnalysisAcce for (String className : needsHavingSimpleConstructors) { registerForReflection(className, duringAnalysisAccess); } + + if (Boolean.getBoolean(REGISTER_RECORD_STATS_IMPLEMENTATIONS)) { + for (String className : typesNeedingConstructorsRegisteredWhenRecordingStats()) { + registerForReflection(className, duringAnalysisAccess); + } + } } private void registerForReflection( @@ -60,15 +68,18 @@ private void registerForReflection( RuntimeReflection.register(z); } + /** + * This list is not complete, but a selection of the types we expect being most useful. + * unfortunately registering all of them has been shown to have a very significant impact + * on executable sizes. See https://github.com/quarkusio/quarkus/issues/12961 + */ public static String[] typesNeedingConstructorsRegistered() { return new String[] { - //N.B. this list is not complete, but a selection of the types we expect being most useful. - //unfortunately registering all of them has been shown to have a very significant impact - //on executable sizes. See https://github.com/quarkusio/quarkus/issues/12961 "com.github.benmanes.caffeine.cache.PDMS", "com.github.benmanes.caffeine.cache.PSA", "com.github.benmanes.caffeine.cache.PSMS", "com.github.benmanes.caffeine.cache.PSW", + "com.github.benmanes.caffeine.cache.PSMW", "com.github.benmanes.caffeine.cache.PSWMS", "com.github.benmanes.caffeine.cache.PSWMW", "com.github.benmanes.caffeine.cache.SILMS", @@ -82,4 +93,16 @@ public static String[] typesNeedingConstructorsRegistered() { }; } + public static String[] typesNeedingConstructorsRegisteredWhenRecordingStats() { + return new String[] { + "com.github.benmanes.caffeine.cache.SILSMS", + "com.github.benmanes.caffeine.cache.SSSA", + "com.github.benmanes.caffeine.cache.SSLSA", + "com.github.benmanes.caffeine.cache.SSLSMS", + "com.github.benmanes.caffeine.cache.SSSMS", + "com.github.benmanes.caffeine.cache.SSSMSA", + "com.github.benmanes.caffeine.cache.SSSMSW", + "com.github.benmanes.caffeine.cache.SSSW" + }; + } } diff --git a/integration-tests/cache/src/main/resources/application.properties b/integration-tests/cache/src/main/resources/application.properties index 4e01418c2e2ad..b94edbb983678 100644 --- a/integration-tests/cache/src/main/resources/application.properties +++ b/integration-tests/cache/src/main/resources/application.properties @@ -5,6 +5,8 @@ quarkus.hibernate-orm.sql-load-script=import.sql # configure the caches quarkus.cache.caffeine."forest".expire-after-write=10M + +quarkus.cache.caffeine."expensiveResourceCache".expire-after-write=10M quarkus.cache.caffeine."expensiveResourceCache".metrics-enabled=true io.quarkus.it.cache.SunriseRestClient/mp-rest/url=${test.url} From 0ee1dfebda1a1647dbb8661b497a1b8ea28543ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Feb 2023 10:27:07 +0000 Subject: [PATCH 166/250] Bump checker-qual from 3.29.0 to 3.30.0 Bumps [checker-qual](https://github.com/typetools/checker-framework) from 3.29.0 to 3.30.0. - [Release notes](https://github.com/typetools/checker-framework/releases) - [Changelog](https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/typetools/checker-framework/compare/checker-framework-3.29.0...checker-framework-3.30.0) --- updated-dependencies: - dependency-name: org.checkerframework:checker-qual dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 2e6335a92cc31..82d87fb115435 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -182,7 +182,7 @@ 1.1.4.Final 20.0.3 1.15.0 - 3.29.0 + 3.30.0 2.18.0 0.23.0 1.42.3 From df09f55646f06910d2215922188dbd785378ec3f Mon Sep 17 00:00:00 2001 From: Marek Skacelik Date: Fri, 3 Feb 2023 12:15:16 +0100 Subject: [PATCH 167/250] Fixed greeting in getting started guide --- docs/src/main/asciidoc/getting-started.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/getting-started.adoc b/docs/src/main/asciidoc/getting-started.adoc index d15d72e023133..aaac5a62fc529 100644 --- a/docs/src/main/asciidoc/getting-started.adoc +++ b/docs/src/main/asciidoc/getting-started.adoc @@ -277,7 +277,7 @@ public class GreetingResource { @GET @Produces(MediaType.TEXT_PLAIN) public String hello() { - return "hello"; + return "Hello from RESTEasy Reactive"; } } ---- @@ -381,7 +381,7 @@ public class GreetingResourceTest { .when().get("/hello") .then() .statusCode(200) // <2> - .body(is("hello")); + .body(is("Hello from RESTEasy Reactive")); } @Test From f85d4e168c85cb8960a2330197a54768239c4ab0 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 14:45:38 +0200 Subject: [PATCH 168/250] Add Bruno to the bot configuration for metrics --- .github/quarkus-github-bot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/quarkus-github-bot.yml b/.github/quarkus-github-bot.yml index 10d50a51d61fe..c9daeb755f8a1 100644 --- a/.github/quarkus-github-bot.yml +++ b/.github/quarkus-github-bot.yml @@ -221,7 +221,7 @@ triage: - id: micrometer labels: [area/metrics] title: "micrometer" - notify: [ebullient] + notify: [ebullient, brunobat] notifyInPullRequest: true directories: - extensions/micrometer From e3ce53e6b58629a20560b6af2a3fb62f8c2a2aa7 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 3 Feb 2023 13:56:38 +0100 Subject: [PATCH 169/250] Disable OpenshiftWithDockerAndImageTest for now Related to #30768 I don't know why but it's failing systematically in the jakarta-rewrite branch and I don't want it to be in the way of the migration. --- .../quarkus/it/kubernetes/OpenshiftWithDockerAndImageTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithDockerAndImageTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithDockerAndImageTest.java index ac72f534352ab..a7ac0094e0af2 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithDockerAndImageTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/OpenshiftWithDockerAndImageTest.java @@ -6,6 +6,7 @@ import java.nio.file.Path; import java.util.List; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -36,6 +37,7 @@ public class OpenshiftWithDockerAndImageTest { private ProdModeTestResults prodModeTestResults; @Test + @Disabled("This is failing always in the Jakarta branch and needs fixing") public void assertGeneratedResources() throws IOException { Path kubernetesDir = prodModeTestResults.getBuildDir().resolve("kubernetes"); From 4c48dec9dc7dc466aed96fb35fcc263edc619ef5 Mon Sep 17 00:00:00 2001 From: Ivan Bazalii Date: Fri, 3 Feb 2023 15:58:20 +0300 Subject: [PATCH 170/250] fix: correct handling of Accept header in graphQL - Fix bug that */* is ignored if it is not listed as the first item in Accept header of graphQL http request --- .../graphql/runtime/SmallRyeGraphQLExecutionHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java index 127e1ed8cc759..6f8787beebb94 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java @@ -223,10 +223,14 @@ private String getRequestAccept(RoutingContext ctx) { if (isValidAcceptRequest(a.rawValue())) { return a.rawValue(); } + + if (a.rawValue().startsWith("*/*")) { + return DEFAULT_RESPONSE_CONTENT_TYPE; + } } // Seems like an unknown accept is passed in String accept = ctx.request().getHeader("Accept"); - if (accept != null && !accept.isEmpty() && !accept.startsWith("*/*")) { + if (accept != null && !accept.isEmpty()) { return accept; } } From 927d1b51dadab774451c8c5a913f550e8fd112b6 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 3 Feb 2023 13:59:43 +0100 Subject: [PATCH 171/250] Remove version change for the Jakarta transformation --- jakarta/transform.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jakarta/transform.sh b/jakarta/transform.sh index 4f4ac5243a309..13d7a9accbe21 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -56,6 +56,7 @@ clean_project () { clean_maven_repository () { if [ -d ~/.m2/repository/io/quarkus ]; then find ~/.m2/repository/io/quarkus -name '999-jakarta-SNAPSHOT' -exec rm -rf {} + + find ~/.m2/repository/io/quarkus -name '999-SNAPSHOT' -exec rm -rf {} + fi } @@ -196,9 +197,6 @@ clean_maven_repository # Note for future me: we cannot use ./mvnw clean here clean_project -# TODO REMOVE FOR FINAL VERSION -./update-version.sh 999-jakarta-SNAPSHOT - ## let's build what's required to be able to run the rewrite ./mvnw -B -pl :quarkus-bootstrap-maven-plugin -pl :quarkus-extension-maven-plugin -pl :quarkus-enforcer-rules -pl :quarkus-maven-plugin -pl :quarkus-bom-test -am clean install -DskipTests -DskipITs -Dinvoker.skip From 961618201cc0d208537d8527dd73fce4e4964b8f Mon Sep 17 00:00:00 2001 From: Marek Skacelik Date: Fri, 3 Feb 2023 14:13:57 +0100 Subject: [PATCH 172/250] Fixed return type typo in smallrye grapghQL guide --- docs/src/main/asciidoc/smallrye-graphql.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/smallrye-graphql.adoc b/docs/src/main/asciidoc/smallrye-graphql.adoc index 9a73db7d6277a..a282f7b9afd51 100644 --- a/docs/src/main/asciidoc/smallrye-graphql.adoc +++ b/docs/src/main/asciidoc/smallrye-graphql.adoc @@ -667,7 +667,7 @@ Add the following to our `FilmResource` class: ---- @Query @Description("Get all characters from a galaxy far far away") - public List characters() { + public List characters() { return service.getAllCharacters(); } ---- From ebee0a4b66d1b4dba9c51165e78d22fbf3b90d3e Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 3 Feb 2023 19:00:42 +0100 Subject: [PATCH 173/250] Transform sources to Jakarta --- bom/application/pom.xml | 233 +++++------ build-parent/pom.xml | 14 +- .../quarkus/deployment/ExtensionLoader.java | 2 +- .../ReflectiveHierarchyBuildItem.java | 2 +- .../deployment/proxy/ProxyFactory.java | 2 +- .../recording/AnnotationProxyProvider.java | 2 +- .../recording/BytecodeRecorderImpl.java | 2 +- .../RunningQuarkusApplicationImpl.java | 2 +- ...hNonSerializableInjectedInConstructor.java | 2 +- ...WithTestJavaBeanInjectedInConstructor.java | 2 +- .../runtime/ApplicationLifecycleManager.java | 10 +- .../main/java/io/quarkus/runtime/Startup.java | 8 +- .../annotations/CommandLineArguments.java | 2 +- .../configuration/CharsetConverter.java | 2 +- .../configuration/CidrAddressConverter.java | 2 +- .../configuration/ConverterSupport.java | 2 +- .../configuration/DurationConverter.java | 2 +- .../configuration/InetAddressConverter.java | 2 +- .../InetSocketAddressConverter.java | 2 +- .../configuration/LocaleConverter.java | 2 +- .../configuration/MemorySizeConverter.java | 2 +- .../NormalizeRootHttpPathConverter.java | 2 +- .../runtime/configuration/PathConverter.java | 2 +- .../runtime/configuration/RegexConverter.java | 2 +- .../configuration/ZoneIdConverter.java | 2 +- .../runtime/logging/LevelConverter.java | 2 +- .../main/java/io/quarkus/cli/QuarkusCli.java | 2 +- devtools/maven/pom.xml | 4 +- .../java/src/main/java/org/acme/Function.java | 2 +- .../main/java/org/acme/GreetingService.java | 2 +- .../src/test/java/org/acme/FunctionTest.java | 2 +- .../main/java/org/acme/GreetingResource.java | 8 +- .../GreetingFunctions.java | 2 +- .../GreetingService.java | 2 +- .../HelloWorldBackgroundFunction.java | 4 +- .../HelloWorldCloudEventsFunction.java | 4 +- .../HelloWorldHttpFunction.java | 4 +- .../GreetingResource.java | 12 +- .../googlecloudfunctions/GreetingServlet.java | 10 +- .../main/java/org/acme/MyEntity.tpl.qute.java | 10 +- .../org/acme/MyKotlinEntity.tpl.qute.kt | 8 +- .../acme/MyReactiveMessagingApplication.java | 6 +- .../MyReactiveMessagingApplicationTest.java | 4 +- .../java/org/acme/MyDeclarativeRoutes.java | 4 +- .../kotlin/org/acme/MyDeclarativeRoutes.kt | 2 +- .../main/java/org/acme/MyRemoteService.java | 6 +- .../main/kotlin/org/acme/MyRemoteService.kt | 6 +- .../acme/{resource.class-name}.tpl.qute.java | 10 +- .../acme/{resource.class-name}.tpl.qute.kt | 8 +- .../acme/{resource.class-name}.tpl.qute.scala | 4 +- .../java/src/main/java/org/acme/SomePage.java | 10 +- .../src/main/kotlin/org/acme/SomePage.kt | 10 +- .../acme/{resource.class-name}.tpl.qute.java | 10 +- .../acme/{resource.class-name}.tpl.qute.kt | 8 +- .../acme/{resource.class-name}.tpl.qute.scala | 4 +- .../java/src/main/java/org/acme/SomePage.java | 10 +- .../src/main/kotlin/org/acme/SomePage.kt | 10 +- .../main/java/org/acme/StartWebSocket.java | 18 +- .../main/kotlin/org/acme/StartWebSocket.kt | 8 +- ...serve-http-requests-MyAcmeApplication.java | 4 +- .../src/main/asciidoc/amazon-lambda-http.adoc | 12 +- docs/src/main/asciidoc/amazon-snapstart.adoc | 8 +- docs/src/main/asciidoc/amqp-reference.adoc | 8 +- docs/src/main/asciidoc/amqp.adoc | 12 +- docs/src/main/asciidoc/azure-functions.adoc | 2 +- .../asciidoc/building-my-first-extension.adoc | 10 +- docs/src/main/asciidoc/cache.adoc | 52 +-- docs/src/main/asciidoc/cdi-integration.adoc | 10 +- docs/src/main/asciidoc/cdi-reference.adoc | 18 +- docs/src/main/asciidoc/cdi.adoc | 52 +-- .../asciidoc/centralized-log-management.adoc | 6 +- .../main/asciidoc/command-mode-reference.adoc | 4 +- .../asciidoc/config-extending-support.adoc | 6 +- docs/src/main/asciidoc/config-reference.adoc | 4 +- docs/src/main/asciidoc/config.adoc | 10 +- .../main/asciidoc/doc-create-tutorial.adoc | 2 +- docs/src/main/asciidoc/elasticsearch.adoc | 18 +- .../main/asciidoc/funqy-gcp-functions.adoc | 2 +- docs/src/main/asciidoc/funqy.adoc | 4 +- .../src/main/asciidoc/gcp-functions-http.adoc | 18 +- docs/src/main/asciidoc/gcp-functions.adoc | 24 +- .../asciidoc/getting-started-reactive.adoc | 10 +- .../asciidoc/getting-started-testing.adoc | 2 +- docs/src/main/asciidoc/getting-started.adoc | 20 +- .../main/asciidoc/grpc-getting-started.adoc | 8 +- .../asciidoc/grpc-service-consumption.adoc | 30 +- .../asciidoc/grpc-service-implementation.adoc | 4 +- docs/src/main/asciidoc/hibernate-orm.adoc | 18 +- .../src/main/asciidoc/hibernate-reactive.adoc | 2 +- .../hibernate-search-orm-elasticsearch.adoc | 46 +-- docs/src/main/asciidoc/http-reference.adoc | 2 +- docs/src/main/asciidoc/jms.adoc | 36 +- .../kafka-reactive-getting-started.adoc | 12 +- .../asciidoc/kafka-schema-registry-avro.adoc | 24 +- docs/src/main/asciidoc/kafka-streams.adoc | 42 +- docs/src/main/asciidoc/kafka.adoc | 136 +++---- docs/src/main/asciidoc/kotlin.adoc | 54 +-- docs/src/main/asciidoc/lifecycle.adoc | 6 +- docs/src/main/asciidoc/logging.adoc | 8 +- docs/src/main/asciidoc/mailer.adoc | 6 +- docs/src/main/asciidoc/micrometer.adoc | 6 +- docs/src/main/asciidoc/mongodb-panache.adoc | 16 +- docs/src/main/asciidoc/mongodb.adoc | 26 +- docs/src/main/asciidoc/native-reference.adoc | 36 +- docs/src/main/asciidoc/openapi-swaggerui.adoc | 12 +- docs/src/main/asciidoc/opentelemetry.adoc | 8 +- docs/src/main/asciidoc/opentracing.adoc | 10 +- docs/src/main/asciidoc/optaplanner.adoc | 22 +- docs/src/main/asciidoc/picocli.adoc | 10 +- docs/src/main/asciidoc/quartz.adoc | 16 +- docs/src/main/asciidoc/qute-reference.adoc | 28 +- docs/src/main/asciidoc/qute.adoc | 46 +-- .../src/main/asciidoc/rabbitmq-reference.adoc | 10 +- docs/src/main/asciidoc/rabbitmq.adoc | 12 +- .../src/main/asciidoc/reactive-event-bus.adoc | 26 +- docs/src/main/asciidoc/reactive-routes.adoc | 4 +- .../main/asciidoc/reactive-sql-clients.adoc | 2 +- docs/src/main/asciidoc/redis.adoc | 16 +- .../main/asciidoc/rest-client-multipart.adoc | 34 +- .../main/asciidoc/rest-client-reactive.adoc | 90 ++--- docs/src/main/asciidoc/rest-client.adoc | 52 +-- docs/src/main/asciidoc/rest-data-panache.adoc | 6 +- docs/src/main/asciidoc/rest-json.adoc | 34 +- .../asciidoc/resteasy-reactive-migration.adoc | 4 +- docs/src/main/asciidoc/resteasy-reactive.adoc | 370 +++++++++--------- docs/src/main/asciidoc/resteasy.adoc | 54 +-- .../main/asciidoc/scheduler-reference.adoc | 2 +- docs/src/main/asciidoc/scheduler.adoc | 12 +- docs/src/main/asciidoc/scripting.adoc | 30 +- ...ity-authorize-web-endpoints-reference.adoc | 28 +- ...ecurity-basic-authentication-tutorial.adoc | 42 +- .../asciidoc/security-csrf-prevention.adoc | 54 +-- .../main/asciidoc/security-customization.adoc | 26 +- docs/src/main/asciidoc/security-jdbc.adoc | 32 +- .../src/main/asciidoc/security-jwt-build.adoc | 4 +- docs/src/main/asciidoc/security-jwt.adoc | 80 ++-- .../security-keycloak-admin-client.adoc | 14 +- .../security-keycloak-authorization.adoc | 14 +- docs/src/main/asciidoc/security-ldap.adoc | 32 +- docs/src/main/asciidoc/security-oauth2.adoc | 42 +- ...ty-oidc-bearer-authentication-concept.adoc | 24 +- ...oidc-code-flow-authentication-concept.adoc | 38 +- ...idc-code-flow-authentication-tutorial.adoc | 8 +- ...urity-openid-connect-client-reference.adoc | 38 +- .../security-openid-connect-client.adoc | 36 +- .../security-openid-connect-multitenancy.adoc | 18 +- .../asciidoc/security-overview-concept.adoc | 4 +- ...rity-proactive-authentication-concept.adoc | 26 +- ...g-oidc-bearer-authentication-tutorial.adoc | 18 +- .../asciidoc/security-webauthn-concept.adoc | 72 ++-- .../asciidoc/smallrye-fault-tolerance.adoc | 8 +- .../asciidoc/smallrye-graphql-client.adoc | 2 +- docs/src/main/asciidoc/smallrye-health.adoc | 12 +- docs/src/main/asciidoc/smallrye-metrics.adoc | 8 +- .../main/asciidoc/spring-boot-properties.adoc | 48 +-- docs/src/main/asciidoc/spring-cache.adoc | 6 +- .../asciidoc/spring-cloud-config-client.adoc | 16 +- docs/src/main/asciidoc/spring-data-jpa.adoc | 16 +- docs/src/main/asciidoc/spring-data-rest.adoc | 12 +- docs/src/main/asciidoc/spring-di.adoc | 8 +- docs/src/main/asciidoc/spring-scheduled.adoc | 12 +- docs/src/main/asciidoc/spring-web.adoc | 4 +- docs/src/main/asciidoc/stork-kubernetes.adoc | 14 +- docs/src/main/asciidoc/stork.adoc | 28 +- .../main/asciidoc/tests-with-coverage.adoc | 12 +- docs/src/main/asciidoc/transaction.adoc | 2 +- docs/src/main/asciidoc/validation.adoc | 32 +- docs/src/main/asciidoc/vertx-reference.adoc | 70 ++-- docs/src/main/asciidoc/vertx.adoc | 10 +- docs/src/main/asciidoc/virtual-threads.adoc | 8 +- docs/src/main/asciidoc/websockets.adoc | 28 +- .../src/main/asciidoc/writing-extensions.adoc | 10 +- .../writing-native-applications-tips.adoc | 2 +- .../agroal/deployment/AgroalProcessor.java | 5 +- .../agroal/test/AgroalMetricsTestCase.java | 2 +- ...ourceHealthCheckWithExtraProducerTest.java | 5 +- .../test/DefaultDataSourceConfigTest.java | 2 +- .../quarkus/agroal/test/DevModeResource.java | 7 +- .../agroal/test/DevModeTestEndpoint.java | 8 +- .../test/DevServicesH2DatasourceTestCase.java | 2 +- ...sabledTransactionDataSourceConfigTest.java | 2 +- .../FlushOnCloseDataSourceConfigTest.java | 4 +- .../test/MultipleDataSourcesConfigTest.java | 2 +- ...aSourcesErroneousButWorkingConfigTest.java | 2 +- ...tipleDevServicesDataSourcesConfigTest.java | 2 +- .../test/NamedDataSourceConfigTest.java | 2 +- .../test/NoNettyDataSourceConfigTest.java | 2 +- .../agroal/test/PoolInterceptorsTest.java | 4 +- .../quarkus/agroal/test/PoolLessTestCase.java | 2 +- .../agroal/test/UnknownDriverConfigTest.java | 2 +- .../java/io/quarkus/agroal/DataSource.java | 4 +- .../quarkus/agroal/runtime/DataSources.java | 14 +- .../io/quarkus/agroal/runtime/JdbcDriver.java | 4 +- .../runtime/health/DataSourceHealthCheck.java | 5 +- .../lambda/runtime/EventServerTest.java | 10 +- .../src/main/java/GreetingResource.java | 8 +- .../src/main/java/GreetingServlet.java | 10 +- .../lambda/http/AwsHttpContextProducers.java | 10 +- .../http/DefaultLambdaIdentityProvider.java | 2 +- .../LambdaHttpAuthenticationMechanism.java | 8 +- .../src/main/java/GreetingResource.java | 8 +- .../src/main/java/GreetingServlet.java | 10 +- .../lambda/runtime/EventServerTest.java | 10 +- .../lambda/http/AwsHttpContextProducers.java | 10 +- .../http/DefaultLambdaIdentityProvider.java | 2 +- .../LambdaHttpAuthenticationMechanism.java | 8 +- .../deployment/AmazonLambdaProcessor.java | 2 +- .../lambda/runtime/EventServerTest.java | 10 +- .../src/main/java/ProcessingService.java | 2 +- .../src/main/java/StreamLambda.java | 2 +- .../src/main/java/TestLambda.java | 4 +- .../src/main/java/UnusedLambda.java | 4 +- .../amazon/lambda/runtime/LambdaConfig.java | 2 +- extensions/arc/deployment/pom.xml | 6 +- .../io/quarkus/arc/deployment/ArcConfig.java | 10 +- .../quarkus/arc/deployment/ArcProcessor.java | 10 +- .../AutoInjectAnnotationBuildItem.java | 2 +- .../AutoProducerMethodsProcessor.java | 2 +- .../arc/deployment/ConfigBuildStep.java | 4 +- .../InterceptorBindingRegistrarBuildItem.java | 4 +- .../QualifierRegistrarBuildItem.java | 4 +- .../arc/deployment/StartupBuildSteps.java | 6 +- .../StereotypeRegistrarBuildItem.java | 2 +- .../deployment/SyntheticBeansProcessor.java | 2 +- .../WrongAnnotationUsageProcessor.java | 4 +- .../devconsole/DevInterceptorInfo.java | 2 +- .../devconsole/DevObserverInfo.java | 4 +- .../InterceptedStaticMethodsProcessor.java | 6 +- .../arc/deployment/src/test/java/B.java | 6 +- .../arc/deployment/src/test/java/C.java | 4 +- .../arc/deployment/src/test/java/L.java | 2 +- .../java/SingleLetterDefaultPackageTest.java | 2 +- .../java/io/quarkus/arc/test/SimpleBean.java | 8 +- .../io/quarkus/arc/test/SimpleBeanTest.java | 2 +- .../io/quarkus/arc/test/alternatives/Foo.java | 4 +- .../arc/test/alternatives/Producers.java | 8 +- .../SelectedAlternativesFqcnTest.java | 8 +- ...SelectedAlternativesPackageStartsTest.java | 8 +- .../SelectedAlternativesPackageTest.java | 8 +- .../SelectedAlternativesSimpleNameTest.java | 8 +- .../test/alternatives/bar/MyStereotype.java | 8 +- .../SharedLiteralWithPrivateDefaultTest.java | 6 +- .../CommandLineArgumentsTestCase.java | 2 +- .../autoinject/AutoFieldInjectionTest.java | 8 +- .../AutoProducerMethodDisabledTest.java | 12 +- .../autoproduces/AutoProducerMethodTest.java | 10 +- .../autoscope/AutoScopeBuildItemTest.java | 8 +- .../bda/BeanDefiningAnnotationScopeTest.java | 14 +- .../test/config/ConfigArrayConverterTest.java | 4 +- .../config/ConfigImplicitConverterTest.java | 6 +- .../config/ConfigMappingInstanceTest.java | 4 +- .../arc/test/config/ConfigMappingTest.java | 4 +- .../arc/test/config/ConfigOptionalsTest.java | 8 +- .../arc/test/config/ConfigPropertiesTest.java | 6 +- ...ConfigPropertyInjectionValidationTest.java | 4 +- ...yInjectionWithoutInjectAnnotationTest.java | 2 +- .../IndexedPropertiesInjectionTest.java | 4 +- .../arc/test/config/NullConverterTest.java | 6 +- .../test/config/RemovedConfigMappingTest.java | 4 +- .../config/RemovedConfigPropertiesTest.java | 4 +- .../config/RemovedConfigPropertyTest.java | 2 +- .../arc/test/config/SomeBeanUsingConfig.java | 2 +- .../config/UnremovedConfigMappingTest.java | 2 +- .../configroot/ConfigRootInjectionTest.java | 4 +- .../test/context/CustomPseudoScopeTest.java | 8 +- .../test/devconsole/DevObserverInfoTest.java | 4 +- .../io/quarkus/arc/test/exclude/Bravo.java | 4 +- .../arc/test/exclude/ExcludeTypesTest.java | 14 +- .../io/quarkus/arc/test/exclude/bar/Bar.java | 2 +- .../arc/test/exclude/baz/bazzz/Baz.java | 2 +- .../FailingPrivateInterceptedMethodTest.java | 14 +- .../IgnoredPrivateInterceptedMethodTest.java | 14 +- .../InterceptorBindingRegistrarTest.java | 12 +- .../InterceptorNoBindingsTest.java | 10 +- .../InterceptedStaticMethodTest.java | 10 +- .../io/quarkus/arc/test/lock/LockTest.java | 4 +- .../arc/test/log/InjectedLoggerTest.java | 6 +- .../arc/test/lookup/ListInjectionTest.java | 14 +- .../test/lookup/ListInvalidTypeParamTest.java | 6 +- .../LookupConditionOnProducersTest.java | 8 +- .../lookup/LookupConditionsCombinedTest.java | 6 +- .../arc/test/lookup/LookupConditionsTest.java | 8 +- .../quarkus/arc/test/lookup/MyQualifier.java | 2 +- .../metadata/InjectionPointMetadataTest.java | 8 +- ...uousAsyncObserverExceptionHandlerTest.java | 8 +- .../arc/test/observer/AsyncObserverTest.java | 16 +- .../observer/ObserverTransformerTest.java | 8 +- .../test/observer/SyntheticObserverTest.java | 4 +- .../profile/IfBuildProfileAllAnyTest.java | 6 +- .../arc/test/profile/IfBuildProfileTest.java | 20 +- .../io/quarkus/arc/test/profile/Logging.java | 2 +- .../profile/UnlessBuildProfileAllAnyTest.java | 6 +- .../test/profile/UnlessBuildProfileTest.java | 20 +- ...nedBuildProfileAndBuildPropertiesTest.java | 12 +- .../test/properties/IfBuildPropertyTest.java | 12 +- .../SimpleUnlessBuildPropertyTest.java | 4 +- .../properties/UnlessBuildPropertyTest.java | 10 +- .../qualifiers/QualifierRegistrarTest.java | 8 +- .../arc/test/remove/RemoveFwkBeansTest.java | 2 +- .../test/startup/StartupAnnotationTest.java | 12 +- .../stereotype/DoubleScopedBeanTestCase.java | 10 +- ...ubleScopedStereotypeHierarchyTestCase.java | 10 +- .../DoubleScopedStereotypeTestCase.java | 10 +- .../test/transform/injectionPoint/Bar.java | 2 +- .../transform/injectionPoint/DummyBean.java | 2 +- .../PrivateFieldInjectionTest.java | 6 +- .../test/transform/injectionPoint/Simple.java | 2 +- .../injectionPoint/SomeDecorator.java | 10 +- .../injectionPoint/SomeInterceptor.java | 10 +- .../injectionPoint/diffPackage/Foo.java | 4 +- .../injectionPoint/diffPackage/SomeBean.java | 2 +- .../AddMissingNoargsConstructorTest.java | 8 +- ...iledToAddMissingNoargsConstructorTest.java | 8 +- .../FinalClassDoNotRemoveFlagTest.java | 4 +- .../unproxyable/FinalClassRemoveFlagTest.java | 6 +- .../FinalMethodRemoveFlagTest.java | 6 +- ...ltipleAddMissingNoargsConstructorTest.java | 8 +- ...rivateNoArgsConstructorChangeFlagTest.java | 4 +- ...eNoArgsConstructorDoNotChangeFlagTest.java | 4 +- ...oducerAddMissingNoargsConstructorTest.java | 8 +- ...iledToAddMissingNoargsConstructorTest.java | 10 +- ...pePackagePrivateNoArgsConstructorTest.java | 10 +- .../RequestScopedFinalMethodsTest.java | 4 +- ...xiableBeanWithoutNoArgConstructorTest.java | 4 +- .../unused/ApiLookupProblemDetectedTest.java | 2 +- .../unused/ArcLookupProblemDetectedTest.java | 6 +- .../io/quarkus/arc/test/unused/Charlie.java | 2 +- .../quarkus/arc/test/unused/ProducerBean.java | 4 +- .../arc/test/unused/UnusedExclusionTest.java | 8 +- .../arc/test/unused/subpackage/Beta.java | 2 +- .../ObserverOnInnerClassTest.java | 2 +- .../ProducerOnInnerClassTest.java | 2 +- .../ScopeOnInnerClassTest.java | 2 +- .../wrongannotations/WrongSingletonTest.java | 10 +- .../java/io/quarkus/arc/log/LoggerName.java | 8 +- .../quarkus/arc/lookup/LookupIfProperty.java | 2 +- .../arc/lookup/LookupUnlessProperty.java | 2 +- .../quarkus/arc/runtime/AdditionalBean.java | 4 +- .../io/quarkus/arc/runtime/BeanContainer.java | 2 +- .../arc/runtime/ConfigBeanCreator.java | 6 +- .../arc/runtime/ConfigMappingCreator.java | 6 +- .../quarkus/arc/runtime/ConfigRecorder.java | 2 +- .../arc/runtime/InterceptorBindings.java | 2 +- .../arc/runtime/LaunchModeProducer.java | 4 +- .../quarkus/arc/runtime/LoggerProducer.java | 10 +- .../arc/runtime/devconsole/EventsMonitor.java | 16 +- .../devconsole/InvocationInterceptor.java | 22 +- .../runtime/devconsole/InvocationTree.java | 2 +- .../devconsole/InvocationsMonitor.java | 2 +- .../arc/runtime/devconsole/Monitored.java | 2 +- ...reloadedTestApplicationClassPredicate.java | 2 +- .../cache/deployment/CacheProcessor.java | 4 +- .../test/deployment/CacheConfigTest.java | 6 +- .../deployment/DeploymentExceptionsTest.java | 8 +- .../test/deployment/DisabledCacheTest.java | 4 +- .../test/deployment/UnknownCacheTypeTest.java | 4 +- .../test/devmode/CacheHotReloadResource.java | 8 +- .../test/runtime/CacheKeyGeneratorTest.java | 16 +- .../cache/test/runtime/CacheNamesTest.java | 6 +- .../CompletionStageReturnTypeTest.java | 4 +- .../cache/test/runtime/ConcurrencyTest.java | 4 +- .../test/runtime/DefaultKeyCacheTest.java | 4 +- .../ExplicitCompositeKeyCacheTest.java | 4 +- .../runtime/ExplicitSimpleKeyCacheTest.java | 4 +- .../ImplicitCompositeKeyCacheTest.java | 4 +- .../runtime/ImplicitSimpleKeyCacheTest.java | 4 +- .../cache/test/runtime/MultiValueTest.java | 4 +- .../runtime/MultipleCacheAnnotationsTest.java | 4 +- .../cache/test/runtime/NoOpCacheTest.java | 4 +- .../test/runtime/NullKeyOrValueCacheTest.java | 4 +- .../test/runtime/ProgrammaticApiTest.java | 4 +- .../cache/test/runtime/SharedCacheTest.java | 4 +- .../test/runtime/SpecializedCacheTest.java | 4 +- .../ThrowExecutionExceptionCauseTest.java | 4 +- .../cache/test/runtime/UniReturnTypeTest.java | 4 +- .../test/runtime/ZeroCaffeineCacheTest.java | 2 +- .../cache/test/runtime/ZeroNoOpCacheTest.java | 2 +- .../io/quarkus/cache/CacheInvalidate.java | 4 +- .../io/quarkus/cache/CacheInvalidateAll.java | 4 +- .../main/java/io/quarkus/cache/CacheName.java | 4 +- .../java/io/quarkus/cache/CacheResult.java | 4 +- .../cache/runtime/CacheInterceptor.java | 8 +- .../CacheInvalidateAllInterceptor.java | 8 +- .../runtime/CacheInvalidateInterceptor.java | 8 +- .../runtime/CacheKeyParameterPositions.java | 4 +- .../runtime/CacheManagerInitializer.java | 2 +- .../cache/runtime/CacheManagerRecorder.java | 2 +- .../quarkus/cache/runtime/CacheProducer.java | 8 +- .../cache/runtime/CacheResultInterceptor.java | 8 +- .../config/yaml/deployment/FooResource.java | 8 +- .../InterfaceConfigPropertiesTest.java | 4 +- .../reactive/runtime/CsrfReactiveConfig.java | 4 +- .../CsrfRequestResponseReactiveFilter.java | 12 +- .../runtime/CsrfTokenParameterProvider.java | 8 +- ...rcesExcludedFromHealthChecksProcessor.java | 2 +- .../ElasticsearchClientConfigTest.java | 4 +- .../lowlevel/runtime/TestResource.java | 10 +- .../lowlevel/ElasticsearchClientConfig.java | 4 +- .../ElasticsearchRestClientProducer.java | 10 +- .../health/ElasticsearchHealthCheck.java | 4 +- ...sticsearchRestHighLevelClientProducer.java | 12 +- .../security/jdbc/CustomRoleDecoder.java | 2 +- .../jdbc/ParametrizedPathsResource.java | 8 +- .../jdbc/RolesEndpointClassLevel.java | 10 +- .../jdbc/SingleRoleSecuredServlet.java | 14 +- .../jdbc/SubjectExposingResource.java | 16 +- .../security/jdbc/TestApplication.java | 6 +- .../security/ldap/CustomRoleDecoder.java | 2 +- .../ldap/rest/ParametrizedPathsResource.java | 8 +- .../ldap/rest/RolesEndpointClassLevel.java | 10 +- .../ldap/rest/SingleRoleSecuredServlet.java | 14 +- .../ldap/rest/SubjectExposingResource.java | 16 +- .../security/ldap/rest/TestApplication.java | 6 +- .../deployment/OAuth2DeploymentProcessor.java | 2 +- .../runtime/auth/OAuth2AuthMechanism.java | 2 +- .../io/quarkus/security/test/CustomAuth.java | 2 +- .../test/CustomRoleAccessResource.java | 12 +- .../test/ParametrizedPathsResource.java | 8 +- .../test/RolesEndpointClassLevel.java | 10 +- .../test/SubjectExposingResource.java | 18 +- .../security/test/TestApplication.java | 6 +- .../security/test/TestSecureServlet.java | 14 +- .../runtime/pom.xml | 8 +- extensions/elytron-security/runtime/pom.xml | 8 +- .../security/runtime/DefaultRoleDecoder.java | 8 +- .../ElytronPasswordIdentityProvider.java | 4 +- .../security/runtime/ElytronRecorder.java | 2 +- .../runtime/ElytronSecurityDomainManager.java | 4 +- .../runtime/ElytronTokenIdentityProvider.java | 4 +- .../ElytronTrustedIdentityProvider.java | 4 +- .../io/quarkus/flyway/FlywayProcessor.java | 4 +- .../flyway/test/DevModeTestEndpoint.java | 8 +- .../FlywayDevModeCreateFromHibernateTest.java | 14 +- .../FlywayDevModeModifyMigrationTest.java | 6 +- ...nBaselineOnMigrateNamedDataSourceTest.java | 2 +- .../FlywayExtensionBaselineOnMigrateTest.java | 2 +- .../test/FlywayExtensionCDICallback.java | 2 +- .../test/FlywayExtensionCallbackTest.java | 2 +- ...ayExtensionCleanAndMigrateAtStartTest.java | 2 +- ...ndMigrateAtStartWithJavaMigrationTest.java | 2 +- .../test/FlywayExtensionCleanAtStartTest.java | 2 +- ...yExtensionConfigDefaultDataSourceTest.java | 2 +- ...figDefaultDataSourceWithoutFlywayTest.java | 2 +- .../test/FlywayExtensionConfigEmptyTest.java | 6 +- .../test/FlywayExtensionConfigFixture.java | 4 +- ...nsionConfigMissingNamedDataSourceTest.java | 6 +- ...ayExtensionConfigMultiDataSourcesTest.java | 4 +- ...figMultiDataSourcesWithoutDefaultTest.java | 2 +- ...nfigNamedDataSourceWithoutDefaultTest.java | 2 +- ...onfigNamedDataSourceWithoutFlywayTest.java | 2 +- ...FlywayExtensionFilesystemResourceTest.java | 2 +- .../test/FlywayExtensionInitSqlTest.java | 3 +- ...sionMigrateAtStartNamedDataSourceTest.java | 2 +- ...yExtensionMigrateAtStartSubfolderTest.java | 2 +- .../FlywayExtensionMigrateAtStartTest.java | 2 +- .../FlywayExtensionRepairAtStartTest.java | 6 +- .../FlywayExtensionWithCustomizerTest.java | 4 +- ...MultipleDatasourcesAndCustomizersTest.java | 6 +- .../java/io/quarkus/flyway/test/Fruit.java | 8 +- .../test/MultiDataSourcesDevModeEndpoint.java | 12 +- .../io/quarkus/flyway/FlywayDataSource.java | 8 +- .../flyway/runtime/FlywayRecorder.java | 3 +- .../src/main/java/ProcessingService.java | 2 +- .../src/main/java/TestFunq.java | 2 +- .../src/main/java/UnusedFunq.java | 2 +- .../quarkus/funqy/test/GreetingFunctions.java | 2 +- .../quarkus/funqy/test/GreetingService.java | 2 +- .../bindings/http/VertxRequestHandler.java | 4 +- .../quarkus/funqy/test/GreetingFunctions.java | 2 +- .../quarkus/funqy/test/GreetingService.java | 2 +- .../funqy/test/RequestScopeLeakTest.java | 6 +- .../quarkus/funqy/test/RequestScopeTest.java | 6 +- .../knative/events/VertxRequestHandler.java | 4 +- .../ReflectionRegistrationUtil.java | 2 +- .../deployment/DependencyInjectionTest.java | 6 +- .../GoogleCloudFunctionsProcessor.java | 2 +- .../functions/GoogleCloudFunctionsConfig.java | 2 +- .../io/quarkus/grpc/common/Generated.java | 4 +- .../main/java/io/quarkus/grpc/GrpcClient.java | 4 +- .../java/io/quarkus/grpc/GrpcService.java | 2 +- .../grpc/RegisterClientInterceptor.java | 4 +- .../grpc/deployment/GrpcClientProcessor.java | 6 +- .../quarkus/grpc/deployment/GrpcDotNames.java | 2 +- .../grpc/deployment/GrpcServerProcessor.java | 8 +- .../devmode/GrpcDevConsoleProcessor.java | 2 +- .../io/quarkus/grpc/auth/GrpcAuthTest.java | 4 +- .../client/BlockingStubInjectionTest.java | 4 +- .../grpc/client/ChannelInjectionTest.java | 4 +- ...ClientServiceInterfaceCompressionTest.java | 4 +- .../client/ClientStubCompressionTest.java | 4 +- .../grpc/client/InstanceInjectionTest.java | 2 +- .../grpc/client/InvalidInjectionTypeTest.java | 4 +- .../client/MultipleStubsInjectionTest.java | 4 +- .../MutinyClientInjectionFailureTest.java | 6 +- .../client/MutinyClientInjectionTest.java | 4 +- .../grpc/client/MutinyStubInjectionTest.java | 4 +- .../client/deadline/ClientDeadlineTest.java | 4 +- .../MyFirstClientInterceptor.java | 4 +- .../interceptors/MyLastClientInterceptor.java | 4 +- .../MySecondClientInterceptor.java | 4 +- .../MyThirdClientInterceptor.java | 4 +- .../client/tls/HelloWorldTlsEndpoint.java | 6 +- .../deployment/GrpcServerProcessorTest.java | 2 +- .../quarkus/grpc/server/GrpcHealthTest.java | 4 +- .../quarkus/grpc/server/GrpcServerTest.java | 6 +- .../blocking/BlockingAndNonBlockingTest.java | 2 +- .../BlockingConfusingOnClassTest.java | 4 +- .../BlockingConfusingOnMethodTest.java | 2 +- .../server/blocking/BlockingServiceTest.java | 2 +- .../blocking/TransactionalAsBlockingTest.java | 2 +- .../BlockingFromTransactionalTest.java | 2 +- .../DevModeServiceCallingResource.java | 4 +- .../devmode/DevModeTestInterceptor.java | 2 +- .../devmode/DevModeTestRestResource.java | 12 +- .../server/devmode/DevModeTestService.java | 4 +- .../grpc/server/devmode/IsUpEndpoint.java | 8 +- .../FailingInInterceptorTest.java | 2 +- .../interceptors/FailingInterceptorTest.java | 2 +- .../GlobalAndServiceInterceptorsTest.java | 2 +- .../interceptors/MyFirstInterceptor.java | 4 +- .../interceptors/MySecondInterceptor.java | 4 +- ...ServerInterceptorPriorityReversedTest.java | 2 +- .../ServerInterceptorPriorityTest.java | 2 +- .../ServerInterceptorProducerTest.java | 6 +- .../ServerInterceptorRegistrationTest.java | 2 +- .../src/main/resources/MutinyBean.mustache | 2 +- .../src/main/resources/MutinyClient.mustache | 2 +- .../main/resources/MutinyInterface.mustache | 2 +- .../src/main/resources/MutinyStub.mustache | 2 +- .../grpc/auth/AuthExceptionHandler.java | 2 +- .../auth/AuthExceptionHandlerProvider.java | 2 +- .../DefaultAuthExceptionHandlerProvider.java | 2 +- .../grpc/auth/GrpcSecurityInterceptor.java | 8 +- .../GrpcClientInterceptorContainer.java | 4 +- .../quarkus/grpc/runtime/GrpcContainer.java | 6 +- .../grpc/runtime/GrpcServerRecorder.java | 2 +- .../io/quarkus/grpc/runtime/Interceptors.java | 4 +- .../grpc/runtime/devmode/CollectStreams.java | 2 +- .../grpc/runtime/devmode/GrpcServices.java | 4 +- .../devmode/StreamCollectorInterceptor.java | 8 +- .../grpc/runtime/health/GrpcHealthCheck.java | 4 +- .../runtime/health/GrpcHealthEndpoint.java | 4 +- .../runtime/health/GrpcHealthStorage.java | 4 +- .../stork/StorkMeasuringGrpcInterceptor.java | 4 +- .../grpc/runtime/supports/Channels.java | 2 +- .../supports/GrpcClientConfigProvider.java | 4 +- .../supports/IOThreadClientInterceptor.java | 4 +- .../GrpcDuplicatedContextGrpcInterceptor.java | 6 +- .../GrpcRequestContextGrpcInterceptor.java | 4 +- .../exc/DefaultExceptionHandlerProvider.java | 2 +- .../supports/exc/ExceptionInterceptor.java | 6 +- extensions/hal/runtime/pom.xml | 4 +- .../io/quarkus/hal/HalCollectionWrapper.java | 2 +- .../HalCollectionWrapperJsonbSerializer.java | 6 +- .../java/io/quarkus/hal/HalEntityWrapper.java | 2 +- .../hal/HalEntityWrapperJsonbSerializer.java | 6 +- .../quarkus/hal/HalLinkJsonbSerializer.java | 6 +- .../main/java/io/quarkus/hal/HalWrapper.java | 2 +- .../orm/envers/AbstractEnversResource.java | 6 +- .../envers/EnversConfigurationPerPUTest.java | 4 +- .../orm/envers/EnversConfigurationTest.java | 4 +- .../orm/envers/EnversFastBootingTest.java | 2 +- .../EnversTestAuditTableSuffixResource.java | 10 +- .../EnversTestStoreDataAtDeleteResource.java | 14 +- .../envers/EnversTestValidationResource.java | 14 +- .../hibernate/orm/envers/MyAuditedEntity.java | 8 +- .../orm/envers/MyAuditedVersionEntity.java | 10 +- .../envers/MyListenerlessRevisionEntity.java | 12 +- .../orm/envers/MyRevisionEntity.java | 12 +- ...ConfigActiveFalseAndAuditedEntityTest.java | 4 +- .../ConfigEnabledFalseAndActiveTrueTest.java | 4 +- ...onfigEnabledFalseAndAuditedEntityTest.java | 4 +- ...nversTestAllowIdentifierReuseResource.java | 6 +- .../EnversTestAuditStrategyResource.java | 6 +- ...nversTestDefaultSchemaCatalogResource.java | 6 +- ...otAuditOptimisticLockingFieldResource.java | 6 +- ...EmbeddableSetOrdinalFieldNameResource.java | 6 +- ...tModifiedColumnNamingStrategyResource.java | 6 +- .../EnversTestModifiedFlagsResource.java | 6 +- .../EnversTestOriginalIdPropNameResource.java | 6 +- .../EnversTestRevisionListenerResource.java | 6 +- ...estRevisionOnCollectionChangeResource.java | 6 +- ...rackEntitiesChangedInRevisionResource.java | 6 +- ...UseRevisionEntityWithNativeIdResource.java | 6 +- ...ityStrategyFieldNameOverridesResource.java | 6 +- extensions/hibernate-envers/runtime/pom.xml | 2 +- .../hibernate/orm/deployment/ClassNames.java | 22 +- .../deployment/HibernateOrmAnnotations.java | 196 +++++----- .../deployment/HibernateOrmCdiProcessor.java | 4 +- .../orm/deployment/HibernateOrmProcessor.java | 17 +- .../orm/deployment/JpaJandexScavenger.java | 2 +- .../orm/deployment/JpaModelBuildItem.java | 2 +- .../QuarkusPersistenceXmlParser.java | 2 +- ...asyReactiveServerIntegrationProcessor.java | 2 +- .../HibernateTestTransactionCallback.java | 4 +- .../orm/HibernateMetricsTestCase.java | 10 +- .../orm/HibernateOrmAnnotationsTest.java | 4 +- .../hibernate/orm/JPACacheDisabledTest.java | 4 +- .../hibernate/orm/JPAFastBootingTest.java | 2 +- .../io/quarkus/hibernate/orm/MyEntity.java | 14 +- .../hibernate/orm/MyEntityTestResource.java | 16 +- .../hibernate/orm/NoTransactionTest.java | 6 +- .../io/quarkus/hibernate/orm/OtherEntity.java | 14 +- .../orm/OtherEntityTestResource.java | 14 +- .../io/quarkus/hibernate/orm/SchemaUtil.java | 2 +- .../quarkus/hibernate/orm/SmokeTestUtils.java | 2 +- .../hibernate/orm/TransactionTestUtils.java | 12 +- .../hibernate/orm/UseNamedDatasourceTest.java | 6 +- .../GetterAccessAssociationsTest.java | 34 +- .../PublicFieldAccessAssociationsTest.java | 34 +- .../PublicFieldAccessFieldTypesTest.java | 22 +- .../PublicFieldAccessFinalFieldTest.java | 18 +- .../PublicFieldAccessInheritanceTest.java | 24 +- ...ProxyAndLazyLoadingAndInheritanceTest.java | 18 +- .../AttributeConverterAutoApplyTest.java | 18 +- .../orm/batch/BatchFetchSizeTest.java | 4 +- .../hibernate/orm/batch/MainEntity.java | 10 +- .../hibernate/orm/batch/OtherEntity.java | 8 +- .../ConfigActiveFalseAndEntityTest.java | 6 +- .../ConfigEnabledFalseAndEntityTest.java | 6 +- .../hibernate/orm/config/MyEntity.java | 4 +- .../orm/config/namedpu/MyEntity.java | 4 +- .../UnsupportedPropertiesTest.java | 18 +- .../DevConsoleInfoSupplierTestResource.java | 8 +- .../MyEntityWithFailingDDLGeneration.java | 10 +- .../MyEntityWithSuccessfulDDLGeneration.java | 16 +- .../hibernate/orm/enhancer/Address.java | 8 +- ...HibernateEntityEnhancerFinalFieldTest.java | 18 +- ...noreExplicitForJoinedDefaultValueTest.java | 6 +- ...JoinedDefaultValueWithMultiplePUsTest.java | 6 +- ...nedDefaultValueWithPersistenceXmlTest.java | 6 +- ...oinedFalseValueWithPersistenceXmlTest.java | 6 +- .../IgnoreExplicitForJoinedTrueValueTest.java | 6 +- ...ForJoinedTrueValueWithMultiplePUsTest.java | 6 +- ...JoinedTrueValueWithPersistenceXmlTest.java | 6 +- .../ApplicationScopedInterceptorTest.java | 12 +- .../interceptor/DependentInterceptorTest.java | 14 +- .../TransactionScopedInterceptorTest.java | 16 +- ...plicationScopedStatementInspectorTest.java | 12 +- .../lazyloading/AbstractLazyBasicTest.java | 6 +- .../LazyBasicDefaultGroupTest.java | 14 +- .../LazyBasicMultiNonDefaultGroupTest.java | 14 +- .../LazyBasicNonDefaultGroupTest.java | 14 +- .../LogBindParametersDefaultValueTest.java | 6 +- .../orm/log/LogBindParametersTrueTest.java | 6 +- .../log/LogSqlFormatSqlDefaultValueTest.java | 4 +- .../orm/log/LogSqlFormatSqlFalseTest.java | 4 +- .../MetadataBuilderContributorTest.java | 6 +- .../metadatabuildercontributor/MyEntity.java | 4 +- ...ePersistenceUnitsCdiEntityManagerTest.java | 12 +- ...ultiplePersistenceUnitsCdiSessionTest.java | 10 +- ...sistenceUnitsClassLevelAnnotationTest.java | 8 +- ...ltiplePersistenceUnitsInterceptorTest.java | 4 +- ...ersistenceUnitsPackageAnnotationsTest.java | 6 +- ...itsResourceInjectionEntityManagerTest.java | 6 +- ...enceUnitsResourceInjectionSessionTest.java | 4 +- ...istenceUnitsSqlLoadScriptTestResource.java | 16 +- ...ersistenceUnitsUnaffectedEntitiesTest.java | 6 +- .../model/annotation/inventory/Plane.java | 8 +- .../model/annotation/shared/SharedEntity.java | 8 +- .../model/annotation/user/User.java | 10 +- .../subpackage/OtherUserInSubPackage.java | 8 +- .../model/config/DefaultEntity.java | 8 +- .../model/config/inventory/Plane.java | 8 +- .../model/config/user/User.java | 10 +- .../naming/ImplicitNamingStrategyTest.java | 4 +- .../naming/PhysicalNamingStrategyTest.java | 4 +- .../hibernate/orm/packages/ChildEntity1.java | 6 +- .../hibernate/orm/packages/ChildEntity2.java | 6 +- .../packages/PackageLevelAnnotationTest.java | 6 +- .../hibernate/orm/packages/ParentEntity.java | 10 +- ...idTypeForPersistenceUnitExtensionTest.java | 6 +- .../orm/quoting_strategies/Group.java | 12 +- .../quoting_strategies/QuotedResource.java | 18 +- .../singlepersistenceunit/DefaultEntity.java | 8 +- ...lePersistenceUnitCdiEntityManagerTest.java | 12 +- .../SinglePersistenceUnitCdiSessionTest.java | 10 +- ...ePersistenceUnitPackageAnnotationTest.java | 6 +- ...rsistenceUnitPackageConfigurationTest.java | 6 +- ...nitResourceInjectionEntityManagerTest.java | 6 +- ...tenceUnitResourceInjectionSessionTest.java | 4 +- .../excludedpackage/ExcludedEntity.java | 8 +- ...ntityIncludedThroughPackageAnnotation.java | 8 +- .../EntityIncludedThroughPackageConfig.java | 8 +- .../orm/specialmappings/DataIdentity.java | 8 +- .../orm/specialmappings/IdVersionPK.java | 2 +- .../specialmappings/NormalPointEntity.java | 2 +- .../orm/specialmappings/PointEntity.java | 4 +- ...InvalidMultilineSqlLoadScriptTestCase.java | 2 +- .../SqlLoadScriptTestResource.java | 8 +- .../AbstractTransactionLifecycleTest.java | 6 +- .../GetTransactionLifecycleTest.java | 10 +- .../orm/transaction/SimpleEntity.java | 4 +- .../TransactionAnnotationLifecycleTest.java | 8 +- .../UserTransactionLifecycleTest.java | 18 +- .../validation/JPATestValidationResource.java | 14 +- .../JPAValidationDisabledTestCase.java | 2 +- .../orm/xml/hbm/HbmXmlComponentTest.java | 8 +- .../orm/xml/hbm/HbmXmlFilterDefTest.java | 4 +- .../xml/hbm/HbmXmlHotReloadTestResource.java | 12 +- .../orm/xml/hbm/HbmXmlQuarkusConfigTest.java | 8 +- .../orm/xml/orm/AnnotatedEntity.java | 8 +- .../xml/orm/OrmXmlAnnotationOverrideTest.java | 8 +- .../xml/orm/OrmXmlHotReloadTestResource.java | 12 +- .../orm/xml/orm/OrmXmlPackageTest.java | 8 +- .../OrmXmlPersistenceXmlExplicitFileTest.java | 8 +- .../OrmXmlPersistenceXmlImplicitFileTest.java | 8 +- .../orm/OrmXmlPersistenceXmlNoFileTest.java | 8 +- .../OrmXmlQuarkusConfigExplicitFileTest.java | 8 +- .../OrmXmlQuarkusConfigImplicitFileTest.java | 8 +- .../orm/OrmXmlQuarkusConfigNoFileTest.java | 8 +- ...lConfigUsingApplicationPropertiesTest.java | 8 +- ...tenceXmlConfigUsingSystemPropertyTest.java | 8 +- .../orm/xml/persistence/MyEntity.java | 4 +- .../xml/persistence/PersistenceXmlTest.java | 6 +- extensions/hibernate-orm/runtime/pom.xml | 30 +- .../hibernate/orm/PersistenceUnit.java | 8 +- .../orm/PersistenceUnitExtension.java | 4 +- .../FastBootHibernatePersistenceProvider.java | 9 +- .../orm/runtime/HibernateOrmRecorder.java | 2 +- .../hibernate/orm/runtime/JPAConfig.java | 16 +- .../orm/runtime/PersistenceProviderSetup.java | 4 +- .../orm/runtime/PersistenceUnitUtil.java | 2 +- .../hibernate/orm/runtime/ProviderUtil.java | 6 +- .../runtime/RequestScopedSessionHolder.java | 4 +- .../SingletonPersistenceProviderResolver.java | 4 +- ...tHibernatePersistenceProviderResolver.java | 4 +- .../orm/runtime/TransactionSessions.java | 10 +- .../FastBootEntityManagerFactoryBuilder.java | 7 +- .../runtime/boot/FastBootMetadataBuilder.java | 4 +- .../RuntimePersistenceUnitDescriptor.java | 6 +- .../boot/xml/JAXBElementSubstitution.java | 3 +- .../runtime/cdi/QuarkusArcBeanContainer.java | 8 +- .../customized/QuarkusJtaPlatform.java | 10 +- ...ute_PersistenceProviderResolverHolder.java | 4 +- .../session/TransactionScopedSession.java | 32 +- .../DataSourceTenantConnectionResolver.java | 2 +- ...ibernateMultiTenantConnectionProvider.java | 4 +- .../HibernateReactiveProcessor.java | 4 +- ...asyReactiveServerIntegrationProcessor.java | 2 +- .../reactive/MultiLineImportTest.java | 12 +- .../quarkus/hibernate/reactive/NoJtaTest.java | 10 +- .../hibernate/reactive/SchemaUpdateTest.java | 12 +- .../reactive/SchemaValidateTest.java | 12 +- .../ConfigActiveFalseAndEntityTest.java | 2 +- .../ConfigEnabledFalseAndEntityTest.java | 4 +- .../hibernate/reactive/config/MyEntity.java | 4 +- .../context/ContextFruitResource.java | 12 +- .../hibernate/reactive/context/Fruit.java | 2 +- .../quarkus/hibernate/reactive/dev/Fruit.java | 14 +- .../reactive/dev/FruitMutinyResource.java | 34 +- .../PublicFieldAccessFieldTypesTest.java | 8 +- .../PublicFieldAccessInheritanceTest.java | 10 +- .../singlepersistenceunit/DefaultEntity.java | 8 +- ...lePersistenceUnitCdiMutinySessionTest.java | 2 +- ...ePersistenceUnitPackageAnnotationTest.java | 2 +- ...rsistenceUnitPackageConfigurationTest.java | 2 +- .../excludedpackage/ExcludedEntity.java | 8 +- ...ntityIncludedThroughPackageAnnotation.java | 8 +- .../EntityIncludedThroughPackageConfig.java | 8 +- .../FileNotFoundSqlLoadScriptTestCase.java | 4 +- extensions/hibernate-reactive/runtime/pom.xml | 2 +- ...tHibernateReactivePersistenceProvider.java | 10 +- .../ReactivePersistenceProviderSetup.java | 4 +- .../ReactiveSessionFactoryProducer.java | 12 +- .../runtime/ReactiveSessionProducer.java | 8 +- ...teReactivePersistenceProviderResolver.java | 4 +- ...otReactiveEntityManagerFactoryBuilder.java | 2 +- ...tHibernateReactivePersistenceProvider.java | 4 +- .../configuration/ConfigPropertiesTest.java | 2 +- .../defaultpu/IndexedEntity.java | 6 +- .../pu1/IndexedEntityForPU1.java | 6 +- .../runtime/pom.xml | 9 +- ...ernateSearchElasticsearchCdiProcessor.java | 4 +- ...ConfigActiveFalseAndIndexedEntityTest.java | 2 +- ...onfigEnabledFalseAndIndexedEntityTest.java | 2 +- .../CustomMappingAndSettingsTest.java | 6 +- .../test/configuration/IndexedEntity.java | 6 +- .../IndexedEntityInNamedBackend.java | 6 +- .../MultiplePersistenceUnitsCdiTest.java | 12 +- .../defaultpu/DefaultPUEntity.java | 6 +- .../pu1/PU1Entity.java | 6 +- .../pu2/PU2Entity.java | 6 +- .../pu3/PU3Entity.java | 6 +- .../test/offline/IndexedEntity.java | 6 +- .../test/offline/StartOfflineTest.java | 4 +- .../DefaultPUEntity.java | 6 +- .../SinglePersistenceUnitsCdiTest.java | 6 +- .../test/util/TransactionUtils.java | 12 +- .../runtime/pom.xml | 11 +- .../orm/elasticsearch/SearchExtension.java | 4 +- .../HibernateSearchElasticsearchRecorder.java | 2 +- .../HibernateValidatorProcessor.java | 30 +- ...eCascadedValidationOnReturnValuesTest.java | 6 +- ...lowOverridingParameterConstraintsTest.java | 10 +- ...meterConstraintsOnParallelMethodsTest.java | 6 +- ...intExpressionLanguageFeatureLevelTest.java | 14 +- .../test/ConstraintOnStaticMethodTest.java | 6 +- .../test/ConstraintValidatorLocalesTest.java | 6 +- .../test/ContainerElementConstraintsTest.java | 6 +- .../test/CustomConfigurationViaBeansTest.java | 24 +- .../validator/test/FailFastTest.java | 18 +- .../test/RepeatedConstraintsTest.java | 16 +- .../UserCountryNotSetValidatorLocaleTest.java | 6 +- .../test/ValidatorBeanInjectionTest.java | 6 +- .../ValidatorForEarlyInitializedBeanTest.java | 12 +- .../test/ValidatorFromValidationTest.java | 6 +- .../test/config/ConfigMappingInvalidTest.java | 4 +- .../config/ConfigMappingValidatorTest.java | 6 +- .../test/devmode/ClassLevelConstraint.java | 4 +- .../test/devmode/ClassLevelValidator.java | 4 +- .../test/devmode/DependentTestBean.java | 2 +- .../DevModeConstraintValidationTest.java | 4 +- .../test/devmode/DevModeTestResource.java | 18 +- .../validator/test/devmode/NewConstraint.java | 4 +- .../validator/test/devmode/NewTestBean.java | 2 +- .../validator/test/devmode/NewValidator.java | 4 +- .../test/injection/TestConstraint.java | 6 +- .../test/injection/TestInjectedBean.java | 2 +- .../injection/TestInjectionValidator.java | 6 +- ...bernateValidatorFactoryCustomizerTest.java | 8 +- ...ernateValidatorFactoryCustomizersTest.java | 8 +- ...ltipleValidatorFactoryCustomizersTest.java | 8 +- ...ilHibernateValidatorFactoryCustomizer.java | 4 +- .../validatorfactory/MyEmailValidator.java | 8 +- .../MyEmailValidatorFactoryCustomizer.java | 4 +- ...leHibernateValidatorFactoryCustomizer.java | 6 +- .../MyMultipleValidatorFactoryCustomizer.java | 6 +- .../test/validatorfactory/MyNumValidator.java | 8 +- ...erHibernateValidatorFactoryCustomizer.java | 4 +- .../MyNumberValidatorFactoryCustomizer.java | 4 +- .../ValidatorFactoryCustomizerTest.java | 8 +- ...orFactoryFromValidationCustomizerTest.java | 8 +- .../ValidatorFactoryFromValidationTest.java | 6 +- ...icationScopedCustomValueExtractorTest.java | 12 +- ...ContainerTypeCustomValueExtractorTest.java | 12 +- .../SingletonCustomValueExtractorTest.java | 12 +- .../hibernate-validator/runtime/pom.xml | 8 +- .../HibernateValidatorFactoryCustomizer.java | 6 +- .../validator/ValidatorFactoryCustomizer.java | 6 +- .../ArcConstraintValidatorFactoryImpl.java | 6 +- .../CloseAsNoopValidatorFactoryWrapper.java | 12 +- ...ibernateBeanValidationConfigValidator.java | 2 +- .../runtime/HibernateValidatorRecorder.java | 16 +- .../TraverseAllTraversableResolver.java | 6 +- .../validator/runtime/ValidationSupport.java | 4 +- .../validator/runtime/ValidatorHolder.java | 2 +- .../validator/runtime/ValidatorProvider.java | 8 +- .../AbstractMethodValidationInterceptor.java | 18 +- .../runtime/interceptor/MethodValidated.java | 2 +- .../MethodValidationInterceptor.java | 10 +- .../runtime/jaxrs/ConstraintTypeUtil20.java | 6 +- .../runtime/jaxrs/JaxrsEndPointValidated.java | 2 +- .../JaxrsEndPointValidationInterceptor.java | 18 +- ...ReactiveEndPointValidationInterceptor.java | 12 +- .../ResteasyReactiveViolationException.java | 6 +- ...teasyReactiveViolationExceptionMapper.java | 20 +- .../jaxrs/ResteasyViolationExceptionImpl.java | 6 +- .../ResteasyViolationExceptionMapper.java | 18 +- .../runtime/jaxrs/ValidatorMediaTypeUtil.java | 2 +- .../runtime/jaxrs/ViolationReport.java | 2 +- .../locale/LocaleResolversWrapper.java | 8 +- .../locale/ResteasyClassicLocaleResolver.java | 4 +- .../ResteasyReactiveLocaleResolver.java | 4 +- ....Providers => jakarta.ws.rs.ext.Providers} | 0 extensions/infinispan-client/runtime/pom.xml | 2 +- .../infinispan/client/CacheInvalidate.java | 4 +- .../infinispan/client/CacheInvalidateAll.java | 4 +- .../infinispan/client/CacheResult.java | 4 +- .../io/quarkus/infinispan/client/Remote.java | 4 +- .../runtime/InfinispanClientProducer.java | 18 +- .../runtime/cache/CacheInterceptor.java | 6 +- .../cache/CacheInvalidateAllInterceptor.java | 8 +- .../cache/CacheInvalidateInterceptor.java | 8 +- .../runtime/cache/CacheResultInterceptor.java | 10 +- .../cache/SynchronousInfinispanGet.java | 2 +- .../runtime/health/InfinispanHealthCheck.java | 4 +- .../jackson/deployment/JacksonProcessor.java | 4 +- ...JacksonAcceptCaseInsensitiveEnumsTest.java | 2 +- ...ksonClassNamePropertyNameStrategyTest.java | 2 +- ...JacksonDontWriteDatesAsTimestampsTest.java | 2 +- ...acksonErroneousTimeZonePropertiesTest.java | 4 +- .../JacksonFailOnEmptyBeansNotSetTest.java | 2 +- .../JacksonFailOnEmptyBeansSetTest.java | 2 +- .../JacksonFailOnUnknownPropertiesTest.java | 2 +- ...ksonFieldNamePropertyNameStrategyTest.java | 2 +- .../JacksonIgnoreUnknownPropertiesTest.java | 2 +- .../JacksonMixinsWithCustomizerTest.java | 4 +- .../JacksonMixinsWithoutCustomizerTest.java | 2 +- .../JacksonTimeZonePropertiesTest.java | 2 +- .../JacksonWriteDatesAsTimestampsTest.java | 2 +- ...riteDurationsAsTimestampsDisabledTest.java | 2 +- ...WriteDurationsAsTimestampsEnabledTest.java | 2 +- .../OverrideZonedDateTimeSerializerTest.java | 4 +- .../jackson/runtime/ObjectMapperProducer.java | 6 +- .../CommaParseJaegerConfigurationTest.java | 2 +- .../jaeger/test/JaegerMetricsTestCase.java | 2 +- .../jaeger/test/QuarkusJaegerTracerTest.java | 6 +- extensions/jaeger/runtime/pom.xml | 4 +- .../jaeger/runtime/QuarkusJaegerTracer.java | 6 +- .../runtime/ZipkinReporterProvider.java | 4 +- .../jaxb/deployment/JaxbProcessor.java | 173 ++++---- .../CustomJaxbContextCustomizer.java | 6 +- .../deployment/InjectJaxbContextTest.java | 10 +- .../io/quarkus/jaxb/deployment/Person.java | 6 +- .../jaxb/deployment/info/package-info.java | 4 +- extensions/jaxb/runtime/pom.xml | 6 +- .../jaxb/runtime/JaxbContextCustomizer.java | 8 +- .../jaxb/runtime/JaxbContextProducer.java | 18 +- .../jaxb/runtime/graal/JAXBSubstitutions.java | 33 +- .../db2/deployment/JakartaEnablement.java | 2 +- .../DevServicesDB2DatasourceTestCase.java | 2 +- .../DevServicesDerbyDatasourceTestCase.java | 2 +- .../DevServicesMariaDBDatasourceTestCase.java | 2 +- .../DevServicesMsSQLDatasourceTestCase.java | 2 +- .../DevServicesMySQLDatasourceTestCase.java | 2 +- .../DevServicesOracleDatasourceTestCase.java | 2 +- ...esPostgresqlDatasourceDevModeTestCase.java | 2 +- ...qlDatasourceNamedWithUsernameTestCase.java | 4 +- ...vServicesPostgresqlDatasourceTestCase.java | 2 +- ...resqlDatasourceWithInitScriptTestCase.java | 3 +- .../postgresql/deployment/PgResource.java | 14 +- .../jsonb/deployment/JsonbProcessor.java | 14 +- .../io/quarkus/jsonb/deployment/Alpha.java | 2 +- .../jsonb/deployment/AlphaAdapter.java | 4 +- .../io/quarkus/jsonb/deployment/Bravo.java | 2 +- .../jsonb/deployment/JsonbAdapterTest.java | 8 +- extensions/jsonb/runtime/pom.xml | 7 - .../quarkus/jsonb/JsonbConfigCustomizer.java | 4 +- .../java/io/quarkus/jsonb/JsonbProducer.java | 12 +- .../java/io/quarkus/jsonb/JsonbUnitTest.java | 8 +- .../jsonp/deployment/JsonpProcessor.java | 2 +- extensions/jsonp/runtime/pom.xml | 8 +- .../client/deployment/KafkaProcessor.java | 2 +- .../kafka/client/health/KafkaHealthCheck.java | 2 +- .../client/runtime/KafkaAdminClient.java | 8 +- .../runtime/KafkaRuntimeConfigProducer.java | 4 +- .../client/runtime/ui/KafkaTopicClient.java | 4 +- .../kafka/client/runtime/ui/KafkaUiUtils.java | 2 +- .../serialization/JsonbDeserializer.java | 2 +- .../client/serialization/JsonbProducer.java | 4 +- .../client/serialization/JsonbSerde.java | 2 +- .../client/serialization/JsonbSerializer.java | 2 +- .../kafka/client/serde/JsonbSerdeTest.java | 4 +- .../deployment/KafkaStreamsProcessor.java | 2 +- .../streams/runtime/KafkaStreamsProducer.java | 12 +- .../health/KafkaStreamsStateHealthCheck.java | 4 +- .../health/KafkaStreamsTopicsHealthCheck.java | 6 +- .../client/common/AutoCloseableDestroyer.java | 2 +- .../KeycloakAdminClientReactiveProcessor.java | 2 +- ...akAdminClientInjectionDevServicesTest.java | 8 +- .../runtime/pom.xml | 6 +- .../ResteasyReactiveClientProvider.java | 11 +- .../KeycloakAdminClientProcessor.java | 2 +- ...akAdminClientInjectionDevServicesTest.java | 6 +- .../keycloak-admin-client/runtime/pom.xml | 6 +- .../ResteasyKeycloakAdminClientRecorder.java | 3 +- .../KeycloakPolicyEnforcerBuildStep.java | 2 +- .../keycloak-authorization/runtime/pom.xml | 4 +- .../KeycloakPolicyEnforcerAuthorizer.java | 8 +- extensions/kubernetes-client/runtime/pom.xml | 4 +- .../runtime/KubernetesClientProducer.java | 6 +- .../runtime/KubernetesConfigProducer.java | 4 +- .../runtime/QuarkusHttpClientFactory.java | 2 +- .../deployment/LiquibaseMongodbProcessor.java | 2 +- .../runtime/LiquibaseMongodbRecorder.java | 4 +- .../deployment/LiquibaseProcessor.java | 4 +- ...nBaselineOnMigrateNamedDataSourceTest.java | 2 +- ...quibaseExtensionBaselineOnMigrateTest.java | 3 +- ...seExtensionCleanAndMigrateAtStartTest.java | 2 +- .../LiquibaseExtensionCleanAtStartTest.java | 2 +- ...eExtensionConfigDefaultDataSourceTest.java | 2 +- ...DefaultDataSourceWithoutLiquibaseTest.java | 2 +- .../LiquibaseExtensionConfigEmptyTest.java | 6 +- .../test/LiquibaseExtensionConfigFixture.java | 4 +- ...nsionConfigMissingNamedDataSourceTest.java | 6 +- ...seExtensionConfigMultiDataSourcesTest.java | 4 +- ...figMultiDataSourcesWithoutDefaultTest.java | 2 +- ...nfigNamedDataSourceWithoutDefaultTest.java | 2 +- ...igNamedDataSourceWithoutLiquibaseTest.java | 2 +- .../LiquibaseExtensionLoadChangeLogTest.java | 2 +- ...nMigrateAtStartDirectoryChangeLogTest.java | 2 +- ...ensionMigrateAtStartJsonChangeLogTest.java | 2 +- ...sionMigrateAtStartNamedDataSourceTest.java | 2 +- ...tensionMigrateAtStartSqlChangeLogTest.java | 2 +- .../LiquibaseExtensionMigrateAtStartTest.java | 2 +- ...tensionMigrateAtStartXmlChangeLogTest.java | 2 +- ...ensionMigrateAtStartYamlChangeLogTest.java | 2 +- .../liquibase/LiquibaseDataSource.java | 8 +- .../liquibase/runtime/LiquibaseRecorder.java | 5 +- .../runtime/LiquibaseSchemaProvider.java | 4 +- .../LiquibaseDevConsoleRecorder.java | 2 +- .../LiquibaseFactoriesSupplier.java | 2 +- extensions/logging-json/runtime/pom.xml | 3 +- .../java/io/quarkus/mailer/InjectionTest.java | 6 +- .../mailer/MailTemplateValidationTest.java | 6 +- .../mailer/i18n/MailMessageBundleTest.java | 2 +- extensions/mailer/runtime/pom.xml | 4 +- .../mailer/runtime/BlockingMailerImpl.java | 4 +- .../mailer/runtime/MailClientProducer.java | 8 +- .../mailer/runtime/MailTemplateProducer.java | 14 +- .../mailer/runtime/MailerSupportProducer.java | 4 +- .../mailer/runtime/MockMailboxImpl.java | 2 +- .../mailer/runtime/MutinyMailerImpl.java | 4 +- .../mailer/runtime/MailerImplTest.java | 10 +- .../runtime/MailerWithMultipartImplTest.java | 10 +- .../binder/HttpBinderProcessor.java | 6 +- .../binder/VertxBinderProcessor.java | 2 +- .../mpmetrics/GaugeAnnotationHandler.java | 8 +- .../binder/mpmetrics/MetricDotNames.java | 2 +- .../MicroprofileMetricsProcessor.java | 2 +- .../deployment/GlobalDefaultDisabledTest.java | 2 +- .../deployment/MetricFiltersTest.java | 4 +- .../MetricsFromMetricsFactoryTestCase.java | 2 +- .../deployment/MicrometerDisabledTest.java | 4 +- .../binder/GrpcMetricsDisabledTest.java | 4 +- .../KafkaClientMetricsDisabledTest.java | 4 +- .../KafkaStreamsMetricsDisabledTest.java | 4 +- .../RedisClientMetricsDisabledTest.java | 4 +- .../binder/RedisClientMetricsTest.java | 2 +- .../UriTagWithHttpApplicationRootTest.java | 14 +- .../binder/UriTagWithHttpRootTest.java | 10 +- .../binder/UriWithMaxTagMeterFilterTest.java | 2 +- .../binder/VertxEventBusMetricsTest.java | 2 +- .../binder/VertxHttpClientMetricsTest.java | 8 +- .../VertxTcpMetricsNoClientMetricsTest.java | 6 +- .../binder/VertxTcpMetricsTest.java | 6 +- .../binder/VertxUdpMetricsTest.java | 4 +- .../binder/VertxWithHttpDisabledTest.java | 2 +- .../binder/VertxWithHttpEnabledTest.java | 2 +- .../export/AllRegistriesDisabledTest.java | 2 +- .../JsonAndPrometheusRegistryEnabledTest.java | 2 +- .../export/JsonRegistryEnabledTest.java | 2 +- .../export/NoDefaultPrometheusTest.java | 2 +- .../export/PrometheusEnabledTest.java | 2 +- .../export/SecondPrometheusProvider.java | 4 +- .../export/SecondPrometheusTest.java | 2 +- .../MicrometerCounterInterceptorTest.java | 2 +- .../MicrometerTimedInterceptorTest.java | 2 +- .../binder/mpmetrics/MpMetricNamingTest.java | 2 +- .../mpmetrics/MpMetricRegistrationTest.java | 2 +- .../micrometer/test/CountedResource.java | 2 +- .../micrometer/test/HelloResource.java | 10 +- .../micrometer/test/MeterResource.java | 6 +- .../micrometer/test/MpColorResource.java | 2 +- .../micrometer/test/PingPongResource.java | 12 +- .../micrometer/test/ServletEndpoint.java | 10 +- .../micrometer/test/TimedResource.java | 2 +- .../micrometer/runtime/ClockProvider.java | 4 +- .../runtime/CompositeRegistryCreator.java | 6 +- .../runtime/MeterFilterConstraint.java | 4 +- .../micrometer/runtime/MicrometerCounted.java | 4 +- .../runtime/MicrometerCountedInterceptor.java | 6 +- .../runtime/MicrometerRecorder.java | 10 +- .../runtime/MicrometerTimedInterceptor.java | 6 +- .../binder/HttpMeterFilterProvider.java | 4 +- .../binder/RestClientMetricsFilter.java | 12 +- .../grpc/GrpcMetricsClientInterceptor.java | 8 +- .../grpc/GrpcMetricsServerInterceptor.java | 8 +- .../binder/kafka/KafkaEventObserver.java | 4 +- .../kafka/KafkaStreamsEventObserver.java | 4 +- .../mpmetrics/ConcurrentGaugeInterceptor.java | 8 +- .../binder/mpmetrics/CountedInterceptor.java | 8 +- .../mpmetrics/InjectedMetricProducer.java | 6 +- .../binder/mpmetrics/MpMetricsBinder.java | 4 +- .../mpmetrics/MpMetricsRegistryProducer.java | 4 +- .../binder/mpmetrics/TimedInterceptor.java | 8 +- .../binder/redis/RedisMetricsBean.java | 4 +- ...VertxMeterBinderUndertowServletFilter.java | 14 +- .../export/EmptyExemplarSamplerProvider.java | 2 +- .../export/JsonMeterRegistryProvider.java | 4 +- .../OpentelemetryExemplarSamplerProvider.java | 2 +- .../PrometheusMeterRegistryProducer.java | 8 +- .../PrometheusMeterRegistryProvider.java | 4 +- .../runtime/export/handlers/JsonHandler.java | 6 +- .../export/handlers/PrometheusHandler.java | 6 +- .../runtime/registry/json/JsonExporter.java | 12 +- .../deployment/MongoClientProcessor.java | 6 +- .../DefaultAndNamedMongoClientConfigTest.java | 8 +- .../mongodb/DefaultMongoClientConfigTest.java | 4 +- .../mongodb/MongoClientConfigTest.java | 2 +- .../mongodb/MongoCommandListenerTest.java | 2 +- .../io/quarkus/mongodb/MongoLazyTest.java | 2 +- .../io/quarkus/mongodb/MongoMetricsTest.java | 2 +- ...amedClientClientBuildItemConsumerTest.java | 4 +- .../MongoTracingCommandListenerTest.java | 2 +- .../mongodb/NamedMongoClientConfigTest.java | 6 +- .../NamedReactiveMongoClientConfigTest.java | 6 +- .../io/quarkus/mongodb/MongoClientName.java | 2 +- .../mongodb/health/MongoHealthCheck.java | 6 +- .../mongodb/runtime/MongoClientBeanUtil.java | 6 +- .../mongodb/runtime/MongoClientRecorder.java | 6 +- .../quarkus/mongodb/runtime/MongoClients.java | 8 +- .../mutiny/deployment/test/MutinyTest.java | 4 +- .../jta/deployment/NarayanaJtaProcessor.java | 8 +- .../interceptor/TransactionalTest.java | 16 +- .../narayana/interceptor/TxAssertionData.java | 2 +- ...ansactionalObserversErrorHandlingTest.java | 12 +- .../observers/TransactionalObserversTest.java | 14 +- .../quarkus/QuarkusTransactionTest.java | 22 +- .../quarkus/TransactionRunnerTest.java | 14 +- .../narayana/jta/QuarkusTransaction.java | 8 +- .../narayana/jta/QuarkusTransactionImpl.java | 20 +- .../jta/RequestScopedTransaction.java | 18 +- .../jta/runtime/NarayanaJtaProducers.java | 14 +- .../runtime/NotifyingTransactionManager.java | 26 +- .../jta/runtime/NotifyingUserTransaction.java | 12 +- .../runtime/TransactionScopedNotifier.java | 12 +- .../runtime/context/TransactionContext.java | 24 +- .../TestTransactionInterceptor.java | 10 +- .../TransactionalInterceptorBase.java | 14 +- .../TransactionalInterceptorMandatory.java | 18 +- .../TransactionalInterceptorNever.java | 18 +- .../TransactionalInterceptorNotSupported.java | 14 +- .../TransactionalInterceptorRequired.java | 14 +- .../TransactionalInterceptorRequiresNew.java | 14 +- .../TransactionalInterceptorSupports.java | 14 +- .../lra/deployment/NarayanaLRAProcessor.java | 2 +- extensions/narayana-lra/runtime/pom.xml | 16 +- .../lra/runtime/NarayanaLRAProducers.java | 4 +- .../stm/deployment/NarayanaSTMProcessor.java | 2 +- .../netty/deployment/NettyProcessor.java | 2 +- .../io/quarkus/netty/BossEventLoopGroup.java | 4 +- .../io/quarkus/netty/MainEventLoopGroup.java | 4 +- .../ConfigPropertyOidcClientResource.java | 6 +- .../oidc/client/filter/FrontendResource.java | 14 +- .../filter/NamedOidcClientResource.java | 6 +- .../oidc/client/filter/ProtectedResource.java | 8 +- .../filter/ProtectedResourceService.java | 4 +- ...sourceServiceConfigPropertyOidcClient.java | 4 +- ...iceCustomProviderConfigPropOidcClient.java | 4 +- ...otectedResourceServiceNamedOidcClient.java | 4 +- .../filter/OidcClientRequestFilter.java | 10 +- .../AbstractOidcClientRequestFilter.java | 8 +- .../OidcClientReactiveFilterBuildStep.java | 2 +- .../reactive/filter/OidcClientResource.java | 6 +- .../reactive/filter/ProtectedResource.java | 8 +- ...edResourceServiceAnnotationOidcClient.java | 4 +- ...sourceServiceConfigPropertyOidcClient.java | 4 +- ...iceCustomProviderConfigPropOidcClient.java | 4 +- .../OidcClientRequestReactiveFilter.java | 6 +- ...stractOidcClientRequestReactiveFilter.java | 4 +- extensions/oidc-client/deployment/pom.xml | 4 +- .../deployment/OidcClientBuildStep.java | 4 +- .../quarkus/oidc/client/FrontendResource.java | 6 +- .../oidc/client/NamedOidcClientResource.java | 6 +- .../client/OidcClientRequestCustomFilter.java | 12 +- .../oidc/client/OidcClientResource.java | 10 +- .../oidc/client/OidcClientsResource.java | 10 +- .../oidc/client/OidcPublicClientResource.java | 6 +- .../oidc/client/ProtectedResource.java | 8 +- .../oidc/client/ProtectedResourceService.java | 4 +- .../quarkus/oidc/client/SecretProvider.java | 4 +- .../quarkus/oidc/client/NamedOidcClient.java | 2 +- .../runtime/AbstractTokensProducer.java | 4 +- .../oidc/client/runtime/TokensProducer.java | 6 +- .../AccessTokenPropagationService.java | 4 +- .../reactive/FrontendResource.java | 8 +- .../reactive/ProtectedResource.java | 8 +- .../AccessTokenRequestReactiveFilter.java | 14 +- .../AccessTokenPropagationService.java | 4 +- .../token/propagation/FrontendResource.java | 8 +- .../token/propagation/ProtectedResource.java | 8 +- .../propagation/AccessTokenRequestFilter.java | 8 +- .../JsonWebTokenRequestFilter.java | 6 +- .../runtime/AbstractTokenRequestFilter.java | 18 +- extensions/oidc/deployment/pom.xml | 4 +- .../oidc/deployment/OidcBuildStep.java | 2 +- .../oidc/test/CustomTenantConfigResolver.java | 2 +- .../oidc/test/CustomTokenStateManager.java | 4 +- .../quarkus/oidc/test/ProtectedResource.java | 8 +- .../io/quarkus/oidc/test/SecretProvider.java | 4 +- .../oidc/test/UnprotectedResource.java | 4 +- .../main/java/io/quarkus/oidc/IdToken.java | 2 +- .../io/quarkus/oidc/TokenIntrospection.java | 2 +- .../main/java/io/quarkus/oidc/UserInfo.java | 2 +- .../runtime/AbstractJsonObjectResponse.java | 12 +- .../runtime/BackChannelLogoutHandler.java | 4 +- .../runtime/DefaultTenantConfigResolver.java | 10 +- .../runtime/DefaultTokenStateManager.java | 2 +- .../runtime/OidcAuthenticationMechanism.java | 2 +- .../OidcConfigurationMetadataProducer.java | 6 +- .../oidc/runtime/OidcIdentityProvider.java | 4 +- .../runtime/OidcJsonWebTokenProducer.java | 10 +- .../quarkus/oidc/runtime/OidcSessionImpl.java | 4 +- .../runtime/OidcTokenCredentialProducer.java | 6 +- .../oidc/runtime/TenantConfigBean.java | 2 +- .../runtime/OpenShiftClientProducer.java | 6 +- .../InstrumentationProcessor.java | 2 +- .../NonAppEndpointsDisabledTest.java | 2 +- ...nAppEndpointsDisabledWithRootPathTest.java | 2 +- .../NonAppEndpointsEnabledTest.java | 2 +- .../NonAppEndpointsEqualRootPath.java | 2 +- .../OpenTelemetryCustomSamplerBeanTest.java | 6 +- ...enTelemetryDevServicesDatasourcesTest.java | 11 +- .../deployment/OpenTelemetryDisabledTest.java | 4 +- .../OpenTelemetryHttpCDILegacyTest.java | 8 +- .../deployment/OpenTelemetryHttpCDITest.java | 8 +- .../OpenTelemetryIdGeneratorTest.java | 6 +- .../deployment/OpenTelemetryMDCTest.java | 8 +- .../OpenTelemetryPropagatorsTest.java | 2 +- .../deployment/OpenTelemetryResourceTest.java | 6 +- .../OpenTelemetrySamplerBeanTest.java | 6 +- .../OpenTelemetrySamplerConfigTest.java | 2 +- .../deployment/TracerDisabledTest.java | 4 +- .../deployment/WithSpanInterceptorTest.java | 14 +- .../WithSpanLegacyInterceptorTest.java | 14 +- .../deployment/common/HelloResource.java | 4 +- .../deployment/common/TestSpanExporter.java | 2 +- .../deployment/common/TracerRouter.java | 6 +- .../otlp/OtlpExporterBadEndpointTest.java | 2 +- .../exporter/otlp/OtlpExporterConfigTest.java | 2 +- .../otlp/OtlpExporterDisabledTest.java | 4 +- .../GrpcOpenTelemetryTest.java | 4 +- .../RestClientOpenTelemetryTest.java | 20 +- .../VertxClientOpenTelemetryTest.java | 8 +- .../VertxOpenTelemetryForwardedTest.java | 2 +- .../VertxOpenTelemetryTest.java | 2 +- .../VertxOpenTelemetryXForwardedTest.java | 2 +- ...OpenTelemetryMpContextPropagationTest.java | 8 +- .../runtime/OpenTelemetryProducer.java | 4 +- .../exporter/otlp/OtlpExporterProvider.java | 4 +- .../runtime/exporter/otlp/OtlpRecorder.java | 4 +- .../runtime/tracing/TracerRecorder.java | 8 +- .../runtime/tracing/TracerUtil.java | 6 +- .../runtime/tracing/cdi/TracerProducer.java | 6 +- .../tracing/cdi/WithSpanInterceptor.java | 6 +- .../grpc/GrpcTracingClientInterceptor.java | 2 +- .../grpc/GrpcTracingServerInterceptor.java | 2 +- .../ReactiveMessagingTracingDecorator.java | 2 +- .../restclient/OpenTelemetryClientFilter.java | 14 +- .../OpenTelemetryClassicServerFilter.java | 10 +- .../OpenTelemetryReactiveServerFilter.java | 8 +- .../vertx/HttpInstrumenterVertxTracer.java | 2 +- .../PanacheJpaCommonResourceProcessor.java | 4 +- .../common/runtime/AbstractJpaOperations.java | 10 +- .../runtime/CommonPanacheQueryImpl.java | 8 +- .../KotlinPanacheResourceProcessor.java | 4 +- .../deployment/test/DuplicateIdEntity.kt | 2 +- .../kotlin/deployment/test/MyEntity.kt | 2 +- .../test/config/ConfigEnabledFalseTest.kt | 2 +- .../test/multiple_pu/PanacheTestResource.kt | 12 +- .../test/multiple_pu/first/FirstEntity.kt | 2 +- .../test/multiple_pu/second/SecondEntity.kt | 2 +- .../runtime/pom.xml | 2 +- .../orm/panache/kotlin/PanacheCompanion.kt | 4 +- .../orm/panache/kotlin/PanacheEntity.kt | 6 +- .../orm/panache/kotlin/PanacheEntityBase.kt | 2 +- .../orm/panache/kotlin/PanacheQuery.kt | 4 +- .../panache/kotlin/PanacheRepositoryBase.kt | 4 +- .../kotlin/runtime/KotlinJpaOperations.kt | 2 +- .../kotlin/runtime/PanacheQueryImpl.kt | 4 +- .../PanacheHibernateResourceProcessor.java | 4 +- .../deployment/test/DuplicateIdEntity.java | 2 +- .../test/DuplicateIdWithParentEntity.java | 2 +- .../deployment/test/InheritanceResource.java | 12 +- .../panache/deployment/test/JAXBEntity.java | 14 +- .../deployment/test/JAXBTestResource.java | 8 +- .../orm/panache/deployment/test/MyEntity.java | 2 +- .../deployment/test/MyOtherEntity.java | 2 +- .../deployment/test/MyOtherTestResource.java | 12 +- .../deployment/test/MyTestResource.java | 12 +- .../deployment/test/PanacheJAXBTest.java | 12 +- .../deployment/test/UnAnnotatedEntity.java | 2 +- .../test/UnAnnotatedEntityResource.java | 8 +- .../test/config/ConfigEnabledFalseTest.java | 2 +- .../test/inheritance/ChildEntity.java | 2 +- .../test/inheritance/MappedParent.java | 2 +- .../MultiplePersistenceUnitConfigTest.java | 4 +- .../test/multiple_pu/PanacheTestResource.java | 12 +- .../test/multiple_pu/first/FirstEntity.java | 2 +- .../repository/Issue11842Entity.java | 10 +- .../repository/Issue11842Repository.java | 2 +- .../repository/Issue11842Resource.java | 12 +- .../test/multiple_pu/second/SecondEntity.java | 2 +- .../hibernate-orm-panache/runtime/pom.xml | 10 +- .../hibernate/orm/panache/Panache.java | 4 +- .../hibernate/orm/panache/PanacheEntity.java | 8 +- .../orm/panache/PanacheEntityBase.java | 8 +- .../hibernate/orm/panache/PanacheQuery.java | 6 +- .../orm/panache/PanacheRepositoryBase.java | 4 +- .../runtime/AdditionalJpaOperations.java | 14 +- .../runtime/CustomCountPanacheQuery.java | 4 +- .../orm/panache/runtime/JpaOperations.java | 2 +- .../orm/panache/runtime/PanacheQueryImpl.java | 4 +- .../panache/deployment/EntityClassHelper.java | 2 +- .../EntityDataAccessImplementor.java | 2 +- .../HibernateOrmPanacheRestProcessor.java | 2 +- .../RepositoryDataAccessImplementor.java | 2 +- .../deployment/ResourceImplementor.java | 8 +- .../deployment/AbstractGetMethodTest.java | 2 +- .../deployment/entity/AbstractEntity.java | 6 +- .../deployment/entity/AbstractItem.java | 4 +- .../panache/deployment/entity/Collection.java | 10 +- .../entity/CollectionsResource.java | 6 +- .../deployment/entity/EmptyListItem.java | 8 +- .../deployment/entity/InjectionResource.java | 10 +- .../data/panache/deployment/entity/Item.java | 4 +- .../ItemRestDataResourceMethodListener.java | 2 +- .../deployment/openapi/AbstractEntity.java | 6 +- .../deployment/openapi/AbstractItem.java | 4 +- .../deployment/openapi/Collection.java | 8 +- .../openapi/CollectionsRepository.java | 2 +- .../openapi/CollectionsResource.java | 2 +- .../deployment/openapi/EmptyListItem.java | 2 +- .../openapi/EmptyListItemsRepository.java | 2 +- .../data/panache/deployment/openapi/Item.java | 2 +- .../deployment/openapi/ItemsRepository.java | 2 +- .../deployment/repository/AbstractEntity.java | 6 +- .../deployment/repository/AbstractItem.java | 4 +- .../deployment/repository/Collection.java | 10 +- .../repository/CollectionsRepository.java | 2 +- .../deployment/repository/EmptyListItem.java | 8 +- .../repository/EmptyListItemsRepository.java | 2 +- .../panache/deployment/repository/Item.java | 4 +- .../repository/ItemsRepository.java | 2 +- .../RestDataPanacheExceptionMapper.java | 6 +- .../jta/TransactionalUpdateExecutor.java | 4 +- .../PanacheJpaCommonResourceProcessor.java | 8 +- .../common/runtime/AbstractJpaOperations.java | 4 +- .../runtime/CommonPanacheQueryImpl.java | 2 +- .../common/runtime/ReactiveTransactional.java | 2 +- .../ReactiveTransactionalInterceptor.java | 4 +- .../ReactiveTransactionalInterceptorBase.java | 4 +- ...bernateReactivePanacheKotlinProcessor.java | 2 +- .../kotlin/deployment/test/MyEntity.kt | 2 +- .../runtime/pom.xml | 10 +- .../panache/kotlin/PanacheCompanion.kt | 2 +- .../reactive/panache/kotlin/PanacheEntity.kt | 6 +- .../panache/kotlin/PanacheEntityBase.kt | 2 +- .../reactive/panache/kotlin/PanacheQuery.kt | 4 +- .../panache/kotlin/PanacheRepositoryBase.kt | 2 +- .../kotlin/runtime/PanacheQueryImpl.kt | 2 +- .../PanacheHibernateResourceProcessor.java | 4 +- .../panache/test/DuplicateIdEntity.java | 2 +- .../test/DuplicateIdWithParentEntity.java | 2 +- .../reactive/panache/test/MyEntity.java | 2 +- .../reactive/panache/test/MyOtherEntity.java | 2 +- .../panache/test/MyOtherTestResource.java | 14 +- .../reactive/panache/test/MyTestResource.java | 14 +- .../runtime/pom.xml | 10 +- .../reactive/panache/PanacheEntity.java | 8 +- .../reactive/panache/PanacheEntityBase.java | 6 +- .../reactive/panache/PanacheQuery.java | 6 +- .../panache/PanacheRepositoryBase.java | 2 +- .../panache/runtime/PanacheQueryImpl.java | 2 +- .../panache/deployment/EntityClassHelper.java | 2 +- .../deployment/ResourceImplementor.java | 6 +- .../deployment/AbstractGetMethodTest.java | 2 +- .../deployment/entity/AbstractEntity.java | 6 +- .../deployment/entity/AbstractItem.java | 6 +- .../panache/deployment/entity/Collection.java | 8 +- .../deployment/entity/EmptyListItem.java | 2 +- .../deployment/entity/InjectionResource.java | 10 +- .../data/panache/deployment/entity/Item.java | 4 +- .../ItemRestDataResourceMethodListener.java | 2 +- .../deployment/repository/AbstractEntity.java | 6 +- .../deployment/repository/AbstractItem.java | 6 +- .../deployment/repository/Collection.java | 8 +- .../repository/CollectionsRepository.java | 2 +- .../deployment/repository/EmptyListItem.java | 2 +- .../repository/EmptyListItemsRepository.java | 2 +- .../panache/deployment/repository/Item.java | 4 +- .../repository/ItemsRepository.java | 2 +- .../RestDataPanacheExceptionMapper.java | 4 +- .../common/MongoDatabaseResolverTest.java | 4 +- .../common/jsonb/ObjectIdDeserializer.java | 6 +- .../common/jsonb/ObjectIdSerializer.java | 6 +- .../panache/common/runtime/BeanUtils.java | 2 +- .../common/runtime/MongoOperations.java | 10 +- .../mongoentity/MongoEntityRepository.java | 2 +- .../panache/mongoentity/MongoEntityTest.java | 2 +- .../deployment/MongoPanacheRestProcessor.java | 2 +- .../deployment/ResourceImplementor.java | 2 +- .../panache/runtime/NoopUpdateExecutor.java | 2 +- .../RestDataPanacheExceptionMapper.java | 4 +- .../common/deployment/PanacheConstants.java | 4 +- ...nacheHibernateCommonResourceProcessor.java | 2 +- .../deployment/JaxRsResourceImplementor.java | 8 +- .../ResourceMethodListenerImplementor.java | 2 +- .../methods/AddMethodImplementor.java | 6 +- .../methods/CountMethodImplementor.java | 2 +- .../methods/DeleteMethodImplementor.java | 2 +- .../methods/GetMethodImplementor.java | 2 +- .../methods/ListMethodImplementor.java | 4 +- .../methods/StandardMethodImplementor.java | 26 +- .../methods/UpdateMethodImplementor.java | 6 +- .../methods/hal/ListHalMethodImplementor.java | 2 +- .../ResourcePropertiesProvider.java | 2 +- .../utils/PaginationImplementor.java | 6 +- .../deployment/utils/ResponseImplementor.java | 8 +- .../utils/SignatureMethodCreator.java | 2 +- .../panache/rest-data-panache/runtime/pom.xml | 4 +- .../runtime/sort/SortQueryParamFilter.java | 12 +- .../runtime/sort/SortQueryParamValidator.java | 2 +- .../sort/SortQueryParamFilterTest.java | 12 +- .../AvailableConfigSourcesTest.java | 2 +- .../DefaultPicocliCommandLineFactory.java | 6 +- .../runtime/PicocliCommandLineProducer.java | 6 +- .../picocli/runtime/PicocliRunner.java | 4 +- .../runtime/annotations/TopCommand.java | 4 +- .../quartz/deployment/QuartzProcessor.java | 2 +- .../test/ConcurrentExecutionSkipTest.java | 2 +- .../quartz/test/ConditionalExecutionTest.java | 4 +- .../quartz/test/ConfigureInstanceIdTest.java | 2 +- .../quartz/test/DisabledSchedulerTest.java | 4 +- .../quartz/test/DuplicatedContextTest.java | 2 +- ...catedContextWithRunOnQuartzThreadTest.java | 2 +- .../quartz/test/FailedExecutionTest.java | 2 +- .../io/quarkus/quartz/test/FireTimeTest.java | 2 +- .../quartz/test/GlobalMisfirePolicyTest.java | 2 +- .../quartz/test/HaltedSchedulerTest.java | 2 +- .../io/quarkus/quartz/test/InjectJobTest.java | 10 +- .../test/InjectQuartzSchedulerTest.java | 2 +- .../test/InvalidCronExpressionTest.java | 2 +- .../test/InvalidDelayedExpressionTest.java | 2 +- .../test/InvalidEveryExpressionTest.java | 2 +- .../quartz/test/ListSchedulerJobsTest.java | 2 +- .../quartz/test/MisfirePolicyTest.java | 2 +- .../quarkus/quartz/test/NoExpressionTest.java | 2 +- .../quartz/test/OverdueCronExecutionTest.java | 2 +- .../quartz/test/OverdueExecutionTest.java | 2 +- .../test/PausedMethodExpressionTest.java | 6 +- .../quarkus/quartz/test/PausedMethodTest.java | 8 +- .../quartz/test/PausedResumedMethodTest.java | 8 +- .../quartz/test/RegisterJobListenerTest.java | 2 +- .../RegisterLoggingJobHistoryPluginTest.java | 2 +- .../quartz/test/RequestContextJobs.java | 6 +- .../quartz/test/SuccessfulExecutionTest.java | 2 +- .../quartz/test/metrics/MpTimedTest.java | 2 +- .../NonBlockingScheduledMethodTest.java | 4 +- .../programmatic/ForcedStartModeJobsTest.java | 2 +- .../programmatic/HaltedStartModeJobsTest.java | 2 +- .../programmatic/ProgrammaticJobsTest.java | 4 +- .../subclass/InterceptedJobClassTest.java | 10 +- .../quartz/runtime/QuartzSchedulerImpl.java | 26 +- .../deployment/MessageBundleProcessor.java | 2 +- .../io/quarkus/qute/deployment/AsyncTest.java | 2 +- .../quarkus/qute/deployment/EscapingTest.java | 2 +- .../io/quarkus/qute/deployment/Hello.java | 6 +- .../io/quarkus/qute/deployment/MultiTest.java | 2 +- .../PropertyNotFoundDevModeTest.java | 4 +- .../deployment/ReflectionResolverTest.java | 2 +- .../qute/deployment/TemplateDataTest.java | 2 +- .../qute/deployment/TreeMapDataTest.java | 2 +- .../qute/deployment/VariantTemplateTest.java | 4 +- .../deployment/asyncdata/AsyncDataTest.java | 2 +- .../qute/deployment/cache/CacheTest.java | 2 +- .../AdditionalContentTypeTest.java | 2 +- .../currentrequest/CurrentRequestTest.java | 2 +- .../encoding/CustomEncodingTest.java | 2 +- .../resolver/CustomResolversTest.java | 2 +- .../section/CustomSectionFactory.java | 2 +- .../section/CustomSectionHelperTest.java | 2 +- .../section/StringProducer.java | 2 +- .../enums/TemplateEnumIgnoredTest.java | 2 +- .../enums/TemplateEnumInvalidTargetTest.java | 2 +- .../deployment/enums/TemplateEnumTest.java | 2 +- .../TemplateEnumValidationSuccessTest.java | 2 +- .../AdditionalTemplatePathExcludeTest.java | 2 +- .../exclude/TemplatePathExcludeTest.java | 2 +- .../AssignabilityTemplateExtensionTest.java | 2 +- .../CollectionTemplateExtensionsTest.java | 2 +- .../ConfigTemplateExtensionsTest.java | 2 +- .../ExtensionMethodCompletionStageTest.java | 6 +- .../NamespaceTemplateExtensionTest.java | 4 +- .../NumberTemplateExtensionsTest.java | 2 +- .../StringTemplateExtensionsTest.java | 2 +- .../TemplateExtensionAttributeTest.java | 2 +- .../TemplateExtensionMethodsTest.java | 2 +- .../TimeTemplateExtensionsTest.java | 2 +- .../generatedresolvers/HierarchyTest.java | 2 +- .../globals/TemplateGlobalOverrideTest.java | 2 +- .../globals/TemplateGlobalTest.java | 2 +- .../LocalizedFileResourceBundleNameTest.java | 2 +- .../MessageBundleCustomDefaultLocaleTest.java | 2 +- .../i18n/MessageBundleLocaleTest.java | 2 +- .../i18n/MessageBundleLogicalLineTest.java | 2 +- .../deployment/i18n/MessageBundleTest.java | 2 +- .../i18n/NestedMessageBundleDevModeTest.java | 2 +- .../qute/deployment/include/IncludeTest.java | 2 +- .../inject/InjectNamespaceResolverTest.java | 8 +- .../inject/InjectionFailedTest.java | 4 +- .../qute/deployment/inject/InjectionTest.java | 4 +- .../NamedBeanIterableReturnTypeTest.java | 6 +- .../inject/NamedBeanPropertyNotFoundTest.java | 4 +- .../NamedBeanValidationFailureTest.java | 4 +- .../NamedBeanValidationSuccessTest.java | 6 +- .../loop/IterationMetadataPrefixTest.java | 2 +- .../qute/deployment/loop/LoopTest.java | 2 +- .../PropertyNotFoundNoopTest.java | 2 +- .../PropertyNotFoundOutputOriginalTest.java | 2 +- .../PropertyNotFoundThrowExceptionTest.java | 2 +- .../DoNotRemoveStandaloneLinesTest.java | 2 +- .../MultipleTemplatesDirectoryTest.java | 2 +- .../scanning/WrongTemplatesDirectoryTest.java | 2 +- .../deployment/tag/UserTagIncludeTest.java | 2 +- .../tag/UserTagNameCollisionTest.java | 2 +- .../qute/deployment/tag/UserTagTest.java | 2 +- .../UserTagWithQuteExtensionIncludeTest.java | 2 +- .../CustomTemplateLocatorTest.java | 4 +- .../CheckedTemplateRequireTypeSafeTest.java | 4 +- .../typesafe/DataNamespaceValidationTest.java | 2 +- .../DefaultMethodValidationSuccessTest.java | 2 +- .../InterfaceValidationSuccessTest.java | 2 +- .../typesafe/LoopValidationTest.java | 2 +- .../NestedVirtualMethodSuccessTest.java | 2 +- .../typesafe/ObjectValidationSuccessTest.java | 2 +- .../OrOperatorTemplateExtensionTest.java | 2 +- .../ParamDeclarationDefaultValueTest.java | 2 +- .../typesafe/ParamDeclarationTest.java | 2 +- .../typesafe/TypeCheckExcludesTest.java | 2 +- .../typesafe/TypeSafeJavaLangTest.java | 2 +- .../deployment/typesafe/TypeSafeLetTest.java | 2 +- .../deployment/typesafe/TypeSafeLoopTest.java | 2 +- .../typesafe/ValidationSuccessTest.java | 2 +- .../typesafe/WhenValidationTest.java | 2 +- .../deployment/varargs/VarargsMethodTest.java | 2 +- .../java/io/quarkus/qute/i18n/Localized.java | 4 +- .../io/quarkus/qute/i18n/MessageBundles.java | 6 +- .../io/quarkus/qute/runtime/ContentTypes.java | 4 +- .../quarkus/qute/runtime/EngineProducer.java | 14 +- .../quarkus/qute/runtime/LocationLiteral.java | 2 +- .../qute/runtime/TemplateProducer.java | 8 +- .../qute/runtime/cache/CacheConfigurator.java | 2 +- .../CollectionTemplateExtensions.java | 2 +- .../extensions/ConfigTemplateExtensions.java | 4 +- .../extensions/MapTemplateExtensions.java | 2 +- .../extensions/NumberTemplateExtensions.java | 4 +- .../OrOperatorTemplateExtensions.java | 2 +- .../extensions/StringTemplateExtensions.java | 2 +- .../extensions/TimeTemplateExtensions.java | 2 +- .../datasource/ReactiveDataSource.java | 4 +- .../ReactiveDatasourceHealthCheck.java | 2 +- .../ReactiveDB2ClientProcessor.java | 2 +- .../db2/client/runtime/DB2PoolRecorder.java | 2 +- .../ReactiveDB2DataSourcesHealthCheck.java | 8 +- .../ReactiveMSSQLClientProcessor.java | 2 +- .../mssql/client/CredentialsTestResource.java | 10 +- .../client/CustomCredentialsProvider.java | 2 +- .../mssql/client/DevModeResource.java | 12 +- .../DevServicesMsSQLDatasourceTestCase.java | 2 +- .../client/LocalhostMSSQLPoolCreator.java | 2 +- .../mssql/client/MSSQLPoolProducerTest.java | 4 +- ...leDataSourcesAndMSSQLPoolCreatorsTest.java | 6 +- .../mssql/client/MultipleDataSourcesTest.java | 4 +- ...SSQLPoolCreatorsForSameDatasourceTest.java | 4 +- .../client/runtime/MSSQLPoolRecorder.java | 2 +- .../ReactiveMSSQLDataSourcesHealthCheck.java | 6 +- .../ReactiveMySQLClientProcessor.java | 2 +- .../mysql/client/CredentialsTestResource.java | 10 +- .../client/CustomCredentialsProvider.java | 2 +- .../mysql/client/DevModeResource.java | 12 +- .../DevServicesMySQLDatasourceTestCase.java | 2 +- .../client/LocalhostMySQLPoolCreator.java | 2 +- ...leDataSourcesAndMySQLPoolCreatorsTest.java | 6 +- .../mysql/client/MultipleDataSourcesTest.java | 4 +- ...ySQLPoolCreatorsForSameDatasourceTest.java | 4 +- .../mysql/client/MySQLPoolProducerTest.java | 4 +- .../client/runtime/MySQLPoolRecorder.java | 2 +- .../ReactiveMySQLDataSourcesHealthCheck.java | 6 +- .../ReactiveOracleClientProcessor.java | 2 +- .../client/CredentialsTestResource.java | 10 +- .../client/CustomCredentialsProvider.java | 2 +- .../oracle/client/DevModeResource.java | 12 +- .../DevServicesOracleDatasourceTestCase.java | 2 +- .../client/LocalhostOraclePoolCreator.java | 2 +- ...eDataSourcesAndOraclePoolCreatorsTest.java | 6 +- .../client/MultipleDataSourcesTest.java | 4 +- ...aclePoolCreatorsForSameDatasourceTest.java | 4 +- .../oracle/client/OraclePoolProducerTest.java | 4 +- .../client/runtime/OraclePoolRecorder.java | 2 +- .../ReactiveOracleDataSourcesHealthCheck.java | 6 +- .../deployment/ReactivePgClientProcessor.java | 2 +- .../pg/client/CredentialsTestResource.java | 10 +- .../pg/client/CustomCredentialsProvider.java | 2 +- .../reactive/pg/client/DevModeResource.java | 12 +- ...vServicesPostgresqlDatasourceTestCase.java | 2 +- .../pg/client/LocalhostPgPoolCreator.java | 2 +- ...tipleDataSourcesAndPgPoolCreatorsTest.java | 6 +- .../pg/client/MultipleDataSourcesTest.java | 4 +- ...lePgPoolCreatorsForSameDatasourceTest.java | 4 +- .../pg/client/PgPoolProducerTest.java | 4 +- .../pg/client/runtime/PgPoolRecorder.java | 2 +- .../ReactivePgDataSourcesHealthCheck.java | 6 +- .../quarkus/vertx/web/deployment/Methods.java | 14 +- .../deployment/ReactiveRoutesProcessor.java | 8 +- .../vertx/web/ConflictingRouteTest.java | 2 +- .../quarkus/vertx/web/DependentRouteTest.java | 4 +- .../quarkus/vertx/web/LazyAuthRouteTest.java | 6 +- .../io/quarkus/vertx/web/SimpleRouteTest.java | 8 +- .../vertx/web/blocking/BlockingRouteTest.java | 2 +- .../vertx/web/compress/CompressionTest.java | 2 +- .../web/context/DuplicatedContextTest.java | 4 +- .../AuthCompletionExceptionHandlerTest.java | 2 +- ...erFilterRequestContextPropagationTest.java | 4 +- .../vertx/web/filter/UserFilterTest.java | 2 +- .../vertx/web/mutiny/SyncRouteTest.java | 6 +- .../RequestContextPropagationTest.java | 8 +- .../web/validation/MultiValidationTest.java | 6 +- .../web/validation/SyncValidationTest.java | 8 +- .../web/validation/UniValidationTest.java | 8 +- .../vertx/web/runtime/RouteHandler.java | 2 +- .../vertx/web/runtime/ValidationSupport.java | 10 +- .../operators/deployment/MyTestResource.java | 4 +- .../ReactiveStreamsOperatorsUsageTest.java | 4 +- .../deployment/MyTestResource.java | 4 +- .../ReactiveStreamsOperatorsUsageTest.java | 4 +- .../deployment/RedisClientProcessor.java | 4 +- .../deployment/ClientInjectionTest.java | 2 +- .../client/deployment/CustomizerTest.java | 4 +- .../client/deployment/RedisNoConfTest.java | 6 +- .../datasource/DataSourceInjectionTest.java | 4 +- .../deployment/datasource/DataSourceTest.java | 2 +- .../deployment/devmode/IncrementResource.java | 4 +- .../deployment/patterns/BinaryTest.java | 4 +- .../client/deployment/patterns/CacheTest.java | 4 +- .../deployment/patterns/CounterTest.java | 4 +- .../patterns/PubSubOnStartupTest.java | 6 +- .../deployment/patterns/PubSubTest.java | 6 +- ...ultFileForDefaultClientPreloadingTest.java | 2 +- .../preloading/MissingFilePreloadTest.java | 2 +- .../MultiClientImportPreloadingTest.java | 2 +- ...lientImportPreloadingWithFlushAllTest.java | 2 +- ...ntImportPreloadingWithOnlyIfEmptyTest.java | 2 +- ...sForDefaultClientImportPreloadingTest.java | 2 +- ...eForDefaultClientImportPreloadingTest.java | 2 +- .../src/etc/RedisCommandGenerator.java | 0 .../quarkus/redis/client/RedisClientName.java | 4 +- .../runtime/client/RedisClientRecorder.java | 4 +- .../client/health/RedisHealthCheck.java | 8 +- .../restclient/config/RestClientConfig.java | 2 +- .../restclient/config/RestClientsConfig.java | 5 +- .../jackson/deployment/ClientResource.java | 6 +- .../jackson/deployment/HelloResource.java | 6 +- .../jackson/deployment/RestInterface.java | 4 +- .../ZonedDateTimeObjectMapperCustomizer.java | 2 +- .../rest-client-jackson/runtime/pom.xml | 4 +- .../restclient/jaxb/deployment/Book.java | 2 +- .../jaxb/deployment/ClientResource.java | 6 +- .../jaxb/deployment/HelloResource.java | 8 +- .../jaxb/deployment/RestInterface.java | 8 +- .../rest-client-jaxb/runtime/pom.xml | 8 +- .../jsonb/deployment/ClientResource.java | 6 +- .../jsonb/deployment/HelloResource.java | 8 +- .../jsonb/deployment/RestInterface.java | 4 +- .../ZonedDateTimeJsonbConfigCustomizer.java | 10 +- .../rest-client-jsonb/runtime/pom.xml | 1 - .../deployment/MutinyRestClientTest.java | 4 +- .../deployment/RestClientProcessor.java | 18 +- .../restclient/configuration/EchoClient.java | 12 +- .../EchoClientWithConfigKey.java | 12 +- .../EchoClientWithoutAnnotation.java | 12 +- .../configuration/EchoResource.java | 12 +- .../GlobalConfigurationTest.java | 8 +- .../configuration/MPRestClientsTest.java | 6 +- .../configuration/MyResponseFilter.java | 6 +- .../QuarkusConfigurationTest.java | 8 +- .../configuration/QuarkusRestClientsTest.java | 2 +- .../RestClientOverrideRuntimeConfigTest.java | 2 +- .../configuration/ShortNameEchoClient.java | 12 +- .../configuration/UnknownConfigTest.java | 2 +- .../VaultScenarioRestClientConfigTest.java | 2 +- .../exception/DownstreamServiceClient.java | 2 +- .../DownstreamServiceRedirectEndpoint.java | 8 +- .../DownstreamServiceUnavailableEndpoint.java | 8 +- .../restclient/exception/FrontendService.java | 8 +- ...stClientExceptionOriginalBehaviorTest.java | 4 +- .../exception/RestClientExceptionTest.java | 4 +- .../ft/AsyncRestClientFallbackTest.java | 6 +- .../restclient/ft/RestClientFallbackTest.java | 6 +- .../RestClientInterceptorTest.java | 16 +- .../registerclientheaders/EchoClient.java | 12 +- .../registerclientheaders/EchoResource.java | 14 +- .../MyHeadersFactory.java | 8 +- .../registerprovider/EchoClient.java | 12 +- .../registerprovider/EchoResource.java | 14 +- .../registerprovider/MethodsCollector.java | 2 +- .../restclient/registerprovider/MyFilter.java | 6 +- .../registerprovider/MyRequestBean.java | 2 +- .../ProviderClientRegistrationTest.java | 28 +- .../RegisterProviderTest.java | 2 +- .../rest-client/runtime/pom.xml | 8 +- .../runtime/PathFeatureHandler.java | 12 +- .../runtime/PathTemplateInjectionFilter.java | 6 +- .../runtime/QuarkusRestClientBuilder.java | 128 ++++-- .../runtime/RestClientRecorder.java | 2 +- .../graal/ClientBuilderReplacement.java | 2 +- .../runtime/RestClientBaseTest.java | 7 +- .../deployment/ResteasyCommonProcessor.java | 28 +- .../resteasy-common/runtime/pom.xml | 19 +- .../runtime/QuarkusConstructorInjector.java | 2 +- .../runtime/QuarkusInjectorFactory.java | 2 +- .../runtime/graal/DeleteDocumentProvider.java | 8 +- .../runtime/graal/DeleteIIOImageProvider.java | 7 +- .../common/runtime/graal/ServletMissing.java | 38 -- ...icroprofile_config_FilterConfigSource.java | 14 - ...croprofile_config_ServletConfigSource.java | 14 - ...ile_config_ServletContextConfigSource.java | 15 - .../jackson/QuarkusJacksonSerializer.java | 22 +- .../QuarkusObjectMapperContextResolver.java | 12 +- .../jsonb/QuarkusJsonbContextResolver.java | 14 +- .../runtime/jsonb/QuarkusJsonbSerializer.java | 22 +- .../ServerFormUrlEncodedProvider.java | 14 +- .../resteasy/common/spi/ResteasyDotNames.java | 40 +- .../jackson/HelloNoMediaTypeResource.java | 4 +- .../resteasy/jackson/HelloResource.java | 8 +- .../resteasy/jackson/JsonViewResource.java | 8 +- .../resteasy/jackson/LargeResource.java | 8 +- .../resteasy/jackson/TimeCustomizer.java | 2 +- .../resteasy-jackson/runtime/pom.xml | 4 +- .../deployment/ResteasyJaxbProcessor.java | 2 +- .../quarkus/resteasy/jaxb/deployment/Bar.java | 2 +- .../jaxb/deployment/ConsumesXMLTestCase.java | 10 +- .../jaxb/deployment/ProducesXMLTestCase.java | 12 +- .../resteasy-jaxb/runtime/pom.xml | 8 +- .../jsonb/HelloNoMediaTypeResource.java | 4 +- .../jsonb/ResourceSendingJsonObjects.java | 8 +- .../resteasy-jsonb/runtime/pom.xml | 1 - .../resteasy/jsonb/vertx/VertxJson.java | 20 +- .../resteasy/jsonb/vertx/VertxJsonTest.java | 6 +- .../resteasy-links/deployment/pom.xml | 4 +- .../links/deployment/TestResource.java | 8 +- .../resteasy-links/runtime/pom.xml | 4 +- .../runtime/hal/HalServerResponseFilter.java | 12 +- .../links/runtime/hal/ResteasyHalService.java | 2 +- .../resteasy/multipart/FeedbackBody.java | 2 +- .../resteasy/multipart/FeedbackResource.java | 10 +- .../multipart/parttype/PartTypeDto.java | 4 +- .../parttype/PartTypeMultipartTest.java | 2 +- .../multipart/parttype/PartTypeResource.java | 14 +- .../resteasy-multipart/runtime/pom.xml | 4 +- ...InputPartConfigContainerRequestFilter.java | 10 +- ....Providers => jakarta.ws.rs.ext.Providers} | 0 .../common/runtime/MultiInvokerProvider.java | 8 +- .../mutiny/common/runtime/MultiRxInvoker.java | 4 +- .../common/runtime/MultiRxInvokerImpl.java | 14 +- .../common/runtime/UniInvokerProvider.java | 10 +- .../mutiny/common/runtime/UniRxInvoker.java | 10 +- .../common/runtime/UniRxInvokerImpl.java | 8 +- .../common/test/UniRxInvokerImplTest.java | 8 +- .../resteasy/mutiny/test/MutinyInjector.java | 2 +- .../resteasy/mutiny/test/MutinyResource.java | 14 +- .../mutiny/test/RestEasyMutinyTest.java | 4 +- .../vertx/ResourceProducingJsonObject.java | 10 +- .../deployment/AppMessageHelloResource.java | 10 +- .../resteasy/deployment/HelloResource.java | 6 +- .../resteasy/deployment/ItemResource.java | 10 +- .../deployment/MissingTemplateResource.java | 2 +- .../deployment/TypeErrorResource.java | 4 +- .../quarkus/resteasy/qute/RestTemplate.java | 2 +- .../qute/runtime/TemplateResponseFilter.java | 16 +- .../ResteasyServerCommonProcessor.java | 14 +- .../runtime/RESTEasyTestHttpProvider.java | 2 +- .../RestPathAnnotationProcessor.java | 2 +- .../deployment/ResteasyServletProcessor.java | 4 +- .../ResteasyStandaloneBuildStep.java | 2 +- .../test/CacheControlFeatureTest.java | 2 +- .../quarkus/resteasy/test/CacheResource.java | 4 +- .../test/ConstructorInjectionResource.java | 4 +- .../resteasy/test/ContentLengthResource.java | 6 +- .../io/quarkus/resteasy/test/ContextTest.java | 8 +- .../test/CustomExceptionMapperTestCase.java | 10 +- .../ExceptionReturnStatusAndBodyTest.java | 16 +- .../resteasy/test/ForwardedEnabledTest.java | 4 +- .../resteasy/test/GreetingResource.java | 8 +- .../resteasy/test/InputStreamResource.java | 8 +- ...ResponseLargePayloadWithRemainderTest.java | 8 +- ...ponseLargePayloadWithoutRemainderTest.java | 8 +- .../test/InputStreamResponseTest.java | 8 +- .../resteasy/test/InterfaceResource.java | 8 +- .../quarkus/resteasy/test/JsonResource.java | 10 +- .../resteasy/test/MalformedURLTestCase.java | 4 +- .../resteasy/test/MaxBodySizeResource.java | 12 +- .../resteasy/test/NoProducesValueTest.java | 8 +- .../resteasy/test/NullHeaderTestCase.java | 14 +- .../test/PathInterfaceImplementorTest.java | 10 +- .../quarkus/resteasy/test/PostEndpoint.java | 6 +- .../quarkus/resteasy/test/PostResource.java | 6 +- .../test/ProviderConfigInjectionTest.java | 20 +- .../quarkus/resteasy/test/QueryParamTest.java | 6 +- .../quarkus/resteasy/test/RootResource.java | 4 +- .../io/quarkus/resteasy/test/Service.java | 2 +- .../resteasy/test/SetCookieResource.java | 8 +- ...SingletonConstructorInjectionResource.java | 6 +- .../test/asyncio/AsyncIOResource.java | 6 +- .../resteasy/test/cdi/GreetingEndpoint.java | 6 +- .../resteasy/test/cdi/MorningGreeting.java | 2 +- .../config/ConfigMappingWithProviderTest.java | 16 +- .../ProviderConfigInjectionWarningsTest.java | 26 +- .../resteasy/test/gzip/GZipResource.java | 8 +- .../test/multipart/MultipartResource.java | 12 +- .../root/ApplicationPathHttpRootTest.java | 8 +- .../test/root/ApplicationPathTest.java | 8 +- .../resteasy/test/root/ApplicationTest.java | 18 +- .../resteasy/test/root/BuildProfileTest.java | 24 +- .../resteasy/test/route/UserRouteTest.java | 4 +- ...thenticationFailedExceptionHeaderTest.java | 6 +- ...enticationRedirectExceptionHeaderTest.java | 6 +- .../DefaultRolesAllowedJaxRsTest.java | 6 +- .../test/security/DenyAllJaxRsTest.java | 6 +- ...pPolicyAuthFailureExceptionMapperTest.java | 10 +- .../test/security/PermitAllResource.java | 6 +- ...iveAuthCompletionExceptionHandlerTest.java | 4 +- ...tiveAuthCompletionExceptionMapperTest.java | 16 +- ...ttpPolicyCustomForbiddenExHandlerTest.java | 10 +- ...HttpPolicyCustomForbiddenExMapperTest.java | 16 +- .../test/security/RolesAllowedResource.java | 10 +- .../SecurityIdentityAugmentorTest.java | 4 +- .../test/security/SecurityOverrideFilter.java | 10 +- .../test/security/UnsecuredResource.java | 10 +- .../test/security/UnsecuredSubResource.java | 4 +- .../resteasy/test/security/UserResource.java | 8 +- .../resteasy/test/sse/SseResource.java | 16 +- .../resteasy/test/sse/SseTestCase.java | 10 +- .../resteasy/test/subresource/MyService.java | 2 +- .../test/subresource/PingResource.java | 4 +- .../test/subresource/PingsResource.java | 6 +- .../test/subresource/SuperPingResource.java | 2 +- ...thenticationCompletionExceptionMapper.java | 6 +- .../AuthenticationFailedExceptionMapper.java | 12 +- ...AuthenticationRedirectExceptionMapper.java | 8 +- .../runtime/CompositeExceptionMapper.java | 12 +- .../runtime/ForbiddenExceptionMapper.java | 10 +- .../runtime/NotFoundExceptionMapper.java | 24 +- .../runtime/QuarkusRestPathTemplate.java | 4 +- .../QuarkusRestPathTemplateInterceptor.java | 12 +- .../resteasy/runtime/ResteasyFilter.java | 16 +- .../resteasy/runtime/ResteasyServlet.java | 6 +- .../runtime/SecurityContextFilter.java | 16 +- .../runtime/UnauthorizedExceptionMapper.java | 12 +- .../QuarkusResteasySecurityContext.java | 2 +- .../runtime/standalone/VertxHttpRequest.java | 10 +- .../runtime/standalone/VertxHttpResponse.java | 17 +- .../runtime/standalone/VertxOutputStream.java | 2 +- .../standalone/VertxRequestHandler.java | 6 +- .../runtime/standalone/VertxUtil.java | 6 +- .../runtime/vertx/JsonArrayReader.java | 14 +- .../runtime/vertx/JsonArrayWriter.java | 10 +- .../runtime/vertx/JsonObjectReader.java | 14 +- .../runtime/vertx/JsonObjectWriter.java | 10 +- .../JaxrsClientReactiveEnricher.java | 6 +- .../JaxrsClientReactiveProcessor.java | 30 +- .../test/AsyncRestClientFilterTestCase.java | 18 +- .../ClientRequestFilterAbortWithTestCase.java | 16 +- .../test/ClientResponseFilterTestCase.java | 12 +- .../deployment/test/FailureTestCase.java | 14 +- .../test/QueryParamNoTemplateTestCase.java | 6 +- .../deployment/test/UniInvokerTestCase.java | 6 +- .../runtime/ClientResponseBuilderFactory.java | 2 +- .../runtime/JaxrsClientReactiveRecorder.java | 6 +- .../reactive/runtime/RestClientBase.java | 4 +- ...der => jakarta.ws.rs.client.ClientBuilder} | 0 .../JsonDefaultProducersHandler.java | 2 +- .../QuarkusResteasyReactiveDotNames.java | 6 +- .../ResteasyReactiveCommonProcessor.java | 4 +- .../common/deployment/SerializersUtil.java | 2 +- .../VetoingAnnotationTransformer.java | 2 +- .../runtime/VertxBufferMessageBodyWriter.java | 8 +- .../spi-deployment/pom.xml | 4 +- .../spi/MessageBodyReaderBuildItem.java | 4 +- .../spi/MessageBodyWriterBuildItem.java | 4 +- .../reactive/spi/RuntimeTypeItem.java | 2 +- .../VertxJsonArrayBasicMessageBodyReader.java | 8 +- .../VertxJsonArrayBasicMessageBodyWriter.java | 8 +- ...VertxJsonObjectBasicMessageBodyReader.java | 8 +- ...VertxJsonObjectBasicMessageBodyWriter.java | 8 +- .../ResteasyReactiveJacksonProcessor.java | 6 +- .../test/AbstractPersonResource.java | 4 +- .../deployment/test/CheeseEndpoint.java | 8 +- .../deployment/test/ContextResolverTest.java | 8 +- .../test/CustomJsonProviderTest.java | 16 +- .../test/DetailedExceptionInReaderTest.java | 10 +- .../deployment/test/EmptyInputTest.java | 4 +- ...ExceptionInReaderWithCustomMapperTest.java | 6 +- .../jackson/deployment/test/FormData.java | 6 +- .../deployment/test/FroMageEndpoint.java | 10 +- .../test/MessageBodyReaderTests.java | 10 +- .../deployment/test/MultipartResource.java | 16 +- .../test/NoopReaderInterceptor.java | 8 +- .../deployment/test/OtherPersonResource.java | 4 +- .../jackson/deployment/test/Person.java | 2 +- .../deployment/test/SimpleJsonResource.java | 22 +- .../deployment/test/StreamingTest.java | 8 +- .../jackson/deployment/test/SuperClass.java | 10 +- .../deployment/test/VertxJsonEndpoint.java | 10 +- .../response/ResponseStringNonAsciiTest.java | 10 +- .../test/response/RestResponseResource.java | 4 +- .../test/streams/StreamResource.java | 14 +- .../test/streams/StreamTestCase.java | 12 +- .../reactive/jackson/SecureField.java | 2 +- .../DefaultMismatchedInputException.java | 4 +- ...ativeInvalidDefinitionExceptionMapper.java | 4 +- .../BasicServerJacksonMessageBodyWriter.java | 8 +- ...eaturedServerJacksonMessageBodyWriter.java | 12 +- .../ServerJacksonMessageBodyReader.java | 10 +- .../VertxJsonArrayMessageBodyReader.java | 4 +- .../VertxJsonArrayMessageBodyWriter.java | 4 +- .../VertxJsonObjectMessageBodyReader.java | 4 +- .../VertxJsonObjectMessageBodyWriter.java | 6 +- .../ResteasyReactiveJaxbProcessor.java | 6 +- .../jaxb/deployment/test/EmptyInputTest.java | 8 +- .../jaxb/deployment/test/MultipartTest.java | 16 +- .../jaxb/deployment/test/SimpleXmlTest.java | 28 +- .../jaxb/deployment/test/SseResourceTest.java | 42 +- .../ServerJaxbMessageBodyReader.java | 15 +- .../ServerJaxbMessageBodyWriter.java | 19 +- .../ResteasyReactiveJsonbCommonProcessor.java | 4 +- .../common/runtime/serialisers/VertxJson.java | 20 +- .../ResteasyReactiveJsonbProcessor.java | 2 +- .../jsonb/deployment/test/CheeseEndpoint.java | 8 +- .../jsonb/deployment/test/EmptyInputTest.java | 6 +- .../deployment/test/MultipartOutputTest.java | 8 +- .../jsonb/deployment/test/Person.java | 2 +- .../deployment/test/SimpleJsonResource.java | 20 +- .../jsonb/deployment/test/StreamingTest.java | 8 +- .../jsonb/deployment/test/SuperClass.java | 10 +- .../deployment/test/VertxJsonEndpoint.java | 10 +- .../deployment/test/sse/SseParserTest.java | 4 +- .../deployment/test/sse/SseResource.java | 14 +- .../deployment/test/sse/SseTestCase.java | 14 +- .../serialization/common/CustomBeanTest.kt | 6 +- .../common/JsonBuilderCustomizerTest.kt | 6 +- .../common/runtime/JsonProducer.kt | 4 +- .../KotlinSerializationProcessor.java | 6 +- .../KotlinSerializationMessageBodyReader.kt | 4 +- .../KotlinSerializationMessageBodyWriter.kt | 6 +- .../kotlin/AbstractSuspendedResponseFilter.kt | 2 +- .../kotlin/ApplicationCoroutineScope.kt | 4 +- .../CoroutineInvocationHandlerFactory.kt | 2 +- .../kotlin/CoroutineMethodProcessor.kt | 2 +- .../runtime/kotlin/FlowToPublisherHandler.kt | 2 +- .../server/runtime/kotlin/PrepareExecution.kt | 2 +- .../deployment/LinksContainerFactory.java | 4 +- .../deployment/RestLinksInjectionTest.java | 4 +- .../links/deployment/TestResource.java | 12 +- .../reactive/links/RestLinksHandler.java | 4 +- .../reactive/links/RestLinksProvider.java | 2 +- .../links/runtime/LinksContainer.java | 2 +- .../links/runtime/RestLinksProviderImpl.java | 4 +- .../runtime/RestLinksProviderProducer.java | 8 +- .../runtime/hal/HalServerResponseFilter.java | 10 +- .../hal/ResteasyReactiveHalService.java | 6 +- .../deployment/AppMessageHelloResource.java | 10 +- .../qute/deployment/HelloResource.java | 14 +- .../qute/deployment/ItemResource.java | 12 +- .../deployment/MissingTemplateResource.java | 2 +- .../TemplateInstanceNonBlockingTest.java | 10 +- .../qute/deployment/TypeErrorResource.java | 4 +- .../qute/runtime/TemplateResponseFilter.java | 8 +- .../runtime/TemplateResponseUniHandler.java | 2 +- .../resteasy/reactive/qute/runtime/Util.java | 10 +- .../ResteasyReactiveServletProcessor.java | 4 +- .../runtime/ResteasyReactiveFilter.java | 12 +- .../runtime/ResteasyReactiveServlet.java | 10 +- .../ResteasyReactiveServletRecorder.java | 4 +- .../runtime/ServletRequestContext.java | 18 +- .../runtime/ServletRequestContextFactory.java | 4 +- .../ServletResteasyReactiveInputStream.java | 2 +- .../CustomResourceProducersGenerator.java | 6 +- .../deployment/FilterClassIntrospector.java | 2 +- .../MessageBodyWriterTransformerUtils.java | 2 +- .../QuarkusMultipartReturnTypeHandler.java | 2 +- .../QuarkusServerEndpointIndexer.java | 2 +- .../ResteasyReactiveCDIProcessor.java | 2 +- .../deployment/ResteasyReactiveProcessor.java | 28 +- .../ResteasyReactiveScanningProcessor.java | 4 +- .../deployment/SecurityTransformerUtils.java | 6 +- .../client/test/ContentTypeHeaderTest.java | 12 +- ...ockingAndNonBlockingOnApplicationTest.java | 8 +- ...BothBlockingAndNonBlockingOnClassTest.java | 4 +- ...othBlockingAndNonBlockingOnMethodTest.java | 4 +- .../test/CustomNonBlockingReturnTypeTest.java | 12 +- .../server/test/EndpointDisabledTest.java | 4 +- .../reactive/server/test/InnerClassTest.java | 4 +- ...pplicationClassesWithBuildProfileTest.java | 8 +- .../test/MultipleHttpAnnotationsTest.java | 8 +- .../server/test/RequestLeakDetectionTest.java | 12 +- .../test/RequestScopedFieldInjectionTest.java | 10 +- .../test/RequestScopedParamConverterTest.java | 10 +- .../server/test/SubResourcesAsBeansTest.java | 8 +- .../server/test/beanparam/BeanParamTest.java | 16 +- .../CustomConverterInBeanParamTest.java | 18 +- ...thAnnotationsInAMethodOfBeanParamTest.java | 14 +- .../FailWithNoAnnotationsInBeanParamTest.java | 12 +- .../NestedBeanParamInSubResourcesTest.java | 12 +- .../cache/CacheOnClassAndMethodsTest.java | 4 +- .../server/test/cache/CacheOnMethodsTest.java | 4 +- .../cache/NoCacheOnClassAndMethodsTest.java | 4 +- .../test/cache/NoCacheOnMethodsTest.java | 4 +- .../server/test/compress/CompressionTest.java | 6 +- .../ConditionalExceptionMappersTest.java | 8 +- .../test/customexceptions/FirstResource.java | 16 +- .../GlobalThrowableExceptionMapperTest.java | 8 +- ...InvalidConditional\316\234appersTest.java" | 6 +- .../MyOtherExceptionMapper.java | 2 +- .../PerClassThrowableExceptionMapperTest.java | 8 +- .../test/customexceptions/SecondResource.java | 6 +- ...tyExceptionMapperWithResourceInfoTest.java | 12 +- .../test/customexceptions/SomeBean.java | 2 +- .../customexceptions/UniExceptionMapper.java | 2 +- .../UnwrappedExceptionTest.java | 4 +- .../AnotherValidNonBlockingFiltersTest.java | 26 +- .../AssertContainerFilter.java | 8 +- .../ConditionalBeanFiltersTest.java | 16 +- .../CustomContainerRequestFilter.java | 6 +- .../CustomContainerResponseFilter.java | 6 +- .../CustomFiltersResource.java | 12 +- .../FilterWithPathParamsTest.java | 8 +- .../IllegalStateExceptionMapper.java | 6 +- .../ImpliedReadBodyRequestFilterTest.java | 8 +- .../InvalidConditionalBeanFiltersTest.java | 6 +- .../InvalidNonBlockingFiltersTest.java | 16 +- .../server/test/customproviders/Metal.java | 2 +- .../test/customproviders/MetalFilter.java | 4 +- .../test/customproviders/NoTargetTest.java | 20 +- .../OptionalRequestFilter.java | 4 +- .../customproviders/OptionsRequestTest.java | 6 +- .../PreMatchingHeadersFilterTest.java | 14 +- .../ReadBodyRequestFilterTest.java | 8 +- .../test/customproviders/ResponseFilter.java | 4 +- .../server/test/customproviders/SomeBean.java | 2 +- .../customproviders/UniExceptionMapper.java | 6 +- .../customproviders/UniFiltersResource.java | 12 +- .../customproviders/UniResponseFilter.java | 2 +- .../UniResponseRequestFilter.java | 8 +- .../customproviders/UniVoidRequestFilter.java | 6 +- .../ValidNonBlockingFiltersTest.java | 22 +- .../customproviders/WithFormBodyTest.java | 4 +- .../test/devmode/SubResourceDevModeTest.java | 14 +- .../test/duplicate/GreetingResource.java | 12 +- .../test/duplicate/GreetingResource2.java | 4 +- .../test/duplicate/GreetingResource3.java | 12 +- .../GeneratedJaxRsResourceTest.java | 4 +- .../reactive/server/test/headers/Dummy.java | 4 +- .../test/headers/ResponseHeaderTest.java | 4 +- .../server/test/headers/VertxHeadersTest.java | 14 +- .../test/mediatype/ContentTypeCaseTest.java | 10 +- .../mediatype/InvalidContentTypeTest.java | 6 +- .../NoAcceptMultipleProducesTest.java | 14 +- .../server/test/multipart/FormData.java | 2 +- .../server/test/multipart/FormDataBase.java | 2 +- .../test/multipart/FormDataSameFileName.java | 2 +- .../multipart/FormDataWithAllUploads.java | 2 +- .../test/multipart/InvalidEncodingTest.java | 12 +- ...ltFormAttributeMultipartFormInputTest.java | 14 +- .../MalformedMultipartInputTest.java | 22 +- .../multipart/MultipartDataInputTest.java | 10 +- .../MultipartOutputFileResponse.java | 2 +- ...artOutputMultipleFileDownloadResponse.java | 2 +- .../MultipartOutputMultipleFileResponse.java | 2 +- .../multipart/MultipartOutputResource.java | 8 +- .../multipart/MultipartOutputResponse.java | 4 +- ...ipartOutputSingleFileDownloadResponse.java | 2 +- ...ipartOutputUsingBlockingEndpointsTest.java | 2 +- ...tipartOutputUsingReactiveEndpointTest.java | 10 +- .../test/multipart/MultipartResource.java | 16 +- .../MultipartResourceWithAllUploads.java | 12 +- .../test/multipart/OtherFormDataBase.java | 2 +- .../multipart/OtherMultipartResource.java | 12 +- ...geFormAttributeMultipartFormInputTest.java | 12 +- .../other/OtherPackageFormDataBase.java | 2 +- .../server/test/path/HelloResource.java | 8 +- .../path/RestApplicationPathTestCase.java | 4 +- .../server/test/providers/FileResource.java | 4 +- .../server/test/providers/FileTestCase.java | 2 +- .../test/providers/InvalidFileResource.java | 4 +- .../test/providers/ParamConverterTest.java | 12 +- .../ProviderConfigInjectionTest.java | 14 +- .../test/providers/WithWriterInterceptor.java | 2 +- .../test/providers/WriterInterceptor.java | 8 +- .../AbortFilterWithLargePayloadTest.java | 16 +- .../resource/basic/AbortingRequestFilter.java | 8 +- .../basic/BasicGenericTypesHandlingTest.java | 16 +- .../basic/ClassLevelMediaTypeTest.java | 8 +- .../basic/CollectionDefaultValueTest.java | 6 +- .../basic/ContainerRequestContextTest.java | 10 +- ...ovariantReturnSubresourceLocatorsTest.java | 6 +- .../resource/basic/DefaultMediaTypeTest.java | 12 +- .../resource/basic/GenericEntityTest.java | 8 +- .../resource/basic/GenericResourceTest.java | 4 +- .../test/resource/basic/HttpHeadersTest.java | 6 +- .../test/resource/basic/InheritanceTest.java | 8 +- .../resource/basic/MatchedResourceTest.java | 10 +- ...TypeFromMessageBodyWriterTestMultiple.java | 8 +- ...MediaTypeNegotiationClientQualityTest.java | 26 +- ...MediaTypeNegotiationServerQualityTest.java | 30 +- .../MediaTypesWithSuffixHandlingTest.java | 16 +- .../basic/MultiInterfaceResLocatorTest.java | 6 +- .../basic/MultipleAcceptHeaderTest.java | 8 +- .../resource/basic/ParameterSubResTest.java | 6 +- .../resource/basic/ResourceLocatorTest.java | 14 +- .../test/resource/basic/ResponseInfoTest.java | 8 +- .../resource/basic/SpecialResourceTest.java | 12 +- .../basic/SubResourceLocatorTest.java | 8 +- .../basic/SubResourceRequestFilterTest.java | 18 +- .../test/resource/basic/UriInfoTest.java | 10 +- .../basic/WiderMappingNegativeTest.java | 6 +- .../resource/ApplicationScopeObject.java | 2 +- .../resource/ClassLevelMediaTypeResource.java | 8 +- .../CollectionDefaultValueResource.java | 12 +- ...antReturnSubresourceLocatorsRootProxy.java | 4 +- ...iantReturnSubresourceLocatorsSubProxy.java | 4 +- ...rnSubresourceLocatorsSubProxyRootImpl.java | 2 +- .../resource/DefaultCharsetResource.java | 6 +- .../resource/DefaultMediaTypeResource.java | 12 +- .../basic/resource/ExtensionResource.java | 12 +- .../resource/GenericEntityDoubleWriter.java | 12 +- .../resource/GenericEntityFloatWriter.java | 12 +- ...cEntityIntegerServerMessageBodyWriter.java | 10 +- .../basic/resource/GenericEntityResource.java | 8 +- .../resource/GenericResourceCrudResource.java | 8 +- .../GenericResourceStudentCrudResource.java | 6 +- .../GenericResourceStudentInterface.java | 12 +- .../GenericResourceStudentReader.java | 12 +- .../GenericResourceStudentWriter.java | 12 +- .../resource/GetAbsolutePathResource.java | 12 +- .../basic/resource/HttpHeadersResource.java | 16 +- .../resource/InheritanceParentResource.java | 4 +- .../InheritanceParentResourceImpl.java | 2 +- .../basic/resource/MatchedResource.java | 10 +- ...iaTypeFromMessageBodyWriterListAsText.java | 10 +- ...diaTypeFromMessageBodyWriterListAsXML.java | 10 +- ...ediaTypeFromMessageBodyWriterResource.java | 18 +- .../MultiInterfaceResLocatorIntf1.java | 6 +- .../MultiInterfaceResLocatorIntf2.java | 6 +- .../MultiInterfaceResLocatorResource.java | 4 +- .../basic/resource/MultipleGetResource.java | 10 +- .../resource/ParameterSubResClassSub.java | 14 +- .../ParameterSubResGenericInterface.java | 4 +- .../resource/ParameterSubResGenericSub.java | 2 +- .../ParameterSubResInternalInterface.java | 2 +- .../basic/resource/ParameterSubResRoot.java | 4 +- .../resource/ParameterSubResRootImpl.java | 2 +- .../basic/resource/ParameterSubResSub.java | 4 +- .../basic/resource/RequestScopedObject.java | 2 +- .../resource/ResourceInfoInjectionFilter.java | 14 +- .../resource/ResourceLocatorBaseResource.java | 8 +- .../ResourceLocatorCollectionResource.java | 2 +- .../resource/ResourceLocatorDirectory.java | 6 +- .../resource/ResourceLocatorReceiver.java | 4 +- .../ResourceLocatorRootInterface.java | 10 +- .../resource/ResourceLocatorSubInterface.java | 8 +- .../resource/ResourceLocatorSubresource.java | 12 +- .../resource/ResourceLocatorSubresource2.java | 10 +- .../ResourceLocatorSubresource3Interface.java | 6 +- .../basic/resource/ResponseInfoResource.java | 10 +- .../resource/basic/resource/ScanProxy.java | 6 +- .../basic/resource/ScanSubresource.java | 6 +- .../resource/SpecialResourceApiResource.java | 12 +- .../SpecialResourceDeleteResource.java | 6 +- .../SpecialResourceStreamResource.java | 6 +- .../SubResourceLocatorBaseCrudService.java | 18 +- .../SubResourceLocatorBaseService.java | 8 +- .../basic/resource/SubResourceLocatorFoo.java | 4 +- .../resource/SubResourceLocatorImpFoo.java | 2 +- ...SubResourceLocatorPlatformServiceImpl.java | 4 +- ...esourceLocatorPlatformServiceResource.java | 6 +- .../SubResourceLocatorUserResource.java | 20 +- .../resource/UriInfoEncodedQueryResource.java | 10 +- .../UriInfoEncodedTemplateResource.java | 12 +- .../UriInfoEscapedMatrParamResource.java | 6 +- .../resource/UriInfoQueryParamsResource.java | 12 +- .../resource/UriInfoRelativizeResource.java | 12 +- .../basic/resource/UriInfoSimpleResource.java | 10 +- .../UriInfoSimpleSingletonResource.java | 10 +- .../resource/WiderMappingDefaultOptions.java | 4 +- .../basic/resource/WiderMappingResource.java | 4 +- .../test/response/ChunkedResponseTest.java | 16 +- .../test/response/NullHeaderTestCase.java | 14 +- .../server/test/response/ResponseTest.java | 4 +- .../test/response/RestResponseResource.java | 14 +- .../filters/AsyncFilterExceptionMapper.java | 8 +- .../filters/AsyncPreMatchRequestFilter1.java | 6 +- .../filters/AsyncPreMatchRequestFilter2.java | 6 +- .../filters/AsyncPreMatchRequestFilter3.java | 6 +- .../async/filters/AsyncRequestFilter.java | 2 +- .../async/filters/AsyncRequestFilter1.java | 4 +- .../async/filters/AsyncRequestFilter2.java | 4 +- .../async/filters/AsyncRequestFilter3.java | 4 +- .../filters/AsyncRequestFilterResource.java | 12 +- .../async/filters/AsyncRequestFilterTest.java | 10 +- .../resteasy/async/filters/AsyncResource.java | 14 +- .../async/filters/AsyncResponseFilter.java | 2 +- .../async/filters/AsyncResponseFilter1.java | 4 +- .../async/filters/AsyncResponseFilter2.java | 4 +- .../async/filters/AsyncResponseFilter3.java | 4 +- ...thenticationFailedExceptionHeaderTest.java | 2 +- ...enticationRedirectExceptionHeaderTest.java | 2 +- ...enticationRedirectExceptionMapperTest.java | 4 +- .../security/CustomExceptionMapperTest.java | 8 +- .../server/test/security/HelloResource.java | 6 +- .../security/PermitAllBlockingResource.java | 6 +- .../test/security/PermitAllResource.java | 6 +- ...iveAuthCompletionExceptionHandlerTest.java | 2 +- ...tiveAuthCompletionExceptionMapperTest.java | 6 +- ...veAuthHttpPolicyForbiddenExMapperTest.java | 10 +- ...iveAuthHttpPolicyForbiddenHandlerTest.java | 6 +- .../RolesAllowedBlockingResource.java | 10 +- .../security/RolesAllowedJaxRsTestCase.java | 10 +- .../test/security/RolesAllowedResource.java | 10 +- .../test/security/RolesAllowedService.java | 4 +- .../security/RolesAllowedServiceResource.java | 8 +- .../test/security/SecurityOverrideFilter.java | 10 +- .../SecurityWithMethodGenericsTest.java | 18 +- .../security/SerializationRolesResource.java | 8 +- .../test/security/UnsecuredResource.java | 8 +- .../test/security/UnsecuredSubResource.java | 4 +- .../server/test/security/UserResource.java | 8 +- .../test/simple/ApplicationPathTest.java | 8 +- .../server/test/simple/ApplicationTest.java | 18 +- .../simple/ApplicationWithBlockingTest.java | 6 +- .../reactive/server/test/simple/Bar.java | 2 +- .../server/test/simple/BeanParamSubClass.java | 2 +- .../test/simple/BeanParamSuperClass.java | 12 +- .../test/simple/BlockingWithFilterTest.java | 10 +- .../server/test/simple/BuildProfileTest.java | 24 +- .../test/simple/ContextParamFromCdiTest.java | 12 +- ...icFeatureRequestFilterWithLowPriority.java | 8 +- .../simple/FeatureMappedExceptionMapper.java | 4 +- ...atureRequestFilterWithHighestPriority.java | 8 +- ...eatureRequestFilterWithNormalPriority.java | 4 +- .../test/simple/FeatureResponseFilter.java | 6 +- .../test/simple/FieldInjectedResource.java | 14 +- .../simple/FieldInjectedSubClassResource.java | 16 +- .../reactive/server/test/simple/Foo.java | 2 +- .../test/simple/HeaderParamResource.java | 6 +- .../server/test/simple/HelloService.java | 4 +- .../simple/IllegalClassExceptionMapper.java | 6 +- .../server/test/simple/InterfaceResource.java | 8 +- .../test/simple/InterfaceResourceImpl.java | 2 +- .../test/simple/InterfaceWithImplTest.java | 8 +- .../test/simple/Issue22408TestCase.java | 8 +- ...lDateCustomParamConverterProviderTest.java | 14 +- .../test/simple/LocalDateParamTest.java | 8 +- .../simple/MapWithParamConverterTest.java | 12 +- .../test/simple/MyParameterConverter.java | 2 +- .../test/simple/MyParameterProvider.java | 6 +- .../test/simple/NewParamsRestResource.java | 28 +- .../simple/OptionalQueryParamResource.java | 6 +- .../server/test/simple/OtherBeanParam.java | 8 +- .../reactive/server/test/simple/Person.java | 2 +- .../test/simple/QueryParamResource.java | 10 +- .../test/simple/RawListQueryParamTest.java | 4 +- .../RequestScopeExceptionMapperTest.java | 18 +- .../simple/ResourceInfoInjectingFilter.java | 10 +- .../server/test/simple/RootAResource.java | 4 +- .../server/test/simple/RootBResource.java | 4 +- .../test/simple/SeparatorQueryParamTest.java | 6 +- .../server/test/simple/SimpleBeanParam.java | 12 +- .../simple/SimpleQuarkusRestResource.java | 52 +-- .../server/test/simple/SubResource.java | 10 +- .../reactive/server/test/simple/TRACE.java | 2 +- .../test/simple/TestBarRequestFilter.java | 10 +- .../test/simple/TestBarResponseFilter.java | 12 +- .../test/simple/TestDynamicFeature.java | 10 +- .../test/simple/TestExceptionMapper.java | 6 +- .../server/test/simple/TestFeature.java | 8 +- .../test/simple/TestFooBarRequestFilter.java | 10 +- .../test/simple/TestFooBarResponseFilter.java | 12 +- .../test/simple/TestFooRequestFilter.java | 12 +- .../test/simple/TestFooResponseFilter.java | 12 +- .../simple/TestPreMatchRequestFilter.java | 8 +- .../server/test/simple/TestRequestFilter.java | 6 +- .../TestRequestFilterWithHighPriority.java | 10 +- .../TestRequestFilterWithHighestPriority.java | 10 +- .../test/simple/TestResponseFilter.java | 8 +- .../reactive/server/test/simple/TestUtil.java | 2 +- .../server/test/simple/TestWriter.java | 12 +- .../test/status/ResponseStatusTest.java | 4 +- .../server/test/stream/StreamResource.java | 14 +- .../server/test/stream/StreamTestCase.java | 8 +- .../test/stress/SuspendResumeStressTest.java | 4 +- .../AnnotationTransformationTest.java | 4 +- .../test/websocket/WebSocketResource.java | 4 +- .../runtime/NotFoundExceptionMapper.java | 14 +- .../runtime/QuarkusContextProducers.java | 10 +- .../server/runtime/QuarkusCurrentRequest.java | 2 +- ...QuarkusResteasyReactiveRequestContext.java | 2 +- .../ResteasyReactiveCompressionHandler.java | 4 +- .../runtime/ResteasyReactiveRecorder.java | 2 +- .../ResteasyReactiveSecurityContext.java | 2 +- .../ResteasyReactiveTestHttpProvider.java | 2 +- .../StandardSecurityCheckInterceptor.java | 18 +- ...thenticationCompletionExceptionMapper.java | 4 +- .../AuthenticationFailedExceptionMapper.java | 4 +- ...AuthenticationRedirectExceptionMapper.java | 6 +- .../ForbiddenExceptionMapper.java | 4 +- .../SecurityExceptionMapperUtil.java | 2 +- .../UnauthorizedExceptionMapper.java | 4 +- .../SecurityContextOverrideHandler.java | 2 +- .../VertxWebSocketParamExtractor.java | 2 +- .../mapping/TypeSignatureParserTest.java | 2 +- .../server/spi/ContextTypeBuildItem.java | 2 +- .../spi/UnwrappedExceptionBuildItem.java | 2 +- .../RestClientReactiveJacksonProcessor.java | 4 +- .../test/BadRequestNotPropagatedTestCase.java | 20 +- .../reactive/jackson/test/MultiSseTest.java | 10 +- .../ClientJacksonMessageBodyReader.java | 10 +- .../ClientJacksonMessageBodyWriter.java | 10 +- .../RestClientReactiveJaxbProcessor.java | 6 +- .../reactive/jaxb/test/SimpleJaxbTest.java | 10 +- .../runtime/ClientJaxbMessageBodyReader.java | 19 +- .../jaxb/runtime/ClientMessageBodyWriter.java | 23 +- .../RestClientReactiveJsonbProcessor.java | 2 +- .../reactive/jsonb/test/SimpleJsonbTest.java | 8 +- ...tReactiveKotlinSerializationProcessor.java | 6 +- .../ClientKotlinMessageBodyReader.kt | 6 +- .../ClientKotlinMessageBodyWriter.kt | 6 +- .../kotlin/test/EncodeDefaultValuesTest.kt | 2 +- .../reactive/kotlin/test/ExplicitNullsTest.kt | 2 +- .../reactive/kotlin/test/LenientTest.kt | 2 +- .../reactive/kotlin/test/PrettyPrintTest.kt | 2 +- .../ClientExceptionMapperHandler.java | 6 +- .../client/reactive/deployment/DotNames.java | 4 +- .../MicroProfileRestClientEnricher.java | 6 +- .../RestClientReactiveProcessor.java | 12 +- .../reactive/ArrayPairsQueryParamTest.java | 8 +- .../rest/client/reactive/AsyncHeaderTest.java | 10 +- .../client/reactive/BasicRestClientTest.java | 8 +- .../reactive/ClassNameScopeOverrideTest.java | 6 +- .../ClientAndServerSharingResponseTest.java | 16 +- .../reactive/ConfigKeyScopeOverrideTest.java | 6 +- .../client/reactive/ConfigurationTest.java | 6 +- .../reactive/ConnectionPoolSizeTest.java | 6 +- ...mHttpOptionsViaInjectedRestClientTest.java | 10 +- ...sViaProgrammaticallyClientCreatedTest.java | 8 +- .../rest/client/reactive/EmptyPostTest.java | 6 +- .../rest/client/reactive/FormTest.java | 14 +- .../reactive/GlobalConfigurationTest.java | 8 +- .../rest/client/reactive/HelloClient.java | 10 +- .../rest/client/reactive/HelloClient2.java | 10 +- .../reactive/HelloClientWithBaseUri.java | 17 +- .../client/reactive/HelloNonSimpleClient.java | 14 +- .../rest/client/reactive/HelloResource.java | 18 +- .../rest/client/reactive/InvalidHostTest.java | 8 +- .../rest/client/reactive/InvalidURITest.java | 4 +- .../reactive/LegacyConfigurationTest.java | 2 +- .../rest/client/reactive/MapParamsTest.java | 12 +- .../client/reactive/MediaTypeSuffixTest.java | 6 +- .../MpClassNameScopeOverrideTest.java | 6 +- .../MpConfigKeyScopeOverrideTest.java | 6 +- .../reactive/MpGlobalScopeOverrideTest.java | 6 +- .../rest/client/reactive/MultiNdjsonTest.java | 10 +- .../rest/client/reactive/PlaylistService.java | 2 +- .../reactive/RequestLeakDetectionTest.java | 12 +- .../reactive/RestClientListenerTest.java | 10 +- .../reactive/ShortNameScopeOverrideTest.java | 6 +- .../rest/client/reactive/StreamJsonTest.java | 10 +- .../rest/client/reactive/TestBean.java | 2 +- .../TestJacksonBasicMessageBodyReader.java | 2 +- .../TestJacksonBasicMessageBodyWriter.java | 10 +- .../reactive/TestRestClientListener.java | 4 +- .../client/reactive/VoidReturnTypeTest.java | 6 +- .../client/reactive/beanTypes/Client.java | 8 +- .../client/reactive/beanTypes/ClientMock.java | 4 +- .../client/reactive/beanTypes/MyBean.java | 4 +- .../beanTypes/ResourceBeanTypeTest.java | 8 +- .../reactive/beanparam/BeanFormParamTest.java | 18 +- .../reactive/beanparam/BeanParamTest.java | 14 +- .../reactive/beanparam/BeanPathParamTest.java | 8 +- .../reactive/configuration/EchoResource.java | 16 +- .../converter/ParamConverterProviderTest.java | 20 +- .../reactive/error/ErrorMappingTest.java | 8 +- .../error/ResponseExceptionMapperTest.java | 8 +- .../HighPriorityExceptionMapper.java | 4 +- .../LowPriorityExceptionMapper.java | 4 +- ...ProgrammaticClientExceptionMapperTest.java | 6 +- .../RegisteredClientExceptionMapperTest.java | 8 +- .../error/clientexceptionmapper/Resource.java | 6 +- .../client/reactive/form/FormParamTest.java | 14 +- .../reactive/form/FormWithConverterTest.java | 16 +- .../rest/client/reactive/form/Resource.java | 14 +- .../ft/AsyncRestClientFallbackTest.java | 8 +- .../reactive/ft/RestClientFallbackTest.java | 8 +- .../ft/UniRestClientFallbackTest.java | 8 +- .../ClientHeaderParamFromPropertyTest.java | 8 +- .../client/reactive/headers/CookieTest.java | 8 +- .../client/reactive/headers/HeaderTest.java | 12 +- ...ReactiveClientHeadersFromProviderTest.java | 22 +- .../reactive/headers/UriUserInfoTest.java | 8 +- .../headers/UserAgentFromConfigTest.java | 8 +- .../reactive/headers/UserAgentTest.java | 8 +- .../lock/prevention/CallMakingResource.java | 4 +- .../reactive/lock/prevention/TestClient.java | 8 +- .../lock/prevention/TestResource.java | 8 +- .../reactive/multipart/MultiByteFileTest.java | 14 +- .../MultiByteWithRemoteErrorTest.java | 10 +- .../multipart/MultipartDetectionTest.java | 10 +- .../multipart/MultipartFilenameTest.java | 12 +- .../reactive/multipart/MultipartResource.java | 6 +- .../multipart/MultipartResponseTest.java | 15 +- .../reactive/provider/GlobalFeature.java | 6 +- .../provider/GlobalRequestFilter.java | 4 +- ...lobalRequestFilterConstrainedToServer.java | 6 +- .../provider/GlobalResponseFilter.java | 6 +- .../provider/GlobalResponseFilterLowPrio.java | 6 +- .../client/reactive/provider/HelloClient.java | 12 +- .../provider/HelloClientWithFilter.java | 12 +- .../ProviderDisabledAutodiscoveryTest.java | 2 +- .../provider/ProviderPriorityTest.java | 2 +- .../reactive/provider/ProviderTest.java | 2 +- .../provider/ResponseFilterLowestPrio.java | 4 +- .../rest/client/reactive/proxy/Client1.java | 6 +- .../rest/client/reactive/proxy/Client2.java | 8 +- .../rest/client/reactive/proxy/Client3.java | 8 +- .../rest/client/reactive/proxy/Client4.java | 8 +- .../rest/client/reactive/proxy/Client5.java | 6 +- .../rest/client/reactive/proxy/Client6.java | 6 +- .../reactive/proxy/GlobalNonProxyTest.java | 2 +- .../rest/client/reactive/proxy/ProxyTest.java | 2 +- .../proxy/SystemPropertyProxyTest.java | 2 +- .../SystemPropertyProxyWithAuthTest.java | 2 +- .../proxy/ViaHeaderReturningResource.java | 6 +- .../ClientQueryParamFromMethodTest.java | 8 +- .../ClientQueryParamFromPropertyTest.java | 8 +- .../client/reactive/queries/QueryTest.java | 12 +- .../reactive/redirect/RedirectTest.java | 2 +- .../redirect/RedirectingResource.java | 8 +- .../redirect/RedirectingResourceClient.java | 8 +- .../registerclientheaders/EchoClient.java | 12 +- .../HeaderNoPassingClient.java | 4 +- .../HeaderPassingClient.java | 4 +- .../HeaderSettingClient.java | 6 +- .../MultipleHeadersBindingClient.java | 6 +- .../MyHeadersFactory.java | 8 +- .../registerclientheaders/TestResource.java | 20 +- .../client/reactive/ssl/TrustAllTest.java | 4 +- .../client/reactive/stork/HelloClient.java | 4 +- .../client/reactive/stork/HelloResource.java | 4 +- .../reactive/stork/PassThroughResource.java | 4 +- .../reactive/stork/StorkIntegrationTest.java | 4 +- .../client/reactive/subresource/Resource.java | 12 +- .../reactive/subresource/SubResourceTest.java | 40 +- .../timeout/BuilderReadTimeoutTest.java | 10 +- .../timeout/RegisterReadTimeoutTest.java | 10 +- ...lassname-scope-test-application.properties | 2 +- ...onfigkey-scope-test-application.properties | 2 +- ...p-global-scope-test-application.properties | 2 +- .../reactive/ClientExceptionMapper.java | 4 +- .../rest/client/reactive/HeaderFiller.java | 2 +- .../ReactiveClientHeadersFactory.java | 2 +- ...MicroprofileRestClientExceptionMapper.java | 6 +- .../runtime/HeaderCapturingServerFilter.java | 4 +- .../reactive/runtime/HeaderContainer.java | 8 +- .../MicroProfileRestClientRequestFilter.java | 8 +- .../MicroProfileRestClientResponseFilter.java | 6 +- .../reactive/runtime/NoOpHeaderFiller.java | 2 +- .../runtime/RestClientBuilderImpl.java | 7 +- .../RestClientReactiveCDIWrapperBase.java | 2 +- .../runtime/RestClientReactiveConfig.java | 6 +- ...steasyReactiveResponseExceptionMapper.java | 2 +- .../devconsole/RestClientsContainer.java | 6 +- ...eBodyReaderErrorMessageContextualizer.java | 2 +- ...eBodyReaderErrorMessageContextualizer.java | 2 +- .../RestClientCDIDelegateBuilderTest.java | 7 +- .../java/io/quarkus/scheduler/Scheduled.java | 6 +- .../java/io/quarkus/scheduler/Scheduler.java | 2 +- .../SkipConcurrentExecutionInvoker.java | 2 +- .../common/runtime/SkipPredicateInvoker.java | 2 +- .../common/runtime/StatusEmitterInvoker.java | 2 +- .../common/runtime/SyntheticScheduled.java | 4 +- .../ApplicationNotRunningPredicateTest.java | 4 +- .../test/ConcurrentExecutionSkipTest.java | 2 +- .../test/ConditionalExecutionTest.java | 4 +- .../scheduler/test/DisabledSchedulerTest.java | 2 +- .../test/DuplicateJobIdentityTest.java | 2 +- .../scheduler/test/DuplicatedContextTest.java | 2 +- .../scheduler/test/FailedExecutionTest.java | 2 +- .../scheduler/test/GetSchedulerJobsTest.java | 2 +- .../test/InvalidConditionalExecutionTest.java | 2 +- .../test/InvalidCronExpressionTest.java | 2 +- .../test/InvalidDelayedExpressionTest.java | 2 +- .../test/InvalidEveryExpressionTest.java | 2 +- .../test/InvalidScheduledMethodTest.java | 2 +- .../scheduler/test/NoExpressionTest.java | 2 +- .../test/OverdueCronExecutionTest.java | 2 +- .../scheduler/test/OverdueExecutionTest.java | 2 +- .../test/PausedMethodExpressionTest.java | 6 +- .../scheduler/test/PausedMethodTest.java | 8 +- .../test/PausedResumedMethodTest.java | 8 +- .../scheduler/test/PausedSchedulerTest.java | 2 +- .../scheduler/test/RequestContextJobs.java | 6 +- .../test/SuccessfulExecutionTest.java | 2 +- .../test/devconsole/BodyHandlerBean.java | 4 +- .../test/devconsole/NeverRunTask.java | 2 +- .../ScheduledMethodNotInheritedTest.java | 2 +- .../test/metrics/MicrometerTimedTest.java | 2 +- .../NonBlockingScheduledMethodTest.java | 8 +- .../programmatic/ForcedStartModeJobsTest.java | 2 +- .../programmatic/HaltedStartModeJobsTest.java | 2 +- .../programmatic/ProgrammaticJobsTest.java | 4 +- .../runtime/ApplicationCoroutineScope.kt | 4 +- extensions/scheduler/runtime/pom.xml | 4 +- .../scheduler/runtime/SimpleScheduler.java | 16 +- .../QuarkusSecurityJpaProcessor.java | 6 +- .../security/jpa/BCryptUserEntity.java | 10 +- .../security/jpa/CustomPasswordProvider.java | 2 +- .../jpa/CustomPasswordUserEntity.java | 10 +- .../security/jpa/ExternalRolesUserEntity.java | 16 +- .../security/jpa/MinimalUserEntity.java | 10 +- .../MultipleRolesInCollectionUserEntity.java | 16 +- .../security/jpa/MultipleRolesUserEntity.java | 10 +- .../security/jpa/NaturalIdUserEntity.java | 10 +- .../security/jpa/PanacheRoleEntity.java | 8 +- .../security/jpa/PanacheUserEntity.java | 12 +- .../jpa/ParametrizedPathsResource.java | 8 +- .../quarkus/security/jpa/PlainUserEntity.java | 10 +- .../io/quarkus/security/jpa/RoleEntity.java | 12 +- .../security/jpa/RolesEndpointClassLevel.java | 10 +- .../jpa/SingleRoleSecuredServlet.java | 14 +- .../security/jpa/SubjectExposingResource.java | 16 +- .../quarkus/security/jpa/TestApplication.java | 6 +- .../jpa/UserEntityIdentityProvider.java | 4 +- .../runtime/AbstractJpaIdentityProvider.java | 2 +- .../jpa/runtime/JpaIdentityProvider.java | 6 +- .../runtime/JpaTrustedIdentityProvider.java | 6 +- .../QuarkusSecurityWebAuthnProcessor.java | 2 +- .../webauthn/test/ManualResource.java | 8 +- .../security/webauthn/test/TestResource.java | 10 +- .../webauthn/test/WebAuthnAutomaticTest.java | 2 +- .../WebAuthnBlockingTestUserProvider.java | 4 +- .../webauthn/test/WebAuthnManualTest.java | 2 +- .../test/WebAuthnManualTestUserProvider.java | 4 +- .../WebAuthnNonBlockingTestUserProvider.java | 2 +- .../test/WebAuthnStoringTestUserProvider.java | 4 +- extensions/security-webauthn/runtime/pom.xml | 4 +- .../WebAuthnAuthenticatorStorage.java | 6 +- .../webauthn/WebAuthnIdentityProvider.java | 4 +- .../webauthn/WebAuthnLoginResponse.java | 4 +- .../webauthn/WebAuthnRegisterResponse.java | 4 +- .../security/webauthn/WebAuthnResponse.java | 6 +- .../security/webauthn/WebAuthnSecurity.java | 4 +- .../WebAuthnTrustedIdentityProvider.java | 4 +- .../quarkus/security/deployment/DotNames.java | 6 +- .../SecurityAnnotationsRegistrar.java | 6 +- .../deployment/SecurityProcessor.java | 2 +- .../deployment/SecurityTransformerUtils.java | 4 +- .../test/cdi/BeanWithSecuredFinalMethod.java | 6 +- .../test/cdi/CDIAccessDefaultTest.java | 4 +- .../cdi/CDIAccessDenyUnannotatedTest.java | 4 +- .../security/test/cdi/InvalidBean.java | 4 +- .../SecurityAnnotationOnFinalMethodTest.java | 2 +- ...inalMethodWithDisableFinalRemovalTest.java | 4 +- .../test/cdi/app/BeanWithSecuredMethods.java | 8 +- .../test/cdi/app/SubclassWithDenyAll.java | 10 +- .../test/cdi/app/SubclassWithPermitAll.java | 8 +- .../cdi/app/SubclassWithoutAnnotations.java | 2 +- .../BeanWithNoSecurityAnnotations.java | 2 +- .../BeanWithSecurityAnnotations.java | 8 +- .../BeanWithSecurityAnnotationsSubBean.java | 2 +- .../app/denied/unnanotated/PermitAllBean.java | 4 +- .../denied/unnanotated/PermitAllSubBean.java | 4 +- .../ConfigExpressionDetectionTest.java | 2 +- .../RolesAllowedExpressionFailureTest.java | 4 +- .../RolesAllowedExpressionTest.java | 6 +- .../spi/runtime/AuthorizationController.java | 2 +- ...evModeDisabledAuthorizationController.java | 8 +- .../IdentityProviderManagerCreator.java | 8 +- .../runtime/SecurityIdentityAssociation.java | 6 +- .../runtime/SecurityIdentityProxy.java | 4 +- .../runtime/X509IdentityProvider.java | 2 +- .../interceptor/AuthenticatedInterceptor.java | 10 +- .../interceptor/DenyAllInterceptor.java | 12 +- .../interceptor/PermitAllInterceptor.java | 12 +- .../interceptor/RolesAllowedInterceptor.java | 12 +- .../interceptor/SecurityConstrainer.java | 4 +- .../runtime/interceptor/SecurityHandler.java | 6 +- .../AdditionalSecuredMethodsBuildItem.java | 4 +- .../spi/SecurityTransformerUtils.java | 6 +- .../security/test/utils/IdentityMock.java | 8 +- .../test/utils/TestIdentityProvider.java | 2 +- .../SmallRyeContextPropagationProcessor.java | 2 +- .../deployment/test/AllClearedConfigTest.java | 2 +- .../test/AllUnchangedConfigTest.java | 2 +- .../context/deployment/test/NoConfigTest.java | 2 +- .../cdi/ConfiguredAndSharedBeansTest.java | 10 +- .../test/cdi/ContextProviderDisabledTest.java | 8 +- .../test/cdi/ContextProviderEnabledTest.java | 6 +- .../SmallRyeContextPropagationProvider.java | 6 +- .../SmallRyeFaultToleranceProcessor.java | 4 +- .../faulttolerance/test/ObjectBeanTest.java | 4 +- .../test/asynchronous/AsynchronousBean.java | 2 +- .../test/asynchronous/AsynchronousTest.java | 2 +- .../additional/AsyncNonBlockingService.java | 2 +- .../additional/AsyncNonBlockingTest.java | 2 +- .../BlockingNonBlockingOnClassService.java | 2 +- .../BlockingNonBlockingOnClassTest.java | 2 +- .../BlockingNonBlockingOnMethodService.java | 2 +- .../BlockingNonBlockingOnMethodTest.java | 2 +- .../additional/BlockingService.java | 2 +- .../asynchronous/additional/BlockingTest.java | 2 +- .../additional/BothAsyncOnClassService.java | 2 +- .../additional/BothAsyncOnClassTest.java | 2 +- .../additional/BothAsyncOnMethodService.java | 2 +- .../additional/BothAsyncOnMethodTest.java | 2 +- .../additional/NonblockingService.java | 2 +- .../additional/NonblockingTest.java | 2 +- .../FaultToleranceContextPropagationTest.java | 8 +- .../NoncompatNonblockingService.java | 2 +- .../noncompat/NoncompatNonblockingTest.java | 2 +- .../mutiny/MutinyFaultToleranceTest.java | 2 +- .../types/mutiny/MutinyHelloService.java | 2 +- .../resubscription/MutinyHelloService.java | 2 +- .../MutinyResubscriptionTest.java | 2 +- .../test/bukhead/BulkheadBean.java | 2 +- .../test/bukhead/BulkheadTest.java | 2 +- .../circuitbreaker/CircuitBreakerBean.java | 2 +- .../circuitbreaker/CircuitBreakerTest.java | 2 +- .../CircuitBreakerNameInheritanceTest.java | 2 +- .../duplicate/SubCircuitBreakerService.java | 2 +- .../duplicate/SuperCircuitBreakerService.java | 2 +- .../inheritance/CircuitBreakerService1.java | 2 +- .../inheritance/CircuitBreakerService2.java | 2 +- .../DuplicateCircuitBreakerNameTest.java | 2 +- .../test/fallback/FallbackBean.java | 2 +- .../test/fallback/FallbackTest.java | 2 +- .../test/programmatic/HelloService.java | 2 +- .../ProgrammaticCircuitBreakerTest.java | 2 +- .../test/ratelimit/RateLimitBean.java | 2 +- .../test/ratelimit/RateLimitTest.java | 2 +- .../faulttolerance/test/retry/RetryBean.java | 2 +- .../faulttolerance/test/retry/RetryTest.java | 2 +- .../backoff/ClassAndMethodBackoffService.java | 2 +- .../backoff/ClassAndMethodBackoffTest.java | 2 +- .../RetryOnClassBackoffOnMethodService.java | 2 +- .../RetryOnClassBackoffOnMethodTest.java | 2 +- .../RetryOnMethodBackoffOnClassService.java | 2 +- .../RetryOnMethodBackoffOnClassTest.java | 2 +- .../backoff/TwoBackoffsOnMethodService.java | 2 +- .../backoff/TwoBackoffsOnMethodTest.java | 2 +- .../test/timeout/TimeoutBean.java | 2 +- .../test/timeout/TimeoutTest.java | 2 +- .../runtime/QuarkusAsyncExecutorProvider.java | 8 +- .../QuarkusExistingCircuitBreakerNames.java | 6 +- .../QuarkusFallbackHandlerProvider.java | 12 +- ...uarkusFaultToleranceOperationProvider.java | 6 +- .../SmallRyeFaultToleranceRecorder.java | 2 +- .../SmallRyeGraphQLClientProcessor.java | 4 +- .../DynamicGraphQLClientInjectionTest.java | 2 +- ...LClientInjectionWithQuarkusConfigTest.java | 2 +- .../deployment/StorkAndGraphQLClientTest.java | 2 +- .../TypesafeGraphQLClientFQNameTest.java | 2 +- .../TypesafeGraphQLClientInjectionTest.java | 2 +- ...LClientInjectionWithQuarkusConfigTest.java | 2 +- .../TypesafeGraphQLClientShortcutTest.java | 2 +- .../deployment/model/TestingGraphQLApi.java | 2 +- .../GraphQLClientConfigurationMergerBean.java | 6 +- .../deployment/SmallRyeGraphQLProcessor.java | 4 +- .../deployment/AbstractGraphQLTest.java | 8 +- .../BeanValidationGraphQLDirectivesTest.java | 4 +- .../deployment/ConcurrentAuthTest.java | 4 +- .../deployment/GraphQLBlockingModeTest.java | 2 +- .../GraphQLCDIContextPropagationTest.java | 4 +- .../GraphQLTerminateContextTest.java | 2 +- .../graphql/deployment/GraphQLThreadTest.java | 2 +- ...hQLValidationMessagesLocalizationTest.java | 2 +- .../deployment/InjectRoutingContextTest.java | 2 +- .../deployment/MetricsDisabledTest.java | 2 +- .../graphql/deployment/MetricsTest.java | 4 +- .../deployment/RequestContextTest.java | 2 +- .../deployment/RequestLeakDetectionTest.java | 6 +- .../graphql/deployment/SecurityTest.java | 2 +- .../SmallRyeGraphQLContextTestCase.java | 4 +- .../graphql/deployment/TestResource.java | 4 +- .../SmallRyeGraphQLAbstractHandler.java | 8 +- .../SmallRyeGraphQLExecutionHandler.java | 8 +- .../SmallRyeGraphQLLocaleResolver.java | 2 +- .../runtime/SmallRyeGraphQLSchemaHandler.java | 2 +- .../deployment/SmallRyeHealthProcessor.java | 2 +- .../test/AsyncDispatchedThreadTest.java | 2 +- .../health/test/BasicHealthCheck.java | 2 +- .../health/test/DispatchedThreadTest.java | 2 +- .../health/test/ExpectedBeansUnitTest.java | 6 +- .../health/test/FailingHealthCheck.java | 2 +- .../smallrye/health/test/FailingUnitTest.java | 6 +- .../HealthCheckContextPropagationTest.java | 8 +- .../test/HealthCheckDefaultScopeTest.java | 4 +- .../HealthCheckProducerDefaultScopeTest.java | 2 +- .../smallrye/health/test/OpenApiRoute.java | 2 +- extensions/smallrye-health/runtime/pom.xml | 1 - .../QuarkusAsyncHealthCheckFactory.java | 4 +- .../runtime/ShutdownReadinessCheck.java | 2 +- .../runtime/ShutdownReadinessListener.java | 4 +- .../jwt/deployment/SmallRyeJwtProcessor.java | 4 +- .../jwt/test/AuthenticatedEndpoint.java | 4 +- .../test/CustomSecurityIdentityAugmentor.java | 2 +- .../jwt/test/DefaultGroupsEndpoint.java | 16 +- .../jwt/test/DefaultScopedEndpoint.java | 24 +- ...oactiveAuthFailedExceptionMappingTest.java | 2 +- ...roactiveAuthFailedExceptionMapperTest.java | 4 +- .../io/quarkus/jwt/test/GreetingService.java | 2 +- .../jwt/test/JsonValuejectionEndpoint.java | 26 +- .../io/quarkus/jwt/test/JwtAuthUnitTest.java | 6 +- .../jwt/test/JwtCallerPrincipalUnitTest.java | 8 +- .../quarkus/jwt/test/JwtParserEndpoint.java | 10 +- .../quarkus/jwt/test/PermitAllEndpoint.java | 6 +- .../jwt/test/PrimitiveInjectionEndpoint.java | 20 +- .../jwt/test/PrimitiveInjectionUnitTest.java | 6 +- .../jwt/test/PrincipalInjectionEndpoint.java | 26 +- .../jwt/test/PrincipalInjectionUnitTest.java | 6 +- .../jwt/test/PublicKeyLocationConfigTest.java | 2 +- .../jwt/test/RequestScopedEndpoint.java | 26 +- .../jwt/test/RequiredClaimsEndpoint.java | 20 +- .../jwt/test/RequiredClaimsUnitTest.java | 6 +- .../io/quarkus/jwt/test/RolesEndpoint.java | 28 +- .../io/quarkus/jwt/test/ScopingUnitTest.java | 6 +- .../test/TestJWTCallerPrincipalFactory.java | 2 +- .../jwt/runtime/auth/JWTAuthMechanism.java | 4 +- .../auth/JsonWebTokenCredentialProducer.java | 6 +- .../runtime/auth/JwtPrincipalProducer.java | 12 +- .../jwt/runtime/auth/MpJwtValidator.java | 4 +- .../runtime/auth/RawOptionalClaimCreator.java | 4 +- .../deployment/JaxRsMetricsProcessor.java | 2 +- .../deployment/SmallRyeMetricsDotNames.java | 4 +- .../deployment/SmallRyeMetricsProcessor.java | 2 +- .../test/java/DefaultPackageMetricsTest.java | 2 +- .../deployment/DevModeMetricRegistryTest.java | 10 +- .../deployment/DevModeMetricsTest.java | 10 +- .../metrics/jaxrs/JaxRsMetricsTestCase.java | 4 +- .../metrics/jaxrs/MetricsResource.java | 10 +- .../registration/DefaultMethodTest.java | 6 +- .../StereotypeCountedClassTest.java | 2 +- .../stereotype/stereotypes/CountMe.java | 2 +- .../smallrye/metrics/test/MetricResource.java | 8 +- .../MetricsFromMetricsFactoryTestCase.java | 2 +- .../runtime/QuarkusRestEasyMetricsFilter.java | 14 +- .../runtime/QuarkusRestMetricsFilter.java | 2 +- .../runtime/SmallRyeMetricsHandler.java | 2 +- .../runtime/SmallRyeMetricsRecorder.java | 2 +- .../openapi/deployment/RESTEasyExtension.java | 4 +- .../openapi/test/hotreload/MyResource.java | 4 +- .../test/hotreload/MySecondResource.java | 4 +- .../test/jaxrs/AbstractAutoTagResource.java | 12 +- .../test/jaxrs/AutoTagFetchableResource.java | 2 +- .../openapi/test/jaxrs/AutoTagResource.java | 2 +- .../jaxrs/DefaultContentTypeResource.java | 12 +- .../openapi/test/jaxrs/MyOASFilter.java | 2 +- .../openapi/test/jaxrs/OpenApiResource.java | 8 +- ...nApiResourceAuthenticatedAtClassLevel.java | 4 +- ...ApiResourceAuthenticatedAtMethodLevel.java | 4 +- ...piResourceAuthenticatedAtMethodLevel2.java | 4 +- .../OpenApiResourceSecuredAtClassLevel.java | 6 +- .../OpenApiResourceSecuredAtMethodLevel.java | 6 +- .../OpenApiResourceSecuredAtMethodLevel2.java | 6 +- .../test/jaxrs/OpenApiResourceWithNoTag.java | 6 +- .../openapi/test/jaxrs/ResourceBean.java | 4 +- .../openapi/test/jaxrs/ResourceBean2.java | 2 +- .../openapi/test/vertx/OpenApiRoute.java | 2 +- .../runtime/OpenApiDocumentService.java | 4 +- .../SmallRyeOpenTracingProcessor.java | 4 +- .../opentracing/deployment/Fruit.java | 20 +- .../opentracing/deployment/RestService.java | 10 +- .../opentracing/deployment/Service.java | 6 +- .../opentracing/deployment/TestResource.java | 10 +- .../smallrye-opentracing/runtime/pom.xml | 4 +- .../QuarkusSmallRyeTracingDynamicFeature.java | 12 +- ...cingStandaloneContainerResponseFilter.java | 16 +- ...eTracingStandaloneVertxDynamicFeature.java | 14 +- .../opentracing/runtime/TracerProducer.java | 6 +- ...ConfigRelocateConfigSourceInterceptor.java | 2 +- .../reactivemessaging/amqp/ConsumingBean.java | 2 +- .../reactivemessaging/amqp/ProducingBean.java | 2 +- .../reactivemessaging/amqp/TestResource.java | 6 +- .../amqp/devmode/nohttp/Consumer.java | 2 +- .../amqp/devmode/nohttp/Producer.java | 2 +- .../DefaultSerdeDiscoveryState.java | 2 +- .../deployment/DefaultSerdeConfigTest.java | 2 +- .../deployment/VertxSerdeRemovedTest.java | 2 +- .../dev/KafkaDevServicesDevModeTestCase.java | 8 +- .../kafka/deployment/dev/PriceConverter.java | 2 +- .../kafka/deployment/dev/PriceGenerator.java | 2 +- .../kafka/deployment/dev/PriceResource.java | 8 +- .../deployment/testing/PriceConverter.java | 4 +- .../deployment/testing/PriceGenerator.java | 4 +- .../deployment/testing/PriceResource.java | 10 +- .../deployment/testing/PriceResourceET.java | 8 +- .../kafka/CheckpointEntity.java | 6 +- .../kafka/CheckpointEntityId.java | 4 +- .../kafka/DatabindProcessingStateCodec.java | 2 +- .../kafka/HibernateOrmStateStore.java | 8 +- .../kafka/HibernateReactiveStateStore.java | 4 +- .../kafka/RedisStateStore.java | 10 +- ...RyeReactiveMessagingRabbitMQProcessor.java | 2 +- .../devconsole/RabbitHttpPortFinder.java | 4 +- .../deployment/ReactiveMessagingDotNames.java | 6 +- .../SmallRyeReactiveMessagingProcessor.java | 6 +- .../deployment/WiringProcessor.java | 2 +- .../smallrye/reactivemessaging/ChainTest.java | 4 +- .../reactivemessaging/DefaultScopeTest.java | 16 +- .../MediatorConfigurationSupportTest.java | 2 +- .../ReactiveMessagingTest.java | 2 +- .../reactivemessaging/SimpleBean.java | 2 +- .../SmallRyeBlockingSubscriberTest.java | 4 +- .../TransactionalSubscriberTest.java | 4 +- .../blocking/BlockingPublisherTest.java | 2 +- .../blocking/BlockingSubscriberTest.java | 4 +- .../blocking/BlockingValidationErrorTest.java | 4 +- ...ingWithoutOutgoingOnIncomingErrorTest.java | 6 +- .../SmallRyeBlockingPublisherTest.java | 2 +- .../SmallRyeBlockingSubscriberTest.java | 4 +- .../blocking/beans/BeanReturningMessages.java | 2 +- ...eturningMessagesUsingSmallRyeBlocking.java | 2 +- .../blocking/beans/BeanReturningPayloads.java | 2 +- ...eturningPayloadsUsingSmallRyeBlocking.java | 2 +- .../beans/IncomingCustomTwoBlockingBean.java | 2 +- .../IncomingCustomUnorderedBlockingBean.java | 2 +- .../beans/IncomingUsingSmallRyeBlocking.java | 2 +- .../beans/IncomingUsingTransactional.java | 4 +- .../blocking/beans/InfiniteSubscriber.java | 2 +- .../channels/ChannelConsumer.java | 4 +- .../channels/ChannelEmitterWithOverflow.java | 4 +- ...hannelEmitterWithOverflowAndBroadcast.java | 4 +- .../channels/DeprecatedChannelConsumer.java | 4 +- .../channels/DeprecatedEmitterExample.java | 4 +- .../channels/DeprecatedInjectionTest.java | 2 +- .../channels/EmitterExample.java | 4 +- ...tterWithBroadcastAndSubscriberExample.java | 4 +- ...EmitterWithBroadcastAndSubscriberTest.java | 2 +- .../channels/EmitterWithBroadcastExample.java | 4 +- .../channels/EmitterWithBroadcastTest.java | 2 +- .../EmitterWithOverflowAndBroadcastTest.java | 2 +- .../channels/EmitterWithOverflowTest.java | 2 +- .../channels/MutinyEmitterTest.java | 4 +- ...nyEmitterWithConstructorInjectionTest.java | 4 +- ...tinyEmitterWithParameterInjectionTest.java | 4 +- .../config/ConnectorConfigTest.java | 4 +- .../ConnectorDoubleQuoteConfigTest.java | 4 +- .../config/ConnectorProfileConfigTest.java | 4 +- .../config/DumbConnector.java | 2 +- .../converters/ConverterTest.java | 4 +- .../devmode/HttpFrontend.java | 8 +- .../devmode/MyProcessor.java | 2 +- .../hotreload/SomeConnector.java | 6 +- .../hotreload/SomeProcessor.java | 2 +- .../reactivemessaging/hotreload/SomeSink.java | 6 +- .../hotreload/SomeSource.java | 2 +- .../mutiny/MultiIntBean.java | 2 +- .../mutiny/MultiStringBean.java | 2 +- .../reactivemessaging/mutiny/MultiTest.java | 2 +- .../mutiny/StringProducer.java | 2 +- .../reactivemessaging/mutiny/UniBean.java | 2 +- .../reactivemessaging/mutiny/UniTest.java | 2 +- .../signatures/IncomingsTest.java | 4 +- .../signatures/ProcessorSignatureTest.java | 4 +- .../signatures/PublisherSignatureTest.java | 4 +- .../signatures/SubscriberSignatureTest.java | 4 +- .../signatures/TransformerSignatureTest.java | 4 +- .../ConnectorAttachmentChannelTest.java | 6 +- .../ConnectorAttachmentCustomEmitterTest.java | 12 +- .../ConnectorAttachmentEmitterTest.java | 4 +- .../ConnectorAttachmentIncomingTest.java | 4 +- .../ConnectorAttachmentMutinyEmitterTest.java | 4 +- .../ConnectorAttachmentOutgoingTest.java | 4 +- ...sabledConnectorAttachmentIncomingTest.java | 4 +- ...sabledConnectorAttachmentOutgoingTest.java | 6 +- .../wiring/IncomingChannelWithDotsTest.java | 4 +- ...MissingIncomingConnectorDetectionTest.java | 4 +- ...MissingOutgoingConnectorDetectionTest.java | 4 +- .../wiring/NoConnectorAttachmentTest.java | 6 +- .../wiring/OutgoingWithDotsTest.java | 4 +- .../TwoConnectorsAttachmentIncomingTest.java | 4 +- .../TwoConnectorsAttachmentOutgoingTest.java | 4 +- .../kotlin/ApplicationCoroutineScope.kt | 4 +- .../DuplicatedContextConnectorFactory.java | 2 +- ...tedContextConnectorFactoryInterceptor.java | 8 +- .../runtime/QuarkusMediatorConfiguration.java | 2 +- .../runtime/QuarkusWorkerPoolRegistry.java | 12 +- .../SmallRyeReactiveMessagingLifecycle.java | 18 +- .../runtime/devconsole/Connectors.java | 4 +- .../DevModeSupportConnectorFactory.java | 2 +- ...odeSupportConnectorFactoryInterceptor.java | 8 +- .../stork/QuarkusStorkInfrastructure.java | 2 +- .../ClassConfigurationPropertiesUtil.java | 14 +- .../ConfigurationPropertiesBuildStep.java | 2 +- .../ConfigurationPropertiesUtil.java | 2 +- .../InterfaceConfigurationPropertiesUtil.java | 4 +- .../runtime/SpringBootConfigProperties.java | 4 +- .../test/runtime/AnnotationOnClassTest.java | 2 +- .../quarkus/cache/test/runtime/BasicTest.java | 4 +- .../test/runtime/CompositeKeyCacheTest.java | 4 +- .../UnsupportedAnnotationValueTest.java | 2 +- .../runtime/pom.xml | 4 +- .../spring/data/deployment/DotNames.java | 18 +- .../generate/AbstractMethodsAdder.java | 2 +- .../generate/CustomQueryMethodsAdder.java | 2 +- .../generate/DerivedMethodsAdder.java | 2 +- .../generate/SpringDataRepositoryCreator.java | 4 +- .../generate/StockMethodsAdder.java | 4 +- .../spring/data/deployment/BasicTypeData.java | 8 +- .../BasicTypeDataRepositoryTest.java | 4 +- .../quarkus/spring/data/deployment/Book.java | 4 +- .../spring/data/deployment/LoginEvent.java | 8 +- .../ModifyingQueryWithFlushAndClearTest.java | 4 +- .../spring/data/deployment/Person.java | 4 +- .../quarkus/spring/data/deployment/User.java | 16 +- .../io/quarkus/spring/data/devmode/Book.java | 4 +- .../spring/data/devmode/BookResource.java | 8 +- .../data/devmode/RepositoryReloadTest.java | 2 +- .../data/runtime/RepositorySupport.java | 2 +- .../rest/deployment/ResourceImplementor.java | 2 +- .../ResourcePropertiesProvider.java | 2 +- .../deployment/SpringDataRestProcessor.java | 2 +- .../deployment/crud/EntityClassHelper.java | 2 +- .../spring/data/rest/crud/AbstractEntity.java | 6 +- .../quarkus/spring/data/rest/crud/Record.java | 2 +- .../data/rest/paged/AbstractEntity.java | 6 +- .../rest/paged/DefaultPagedResourceTest.java | 2 +- .../data/rest/paged/EmptyListRecord.java | 2 +- .../spring/data/rest/paged/Record.java | 2 +- .../RestDataPanacheExceptionMapper.java | 6 +- .../jta/TransactionalUpdateExecutor.java | 4 +- .../di/deployment/SpringDIProcessor.java | 5 +- .../spring/di/deployment/BeanNameTest.java | 2 +- .../BeanWithoutConfigurationTest.java | 4 +- .../spring/di/deployment/ListOfBeansTest.java | 2 +- .../di/deployment/SpringDIProcessorTest.java | 14 +- .../deployment/InvalidCronExpressionTest.java | 4 +- .../RepeatedScheduledMethodTest.java | 2 +- .../deployment/SpringDelayedTest.java | 2 +- .../SpringScheduledMethodsBean.java | 2 +- .../SpringScheduledProcessorTest.java | 2 +- .../UnsupportedFixedDelayParamTest.java | 2 +- .../UnsupportedFixedDelayStringParamTest.java | 2 +- .../UnsupportedInitialDelayForCronTest.java | 2 +- .../StringPropertyAccessorGenerator.java | 2 +- .../deployment/BeanMethodCheckTest.java | 2 +- .../deployment/MetaAnnotationsTest.java | 2 +- .../SecurityAnnotationMixingTest.java | 4 +- .../SpringPreAuthorizeClassAnnotatedTest.java | 2 +- .../deployment/SpringPreAuthorizeTest.java | 2 +- ...SpringPreAuthorizeWithExpressionsTest.java | 2 +- .../SpringSecuredAnnotatedTest.java | 4 +- .../BeanWithSpringSecurityAnnotations.java | 2 +- ...anWithSpringSecurityMethodAnnotations.java | 4 +- .../deployment/app/SpringSecuredSubClass.java | 2 +- .../SpringPreauthorizeInterceptor.java | 10 +- .../interceptor/SpringSecuredInterceptor.java | 10 +- .../spring-web/core/common-runtime/pom.xml | 4 +- .../AbstractResponseContentTypeResolver.java | 10 +- .../common/ResponseEntityConverter.java | 4 +- .../common/ResponseStatusExceptionMapper.java | 6 +- .../AbstractExceptionMapperGenerator.java | 6 +- ...trollerAdviceExceptionMapperGenerator.java | 18 +- .../web/deployment/ResponseBuilder.java | 4 +- .../ResponseStatusOnExceptionGenerator.java | 2 +- .../web/deployment/SpringWebProcessor.java | 4 +- .../SpringWebResteasyClassicProcessor.java | 4 +- .../resteasy-classic/runtime/pom.xml | 2 +- ...asyClassicResponseContentTypeResolver.java | 2 +- .../SpringWebResteasyReactiveProcessor.java | 4 +- ...syReactiveResponseContentTypeResolver.java | 2 +- .../spring/web/test/TestController.java | 2 +- .../undertow/deployment/ServletConfig.java | 2 +- .../deployment/UndertowBuildStep.java | 38 +- .../undertow/test/AnnotatedFilter.java | 12 +- .../test/AnnotatedFilterInitParam.java | 14 +- .../undertow/test/AnnotatedListener.java | 8 +- .../undertow/test/AnnotatedServlet.java | 12 +- .../test/AnnotatedServletInitParam.java | 12 +- .../quarkus/undertow/test/ErrorServlet.java | 10 +- .../undertow/test/LoginLogoutServlet.java | 10 +- .../test/MultipartConfigTestCase.java | 16 +- .../quarkus/undertow/test/NamedServlet.java | 12 +- .../undertow/test/NoUrlPatternWebFilter.java | 12 +- .../undertow/test/PreDestroyServlet.java | 12 +- .../test/RolesAllowedAnnotationServlet.java | 14 +- .../test/RolesAllowedBeanServlet.java | 16 +- .../test/SecuredAnnotationServlet.java | 14 +- .../quarkus/undertow/test/SecuredServlet.java | 10 +- .../ServletContainerInitializerTestCase.java | 2 +- .../test/ServletContextInjectionTestCase.java | 4 +- .../io/quarkus/undertow/test/TestGreeter.java | 2 +- .../io/quarkus/undertow/test/TestSCI.java | 16 +- .../io/quarkus/undertow/test/TestServlet.java | 10 +- .../undertow/test/TestServletSubclass.java | 2 +- .../test/UndertowHandlersConfTestCase.java | 8 +- .../io/quarkus/undertow/test/UserServlet.java | 10 +- .../quarkus/undertow/test/WebXmlFilter.java | 10 +- .../undertow/test/WebXmlInitParamsFilter.java | 12 +- .../test/WebXmlInitParamsServlet.java | 8 +- .../quarkus/undertow/test/WebXmlListener.java | 4 +- .../quarkus/undertow/test/WebXmlServlet.java | 8 +- .../undertow/test/builtinbeans/Counter.java | 4 +- .../ServletBuiltinBeanInjectingBean.java | 10 +- .../test/builtinbeans/TestServlet.java | 14 +- .../WebFilterConfigInjectionWarningsTest.java | 27 +- .../undertow/test/devmode/DevServlet.java | 10 +- .../undertow/test/devmode/NewServlet.java | 10 +- .../undertow/test/push/MessageServlet.java | 10 +- .../undertow/test/push/ServerPushServlet.java | 10 +- .../undertow/test/sessioncontext/Foo.java | 6 +- .../test/sessioncontext/TestServlet.java | 14 +- .../test/timeout/TimeoutTestServlet.java | 10 +- .../undertow/runtime/HttpSessionContext.java | 18 +- .../undertow/runtime/QuarkusErrorServlet.java | 10 +- .../runtime/QuarkusExceptionHandler.java | 4 +- .../runtime/QuarkusIdentityManager.java | 4 +- .../runtime/ServletHttpSecurityPolicy.java | 2 +- .../undertow/runtime/ServletProducer.java | 12 +- .../runtime/UndertowDeploymentRecorder.java | 28 +- .../UndertowHandlersConfServletExtension.java | 2 +- .../runtime/UndertowTestHttpProvider.java | 2 +- .../undertow/deployment/FilterBuildItem.java | 4 +- .../undertow/deployment/ServletBuildItem.java | 4 +- .../deployment/HttpSecurityProcessor.java | 2 +- .../quarkus/vertx/http/CompressionTest.java | 4 +- .../vertx/http/ConnectionLimitsTest.java | 4 +- .../quarkus/vertx/http/DecompressionTest.java | 4 +- .../vertx/http/DisableHttpPortTest.java | 4 +- .../http/ForwardedHandlerInitializer.java | 4 +- .../vertx/http/HttpContinueHeaderTest.java | 4 +- .../http/NonApplicationAndRootPathTest.java | 4 +- .../vertx/http/NonApplicationEscapeTest.java | 6 +- .../NonApplicationRootPathSiblingTest.java | 4 +- .../io/quarkus/vertx/http/RandomPortTest.java | 2 +- .../io/quarkus/vertx/http/RootPathTest.java | 4 +- .../vertx/http/UnhandledExceptionTest.java | 4 +- .../vertx/http/UserRouteRegistrationTest.java | 6 +- .../vertx/http/cors/BeanRegisteringRoute.java | 2 +- .../HttpServerOptionsCustomizerTest.java | 6 +- .../http/devconsole/BodyHandlerBean.java | 4 +- .../vertx/http/devconsole/ConfigBean.java | 4 +- .../vertx/http/devmode/ArcEndpointTest.java | 8 +- .../devmode/CompileCorrectlyEndpoint.java | 2 +- .../http/devmode/CompileErrorEndpoint.java | 2 +- .../http/devmode/LiveReloadEndpoint.java | 8 +- .../http/devmode/ParentFirstEndpoint.java | 8 +- .../vertx/http/filters/UserFilterTest.java | 4 +- .../quarkus/vertx/http/hotreload/DevBean.java | 6 +- .../vertx/http/hotreload/DevFilter.java | 2 +- .../quarkus/vertx/http/hotreload/NewBean.java | 6 +- .../vertx/http/hotreload/NewFilter.java | 2 +- .../http/hotreload/VertxEventBusConsumer.java | 8 +- .../http/hotreload/VertxEventBusProducer.java | 6 +- .../quarkus/vertx/http/http2/Http2Test.java | 4 +- .../vertx/http/router/RouterEventTest.java | 4 +- .../vertx/http/samesite/SetCookieHandler.java | 4 +- .../vertx/http/security/AdminPathHandler.java | 4 +- .../security/CustomFormAuthChallengeTest.java | 6 +- ...abledProactiveSecIdentityProviderTest.java | 2 +- .../security/FailingIdentityProvider.java | 2 +- .../http/security/HeaderAuthenticator.java | 2 +- .../security/IdentityProviderTestCase.java | 6 +- .../security/MtlsRequestBasicAuthTest.java | 4 +- .../vertx/http/security/MtlsRequestTest.java | 4 +- .../vertx/http/security/MtlsRequiredTest.java | 4 +- .../vertx/http/security/PathHandler.java | 4 +- .../security/TestTrustedIdentityProvider.java | 2 +- .../vertx/http/shutdown/ShutdownTest.java | 4 +- .../ShutdownTimeoutDefaultExecutorTest.java | 8 +- .../http/shutdown/ShutdownTimeoutTest.java | 4 +- .../vertx/http/ssl/SslServerWithJksTest.java | 4 +- .../vertx/http/ssl/SslServerWithP12Test.java | 4 +- .../vertx/http/ssl/SslServerWithPemTest.java | 4 +- .../vertx/http/testrunner/HelloResource.java | 4 +- .../vertx/http/testrunner/StartupFailer.java | 4 +- .../brokenonly/BrokenOnlyResource.java | 4 +- .../vertx/http/testrunner/params/Setup.java | 4 +- .../http/runtime/CurrentRequestProducer.java | 8 +- .../http/runtime/CurrentVertxRequest.java | 4 +- .../TrustedProxyCheckPartConverter.java | 2 +- .../vertx/http/runtime/VertxHttpRecorder.java | 2 +- .../http/runtime/devmode/ArcDevRecorder.java | 4 +- .../BasicAuthenticationMechanism.java | 2 +- .../runtime/security/HttpAuthenticator.java | 4 +- .../http/runtime/security/HttpAuthorizer.java | 4 +- .../security/HttpSecurityRecorder.java | 2 +- .../PathMatchingHttpSecurityPolicy.java | 2 +- .../core/deployment/VertxCoreProcessor.java | 2 +- .../quarkus/vertx/CodecRegistrationTest.java | 2 +- .../quarkus/vertx/DuplicatedContextTest.java | 4 +- .../io/quarkus/vertx/EventBusCodecTest.java | 2 +- .../io/quarkus/vertx/MutinyCodecTest.java | 2 +- .../vertx/VertxContextSupportTest.java | 6 +- .../io/quarkus/vertx/VertxInjectionTest.java | 6 +- .../VertxOptionsCustomizerTest.java | 4 +- .../HeadersMessageConsumerMethodTest.java | 4 +- .../MessageConsumerContextTest.java | 4 +- .../MessageConsumerFailureTest.java | 2 +- .../deployment/MessageConsumerMethodTest.java | 4 +- .../NonVoidMessageConsumerTest.java | 2 +- .../RequestContextTerminationTest.java | 6 +- .../VerticleWithClassNameDeploymentTest.java | 4 +- .../VerticleWithInstanceDeploymentTest.java | 4 +- .../deployment/VertxCommonProducerTest.java | 4 +- .../vertx/deployment/VertxInjectionTest.java | 6 +- .../vertx/deployment/VertxLoggingTest.java | 4 +- .../vertx/deployment/VertxProducerTest.java | 4 +- .../vertx/locals/LocalContextAccessTest.java | 4 +- .../vertx/mdc/InMemoryLogHandlerProducer.java | 8 +- .../quarkus/vertx/mdc/VerticleDeployer.java | 6 +- .../io/quarkus/vertx/mdc/VertxMDCTest.java | 2 +- .../vertx/verticles/MyBeanVerticle.java | 2 +- .../vertx/verticles/MyUndeployedVerticle.java | 4 +- .../vertx/verticles/NotDeployedVerticle.java | 2 +- .../vertx/verticles/VerticleDeployer.java | 6 +- .../verticles/VerticleDeploymentTest.java | 2 +- .../quarkus/vertx/runtime/VertxProducer.java | 18 +- .../webjar/locator/test/PostResource.java | 6 +- .../deployment/WebsocketClientProcessor.java | 14 +- .../websockets/test/TestWebSocketClient.java | 4 +- .../test/WebSocketClientTestCase.java | 2 +- ...BearerTokenClientEndpointConfigurator.java | 10 +- .../ServerWebSocketContainerFactory.java | 2 +- .../client/runtime/WebsocketCoreRecorder.java | 10 +- .../deployment/ServerWebSocketProcessor.java | 2 +- .../quarkus/websockets/test/EchoService.java | 2 +- .../websockets/test/EchoWebSocket.java | 6 +- .../test/WebsocketDevModeTestCase.java | 12 +- .../test/WebsocketRootPathTestCase.java | 12 +- .../runtime/WebsocketServerRecorder.java | 4 +- independent-projects/arc/pom.xml | 10 +- .../quarkus/arc/processor/BeanArchives.java | 18 +- .../arc/processor/BeanConfigurator.java | 2 +- .../arc/processor/BeanConfiguratorBase.java | 7 +- .../quarkus/arc/processor/BeanDeployment.java | 6 +- .../processor/BeanDeploymentValidator.java | 2 +- .../quarkus/arc/processor/BeanGenerator.java | 14 +- .../io/quarkus/arc/processor/BeanInfo.java | 6 +- .../quarkus/arc/processor/BeanProcessor.java | 4 +- .../quarkus/arc/processor/BeanResolver.java | 2 +- .../arc/processor/BeanResolverImpl.java | 2 +- .../java/io/quarkus/arc/processor/Beans.java | 8 +- .../io/quarkus/arc/processor/BuiltinBean.java | 10 +- .../arc/processor/BuiltinQualifier.java | 4 +- .../quarkus/arc/processor/BuiltinScope.java | 8 +- .../arc/processor/ContextConfigurator.java | 2 +- .../io/quarkus/arc/processor/Decorators.java | 2 +- .../quarkus/arc/processor/DisposerInfo.java | 2 +- .../io/quarkus/arc/processor/DotNames.java | 78 ++-- .../io/quarkus/arc/processor/Injection.java | 2 +- .../arc/processor/InjectionPointInfo.java | 2 +- .../InterceptorBindingRegistrar.java | 2 +- .../arc/processor/InterceptorGenerator.java | 8 +- .../arc/processor/InterceptorInfo.java | 4 +- .../arc/processor/InterceptorResolver.java | 2 +- .../quarkus/arc/processor/Interceptors.java | 2 +- .../arc/processor/MethodDescriptors.java | 12 +- .../io/quarkus/arc/processor/Methods.java | 2 +- .../arc/processor/ObserverConfigurator.java | 4 +- .../arc/processor/ObserverGenerator.java | 12 +- .../quarkus/arc/processor/ObserverInfo.java | 8 +- .../arc/processor/ObserverTransformer.java | 4 +- .../arc/processor/QualifierRegistrar.java | 5 +- .../arc/processor/StereotypeRegistrar.java | 2 +- .../arc/processor/SubclassGenerator.java | 6 +- .../java/io/quarkus/arc/processor/Types.java | 2 +- .../AnnotationLiteralProcessorTest.java | 2 +- .../processor/SubclassSkipPredicateTest.java | 2 +- .../io/quarkus/arc/processor/TypesTest.java | 2 +- .../io/quarkus/arc/processor/types/Bar.java | 4 +- .../io/quarkus/arc/processor/types/Baz.java | 6 +- .../io/quarkus/arc/processor/types/Foo.java | 6 +- .../arc/processor/types/FooQualifier.java | 4 +- .../src/main/java/io/quarkus/arc/All.java | 8 +- .../io/quarkus/arc/AlternativePriority.java | 4 +- .../java/io/quarkus/arc/ArcContainer.java | 14 +- .../io/quarkus/arc/ArcInvocationContext.java | 2 +- .../arc/AsyncObserverExceptionHandler.java | 10 +- .../main/java/io/quarkus/arc/BeanCreator.java | 4 +- .../java/io/quarkus/arc/BeanDestroyer.java | 4 +- .../main/java/io/quarkus/arc/Components.java | 2 +- .../io/quarkus/arc/ContextInstanceHandle.java | 2 +- .../io/quarkus/arc/CurrentContextFactory.java | 4 +- .../java/io/quarkus/arc/InjectableBean.java | 12 +- .../io/quarkus/arc/InjectableContext.java | 10 +- .../io/quarkus/arc/InjectableDecorator.java | 2 +- .../io/quarkus/arc/InjectableInstance.java | 6 +- .../io/quarkus/arc/InjectableInterceptor.java | 2 +- .../quarkus/arc/InjectableObserverMethod.java | 6 +- .../arc/InjectableReferenceProvider.java | 2 +- .../java/io/quarkus/arc/InstanceHandle.java | 9 +- .../src/main/java/io/quarkus/arc/Lock.java | 4 +- .../main/java/io/quarkus/arc/Priority.java | 5 +- .../main/java/io/quarkus/arc/Unremovable.java | 3 +- .../main/java/io/quarkus/arc/WithCaching.java | 4 +- .../arc/impl/AbstractInstanceHandle.java | 6 +- .../arc/impl/AbstractSharedContext.java | 4 +- .../ActivateRequestContextInterceptor.java | 10 +- .../quarkus/arc/impl/ApplicationContext.java | 2 +- .../io/quarkus/arc/impl/ArcCDIProvider.java | 10 +- .../io/quarkus/arc/impl/ArcContainerImpl.java | 44 +-- .../impl/AroundInvokeInvocationContext.java | 2 +- .../io/quarkus/arc/impl/BeanManagerBean.java | 4 +- .../io/quarkus/arc/impl/BeanManagerImpl.java | 60 +-- .../quarkus/arc/impl/BeanManagerProvider.java | 4 +- .../arc/impl/BeanMetadataProvider.java | 4 +- .../java/io/quarkus/arc/impl/BuiltInBean.java | 2 +- .../io/quarkus/arc/impl/ClientProxies.java | 6 +- .../io/quarkus/arc/impl/ContextDataMap.java | 2 +- .../arc/impl/ContextInstanceHandleImpl.java | 2 +- .../java/io/quarkus/arc/impl/Contexts.java | 6 +- .../arc/impl/CreationalContextImpl.java | 4 +- .../impl/CurrentInjectionPointProvider.java | 20 +- .../arc/impl/DecoratorDelegateProvider.java | 2 +- .../DefaultAsyncObserverExceptionHandler.java | 6 +- .../quarkus/arc/impl/EagerInstanceHandle.java | 2 +- .../java/io/quarkus/arc/impl/EventBean.java | 6 +- .../java/io/quarkus/arc/impl/EventImpl.java | 32 +- .../io/quarkus/arc/impl/EventProvider.java | 4 +- .../java/io/quarkus/arc/impl/Identified.java | 4 +- .../arc/impl/InitializedInterceptor.java | 6 +- .../impl/InjectableReferenceProviders.java | 4 +- .../InjectableRequestContextController.java | 8 +- .../quarkus/arc/impl/InjectionPointBean.java | 4 +- .../arc/impl/InjectionPointProvider.java | 4 +- .../io/quarkus/arc/impl/InstanceBean.java | 6 +- .../io/quarkus/arc/impl/InstanceImpl.java | 16 +- .../io/quarkus/arc/impl/InstanceProvider.java | 4 +- .../java/io/quarkus/arc/impl/Instances.java | 6 +- .../impl/InterceptedBeanMetadataProvider.java | 8 +- .../arc/impl/InterceptedStaticMethods.java | 2 +- .../arc/impl/InterceptorInvocation.java | 4 +- .../quarkus/arc/impl/InvocationContexts.java | 4 +- .../quarkus/arc/impl/LazyInstanceHandle.java | 2 +- .../io/quarkus/arc/impl/LockInterceptor.java | 10 +- .../java/io/quarkus/arc/impl/Qualifiers.java | 6 +- .../java/io/quarkus/arc/impl/Reflections.java | 2 +- .../io/quarkus/arc/impl/RequestContext.java | 8 +- .../io/quarkus/arc/impl/ResourceProvider.java | 2 +- .../io/quarkus/arc/impl/SingletonContext.java | 2 +- .../io/quarkus/arc/impl/QualifiersTest.java | 4 +- .../java/io/quarkus/arc/test/MyQualifier.java | 2 +- .../io/quarkus/arc/test/all/ListAllTest.java | 14 +- .../AlternativesPriorityTest.java | 12 +- .../test/alternatives/AlternativesTest.java | 10 +- .../AlternativePriorityAnnotationTest.java | 16 +- .../AlternativePriorityResolutionTest.java | 12 +- ...lternativeProducerPriorityOnClassTest.java | 10 +- .../ComputedAlternativePriorityTest.java | 6 +- .../test/bean/create/BeanCreateErrorTest.java | 8 +- .../bean/destroy/BeanPreDestroyErrorTest.java | 10 +- .../test/bean/lifecycle/inheritance/Bird.java | 6 +- .../bean/lifecycle/inheritance/Eagle.java | 6 +- .../bean/lifecycle/inheritance/Falcon.java | 2 +- .../test/bean/types/ArrayBeanTypesTest.java | 10 +- .../test/bean/types/EnumBeanTypesTest.java | 4 +- .../test/bean/types/GenericBeanTypesTest.java | 8 +- .../bean/types/NonPublicJdkBeanTypesTest.java | 4 +- .../test/bean/types/SimpleBeanTypesTest.java | 2 +- .../beanmanager/BeanManagerEventTest.java | 6 +- .../beanmanager/BeanManagerInstanceTest.java | 8 +- .../arc/test/beanmanager/BeanManagerTest.java | 54 +-- .../annotations/AddObservesTest.java | 4 +- .../AnnotationsTransformerBuilderTest.java | 8 +- ...ionsTransformerInterceptorBindingTest.java | 2 +- .../AnnotationsTransformerTest.java | 6 +- .../buildextension/annotations/Simple.java | 2 +- .../annotations/SimpleInterceptor.java | 8 +- .../beans/BeanRegistrarTest.java | 14 +- ...alScopedSyntheticBeanProducedNullTest.java | 6 +- .../beans/SynthBeanWithWrongScopeTest.java | 2 +- .../beans/SyntheticBeanCollisionTest.java | 2 +- .../SyntheticBeanWithStereotypeTest.java | 14 +- .../InjectionPointTransformerTest.java | 12 +- ...ionalInterceptorBindingsPredicateTest.java | 10 +- .../AdditionalInterceptorBindingsTest.java | 10 +- .../observers/SyntheticObserverTest.java | 10 +- .../qualifiers/AdditionalQualifiersTest.java | 4 +- .../AdditionalStereotypesTest.java | 16 +- .../BeanDeploymentValidatorTest.java | 14 +- .../beans/BuiltInBeansAreResolvableTest.java | 24 +- .../beans/InjectionPointBuiltInBeanTest.java | 16 +- .../arc/test/cdiprovider/CDIProviderTest.java | 8 +- .../CircularDependenciesChainTest.java | 6 +- .../SelfInjectionWithNormalScopeTest.java | 6 +- .../ClientProxyGetContextualInstanceTest.java | 4 +- .../clientproxy/ProducerClientProxyTest.java | 6 +- .../clientproxy/bridgemethod/Complex.java | 4 +- ...scriptorDifferentReturnTypeMethodTest.java | 6 +- .../ClientProxyConstructorGuardTest.java | 2 +- ...pePackagePrivateNoArgsConstructorTest.java | 6 +- .../ClientProxyContextNotActiveTest.java | 4 +- .../clientproxy/delegatingmethods/MyBean.java | 2 +- .../finalmethod/FinalMethodIgnoredTest.java | 4 +- .../packageprivate/foo/Producer.java | 4 +- .../arc/test/clientproxy/toString/Foo.java | 2 +- .../ApplicationContextGetTest.java | 4 +- .../ApplicationInitializedTest.java | 12 +- .../DependentCreationalContextTest.java | 12 +- .../contexts/request/ContextObserver.java | 12 +- .../arc/test/contexts/request/Controller.java | 6 +- .../contexts/request/ControllerClient.java | 6 +- .../contexts/request/RequestContextTest.java | 6 +- ...ActivateRequestContextInterceptorTest.java | 14 +- .../RequestContextPropagationTest.java | 2 +- .../request/propagation/SuperButton.java | 4 +- .../request/propagation/SuperController.java | 8 +- .../propagation/YetAnotherReqScopedBean.java | 2 +- .../singleton/SingletonContextGetTest.java | 4 +- .../singleton/SingletonDestructionTest.java | 8 +- .../SimpleDecoratorOverloadingTest.java | 12 +- .../test/decorators/SimpleDecoratorTest.java | 12 +- .../abstractimpl/AbstractDecoratorTest.java | 10 +- .../InterceptorAndAbstractDecoratorTest.java | 18 +- .../delegate/DelegateSubtypeTest.java | 8 +- .../DecoratorWithTypeVariableTest.java | 14 +- .../generics/GenericsDecoratorTest.java | 10 +- .../InterceptorAndDecoratorTest.java | 18 +- .../priority/AlphaConverterDecorator.java | 8 +- .../priority/AlsoAlphaConverterDecorator.java | 8 +- .../priority/BravoConverterDecorator.java | 6 +- .../MultipleDecoratorsSamePriorityTest.java | 2 +- .../priority/MultipleDecoratorsTest.java | 2 +- .../qualifiers/DelegateQualifiersTest.java | 14 +- ...stractDecoratorWithAbstractMethodTest.java | 8 +- .../DecoratorForBuiltInEventTypeTest.java | 12 +- ...gateDoesNotImplementDecoratedTypeTest.java | 10 +- .../MultipleDelegateInjectionPointsTest.java | 8 +- .../validation/NoDecoratedTypeTest.java | 8 +- .../NoDelegateInjectionPointTest.java | 4 +- .../validation/NonDependentScopeTest.java | 12 +- .../defaultbean/DefaultClassBeanTest.java | 12 +- .../defaultbean/DefaultProducerFieldTest.java | 12 +- .../DefaultProducerMethodTest.java | 6 +- .../discovery/AbstractClassIgnoredTest.java | 2 +- ...ParameterizedBeanTypeWithVariableTest.java | 2 +- .../test/event/select/EventSelectTest.java | 4 +- .../arc/test/event/select/SecuritySensor.java | 8 +- .../arc/test/event/select/SystemTest.java | 4 +- .../arc/test/index/AdditionalIndexTest.java | 6 +- .../MemberLevelInheritanceTest.java | 18 +- .../QualifiersInheritanceTest.java | 6 +- .../ScopeInheritanceStereotypeTest.java | 4 +- .../inheritance/ScopeInheritanceTest.java | 10 +- .../inheritance/TypeLevelInheritanceTest.java | 20 +- .../assignability/ListJdkElementTypeTest.java | 8 +- .../OptionalAssignabilityTest.java | 10 +- .../AssignabilityWithGenericsTest.java | 14 +- .../injection/assignability/generics/Car.java | 2 +- .../assignability/generics/PetrolEngine.java | 2 +- .../generics/RawTypeAssignabilityTest.java | 8 +- .../assignability/generics/Vehicle.java | 2 +- .../MultiInjectConstructorFailureTest.java | 8 +- .../NoArgConstructorTakesPrecedenceTest.java | 2 +- ...ingleNonNoArgConstructorInjectionTest.java | 6 +- .../CircularInjectionNotSupportedTest.java | 4 +- .../finalfield/FinalFieldInjectionTest.java | 4 +- .../TypeVariableFieldInjectionPointTest.java | 6 +- ...VariableInitializerInjectionPointTest.java | 6 +- .../PrivateConstructorInjectionTest.java | 6 +- .../PrivateFieldInjectionTest.java | 6 +- .../PrivateInitializerInjectionTest.java | 6 +- .../resource/ResourceInjectionTest.java | 38 +- .../staticfield/StaticFieldInjectionTest.java | 4 +- .../superclass/SuperclassInjectionTest.java | 10 +- .../superclass/foo/FooHarvester.java | 2 +- .../test/instance/ArcContainerSelectTest.java | 18 +- .../test/instance/InjectableInstanceTest.java | 12 +- .../InvalidQualifierInstanceTest.java | 8 +- .../arc/test/instance/PriorityTest.java | 6 +- .../test/instance/RawTypeInstanceTest.java | 8 +- .../cacheget/InstanceWithCachingTest.java | 12 +- .../instance/destroy/InstanceDestroyTest.java | 14 +- .../frombean/InstanceFromBeanTest.java | 4 +- ...ypeVariableInstanceInjectionPointTest.java | 10 +- .../WildcardInstanceInjectionPointTest.java | 10 +- .../arc/test/interceptors/Counter.java | 2 +- .../interceptors/KotlinInterceptorTest.java | 12 +- .../arc/test/interceptors/Lifecycle.java | 2 +- .../interceptors/LifecycleInterceptor.java | 12 +- .../arc/test/interceptors/Logging.java | 2 +- .../test/interceptors/LoggingInterceptor.java | 6 +- .../quarkus/arc/test/interceptors/Simple.java | 2 +- .../arc/test/interceptors/SimpleBean.java | 6 +- .../test/interceptors/SimpleInterceptor.java | 10 +- .../arcInvContext/ArcContextInterceptor.java | 6 +- .../ArcContextInterceptorPrivate.java | 6 +- .../ArcContextLifecycleInterceptor.java | 8 +- ...ArcContextLifecycleInterceptorPrivate.java | 8 +- .../test/interceptors/arcInvContext/Foo.java | 2 +- .../arcInvContext/SomeBinding.java | 2 +- ...undConstructAppliedViaConstructorTest.java | 12 +- .../AroundConstructReturningObjectTest.java | 8 +- .../aroundconstruct/AroundConstructTest.java | 12 +- .../aroundconstruct/MyOtherTransactional.java | 2 +- .../aroundconstruct/MyTransactional.java | 2 +- .../BindingDefaultValueTest.java | 10 +- .../bindingdefaultvalue/MyTransactional.java | 2 +- .../InvocationContextBindingsTest.java | 10 +- .../bindings/MyTransactional.java | 4 +- .../bindings/multiple/BarBinding.java | 2 +- .../bindings/multiple/FooBinding.java | 2 +- .../bindings/multiple/MyBean.java | 2 +- .../bindings/multiple/MyInterceptor.java | 8 +- .../bindings/multiple/MyOtherBean.java | 2 +- ...ritedRepeatableInterceptorBindingTest.java | 16 +- .../RepeatableInterceptorBindingTest.java | 16 +- ...torBindingWithNonbindingAttributeTest.java | 18 +- .../transitive/AnotherAnnotation.java | 2 +- .../transitive/ClassLevelInterceptedBean.java | 2 +- .../bindings/transitive/CounterBinding.java | 2 +- .../transitive/CounterInterceptor.java | 8 +- .../MethodLevelInterceptedBean.java | 2 +- .../transitive/NotInterceptedBean.java | 2 +- .../bindings/transitive/SomeAnnotation.java | 2 +- .../TransitiveCounterInterceptor.java | 8 +- ...woLevelsDeepClassLevelInterceptedBean.java | 2 +- .../with/transformer/DummyBean.java | 2 +- .../with/transformer/MuchCoolerBinding.java | 2 +- .../transformer/MuchCoolerInterceptor.java | 8 +- .../with/transformer/PlainBinding.java | 2 +- .../with/transformer/PlainInterceptor.java | 8 +- .../bridge/BridgeMethodInterceptionTest.java | 4 +- .../interceptors/bridge/ExampleResource.java | 2 +- .../arc/test/interceptors/bridge/Simple.java | 2 +- .../bridge/SimpleInterceptor.java | 10 +- .../test/interceptors/complex/MyBinding.java | 2 +- .../interceptors/complex/MyInterceptor.java | 14 +- .../test/interceptors/complex/SomeBean.java | 6 +- .../SubclassConstructorGuardTest.java | 10 +- .../context/AsyncContinuationTest.java | 10 +- .../interceptors/context/ContextDataTest.java | 10 +- .../interceptors/defaultmethod/ABinding.java | 2 +- .../defaultmethod/DefaultMethodBean.java | 2 +- .../defaultmethod/MessageInterceptor.java | 6 +- .../defaultmethod/NextBinding.java | 2 +- .../defaultmethod/NextInterceptor.java | 8 +- .../ExceptionHandlingBean.java | 2 +- .../ExceptionHandlingInterceptor.java | 8 +- .../ExceptionHandlingInterceptorBinding.java | 2 +- .../FinalInterceptedMethodTest.java | 12 +- .../FinalNonInterceptedMethodTest.java | 12 +- .../inheritance/Interceptor1.java | 6 +- .../inheritance/Interceptor2.java | 2 +- .../InterceptorSuperclassTest.java | 2 +- .../test/interceptors/inheritance/One.java | 2 +- .../inheritance/OverridenInterceptor.java | 4 +- .../test/interceptors/inheritance/Two.java | 2 +- .../InterceptedBeanInjectionTest.java | 8 +- .../test/interceptors/intercepted/Simple.java | 2 +- .../intercepted/SimpleInterceptor.java | 18 +- .../test/interceptors/limits/LargeBean.java | 4 +- .../limits/SubclassLimitsTest.java | 2 +- .../methodargs/CustomExecutor.java | 2 +- .../methodargs/ExampleResource.java | 2 +- .../test/interceptors/methodargs/Simple.java | 2 +- .../methodargs/SimpleInterceptor.java | 10 +- .../BusinessLifecycleInterceptorTest.java | 14 +- .../interceptors/mixed/MyTransactional.java | 2 +- .../interceptors/no/priority/AverageBean.java | 2 +- .../test/interceptors/no/priority/Simple.java | 2 +- .../SimpleInterceptorWithNoPriority.java | 6 +- .../noclassinterceptors/ClassLevel.java | 2 +- .../ClassLevelInterceptor.java | 10 +- .../InheritedClassLevel.java | 2 +- .../InheritedClassLevelInterceptor.java | 10 +- .../noclassinterceptors/InterceptedBean.java | 2 +- .../noclassinterceptors/MethodLevel.java | 2 +- .../MethodLevelInterceptor.java | 10 +- .../NonPublicParametersTest.java | 10 +- .../parameters/ParamInterceptor.java | 8 +- .../test/interceptors/parameters/Simple.java | 2 +- .../interceptors/parameters/SimpleBean.java | 2 +- .../PrivateInterceptorMethodTest.java | 10 +- .../test/interceptors/selfinvocation/Nok.java | 2 +- .../selfinvocation/NokInterceptor.java | 8 +- .../test/interceptors/selfinvocation/Ok.java | 2 +- .../selfinvocation/OkInterceptor.java | 8 +- .../selfinvocation/SelfInvocationTest.java | 4 +- .../interceptors/subclasses/MyBinding.java | 2 +- .../interceptors/subclasses/SomeBean.java | 2 +- .../subclasses/WeirdInterceptor.java | 8 +- .../inherited/OriginalBean.java | 6 +- .../inherited/subpackage/AlternativeBean.java | 6 +- .../arc/test/lock/LockInterceptorTest.java | 6 +- .../quarkus/arc/test/lock/LockWaitTest.java | 2 +- .../arc/test/metadata/BeanMetadataTest.java | 2 +- .../quarkus/arc/test/metadata/Controller.java | 6 +- .../metadata/InjectionPointMetadataTest.java | 26 +- .../arc/test/name/AmbiguousNameTest.java | 8 +- .../name/InvalidNamedInjectionPointTest.java | 8 +- .../arc/test/name/NameResolutionTest.java | 12 +- .../observers/ParameterizedPayloadTest.java | 12 +- .../arc/test/observers/RuntimeClassTest.java | 12 +- .../test/observers/SimpleObserverTest.java | 12 +- .../async/AsyncObserverExceptionTest.java | 14 +- .../observers/async/AsyncObserverTest.java | 16 +- ...stomAsyncObserverExceptionHandlerTest.java | 14 +- ...lassWithoutBeanDefiningAnnotationTest.java | 4 +- .../duplicate/bindings/BindingTypeA.java | 4 +- .../DuplicateBindingsResolutionTest.java | 8 +- .../ifexists/ReceptionIfExistsTest.java | 10 +- .../observers/inheritance/EmittingBean.java | 6 +- .../inheritance/NonObservingSubBean.java | 2 +- .../inheritance/ObserverInheritanceTest.java | 2 +- .../observers/inheritance/ObservingBean.java | 6 +- .../inheritance/ObservingSubBean.java | 2 +- .../different/packages/OriginalBean.java | 6 +- .../packages/subpackage/AlternativeBean.java | 6 +- .../GeneratedObserverClassNotSharedTest.java | 8 +- .../ObserverInheritanceTypeVariableTest.java | 10 +- .../SimpleObserverInjectionTest.java | 14 +- .../observers/metadata/EventMetadataTest.java | 8 +- .../EventMetadataWrongInjectionTest.java | 8 +- .../ObserverNotificationTest.java | 4 +- .../ordering/ObserverOrderingTest.java | 14 +- .../RequestInObserverNotificationTest.java | 10 +- .../staticmethods/StaticObserverTest.java | 6 +- .../producer/async/AsyncProducerTest.java | 8 +- .../producer/dependent/DeclaringBeanTest.java | 10 +- ...lassWithoutBeanDefiningAnnotationTest.java | 2 +- .../test/producer/disposer/DisposerTest.java | 18 +- .../disposer/DisposerWithWildcardTest.java | 8 +- .../producer/disposer/StaticDisposerTest.java | 10 +- .../arc/test/producer/generic/Claim.java | 4 +- .../DuplicateRecursiveGenericTest.java | 10 +- .../producer/generic/ErasedGenericTest.java | 12 +- .../generic/GenericProducerHierarchyTest.java | 6 +- .../generic/MutuallyRecursiveGenericTest.java | 10 +- .../generic/RecursiveGenericInvalidTest.java | 8 +- .../generic/RecursiveGenericTest.java | 10 +- .../producer/illegal/IllegalProducerTest.java | 8 +- .../illegal/ProducerFieldWithInjectTest.java | 8 +- .../primitive/PrimitiveProducerTest.java | 8 +- .../PrimitiveWrapperProducerTest.java | 10 +- .../PrivateProducerFieldTest.java | 4 +- .../PrivateProducerMethodTest.java | 6 +- .../StaticMethodProducerTest.java | 8 +- .../quarkus/arc/test/qualifiers/Location.java | 4 +- .../RepeatingQualifierClassTest.java | 6 +- .../RepeatingQualifierObserverTest.java | 6 +- .../RepeatingQualifierProducerTest.java | 8 +- .../defaultvalues/AnimalQualifier.java | 2 +- .../test/qualifiers/defaultvalues/Cat.java | 2 +- .../test/qualifiers/defaultvalues/Owl.java | 2 +- .../QualifierDefaultValuesTest.java | 4 +- .../resolution/RuntimeResolutionTest.java | 6 +- .../arc/test/resolution/TypedTest.java | 10 +- .../broken/BrokenTypedBeanTest.java | 2 +- .../broken/BrokenTypedProducerFieldTest.java | 2 +- .../broken/BrokenTypedProducerMethodTest.java | 2 +- .../resolution/broken/FieldProducerBean.java | 6 +- .../resolution/broken/MethodProducerBean.java | 6 +- .../arc/test/resolution/broken/MyBean.java | 4 +- .../test/resolution/broken/MyOtherBean.java | 2 +- .../MultipleStereotypeScopesTest.java | 8 +- .../arc/test/stereotypes/SimpleBinding.java | 2 +- .../test/stereotypes/SimpleInterceptor.java | 8 +- .../StereotypeAlternativeArcPriorityTest.java | 6 +- .../StereotypeAlternativeTest.java | 8 +- .../StereotypeInheritanceTest.java | 10 +- .../StereotypeInterceptorTest.java | 6 +- .../test/stereotypes/StereotypeNamedTest.java | 6 +- .../stereotypes/StereotypeOnProducerTest.java | 8 +- .../test/stereotypes/StereotypeScopeTest.java | 8 +- .../stereotypes/TransitiveStereotypeTest.java | 10 +- .../TransientReferenceDestroyedTest.java | 20 +- .../io/quarkus/arc/test/unused/Alpha.java | 2 +- .../arc/test/unused/AlphaInterceptor.java | 10 +- .../io/quarkus/arc/test/unused/Bravo.java | 2 +- .../arc/test/unused/BravoInterceptor.java | 8 +- .../io/quarkus/arc/test/unused/Counter.java | 2 +- .../test/unused/RemoveUnusedBeansTest.java | 22 +- .../unused/RemoveUnusedDecoratorTest.java | 12 +- .../unused/RemoveUnusedInterceptorTest.java | 8 +- .../AbstractNormalScopedFinalTest.java | 8 +- .../validation/BoundInterceptorFinalTest.java | 4 +- ...terceptorPrivateNoArgsConstructorTest.java | 4 +- .../ClassBeanMultipleScopesTest.java | 6 +- ...tializerMethodMarkedAsyncObserverTest.java | 8 +- .../InitializerMethodMarkedDisposerTest.java | 10 +- .../InitializerMethodMarkedObserverTest.java | 8 +- .../InitializerMethodMarkedProducerTest.java | 8 +- .../validation/InvalidPostConstructTest.java | 6 +- ...nvalidPostConstructWithParametersTest.java | 6 +- .../validation/InvalidPreDestroyTest.java | 6 +- .../NormalScopedConstructorTest.java | 8 +- ...malScopedPrivateNoArgsConstructorTest.java | 4 +- .../ProducerFieldMultipleScopesTest.java | 10 +- .../ProducerMethodMultipleScopesTest.java | 10 +- .../quarkus/arc/test/validation/Simple.java | 2 +- .../test/validation/SimpleInterceptor.java | 8 +- .../validation/StereotypeOnFieldTest.java | 6 +- .../validation/StereotypeOnMethodTest.java | 6 +- .../io/quarkus/arc/test/vetoed/Logging.java | 2 +- .../quarkus/arc/test/vetoed/VetoedTest.java | 12 +- .../arc/test/vetoed/subpkg/PackageVetoed.java | 2 +- .../arc/test/vetoed/subpkg/package-info.java | 2 +- independent-projects/bootstrap/bom/pom.xml | 43 +- independent-projects/bootstrap/pom.xml | 12 +- .../quarkus-banned-dependencies.xml | 18 +- .../extension-maven-plugin/pom.xml | 4 + ...eableMessageBodyWriterByteBuddyPlugin.java | 4 +- .../client/processor/pom.xml | 4 +- .../processor/beanparam/BeanParamParser.java | 2 +- .../scanning/ClientEndpointIndexer.java | 12 +- .../beanparam/BeanParamParserTest.java | 12 +- .../resteasy-reactive/client/runtime/pom.xml | 4 +- .../api/WebClientApplicationException.java | 16 +- .../ClientRequestFilterRestHandler.java | 4 +- .../ClientResponseCompleteRestHandler.java | 8 +- .../ClientResponseFilterRestHandler.java | 6 +- .../handlers/ClientSendRequestHandler.java | 14 +- .../ClientSetResponseEntityRestHandler.java | 10 +- .../AbstractClientInterceptorContextImpl.java | 4 +- .../client/impl/AbstractRxInvoker.java | 6 +- .../client/impl/AsyncInvokerImpl.java | 14 +- .../client/impl/ClientBuilderImpl.java | 11 +- .../reactive/client/impl/ClientImpl.java | 15 +- .../reactive/client/impl/ClientProxies.java | 4 +- .../ClientReaderInterceptorContextImpl.java | 16 +- .../client/impl/ClientRequestContextImpl.java | 20 +- .../client/impl/ClientRequestHeaders.java | 10 +- .../impl/ClientResponseBuilderImpl.java | 2 +- .../impl/ClientResponseContextImpl.java | 16 +- .../client/impl/ClientResponseImpl.java | 4 +- .../client/impl/ClientRestResponseImpl.java | 4 +- .../client/impl/ClientSerialisers.java | 26 +- .../ClientWriterInterceptorContextImpl.java | 14 +- .../client/impl/DefaultClientContext.java | 2 +- .../reactive/client/impl/HandlerChain.java | 4 +- .../client/impl/InboundSseEventImpl.java | 8 +- .../client/impl/InvocationBuilderImpl.java | 28 +- .../reactive/client/impl/InvocationImpl.java | 14 +- .../reactive/client/impl/MultiInvoker.java | 8 +- .../client/impl/RestClientRequestContext.java | 24 +- .../impl/SseEventSourceBuilderImpl.java | 6 +- .../client/impl/SseEventSourceImpl.java | 10 +- .../reactive/client/impl/SseParser.java | 4 +- .../client/impl/StorkClientRequestFilter.java | 8 +- .../reactive/client/impl/UniInvoker.java | 6 +- .../reactive/client/impl/WebTargetImpl.java | 12 +- .../impl/multipart/QuarkusMultipartForm.java | 10 +- .../ClientDefaultTextPlainBodyHandler.java | 8 +- .../reactive/client/spi/FieldFiller.java | 2 +- ...eBodyReaderErrorMessageContextualizer.java | 4 +- .../ResteasyReactiveClientRequestContext.java | 4 +- .../ResteasyReactiveClientRequestFilter.java | 4 +- .../ResteasyReactiveClientResponseFilter.java | 6 +- ...der => jakarta.ws.rs.client.ClientBuilder} | 0 ... jakarta.ws.rs.sse.SseEventSource$Builder} | 0 .../client/impl/HandlerChainTest.java | 6 +- .../common/processor/pom.xml | 4 +- .../processor/AdditionalReaderWriter.java | 2 +- .../AdditionalReaderWriterCommon.java | 2 +- .../processor/DefaultProducesHandler.java | 2 +- .../common/processor/EndpointIndexer.java | 8 +- .../processor/ResteasyReactiveDotNames.java | 158 ++++---- .../scanning/ApplicationScanningResult.java | 2 +- .../ResteasyReactiveInterceptorScanner.java | 4 +- .../scanning/ResteasyReactiveScanner.java | 8 +- .../processor/scanning/ScannedSerializer.java | 4 +- .../resteasy-reactive/common/runtime/pom.xml | 8 +- .../ClientWebApplicationException.java | 4 +- .../resteasy/reactive/MultipartForm.java | 2 +- .../resteasy/reactive/ResponseHeader.java | 2 +- .../resteasy/reactive/ResponseStatus.java | 2 +- .../jboss/resteasy/reactive/RestResponse.java | 76 ++-- .../core/AbstractResteasyReactiveContext.java | 4 +- .../common/core/GenericTypeMapping.java | 2 +- .../common/core/ResponseBuilderFactory.java | 2 +- .../core/ResteasyReactiveCallbackContext.java | 4 +- .../reactive/common/core/Serialisers.java | 16 +- .../common/core/UnwrappableException.java | 4 +- .../common/headers/CacheControlDelegate.java | 4 +- .../common/headers/CookieHeaderDelegate.java | 4 +- .../reactive/common/headers/DateDelegate.java | 2 +- .../common/headers/EntityTagDelegate.java | 4 +- .../reactive/common/headers/HeaderUtil.java | 14 +- .../reactive/common/headers/LinkDelegate.java | 6 +- .../reactive/common/headers/LinkHeaders.java | 4 +- .../common/headers/LocaleDelegate.java | 2 +- .../headers/MediaTypeHeaderDelegate.java | 4 +- .../headers/NewCookieHeaderDelegate.java | 4 +- .../headers/ObjectToStringDelegate.java | 2 +- .../common/jaxrs/AbstractResponseBuilder.java | 18 +- .../jaxrs/AbstractRestResponseBuilder.java | 16 +- .../common/jaxrs/ConfigurationImpl.java | 38 +- .../common/jaxrs/LinkBuilderImpl.java | 6 +- .../reactive/common/jaxrs/LinkImpl.java | 6 +- .../reactive/common/jaxrs/ResponseImpl.java | 20 +- .../common/jaxrs/RestResponseImpl.java | 20 +- .../common/jaxrs/RuntimeDelegateImpl.java | 22 +- .../reactive/common/jaxrs/StatusTypeImpl.java | 6 +- .../reactive/common/jaxrs/UriBuilderImpl.java | 10 +- .../common/jaxrs/VariantListBuilderImpl.java | 4 +- .../reactive/common/model/ResourceClass.java | 2 +- .../common/model/ResourceContextResolver.java | 4 +- .../common/model/ResourceDynamicFeature.java | 2 +- .../common/model/ResourceExceptionMapper.java | 4 +- .../common/model/ResourceFeature.java | 2 +- .../common/model/ResourceInterceptor.java | 2 +- .../common/model/ResourceInterceptors.java | 8 +- .../reactive/common/model/ResourceMethod.java | 4 +- .../model/ResourceParamConverterProvider.java | 4 +- .../reactive/common/model/ResourceReader.java | 8 +- .../reactive/common/model/ResourceWriter.java | 8 +- .../AbstractJsonMessageBodyReader.java | 4 +- .../BooleanMessageBodyHandler.java | 8 +- .../ByteArrayMessageBodyHandler.java | 10 +- .../CharArrayMessageBodyHandler.java | 10 +- .../CharacterMessageBodyHandler.java | 10 +- .../DefaultTextPlainBodyHandler.java | 10 +- .../serialisers/FileBodyHandler.java | 10 +- .../serialisers/FilePartBodyHandler.java | 8 +- .../serialisers/FormUrlEncodedProvider.java | 12 +- .../InputStreamMessageBodyHandler.java | 10 +- .../JsonMessageBodyWriterUtil.java | 6 +- .../MapAsFormUrlEncodedProvider.java | 10 +- .../serialisers/MessageReaderUtil.java | 2 +- .../serialisers/NumberMessageBodyHandler.java | 8 +- .../serialisers/PathBodyHandler.java | 8 +- .../serialisers/PathPartBodyHandler.java | 8 +- .../serialisers/PrimitiveBodyHandler.java | 2 +- .../serialisers/ReaderBodyHandler.java | 8 +- .../serialisers/StringMessageBodyHandler.java | 10 +- .../serialisers/jsonp/JsonArrayHandler.java | 14 +- .../serialisers/jsonp/JsonObjectHandler.java | 14 +- .../jsonp/JsonStructureHandler.java | 16 +- .../serialisers/jsonp/JsonValueHandler.java | 14 +- .../serialisers/jsonp/JsonpUtil.java | 12 +- .../reactive/common/util/CookieParser.java | 2 +- .../resteasy/reactive/common/util/Encode.java | 2 +- .../common/util/ExtendedCacheControl.java | 2 +- .../reactive/common/util/MediaTypeHelper.java | 6 +- .../common/util/MultivaluedTreeMap.java | 2 +- .../reactive/common/util/PathSegmentImpl.java | 4 +- .../util/QuarkusMultivaluedHashMap.java | 2 +- .../common/util/QuarkusMultivaluedMap.java | 2 +- .../reactive/common/util/RestMediaType.java | 2 +- .../reactive/common/util/ServerMediaType.java | 2 +- .../reactive/common/util/URLUtils.java | 2 +- .../util/UnmodifiableMultivaluedMap.java | 4 +- .../common/util/WeightedLanguage.java | 4 +- ...gate => jakarta.ws.rs.ext.RuntimeDelegate} | 0 .../common/jaxrs/StatusTypeImplTest.java | 2 +- .../resteasy-reactive/common/types/pom.xml | 4 +- .../resteasy-reactive/pom.xml | 58 +-- .../resteasy-reactive/server/jackson/pom.xml | 4 +- .../JacksonBasicMessageBodyReader.java | 8 +- .../jackson/JacksonMessageBodyWriterUtil.java | 2 +- .../resteasy-reactive/server/jsonb/pom.xml | 21 +- .../server/jsonb/JsonbMessageBodyReader.java | 12 +- .../server/jsonb/JsonbMessageBodyWriter.java | 10 +- .../server/processor/pom.xml | 4 +- .../ResteasyReactiveDeploymentManager.java | 2 +- .../processor/ServerEndpointIndexer.java | 26 +- .../ServerExceptionMapperGenerator.java | 10 +- .../filters/CustomFilterGenerator.java | 26 +- .../generation/filters/FilterFeature.java | 4 +- .../FormDataOutputMapperGenerator.java | 2 +- ...erMultipartReturnTypeIndexerExtension.java | 2 +- .../scanning/ClassInjectorTransformer.java | 8 +- ...steasyReactiveExceptionMappingScanner.java | 2 +- .../ResteasyReactiveFeatureScanner.java | 4 +- ...ResteasyReactiveParamConverterScanner.java | 2 +- .../util/ResteasyReactiveServerDotNames.java | 2 +- .../resteasy-reactive/server/runtime/pom.xml | 4 +- .../server/ServerExceptionMapper.java | 16 +- .../reactive/server/ServerRequestFilter.java | 16 +- .../reactive/server/ServerResponseFilter.java | 12 +- .../reactive/server/SimpleResourceInfo.java | 2 +- .../core/AsyncExceptionMapperContextImpl.java | 2 +- .../reactive/server/core/Deployment.java | 6 +- .../reactive/server/core/DeploymentInfo.java | 2 +- .../server/core/EncodedMediaType.java | 2 +- .../reactive/server/core/LazyResponse.java | 2 +- .../core/ResteasyReactiveRequestContext.java | 20 +- .../server/core/RuntimeExceptionMapper.java | 16 +- .../core/ServerResponseBuilderFactory.java | 2 +- .../server/core/ServerSerialisers.java | 20 +- .../reactive/server/core/SseUtil.java | 12 +- .../reactive/server/core/StreamingUtil.java | 10 +- .../core/multipart/DefaultFileUpload.java | 2 +- .../multipart/FormEncodedDataDefinition.java | 6 +- .../multipart/MultiPartParserDefinition.java | 8 +- .../multipart/MultipartMessageBodyWriter.java | 14 +- .../core/multipart/MultipartSupport.java | 10 +- .../parameters/ContextParamExtractor.java | 28 +- .../core/parameters/CookieParamExtractor.java | 2 +- .../core/parameters/InjectParamExtractor.java | 2 +- .../MultipartFormParamExtractor.java | 2 +- .../converters/RuntimeParameterConverter.java | 2 +- .../converters/RuntimeResolvedConverter.java | 4 +- .../ReflectiveContextInjectedBeanFactory.java | 10 +- .../server/core/request/AcceptHeaders.java | 4 +- .../server/core/request/QualityValue.java | 2 +- .../core/request/ServerDrivenNegotiation.java | 4 +- .../server/core/request/VariantQuality.java | 2 +- .../serialization/DynamicEntityWriter.java | 12 +- .../core/serialization/EntityWriter.java | 2 +- .../core/serialization/FixedEntityWriter.java | 6 +- .../serialization/FixedEntityWriterArray.java | 6 +- .../MediaTypeDelegatingEntityWriter.java | 6 +- .../TypeDelegatingEntityWriter.java | 4 +- .../startup/RuntimeDeploymentManager.java | 8 +- .../startup/RuntimeInterceptorDeployment.java | 10 +- .../startup/RuntimeResourceDeployment.java | 10 +- .../AsyncExceptionMappingUtil.java | 2 +- .../reactive/server/filters/FilterUtil.java | 2 +- ...steasyReactiveContainerRequestContext.java | 16 +- .../server/handlers/CacheControlHandler.java | 2 +- .../server/handlers/ClassRoutingHandler.java | 16 +- .../server/handlers/FixedProducesHandler.java | 10 +- .../server/handlers/InputHandler.java | 2 +- .../server/handlers/InterceptorHandler.java | 4 +- .../server/handlers/MediaTypeMapper.java | 8 +- .../server/handlers/ParameterHandler.java | 6 +- .../handlers/PerRequestInstanceHandler.java | 2 +- .../handlers/PublisherResponseHandler.java | 4 +- .../handlers/RequestDeserializeHandler.java | 20 +- .../handlers/ResourceLocatorHandler.java | 6 +- .../ResourceRequestFilterHandler.java | 2 +- .../ResourceResponseFilterHandler.java | 4 +- .../server/handlers/ResponseHandler.java | 6 +- .../handlers/ResponseWriterHandler.java | 4 +- .../server/handlers/RestInitialHandler.java | 2 +- .../handlers/VariableProducesHandler.java | 16 +- .../server/injection/ContextProducers.java | 28 +- .../jaxrs/AbstractInterceptorContext.java | 4 +- .../server/jaxrs/AsyncResponseImpl.java | 16 +- .../jaxrs/ContainerRequestContextImpl.java | 14 +- .../jaxrs/ContainerResponseContextImpl.java | 20 +- .../server/jaxrs/ContextResolverDelegate.java | 2 +- .../server/jaxrs/DynamicFeatureContext.java | 4 +- .../server/jaxrs/FeatureContextImpl.java | 20 +- .../server/jaxrs/HttpHeadersImpl.java | 8 +- .../server/jaxrs/OutboundSseEventImpl.java | 10 +- .../reactive/server/jaxrs/ProvidersImpl.java | 14 +- .../jaxrs/ReaderInterceptorContextImpl.java | 16 +- .../reactive/server/jaxrs/RequestImpl.java | 12 +- .../server/jaxrs/ResourceContextImpl.java | 4 +- .../server/jaxrs/ResponseBuilderImpl.java | 4 +- .../server/jaxrs/RestResponseBuilderImpl.java | 2 +- .../server/jaxrs/SseBroadcasterImpl.java | 6 +- .../server/jaxrs/SseEventSinkImpl.java | 4 +- .../reactive/server/jaxrs/SseImpl.java | 6 +- .../reactive/server/jaxrs/UriInfoImpl.java | 8 +- .../jaxrs/WriterInterceptorContextImpl.java | 18 +- .../server/mapping/RuntimeResource.java | 2 +- .../server/model/ContextResolvers.java | 4 +- .../server/model/DynamicFeatures.java | 4 +- .../reactive/server/model/Features.java | 2 +- .../server/model/HandlerChainCustomizer.java | 4 +- .../server/model/ParamConverterProviders.java | 2 +- .../reactive/server/multipart/FormValue.java | 2 +- .../multipart/MultipartFormDataOutput.java | 2 +- .../MultipartPartReadingException.java | 7 +- .../reactive/server/multipart/PartItem.java | 4 +- .../ServerBooleanMessageBodyHandler.java | 4 +- .../ServerByteArrayMessageBodyHandler.java | 4 +- .../ServerCharArrayMessageBodyHandler.java | 4 +- .../ServerCharacterMessageBodyHandler.java | 4 +- .../ServerDefaultTextPlainBodyHandler.java | 12 +- .../serialisers/ServerFileBodyHandler.java | 8 +- .../ServerFilePartBodyHandler.java | 8 +- .../ServerFormUrlEncodedProvider.java | 14 +- .../ServerInputStreamMessageBodyHandler.java | 4 +- .../ServerNumberMessageBodyHandler.java | 4 +- .../serialisers/ServerPathBodyHandler.java | 6 +- .../ServerPathPartBodyHandler.java | 6 +- .../serialisers/ServerReaderBodyHandler.java | 4 +- .../ServerStringMessageBodyHandler.java | 4 +- .../jsonp/ServerJsonArrayHandler.java | 8 +- .../jsonp/ServerJsonObjectHandler.java | 8 +- .../jsonp/ServerJsonStructureHandler.java | 10 +- .../jsonp/ServerJsonValueHandler.java | 8 +- .../spi/AsyncExceptionMapperContext.java | 2 +- .../reactive/server/spi/ContentType.java | 2 +- .../ResteasyReactiveAsyncExceptionMapper.java | 4 +- ...steasyReactiveContainerRequestContext.java | 2 +- ...esteasyReactiveContainerRequestFilter.java | 4 +- ...steasyReactiveContainerResponseFilter.java | 6 +- .../spi/ResteasyReactiveExceptionMapper.java | 4 +- .../spi/ResteasyReactiveResourceInfo.java | 2 +- .../server/spi/ServerMessageBodyReader.java | 6 +- .../server/spi/ServerMessageBodyWriter.java | 6 +- .../server/spi/ServerRequestContext.java | 4 +- .../reactive/server/util/ScoreSystem.java | 4 +- .../resteasy-reactive/server/vertx/pom.xml | 8 +- .../vertx/ResteasyReactiveOutputStream.java | 4 +- .../VertxResteasyReactiveRequestContext.java | 2 +- ...erverMutinyAsyncFileMessageBodyWriter.java | 10 +- .../ServerMutinyBufferMessageBodyWriter.java | 8 +- ...ServerVertxAsyncFileMessageBodyWriter.java | 10 +- .../ServerVertxBufferMessageBodyWriter.java | 8 +- ...ockingAndNonBlockingOnApplicationTest.java | 8 +- ...BothBlockingAndNonBlockingOnClassTest.java | 4 +- ...othBlockingAndNonBlockingOnMethodTest.java | 4 +- .../server/vertx/test/HelloResource.java | 6 +- .../server/vertx/test/InnerClassTest.java | 4 +- .../test/MultipleHttpAnnotationsTest.java | 8 +- .../cache/CacheOnClassAndMethodsTest.java | 4 +- .../vertx/test/cache/CacheOnMethodsTest.java | 4 +- .../cache/NoCacheOnClassAndMethodsTest.java | 4 +- .../test/cache/NoCacheOnMethodsTest.java | 4 +- .../test/customexceptions/FirstResource.java | 16 +- .../GlobalThrowableExceptionMapperTest.java | 8 +- .../MyOtherExceptionMapper.java | 2 +- .../PerClassThrowableExceptionMapperTest.java | 8 +- .../test/customexceptions/SecondResource.java | 6 +- .../vertx/test/customexceptions/SomeBean.java | 2 +- .../customexceptions/UniExceptionMapper.java | 2 +- .../UnwrappedExceptionTest.java | 4 +- .../AnotherValidNonBlockingFiltersTest.java | 24 +- .../AssertContainerFilter.java | 8 +- .../CustomContainerRequestFilter.java | 6 +- .../CustomContainerResponseFilter.java | 4 +- .../CustomFiltersResource.java | 12 +- .../FilterWithPathParamsTest.java | 8 +- .../IllegalStateExceptionMapper.java | 6 +- .../InvalidNonBlockingFiltersTest.java | 16 +- .../vertx/test/customproviders/Metal.java | 2 +- .../test/customproviders/MetalFilter.java | 2 +- .../test/customproviders/NoTargetTest.java | 20 +- .../OptionalRequestFilter.java | 4 +- .../test/customproviders/ResponseFilter.java | 4 +- .../vertx/test/customproviders/SomeBean.java | 2 +- .../customproviders/UniExceptionMapper.java | 6 +- .../customproviders/UniFiltersResource.java | 12 +- .../customproviders/UniResponseFilter.java | 2 +- .../UniResponseRequestFilter.java | 8 +- .../customproviders/UniVoidRequestFilter.java | 6 +- .../ValidNonBlockingFiltersTest.java | 22 +- .../form/FormUrlencodedCorruptionTest.java | 12 +- .../framework/ResteasyReactiveUnitTest.java | 2 +- .../vertx/test/headers/ChunkedHeaderTest.java | 6 +- .../test/headers/CookiesTestResource.java | 14 +- .../server/vertx/test/headers/Dummy.java | 4 +- .../test/headers/ResponseHeaderTest.java | 4 +- .../vertx/test/matching/EndingSlashTest.java | 8 +- .../vertx/test/matching/GeneralResource.java | 10 +- .../test/matching/MultipleProducesTest.java | 18 +- .../test/matching/PathParamOverlapTest.java | 8 +- .../vertx/test/matching/RegexResource.java | 6 +- .../test/matching/ResourceClassMergeTest.java | 12 +- .../vertx/test/matching/SpecificResource.java | 10 +- .../matching/SubresourceCustomRegexTest.java | 8 +- .../vertx/test/mediatype/CharsetTest.java | 8 +- .../test/mediatype/ContentTypeCaseTest.java | 10 +- .../mediatype/InvalidContentTypeTest.java | 6 +- .../test/mediatype/MessageBodyWriteTest.java | 16 +- .../NoAcceptMultipleProducesTest.java | 14 +- .../vertx/test/multipart/EchoResource.java | 10 +- .../server/vertx/test/multipart/FormData.java | 2 +- .../vertx/test/multipart/FormDataBase.java | 2 +- .../test/multipart/FormDataSameFileName.java | 2 +- .../multipart/FormDataWithAllUploads.java | 2 +- .../test/multipart/InvalidEncodingTest.java | 12 +- ...ltFormAttributeMultipartFormInputTest.java | 14 +- .../MultipartFileContentTypeTest.java | 2 +- .../MultipartOutputFileResponse.java | 2 +- .../multipart/MultipartOutputResource.java | 8 +- .../multipart/MultipartOutputResponse.java | 4 +- ...ipartOutputUsingBlockingEndpointsTest.java | 2 +- ...tipartOutputUsingReactiveEndpointTest.java | 10 +- .../test/multipart/MultipartResource.java | 16 +- .../MultipartResourceWithAllUploads.java | 12 +- .../test/multipart/OtherFormDataBase.java | 2 +- .../multipart/OtherMultipartResource.java | 10 +- ...geFormAttributeMultipartFormInputTest.java | 10 +- .../other/OtherPackageFormDataBase.java | 2 +- .../server/vertx/test/path/HelloResource.java | 8 +- .../vertx/test/path/WhitespaceInPathTest.java | 4 +- .../vertx/test/providers/FileResource.java | 4 +- .../vertx/test/providers/FileTestCase.java | 2 +- .../test/providers/InvalidFileResource.java | 4 +- .../test/providers/WithWriterInterceptor.java | 2 +- .../test/providers/WriterInterceptor.java | 8 +- .../AbortFilterWithLargePayloadTest.java | 16 +- .../resource/basic/AbortingRequestFilter.java | 8 +- .../basic/BasicGenericTypesHandlingTest.java | 16 +- .../basic/ClassLevelMediaTypeTest.java | 8 +- .../basic/CollectionDefaultValueTest.java | 6 +- ...ovariantReturnSubresourceLocatorsTest.java | 6 +- .../resource/basic/DefaultMediaTypeTest.java | 12 +- .../resource/basic/GenericEntityTest.java | 8 +- .../resource/basic/GenericResourceTest.java | 4 +- .../test/resource/basic/HttpHeadersTest.java | 6 +- .../test/resource/basic/InheritanceTest.java | 8 +- .../resource/basic/MatchedResourceTest.java | 10 +- ...TypeFromMessageBodyWriterTestMultiple.java | 8 +- ...MediaTypeNegotiationClientQualityTest.java | 26 +- ...MediaTypeNegotiationServerQualityTest.java | 30 +- .../basic/MultiInterfaceResLocatorTest.java | 6 +- .../basic/MultipleAcceptHeaderTest.java | 8 +- .../resource/basic/ParameterSubResTest.java | 6 +- .../test/resource/basic/ReponseInfoTest.java | 8 +- .../basic/RequestFilterQueryParamsTest.java | 22 +- .../resource/basic/ResourceLocatorTest.java | 14 +- .../resource/basic/SpecialResourceTest.java | 12 +- .../basic/SubResourceLocatorTest.java | 8 +- .../basic/SubResourceRequestFilterTest.java | 18 +- .../test/resource/basic/UriInfoTest.java | 10 +- .../basic/WiderMappingNegativeTest.java | 6 +- .../resource/ApplicationScopeObject.java | 2 +- .../resource/ClassLevelMediaTypeResource.java | 8 +- .../CollectionDefaultValueResource.java | 12 +- ...antReturnSubresourceLocatorsRootProxy.java | 4 +- ...iantReturnSubresourceLocatorsSubProxy.java | 4 +- ...rnSubresourceLocatorsSubProxyRootImpl.java | 2 +- .../resource/DefaultCharsetResource.java | 6 +- .../resource/DefaultMediaTypeResource.java | 16 +- .../basic/resource/ExtensionResource.java | 12 +- .../resource/GenericEntityDoubleWriter.java | 12 +- .../resource/GenericEntityFloatWriter.java | 12 +- ...cEntityIntegerServerMessageBodyWriter.java | 10 +- .../basic/resource/GenericEntityResource.java | 8 +- .../resource/GenericResourceCrudResource.java | 8 +- .../GenericResourceStudentCrudResource.java | 6 +- .../GenericResourceStudentInterface.java | 12 +- .../GenericResourceStudentReader.java | 12 +- .../GenericResourceStudentWriter.java | 12 +- .../resource/GetAbsolutePathResource.java | 12 +- .../basic/resource/HttpHeadersResource.java | 16 +- .../resource/InheritenceParentResource.java | 4 +- .../InheritenceParentResourceImpl.java | 2 +- .../basic/resource/MatchedResource.java | 10 +- ...iaTypeFromMessageBodyWriterListAsText.java | 10 +- ...diaTypeFromMessageBodyWriterListAsXML.java | 10 +- ...ediaTypeFromMessageBodyWriterResource.java | 18 +- .../MultiInterfaceResLocatorIntf1.java | 6 +- .../MultiInterfaceResLocatorIntf2.java | 6 +- .../MultiInterfaceResLocatorResource.java | 4 +- .../basic/resource/MultipleGetResource.java | 10 +- .../resource/ParameterSubResClassSub.java | 10 +- .../ParameterSubResGenericInterface.java | 4 +- .../resource/ParameterSubResGenericSub.java | 2 +- .../ParameterSubResInternalInterface.java | 2 +- .../basic/resource/ParameterSubResRoot.java | 4 +- .../resource/ParameterSubResRootImpl.java | 2 +- .../basic/resource/ParameterSubResSub.java | 4 +- .../basic/resource/RequestScopedObject.java | 2 +- .../resource/ResourceInfoInjectionFilter.java | 14 +- .../resource/ResourceLocatorBaseResource.java | 8 +- .../ResourceLocatorCollectionResource.java | 2 +- .../resource/ResourceLocatorDirectory.java | 6 +- .../resource/ResourceLocatorReceiver.java | 4 +- .../ResourceLocatorRootInterface.java | 10 +- .../resource/ResourceLocatorSubInterface.java | 8 +- .../resource/ResourceLocatorSubresource.java | 12 +- .../resource/ResourceLocatorSubresource2.java | 10 +- .../ResourceLocatorSubresource3Interface.java | 6 +- .../basic/resource/ResponseInfoResource.java | 10 +- .../resource/basic/resource/ScanProxy.java | 6 +- .../basic/resource/ScanSubresource.java | 6 +- .../resource/SpecialResourceApiResource.java | 12 +- .../SpecialResourceDeleteResource.java | 6 +- .../SpecialResourceStreamResource.java | 6 +- .../SubResourceLocatorBaseCrudService.java | 18 +- .../SubResourceLocatorBaseService.java | 8 +- .../basic/resource/SubResourceLocatorFoo.java | 4 +- .../resource/SubResourceLocatorImpFoo.java | 2 +- ...SubResourceLocatorPlatformServiceImpl.java | 4 +- ...esourceLocatorPlatformServiceResource.java | 6 +- .../SubResourceLocatorUserResource.java | 20 +- .../resource/UriInfoEncodedQueryResource.java | 10 +- .../UriInfoEncodedTemplateResource.java | 12 +- .../UriInfoEscapedMatrParamResource.java | 6 +- .../resource/UriInfoQueryParamsResource.java | 12 +- .../resource/UriInfoRelativizeResource.java | 12 +- .../resource/UriInfoResolveResource.java | 12 +- .../basic/resource/UriInfoSimpleResource.java | 10 +- .../UriInfoSimpleSingletonResource.java | 10 +- .../resource/WiderMappingDefaultOptions.java | 4 +- .../basic/resource/WiderMappingResource.java | 4 +- .../test/response/ContentLengthTest.java | 12 +- ...CustomHeadersAndWriterInterceptorTest.java | 18 +- .../test/response/ExceptionInWriterTest.java | 18 +- .../test/response/NullHeaderTestCase.java | 14 +- .../vertx/test/response/ResponseTest.java | 4 +- .../test/response/RestResponseResource.java | 14 +- .../filters/AsyncFilterExceptionMapper.java | 8 +- .../filters/AsyncPreMatchRequestFilter1.java | 6 +- .../filters/AsyncPreMatchRequestFilter2.java | 6 +- .../filters/AsyncPreMatchRequestFilter3.java | 6 +- .../async/filters/AsyncRequestFilter.java | 2 +- .../async/filters/AsyncRequestFilter1.java | 4 +- .../async/filters/AsyncRequestFilter2.java | 4 +- .../async/filters/AsyncRequestFilter3.java | 4 +- .../filters/AsyncRequestFilterResource.java | 12 +- .../async/filters/AsyncRequestFilterTest.java | 10 +- .../resteasy/async/filters/AsyncResource.java | 14 +- .../async/filters/AsyncResponseFilter.java | 2 +- .../async/filters/AsyncResponseFilter1.java | 4 +- .../async/filters/AsyncResponseFilter2.java | 4 +- .../async/filters/AsyncResponseFilter3.java | 4 +- .../test/simple/ApplicationPathTest.java | 8 +- .../vertx/test/simple/ApplicationTest.java | 26 +- .../simple/ApplicationWithBlockingTest.java | 6 +- .../server/vertx/test/simple/Bar.java | 2 +- .../simple/BeanParamEmptySubclassTest.java | 14 +- .../vertx/test/simple/BeanParamSubClass.java | 2 +- .../test/simple/BeanParamSuperClass.java | 8 +- .../BeanParamWithLocalDateTimeTest.java | 8 +- .../test/simple/BlockingWithFilterTest.java | 10 +- ...icFeatureRequestFilterWithLowPriority.java | 8 +- .../simple/FeatureMappedExceptionMapper.java | 4 +- ...atureRequestFilterWithHighestPriority.java | 8 +- ...eatureRequestFilterWithNormalPriority.java | 4 +- .../test/simple/FeatureResponseFilter.java | 6 +- .../test/simple/FieldInjectedResource.java | 14 +- .../simple/FieldInjectedSubClassResource.java | 16 +- .../server/vertx/test/simple/Foo.java | 2 +- .../test/simple/HeaderParamResource.java | 6 +- .../vertx/test/simple/HelloService.java | 4 +- .../simple/IllegalClassExceptionMapper.java | 6 +- .../vertx/test/simple/InstantParamTest.java | 4 +- .../vertx/test/simple/InterfaceResource.java | 8 +- .../test/simple/InterfaceResourceImpl.java | 2 +- .../test/simple/InterfaceWithImplTest.java | 8 +- ...lDateCustomParamConverterProviderTest.java | 14 +- .../vertx/test/simple/LocalDateParamTest.java | 12 +- .../test/simple/LocalDateTimeParamTest.java | 8 +- .../simple/MultipleAcceptHeadersTest.java | 6 +- .../test/simple/MyParameterConverter.java | 2 +- .../test/simple/MyParameterProvider.java | 6 +- .../simple/NameBindingWithInterfaceTest.java | 18 +- .../test/simple/NewParamsRestResource.java | 30 +- .../vertx/test/simple/OtherBeanParam.java | 4 +- .../test/simple/OtherJavaTimeParamTest.java | 6 +- .../server/vertx/test/simple/Person.java | 2 +- .../vertx/test/simple/QueryParamResource.java | 10 +- .../test/simple/RawListQueryParamTest.java | 4 +- .../simple/ResourceInfoInjectingFilter.java | 10 +- .../vertx/test/simple/RootAResource.java | 4 +- .../vertx/test/simple/RootBResource.java | 4 +- .../vertx/test/simple/SimpleBeanParam.java | 8 +- .../simple/SimpleQuarkusRestResource.java | 52 +-- .../server/vertx/test/simple/SubResource.java | 4 +- .../server/vertx/test/simple/TRACE.java | 2 +- .../test/simple/TestBarRequestFilter.java | 10 +- .../test/simple/TestBarResponseFilter.java | 12 +- .../vertx/test/simple/TestDynamicFeature.java | 10 +- .../test/simple/TestExceptionMapper.java | 6 +- .../server/vertx/test/simple/TestFeature.java | 8 +- .../test/simple/TestFooBarRequestFilter.java | 10 +- .../test/simple/TestFooBarResponseFilter.java | 12 +- .../test/simple/TestFooRequestFilter.java | 12 +- .../test/simple/TestFooResponseFilter.java | 12 +- .../simple/TestPreMatchRequestFilter.java | 8 +- .../vertx/test/simple/TestRequestFilter.java | 6 +- .../TestRequestFilterWithHighPriority.java | 10 +- .../TestRequestFilterWithHighestPriority.java | 10 +- .../vertx/test/simple/TestResponseFilter.java | 8 +- .../server/vertx/test/simple/TestUtil.java | 2 +- .../server/vertx/test/simple/TestWriter.java | 12 +- .../vertx/test/status/ResponseStatusTest.java | 4 +- .../vertx/test/stream/StreamResource.java | 8 +- .../vertx/test/stream/StreamTestCase.java | 8 +- .../test/stress/SuspendResumeStressTest.java | 4 +- .../AnnotationTransformationTest.java | 4 +- .../{class-name-base}Resource.tpl.qute.java | 6 +- .../src/{resource.class-name}.tpl.qute.java | 8 +- .../kotlin/build.tpl.qute.gradle.kts | 4 +- .../gradle/kotlin/build.tpl.qute.gradle | 4 +- .../buildtool/maven/kotlin/pom.tpl.qute.xml | 4 +- .../acme/{resource.class-name}.tpl.qute.java | 10 +- .../acme/{resource.class-name}.tpl.qute.kt | 8 +- .../acme/{resource.class-name}.tpl.qute.scala | 4 +- .../acme/{resource.class-name}.tpl.qute.java | 10 +- .../acme/{resource.class-name}.tpl.qute.kt | 8 +- .../acme/{resource.class-name}.tpl.qute.scala | 4 +- .../main/java/org/acme/MyHelloExample.java | 2 +- .../main/kotlin/org/acme/MyHelloExample.kt | 2 +- .../SmartPackageFileStrategyHandlerTest.java | 12 +- .../tools/devtools-common/pom.xml | 12 - ...c_main_java_org_acme_GreetingResource.java | 10 +- ...c_main_java_org_acme_GreetingResource.java | 10 +- ...rc_main_java_com_andy_BonjourResource.java | 10 +- ...rc_main_kotlin_com_andy_BonjourResource.kt | 8 +- ..._main_scala_com_andy_BonjourResource.scala | 4 +- .../generateDefaultProject/src_main.java | 8 +- ..._java_ilove_quark_us_GreetingResource.java | 10 +- ..._kotlin_ilove_quark_us_GreetingResource.kt | 8 +- ...cala_ilove_quark_us_GreetingResource.scala | 4 +- ..._java_ilove_quark_us_GreetingResource.java | 10 +- ..._kotlin_ilove_quark_us_GreetingResource.kt | 8 +- ...cala_ilove_quark_us_GreetingResource.scala | 4 +- independent-projects/tools/pom.xml | 16 +- .../it/amazon/lambda/GreetingResource.java | 16 +- .../lambda/AmazonLambdaSimpleTestCase.java | 2 +- .../amazon/lambda/CustomSecurityProvider.java | 2 +- .../it/amazon/lambda/GreetingResource.java | 14 +- .../amazon/lambda/SecurityCheckResource.java | 10 +- .../lambda/AmazonLambdaSimpleTestCase.java | 2 +- .../it/amazon/lambda/GreetingResource.java | 18 +- .../it/amazon/lambda/GreetingServlet.java | 10 +- .../amazon/lambda/SecurityCheckResource.java | 12 +- .../it/amazon/lambda/SecurityServlet.java | 10 +- .../lambda/AmazonLambdaSimpleTestCase.java | 2 +- .../it/amazon/lambda/v1/GreetingResource.java | 16 +- .../it/amazon/lambda/v1/GreetingServlet.java | 10 +- .../lambda/v1/SecurityCheckResource.java | 12 +- .../it/amazon/lambda/v1/SecurityServlet.java | 10 +- .../lambda/AmazonLambdaV1SimpleTestCase.java | 2 +- .../quarkus/it/amazon/lambda/TestLambda.java | 2 +- .../io/quarkus/it/amazon/lambda/Count.java | 2 +- .../it/amazon/lambda/CounterInterceptor.java | 8 +- .../it/amazon/lambda/ProcessingService.java | 2 +- .../quarkus/it/amazon/lambda/TestLambda.java | 4 +- .../it/amazon/lambda/UnusedLambda.java | 4 +- .../avro/deployment/AvroReloadResource.java | 4 +- .../java/io/quarkus/awt/it/Application.java | 5 +- .../java/io/quarkus/awt/it/ImageResource.java | 19 +- .../it/bootstrap/config/ConfigResource.java | 14 +- .../bootstrap/config/ConfigResourceTest.java | 2 +- .../BouncyCastleFipsJsseEndpoint.java | 4 +- .../BouncyCastleFipsEndpoint.java | 4 +- .../BouncyCastleJsseEndpoint.java | 6 +- .../it/bouncycastle/SecretProvider.java | 4 +- .../it/bouncycastle/BouncyCastleEndpoint.java | 5 +- .../io/quarkus/it/cache/CaffeineResource.java | 6 +- .../quarkus/it/cache/ExpensiveResource.java | 10 +- .../quarkus/it/cache/RestClientResource.java | 6 +- .../quarkus/it/cache/SunriseRestClient.java | 6 +- .../it/cache/SunriseRestServerResource.java | 8 +- .../main/java/io/quarkus/it/cache/Tree.java | 6 +- .../io/quarkus/it/cache/TreeResource.java | 12 +- .../class-transformer/deployment/pom.xml | 4 +- .../ClassTransformerProcessor.java | 4 +- .../main/java/io/quarkus/it/common/Clown.java | 6 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Fruit.java | 18 +- .../src/main/java/org/acme/FruitResource.java | 8 +- .../java/org/acme/kafka/KafkaEndpoint.java | 18 +- .../java/org/acme/kafka/KafkaProviders.java | 6 +- .../src/main/java/org/acme/Fruit.java | 18 +- .../src/main/java/org/acme/FruitResource.java | 8 +- .../src/main/java/org/acme/FruitResource.java | 6 +- .../src/main/java/org/acme/Fruit.java | 18 +- .../src/main/java/org/acme/FruitResource.java | 8 +- .../src/main/java/org/acme/Fruit.java | 18 +- .../src/main/java/org/acme/FruitResource.java | 8 +- .../src/main/java/org/acme/Fruit.java | 18 +- .../src/main/java/org/acme/FruitResource.java | 8 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 8 +- .../src/main/java/org/acme/Hello.java | 10 +- .../openid/connect/AdminResource.java | 10 +- .../openid/connect/UsersResource.java | 12 +- .../openid/connect/AdminResource.java | 10 +- .../openid/connect/UsersResource.java | 12 +- .../org/acme/redis/IncrementResource.java | 20 +- .../java/org/acme/redis/IncrementService.java | 2 +- .../src/main/java/org/acme/Hello.java | 10 +- .../it/container/image/GreetingResource.java | 8 +- .../java/io/quarkus/it/csrf/TestResource.java | 20 +- .../devconsole/DevConsoleArcSmokeTest.java | 6 +- .../devconsole/DevConsoleCacheSmokeTest.java | 2 +- .../test/devconsole/DummyConnector.java | 2 +- .../io/quarkus/test/devconsole/MyEntity.java | 6 +- .../test/devconsole/MyIndexedEntity.java | 4 +- .../quarkus/test/devconsole/MyProcessor.java | 8 +- .../quarkus/test/devconsole/MyResource.java | 8 +- .../devconsole/namedpu/MyNamedPuEntity.java | 4 +- .../namedpu/MyNamedPuIndexedEntity.java | 4 +- .../test/no/src/main/NoSrcMainResource.java | 8 +- .../quarkus/test/qute/QuteErrorPageTest.java | 2 +- .../AdditionalWatchedResourcesResource.java | 12 +- .../security/DisabledAuthorizationTest.java | 8 +- .../vertx/ConsumeUuidEventHotReloadTest.java | 6 +- .../MutinyVerticleClassnameHotReloadTest.java | 6 +- .../MutinyVerticleInstanceHotReloadTest.java | 6 +- .../test/vertx/UuidMessageConsumer.java | 2 +- .../vertx/VerticleClassnameHotReloadTest.java | 6 +- .../vertx/VerticleInstanceHotReloadTest.java | 6 +- .../registry/RegistryConfigResource.java | 10 +- ...ooglecloudfunctions_GreetingFunctions.java | 2 +- ...ygooglecloudfunctions_GreetingService.java | 2 +- ...unctions_HelloWorldBackgroundFunction.java | 4 +- ...nctions_HelloWorldCloudEventsFunction.java | 4 +- ...cloudfunctions_HelloWorldHttpFunction.java | 4 +- ...googlecloudfunctions_GreetingResource.java | 12 +- ..._googlecloudfunctions_GreetingServlet.java | 10 +- ...src_main_java_ilove_quark_us_MyEntity.java | 6 +- ...in_kotlin_ilove_quark_us_MyKotlinEntity.kt | 6 +- ...src_main_java_ilove_quark_us_MyEntity.java | 2 +- ...in_kotlin_ilove_quark_us_MyKotlinEntity.kt | 2 +- ...n_java_ilove_quark_us_MyRemoteService.java | 6 +- ...n_kotlin_ilove_quark_us_MyRemoteService.kt | 6 +- ...src_main_java_ilove_quark_us_SomePage.java | 10 +- ...src_main_kotlin_ilove_quark_us_SomePage.kt | 10 +- ..._java_ilove_quark_us_GreetingResource.java | 10 +- ...src_main_java_ilove_quark_us_SomePage.java | 10 +- ..._kotlin_ilove_quark_us_GreetingResource.kt | 8 +- ...src_main_kotlin_ilove_quark_us_SomePage.kt | 10 +- ...ark_us_MyReactiveMessagingApplication.java | 6 +- ...us_MyReactiveMessagingApplicationTest.java | 4 +- ...ark_us_MyReactiveMessagingApplication.java | 6 +- ...us_MyReactiveMessagingApplicationTest.java | 4 +- ...va_ilove_quark_us_MyDeclarativeRoutes.java | 4 +- ...tlin_ilove_quark_us_MyDeclarativeRoutes.kt | 2 +- ...in_java_ilove_quark_us_StartWebSocket.java | 18 +- ...in_kotlin_ilove_quark_us_StartWebSocket.kt | 8 +- .../it/elasticsearch/FruitResource.java | 16 +- .../it/elasticsearch/FruitService.java | 4 +- .../highlevel/FruitResource.java | 16 +- .../elasticsearch/highlevel/FruitService.java | 4 +- .../AuthenticationFailedExceptionMapper.java | 10 +- .../reactive/elytron/FruitResource.java | 4 +- .../reactive/elytron/RootResource.java | 20 +- .../elytron/AuthFailedExceptionMapper.java | 6 +- .../it/resteasy/elytron/RootResource.java | 20 +- .../jdbc/it/ElytronSecurityJdbcResource.java | 8 +- .../ldap/it/ElytronSecurityLdapResource.java | 8 +- .../ElytronOauth2ExtensionResource.java | 6 +- .../it/elytron/KeyFactoryEndpoint.java | 6 +- .../it/elytron/X500PrincipalEndpoint.java | 11 +- .../it/elytron/X500PrincipalUtilUser.java | 5 +- .../elytron/AnnotationSecurityServlet.java | 16 +- .../it/undertow/elytron/GreetingServlet.java | 10 +- .../it/undertow/elytron/RootResource.java | 16 +- .../src/main/resources/META-INF/web.xml | 2 +- .../java/io/quarkus/it/flyway/AppEntity.java | 6 +- .../java/io/quarkus/it/flyway/FlywayApp.java | 4 +- .../flyway/FlywayFunctionalityResource.java | 8 +- .../quarkus/funqy/test/GreetingFunctions.java | 2 +- .../quarkus/funqy/test/GreetingService.java | 2 +- .../gcp/functions/test/GreetingFunctions.java | 2 +- .../gcp/functions/test/GreetingService.java | 2 +- .../gcp/functions/http/GreetingResource.java | 12 +- .../gcp/functions/http/GreetingServlet.java | 10 +- .../test/BackgroundFunctionStorageTest.java | 6 +- .../function/test/CloudEventStorageTest.java | 6 +- .../gcp/function/test/HttpFunctionTest.java | 6 +- .../test/RawBackgroundFunctionPubSubTest.java | 6 +- .../test/service/GreetingService.java | 2 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../src/funcTest/java/ft/SimpleBeanTest.java | 2 +- .../src/main/java/ft/SimpleBean.java | 2 +- .../acme/quarkus/sample/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../src/main/java/org/acme/liba/LibA.java | 4 +- .../src/main/java/org/acme/libb/LibB.java | 6 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../src/main/java/org/acme/liba/LibA.java | 4 +- .../src/main/java/org/acme/libb/LibB.java | 6 +- .../main/java/org/acme/ExampleResource.java | 8 +- .../org/acme/ApplicationConfigResource.java | 8 +- .../main/java/org/acme/ExampleResource.java | 10 +- .../main/java/org/acme/BeanWithInjection.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../main/java/org/acme/ExampleResource.java | 10 +- .../main/kotlin/org/acme/GreetingResource.kt | 8 +- .../com/demo/application/Application.java | 4 +- .../demo/common/one/model/SharedModelOne.java | 6 +- .../demo/common/two/model/SharedModelTwo.java | 6 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../bean-in-testsources-project/build.gradle | 4 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../org/acme/test/TestExampleResource.kt | 8 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../java/io/playground/HelloResource.java | 12 +- .../java/io/playground/MyDataProducer.java | 4 +- .../org/acme/gradle/multi/dao/Product.java | 8 +- .../acme/gradle/multi/dao/ProductService.java | 6 +- .../gradle/multi/rest/ProductResource.java | 12 +- .../build.gradle.kts | 4 +- .../src/main/kotlin/org/acme/AdminResource.kt | 6 +- .../src/main/kotlin/org/acme/api/API.kt | 10 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../java/org/acme/WorkingDirResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/GreetingResource.java | 8 +- .../acme/extension/MyExtensionServlet.java | 8 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../main/java/org/acme/ExampleResource.java | 10 +- .../java/org/acme/ExampleResourceTest.java | 4 +- .../src/main/java/org/acme/LibraryBean.java | 2 +- .../test/java/org/acme/LibraryTestBean.java | 4 +- .../java/org/acme/LibraryTestDepBean.java | 2 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../kotlin-grpc-project/build.gradle | 4 +- .../main/kotlin/org/acme/ExampleResource.kt | 8 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/lib/LibService.java | 2 +- .../multi-module-kotlin-project/build.gradle | 4 +- .../quarkusmm/domain/CustomerServiceImpl.kt | 2 +- .../com/example/quarkusmm/ExampleResource.kt | 10 +- .../common/health/HealthStatusProducer.java | 6 +- .../java/org/acme/app/ExampleResource.java | 10 +- .../src/main/java/org/acme/app/Service1.java | 6 +- .../src/main/java/org/acme/app/Service2.java | 6 +- .../quarkus/reproducer/ExampleResource.java | 8 +- .../main/java/org/acme/GreetingResource.java | 10 +- .../multi-source-project/build.gradle | 4 +- .../java/org/acme/service/SimpleService.java | 2 +- .../main/kotlin/org/acme/ExampleResource.kt | 10 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 8 +- .../src/main/java/org/acme/Project.java | 10 +- .../main/java/org/acme/ExampleResource.java | 8 +- .../main/java/org.my.group/MyResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/TestOnlyResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../main/java/org/acme/ExampleResource.java | 12 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../main/java/org/acme/common/CommonBean.java | 2 +- .../health/MicroProfileHealthEnabledTest.java | 4 +- .../com/example/reactive/ContextChecker.java | 4 +- .../main/java/com/example/reactive/Item.java | 2 +- .../com/example/reactive/ReactiveService.java | 4 +- .../example/reactive/RequestScopeBean.java | 4 +- .../grpc/hibernate/ContextChecker.java | 4 +- .../java/com/example/grpc/hibernate/Item.java | 8 +- .../com/example/grpc/hibernate/ItemDao.java | 8 +- .../grpc/hibernate/RawTestService.java | 8 +- .../grpc/hibernate/RequestScopeBean.java | 4 +- .../example/grpc/hibernate/TestService.java | 6 +- .../interceptors/HeaderClientInterceptor.java | 2 +- .../interceptors/HeaderServerInterceptor.java | 2 +- .../HelloExceptionHandlerProvider.java | 2 +- .../interceptors/HelloWorldEndpoint.java | 8 +- .../HelloWorldServiceVertxTest.java | 2 +- .../examples/hello/HelloWorldTlsEndpoint.java | 6 +- .../VertxHelloWorldMutualTlsEndpointTest.java | 2 +- .../VertxHelloWorldMutualTlsServiceTest.java | 2 +- .../hello/HeaderCollectingInterceptor.java | 2 +- .../examples/hello/HelloWorldEndpoint.java | 10 +- .../hello/VertxHelloWorldServiceTest.java | 2 +- .../examples/hello/HelloWorldEndpoint.java | 16 +- .../examples/hello/IncomingInterceptor.java | 2 +- .../grpc/examples/hello/GrpcMockTest.java | 4 +- .../hello/VertxHelloWorldServiceTest.java | 2 +- .../examples/hello/HelloWorldEndpoint.java | 6 +- .../hello/VertxHelloWorldServiceTest.java | 2 +- .../examples/hello/GrpcCallingResource.java | 8 +- .../grpc/examples/hello/GrpcServices.java | 6 +- .../example/streaming/StreamingEndpoint.java | 10 +- .../streaming/VertxStreamingServiceTest.java | 2 +- .../examples/hello/HelloWorldTlsEndpoint.java | 6 +- .../hello/VertxHelloWorldTlsServiceTest.java | 2 +- .../examples/hello/HelloWorldNewEndpoint.java | 6 +- .../hello/HelloWorldN2OServiceTest.java | 2 +- .../hello/HelloWorldVertxServiceTest.java | 2 +- .../java/io/quarkus/it/envers/Project.java | 12 +- .../quarkus/it/envers/ProjectApplication.java | 4 +- .../io/quarkus/it/envers/ProjectResource.java | 18 +- .../orm/graphql/panache/Author.java | 2 +- .../hibertnate/orm/graphql/panache/Book.java | 10 +- .../orm/graphql/panache/BookRepository.java | 2 +- .../orm/graphql/panache/GraphQLResource.java | 2 +- .../orm/graphql/panache/PayloadCreator.java | 4 +- .../hibernate-orm-panache-kotlin/pom.xml | 2 +- .../it/panache/kotlin/AccessorEntity.kt | 4 +- .../io/quarkus/it/panache/kotlin/Address.kt | 6 +- .../quarkus/it/panache/kotlin/AddressDao.kt | 2 +- .../panache/kotlin/Bug5274EntityRepository.kt | 2 +- .../panache/kotlin/Bug5885EntityRepository.kt | 2 +- .../io/quarkus/it/panache/kotlin/Dog.kt | 8 +- .../io/quarkus/it/panache/kotlin/DogDao.kt | 2 +- .../quarkus/it/panache/kotlin/DummyService.kt | 2 +- .../it/panache/kotlin/GenericEntity.kt | 2 +- .../quarkus/it/panache/kotlin/JAXBEntity.kt | 16 +- .../io/quarkus/it/panache/kotlin/Person.kt | 22 +- .../it/panache/kotlin/PersonRepository.kt | 2 +- .../quarkus/it/panache/kotlin/TestEndpoint.kt | 26 +- ...otlinPanacheFunctionalityWithInjectTest.kt | 4 +- .../it/panache/MockPersonRepository.kt | 6 +- .../quarkus/it/panache/TestEndpointRunner.kt | 4 +- .../io/quarkus/it/panache/AccessorEntity.java | 4 +- .../java/io/quarkus/it/panache/Address.java | 2 +- .../io/quarkus/it/panache/AddressDao.java | 2 +- .../main/java/io/quarkus/it/panache/Beer.java | 4 +- .../io/quarkus/it/panache/BeerRepository.java | 4 +- .../main/java/io/quarkus/it/panache/Book.java | 6 +- .../java/io/quarkus/it/panache/BookDao.java | 2 +- .../it/panache/Bug5274EntityRepository.java | 2 +- .../it/panache/Bug5885EntityRepository.java | 2 +- .../io/quarkus/it/panache/Bug7721Entity.java | 4 +- .../it/panache/Bug7721EntitySuperClass.java | 4 +- .../it/panache/Bug7721OtherEntity.java | 2 +- .../main/java/io/quarkus/it/panache/Cat.java | 4 +- .../java/io/quarkus/it/panache/CatOwner.java | 2 +- .../main/java/io/quarkus/it/panache/Dog.java | 8 +- .../java/io/quarkus/it/panache/DogDao.java | 2 +- .../quarkus/it/panache/DuplicateEntity.java | 6 +- .../it/panache/DuplicateRepository.java | 2 +- .../java/io/quarkus/it/panache/Fruit.java | 2 +- .../io/quarkus/it/panache/GenericEntity.java | 2 +- .../io/quarkus/it/panache/JAXBEntity.java | 16 +- .../it/panache/MockablePersonRepository.java | 2 +- .../quarkus/it/panache/NamedQueryEntity.java | 4 +- .../panache/NamedQueryMappedSuperClass.java | 4 +- .../it/panache/NamedQueryRepository.java | 2 +- .../panache/NamedQueryWith2QueriesEntity.java | 4 +- .../NamedQueryWith2QueriesRepository.java | 2 +- .../it/panache/NoPagingTestEndpoint.java | 6 +- .../it/panache/ObjectWithCompositeId.java | 6 +- .../it/panache/ObjectWithEmbeddableId.java | 6 +- .../java/io/quarkus/it/panache/PageItem.java | 2 +- .../java/io/quarkus/it/panache/Person.java | 26 +- .../quarkus/it/panache/PersonRepository.java | 2 +- .../io/quarkus/it/panache/TestEndpoint.java | 26 +- .../main/java/io/quarkus/it/panache/User.java | 10 +- .../io/quarkus/it/panache/UserRepository.java | 4 +- .../it/panache/resources/BookResource.java | 10 +- .../it/panache/resources/UserResource.java | 16 +- .../src/test/java/PackagelessCat.java | 2 +- .../it/panache/DuplicateMethodTest.java | 2 +- .../it/panache/MockPersonRepository.java | 6 +- .../it/panache/PanacheFunctionalityTest.java | 12 +- .../it/panache/PanacheMockingTest.java | 6 +- .../TestTransactionOnSingleMethodTest.java | 2 +- .../panache/TransactionalRepositoryTest.java | 2 +- .../orm/rest/data/panache/Author.java | 2 +- .../hibernate/orm/rest/data/panache/Book.java | 10 +- .../orm/rest/data/panache/BookRepository.java | 2 +- .../HibernateOrmRestDataPanacheTest.java | 4 +- .../CustomTenantConnectionResolver.java | 2 +- .../it/hibernate/multitenancy/Producers.java | 12 +- .../fruit/CustomTenantResolver.java | 4 +- .../hibernate/multitenancy/fruit/Fruit.java | 18 +- .../multitenancy/fruit/FruitResource.java | 36 +- .../inventory/InventoryResource.java | 14 +- .../inventory/InventoryTenantResolver.java | 4 +- .../multitenancy/inventory/Plane.java | 12 +- .../HibernateTenancyFunctionalityTest.java | 2 +- .../HibernateNamedPersistenceUnitTest.java | 2 +- .../CustomTenantConnectionResolver.java | 2 +- .../it/hibernate/multitenancy/Producers.java | 10 +- .../fruit/CustomTenantResolver.java | 4 +- .../hibernate/multitenancy/fruit/Fruit.java | 18 +- .../multitenancy/fruit/FruitResource.java | 36 +- .../inventory/InventoryResource.java | 14 +- .../inventory/InventoryTenantResolver.java | 4 +- .../multitenancy/inventory/Plane.java | 12 +- .../HibernateTenancyFunctionalityTest.java | 2 +- .../HibernateNamedPersistenceUnitTest.java | 2 +- .../fruit/CustomTenantResolver.java | 4 +- .../hibernate/multitenancy/fruit/Fruit.java | 18 +- .../multitenancy/fruit/FruitResource.java | 36 +- .../inventory/InventoryResource.java | 14 +- .../inventory/InventoryTenantResolver.java | 4 +- .../multitenancy/inventory/Plane.java | 12 +- .../HibernateTenancyFunctionalityTest.java | 2 +- .../HibernateNamedPersistenceUnitTest.java | 2 +- .../fruit/CustomTenantResolver.java | 4 +- .../hibernate/multitenancy/fruit/Fruit.java | 18 +- .../multitenancy/fruit/FruitResource.java | 36 +- .../inventory/InventoryResource.java | 14 +- .../inventory/InventoryTenantResolver.java | 4 +- .../multitenancy/inventory/Plane.java | 12 +- .../HibernateTenancyFunctionalityTest.java | 2 +- .../HibernateNamedPersistenceUnitTest.java | 2 +- .../it/hibernate/reactive/db2/GuineaPig.java | 8 +- ...ateReactiveDB2AlternativeTestEndpoint.java | 6 +- .../db2/HibernateReactiveDB2TestEndpoint.java | 6 +- .../hibernate/reactive/mysql/GuineaPig.java | 8 +- ...eReactiveMySQLAlternativeTestEndpoint.java | 6 +- .../HibernateReactiveMySQLTestEndpoint.java | 6 +- .../io/quarkus/it/panache/reactive/Fruit.java | 2 +- .../it/panache/reactive/TestEndpoint.java | 4 +- .../hibernate-reactive-panache-kotlin/pom.xml | 2 +- .../it/panache/reactive/kotlin/Address.kt | 2 +- .../it/panache/reactive/kotlin/AddressDao.kt | 2 +- .../kotlin/Bug5274EntityRepository.kt | 2 +- .../kotlin/Bug5885EntityRepository.kt | 2 +- .../panache/reactive/kotlin/Bug7721Entity.kt | 4 +- .../kotlin/Bug7721EntitySuperClass.kt | 4 +- .../reactive/kotlin/Bug7721OtherEntity.kt | 2 +- .../quarkus/it/panache/reactive/kotlin/Cat.kt | 4 +- .../it/panache/reactive/kotlin/CatOwner.kt | 2 +- .../quarkus/it/panache/reactive/kotlin/Dog.kt | 8 +- .../it/panache/reactive/kotlin/DogDao.kt | 2 +- .../it/panache/reactive/kotlin/Fruit.kt | 2 +- .../reactive/kotlin/NamedQueryEntity.kt | 4 +- .../kotlin/NamedQueryMappedSuperClass.kt | 4 +- .../reactive/kotlin/NamedQueryRepository.kt | 2 +- .../kotlin/NamedQueryWith2QueriesEntity.kt | 4 +- .../NamedQueryWith2QueriesRepository.kt | 2 +- .../reactive/kotlin/NoPagingTestEndpoint.kt | 4 +- .../reactive/kotlin/ObjectWithCompositeId.kt | 6 +- .../reactive/kotlin/ObjectWithEmbeddableId.kt | 6 +- .../it/panache/reactive/kotlin/PageItem.kt | 2 +- .../it/panache/reactive/kotlin/Person.kt | 26 +- .../reactive/kotlin/PersonRepository.kt | 2 +- .../panache/reactive/kotlin/TestEndpoint.kt | 12 +- .../src/test/kotlin/PackagelessCat.kt | 2 +- .../kotlin/PanacheFunctionalityTest.kt | 4 +- .../it/panache/reactive/AccessorEntity.java | 4 +- .../quarkus/it/panache/reactive/Address.java | 2 +- .../it/panache/reactive/AddressDao.java | 2 +- .../io/quarkus/it/panache/reactive/Beer.java | 2 +- .../reactive/Bug5274EntityRepository.java | 2 +- .../reactive/Bug5885EntityRepository.java | 2 +- .../it/panache/reactive/Bug7721Entity.java | 4 +- .../reactive/Bug7721EntitySuperClass.java | 4 +- .../panache/reactive/Bug7721OtherEntity.java | 2 +- .../io/quarkus/it/panache/reactive/Cat.java | 4 +- .../quarkus/it/panache/reactive/CatOwner.java | 2 +- .../io/quarkus/it/panache/reactive/Dog.java | 8 +- .../quarkus/it/panache/reactive/DogDao.java | 2 +- .../it/panache/reactive/DuplicateEntity.java | 6 +- .../panache/reactive/DuplicateRepository.java | 2 +- .../io/quarkus/it/panache/reactive/Fruit.java | 2 +- .../it/panache/reactive/GenericEntity.java | 2 +- .../reactive/MockablePersonRepository.java | 2 +- .../it/panache/reactive/NamedQueryEntity.java | 4 +- .../reactive/NamedQueryMappedSuperClass.java | 4 +- .../reactive/NamedQueryRepository.java | 2 +- .../NamedQueryWith2QueriesEntity.java | 4 +- .../NamedQueryWith2QueriesRepository.java | 2 +- .../reactive/NoPagingTestEndpoint.java | 4 +- .../reactive/ObjectWithCompositeId.java | 6 +- .../reactive/ObjectWithEmbeddableId.java | 6 +- .../quarkus/it/panache/reactive/PageItem.java | 2 +- .../quarkus/it/panache/reactive/Person.java | 26 +- .../it/panache/reactive/PersonRepository.java | 2 +- .../it/panache/reactive/TestEndpoint.java | 12 +- .../src/test/java/PackagelessCat.java | 2 +- .../panache/reactive/DuplicateMethodTest.java | 2 +- .../reactive/MockPersonRepository.java | 6 +- .../reactive/PanacheFunctionalityTest.java | 6 +- .../panache/reactive/PanacheMockingTest.java | 6 +- .../reactive/postgresql/FriesianCow.java | 8 +- .../reactive/postgresql/GuineaPig.java | 8 +- .../HibernateReactiveTestEndpoint.java | 6 +- ...ernateReactiveTestEndpointAlternative.java | 6 +- ...ibernateReactiveTestEndpointFetchLazy.java | 10 +- ...ateReactiveTestEndpointJoinedSubclass.java | 22 +- .../reactive/postgresql/lazy/Author.java | 10 +- .../reactive/postgresql/lazy/Book.java | 14 +- ...ernateSearchOutboxPollingTestResource.java | 18 +- .../outboxpolling/OutboxPollingTestUtils.java | 14 +- .../coordination/outboxpolling/Person.java | 6 +- .../fruit/CustomTenantResolver.java | 4 +- .../multitenancy/fruit/Fruit.java | 18 +- .../multitenancy/fruit/FruitResource.java | 30 +- ...bernateSearchTenancyFunctionalityTest.java | 2 +- .../analysis/Analysis0TestingEntity.java | 2 +- .../analysis/Analysis1TestingEntity.java | 2 +- .../analysis/Analysis2TestingEntity.java | 2 +- .../analysis/Analysis3TestingEntity.java | 2 +- .../analysis/Analysis4TestingEntity.java | 2 +- .../analysis/Analysis5TestingEntity.java | 2 +- .../analysis/Analysis6TestingEntity.java | 2 +- .../analysis/AnalysisTestResource.java | 16 +- .../analysis/AnalysisTestingEntityBase.java | 8 +- .../analysis/BackendAnalysisConfigurer.java | 6 +- .../analysis/IndexAnalysis1Configurer.java | 2 +- .../analysis/IndexAnalysis2Configurer.java | 6 +- .../analysis/IndexAnalysis3Configurer.java | 2 +- .../analysis/IndexAnalysis4Configurer.java | 6 +- .../analysis/IndexAnalysis5Configurer.java | 4 +- .../analysis/IndexAnalysis6Configurer.java | 2 +- .../elasticsearch/analysis/MyCdiContext.java | 2 +- .../ElasticsearchClientTestResource.java | 8 +- ...ibernateSearchDevServicesTestResource.java | 14 +- .../devservices/IndexedEntity.java | 8 +- .../propertyaccess/MethodAccessEntity.java | 4 +- .../PrivateFieldAccessEntity.java | 8 +- .../PropertyAccessTestResource.java | 24 +- .../TransientMethodAccessEntity.java | 6 +- .../orm/elasticsearch/search/Address.java | 10 +- .../search/HibernateSearchTestResource.java | 16 +- .../orm/elasticsearch/search/Person.java | 14 +- .../analysis/BackendAnalysisConfigurer.java | 4 +- .../search/orm/opensearch/search/Address.java | 10 +- .../search/HibernateSearchTestResource.java | 16 +- .../search/orm/opensearch/search/Person.java | 14 +- .../validator/EnhancedGreetingService.java | 6 +- .../hibernate/validator/GreetingService.java | 6 +- .../HibernateValidatorTestResource.java | 26 +- ...ValidatorTestResourceGenericInterface.java | 2 +- ...bernateValidatorTestResourceInterface.java | 12 +- .../it/hibernate/validator/TextResource.java | 12 +- .../validator/custom/MyCustomConstraint.java | 8 +- .../HibernateValidatorFunctionalityTest.java | 4 +- .../validator/EnhancedGreetingService.java | 6 +- .../hibernate/validator/GreetingService.java | 6 +- .../HibernateValidatorTestResource.java | 50 +-- ...ValidatorTestResourceGenericInterface.java | 2 +- ...bernateValidatorTestResourceInterface.java | 12 +- ...ernateValidatorTestResourceSuperclass.java | 12 +- .../it/hibernate/validator/Startup.java | 4 +- .../hibernate/validator/ZipCodeService.java | 4 +- .../validator/ZipCodeServiceImpl.java | 2 +- .../validator/custom/MyCustomConstraint.java | 8 +- .../enums/MyEnumWithValidatorAnnotation.java | 4 +- .../validator/groups/MyBeanWithGroups.java | 8 +- .../validator/groups/ValidationGroups.java | 2 +- .../validator/inheritance/BookResource.java | 12 +- .../inheritance/ScienceBookResource.java | 2 +- .../InjectedConstraintValidator.java | 8 +- ...InjectedConstraintValidatorConstraint.java | 4 +- .../validator/injection/MyService.java | 2 +- .../hibernate/validator/orm/TestEntity.java | 8 +- ...cProxyBeanMetaDataClassNormalizerTest.java | 2 +- .../HibernateValidatorFunctionalityTest.java | 4 +- .../it/ide/launcher/HelloResource.java | 4 +- .../it/infinispan/cache/jpa/Citizen.java | 2 +- .../it/infinispan/cache/jpa/Country.java | 8 +- ...spanCacheJPAFunctionalityTestEndpoint.java | 28 +- .../quarkus/it/infinispan/cache/jpa/Item.java | 2 +- .../it/infinispan/cache/jpa/Person.java | 2 +- .../it/infinispan/cache/jpa/Pokemon.java | 6 +- .../it/infinispan/cache/jpa/Trainer.java | 2 +- .../infinispan/client/BookStoreService.java | 12 +- .../it/infinispan/client/CacheSetup.java | 6 +- .../client/MarshallerConfiguration.java | 4 +- .../it/infinispan/client/TestServlet.java | 22 +- .../io/quarkus/it/mockbean/AlphaObserver.java | 4 +- .../io/quarkus/it/mockbean/BravoObserver.java | 4 +- .../it/mockbean/CapitalizerService.java | 2 +- .../mockbean/CapitalizerServiceSingleton.java | 2 +- .../io/quarkus/it/mockbean/DummyResource.java | 8 +- .../io/quarkus/it/mockbean/DummyService2.java | 4 +- .../it/mockbean/DummyServiceProducer.java | 6 +- .../io/quarkus/it/mockbean/FooResource.java | 6 +- .../io/quarkus/it/mockbean/FooService.java | 2 +- .../quarkus/it/mockbean/GreetingResource.java | 6 +- .../mockbean/GreetingResourceSingleton.java | 6 +- .../it/mockbean/MessageServiceImpl.java | 2 +- .../mockbean/MessageServiceSingletonImpl.java | 2 +- .../it/mockbean/OtherUnusedService.java | 2 +- .../quarkus/it/mockbean/SameBeanInstance.java | 4 +- .../io/quarkus/it/mockbean/SuffixService.java | 2 +- .../SuffixServiceSingletonProducer.java | 4 +- .../io/quarkus/it/mockbean/UnusedService.java | 2 +- .../it/mockbean/DummyResourceTest.java | 2 +- .../it/mockbean/GenericFieldsTest.java | 2 +- .../it/mockbean/MockedObserverTest.java | 4 +- .../it/mockbean/MyContainerConsumer.java | 2 +- .../it/mockbean/MyContainerProducer.java | 6 +- .../it/mockbean/SameBeanInstanceTest.java | 2 +- .../io/quarkus/it/mockbean/WithSpiesTest.java | 2 +- .../src/main/java/org/acme/HelloEndpoint.java | 10 +- .../jackson/DateDeserializerPojoResource.java | 12 +- .../InheritedModelWithBuilderResource.java | 12 +- .../it/jackson/ModelWithBuilderResource.java | 12 +- ...ModelWithJsonDeserializeUsingResource.java | 10 +- .../ModelWithJsonNamingStrategyResource.java | 8 +- .../ModelWithJsonTypeIdResolverResource.java | 12 +- ...SerializerDeserializerOnFieldResource.java | 14 +- .../it/jackson/MyObjectMapperCustomizer.java | 2 +- .../jackson/RegisteredPojoModelResource.java | 12 +- .../it/hibernate/panache/person/Person.java | 2 +- .../panache/person/PersonResource.java | 10 +- .../panache/person/PersonResource.java | 8 +- .../main/java/io/quarkus/it/jaxb/BaseObj.java | 8 +- .../main/java/io/quarkus/it/jaxb/Book.java | 2 +- .../quarkus/it/jaxb/ExtensionOfBaseObj.java | 8 +- .../java/io/quarkus/it/jaxb/JaxbResource.java | 24 +- .../java/io/quarkus/it/jaxb/Response.java | 10 +- .../java/io/quarkus/it/jaxp/JaxpResource.java | 17 +- .../java/io/quarkus/it/jpa/db2/Address.java | 2 +- .../java/io/quarkus/it/jpa/db2/Customer.java | 6 +- .../java/io/quarkus/it/jpa/db2/Human.java | 2 +- .../jpa/db2/JPAFunctionalityTestEndpoint.java | 24 +- .../java/io/quarkus/it/jpa/db2/Person.java | 16 +- .../quarkus/it/jpa/db2/SequencedAddress.java | 8 +- .../io/quarkus/it/jpa/db2/WorkAddress.java | 2 +- .../derby/JPAFunctionalityTestEndpoint.java | 24 +- .../java/io/quarkus/it/jpa/derby/Person.java | 14 +- .../it/jpa/derby/SequencedAddress.java | 8 +- .../jpa/h2/JPAFunctionalityTestEndpoint.java | 24 +- .../java/io/quarkus/it/jpa/h2/Person.java | 14 +- .../quarkus/it/jpa/h2/SequencedAddress.java | 8 +- .../io/quarkus/it/jpa/h2/CompanyCustomer.java | 2 +- .../java/io/quarkus/it/jpa/h2/Customer.java | 6 +- .../io/quarkus/it/jpa/h2/DataIdentity.java | 8 +- .../io/quarkus/it/jpa/h2/IdVersionPK.java | 2 +- .../quarkus/it/jpa/h2/IndividualCustomer.java | 2 +- .../jpa/h2/JPAFunctionalityTestEndpoint.java | 24 +- .../quarkus/it/jpa/h2/NormalPointEntity.java | 2 +- .../java/io/quarkus/it/jpa/h2/Person.java | 14 +- .../io/quarkus/it/jpa/h2/PointEntity.java | 4 +- .../java/io/quarkus/it/jpa/h2/Project.java | 12 +- .../quarkus/it/jpa/h2/SequencedAddress.java | 8 +- .../java/io/quarkus/it/jpa/h2/Timeslot.java | 8 +- .../it/jpa/h2/basicproxy/AbstractEntity.java | 10 +- .../h2/basicproxy/BasicProxyTestEndpoint.java | 18 +- .../it/jpa/h2/basicproxy/ConcreteEntity.java | 6 +- .../AbstractGenericMappedSuperType.java | 6 +- .../generics/IntermediateAbstractMapped.java | 6 +- .../jpa/h2/generics/SnapshotEventEntry.java | 2 +- .../java/io/quarkus/it/jpa/h2/proxy/Cat.java | 4 +- .../java/io/quarkus/it/jpa/h2/proxy/Dog.java | 4 +- .../java/io/quarkus/it/jpa/h2/proxy/Pet.java | 10 +- .../io/quarkus/it/jpa/h2/proxy/PetOwner.java | 12 +- .../it/jpa/h2/proxy/ProxyTestEndpoint.java | 20 +- .../it/jpa/h2/DummyTransactionalService.java | 4 +- .../jpa/h2/TransactionConfigurationTest.java | 4 +- .../xml/legacy/app/LegacyAppResource.java | 16 +- .../mapping/xml/legacy/app/SchemaUtil.java | 2 +- .../xml/legacy/app/SmokeTestUtils.java | 2 +- .../xml/legacy/library_a/LibraryAEntity.java | 8 +- .../xml/legacy/library_b/LibraryBEntity.java | 8 +- .../xml/modern/app/ModernAppResource.java | 16 +- .../mapping/xml/modern/app/SchemaUtil.java | 2 +- .../xml/modern/app/SmokeTestUtils.java | 2 +- .../attributeconverter/MyCdiContext.java | 2 +- .../attributeconverter/MyConverter.java | 6 +- ...MappingOnlyAttributeConverterResource.java | 14 +- .../XmlMappingOnlyDirtyCheckingResource.java | 16 +- ...ityWithListenerThroughInstanceMethods.java | 14 +- .../entitylistener/MyCdiContext.java | 2 +- .../MyListenerRequiringCdi.java | 18 +- .../XmlMappingOnlyEntityListenerResource.java | 30 +- .../xml/modern/library_a/LibraryAEntity.java | 8 +- .../xml/modern/library_b/LibraryBEntity.java | 8 +- .../io/quarkus/it/jpa/mariadb/Address.java | 6 +- .../mariadb/JPAFunctionalityTestEndpoint.java | 27 +- .../io/quarkus/it/jpa/mariadb/Person.java | 14 +- .../mssql/JPAFunctionalityTestEndpoint.java | 24 +- .../java/io/quarkus/it/jpa/mssql/Person.java | 16 +- .../it/jpa/mssql/SequencedAddress.java | 8 +- .../java/io/quarkus/it/jpa/mysql/Address.java | 6 +- .../mysql/JPAFunctionalityTestEndpoint.java | 24 +- .../java/io/quarkus/it/jpa/mysql/Person.java | 14 +- .../it/jpa/mysql/XaConnectionsEndpoint.java | 10 +- .../JPAFunctionalityTestEndpoint.java | 24 +- .../jpaoracle/LdapUrlTestEndpoint.java | 10 +- .../io/quarkus/example/jpaoracle/Person.java | 16 +- .../example/jpaoracle/SequencedAddress.java | 8 +- .../jpaoracle/SerializationTestEndpoint.java | 8 +- .../procedurecall/ProcedureCallEndpoint.java | 20 +- .../procedurecall/ProcedureCallEntity.java | 6 +- .../JPAFunctionalityTestEndpoint.java | 25 +- .../io/quarkus/it/jpa/postgresql/Person.java | 18 +- .../it/jpa/postgresql/SequencedAddress.java | 8 +- .../io/quarkus/it/jpa/postgresql/Address.java | 2 +- .../quarkus/it/jpa/postgresql/Customer.java | 6 +- .../io/quarkus/it/jpa/postgresql/Human.java | 2 +- .../JPAFunctionalityTestEndpoint.java | 24 +- .../postgresql/JPATestReflectionEndpoint.java | 8 +- .../io/quarkus/it/jpa/postgresql/Person.java | 18 +- .../it/jpa/postgresql/SequencedAddress.java | 8 +- .../it/jpa/postgresql/WorkAddress.java | 2 +- .../OverrideJdbcUrlBuildTimeConfigSource.java | 2 +- .../src/main/java/org/test/HelloResource.java | 10 +- .../AttributeConverterResource.java | 16 +- .../EntityWithAttributeConverters.java | 10 +- .../jpa/attributeconverter/MyCdiContext.java | 2 +- .../MyDataNotRequiringCDIConverter.java | 6 +- .../MyDataRequiringCDIConverter.java | 8 +- .../jpa/configurationless/CRUDResource.java | 18 +- .../it/jpa/configurationless/Cake.java | 12 +- .../ConfigurationlessApp.java | 4 +- .../it/jpa/configurationless/Gift.java | 8 +- .../configurationless/StartupCakeManager.java | 10 +- .../DefaultCatalogAndSchemaResource.java | 14 +- .../EntityWithDefaultCatalogAndSchema.java | 8 +- .../ElementCollectionResource.java | 16 +- .../jpa/elementcollection/OpeningTimes.java | 12 +- .../CustomEntityListenersAnnotation.java | 2 +- .../EntityListenerResource.java | 30 +- ...tenerThroughEntityListenersAnnotation.java | 6 +- ...ityWithListenerThroughInstanceMethods.java | 18 +- .../it/jpa/entitylistener/MyCdiContext.java | 2 +- .../MyListenerRequiringCdi.java | 18 +- .../it/jpa/integrator/IntegratorResource.java | 14 +- .../EntityWithSequenceIdentityId.java | 8 +- .../JdbcMetadataRetrievalResource.java | 16 +- .../quarkus/it/jpa/orderbyfragment/Child.java | 8 +- .../it/jpa/orderbyfragment/Parent.java | 10 +- ...lWithSerializerAndDeserializerOnField.java | 16 +- ...SerializerDeserializerOnFieldResource.java | 16 +- .../it/jsonb/JsonInStaticBlockTestCase.java | 4 +- ...zerAndDeserializerOnFieldResourceTest.java | 4 +- .../quarkus/it/kafka/avro/AvroEndpoint.java | 8 +- .../it/kafka/avro/AvroKafkaCreator.java | 2 +- .../io/quarkus/it/kafka/KafkaAvroTest.java | 2 +- .../quarkus/it/kafka/avro/AvroEndpoint.java | 8 +- .../it/kafka/avro/AvroKafkaCreator.java | 2 +- ...pecificRecordJacksonSerializationTest.java | 2 +- .../quarkus/it/kafka/KafkaAdminManager.java | 6 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 8 +- .../quarkus/it/kafka/sasl/KafkaConsumer.java | 2 +- .../quarkus/it/kafka/sasl/KafkaProducer.java | 2 +- .../quarkus/it/kafka/sasl/KafkaResource.java | 12 +- .../quarkus/it/kafka/sasl/KafkaConsumer.java | 2 +- .../quarkus/it/kafka/sasl/KafkaProducer.java | 2 +- .../quarkus/it/kafka/sasl/KafkaResource.java | 12 +- .../it/kafka/sasl/SaslKafkaEndpoint.java | 8 +- .../it/kafka/KafkaConsumerManager.java | 10 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 8 +- .../it/kafka/KafkaProducerManager.java | 10 +- .../it/kafka/codecs/CodecEndpoint.java | 8 +- .../it/kafka/ssl/SslKafkaEndpoint.java | 8 +- .../kafka/streams/KafkaStreamsEndpoint.java | 12 +- .../streams/KafkaStreamsEventCounter.java | 4 +- .../kafka/streams/KafkaStreamsPipeline.java | 6 +- .../streams/KafkaStreamsCdiEventTest.java | 2 +- .../streams/KafkaStreamsPropertiesTest.java | 2 +- .../KafkaStreamsStartupFailureTest.java | 2 +- .../it/kafka/KafkaConsumerManager.java | 10 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 8 +- .../it/kafka/KafkaProducerManager.java | 10 +- .../it/kafka/codecs/CodecEndpoint.java | 8 +- .../it/keycloak/AdminClientResource.java | 10 +- .../it/keycloak/CustomTenantResolver.java | 2 +- .../it/keycloak/ProtectedResource.java | 17 +- .../it/keycloak/ProtectedResource2.java | 4 +- .../it/keycloak/ProtectedTenantResource.java | 9 +- .../ProtectedWebAppTenantResource.java | 9 +- .../quarkus/it/keycloak/PublicResource.java | 4 +- .../SnakeCaseObjectMapperCustomizer.java | 2 +- .../io/quarkus/it/keycloak/UsersResource.java | 6 +- .../kotlin-serialization/pom.xml | 2 +- .../io/quarkus/it/kotser/GreetingResource.kt | 14 +- .../io/quarkus/it/kotser/ResourceTest.kt | 2 +- .../resources/projects/classic-kotlin/pom.xml | 4 +- .../main/kotlin/org/acme/GreetingService.kt | 2 +- .../src/main/kotlin/org/acme/HelloResource.kt | 10 +- .../src/main/kotlin/org/acme/MyApplication.kt | 4 +- .../external-reloadable-artifacts/app/pom.xml | 4 +- .../main/kotlin/org/acme/GreetingResource.kt | 8 +- .../projects/kotlin-compiler-args/pom.xml | 4 +- .../src/main/kotlin/org/acme/HelloResource.kt | 8 +- .../it/DevServicesKubernetesITest.java | 2 +- .../client/ConfigMapProperties.java | 4 +- .../io/quarkus/it/kubernetes/client/Pods.java | 14 +- .../kubernetes/client/SecretProperties.java | 4 +- .../quarkus/it/kubernetes/client/Version.java | 6 +- .../client/OpenShiftTestServerTest.java | 2 +- .../java/io/quarkus/it/k8ssb/jdbc/Fruit.java | 16 +- .../quarkus/it/k8ssb/jdbc/FruitResource.java | 12 +- .../java/io/quarkus/it/k8ssb/jdbc/Fruit.java | 16 +- .../quarkus/it/k8ssb/jdbc/FruitResource.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../src/main/java/org/acme/Hello.java | 10 +- .../quarkus-standard-way-kafka/pom.xml | 4 +- .../kubernetes/quarkus-standard-way/pom.xml | 4 +- .../it/kubernetes/GreetingResource.java | 8 +- .../src/main/java/org/acme/Hello.java | 10 +- .../it/liquibase/mongodb/FruitResource.java | 12 +- .../liquibase/mongodb/FruitResourceTest.java | 2 +- .../io/quarkus/it/liquibase/LiquibaseApp.java | 4 +- .../LiquibaseFunctionalityResource.java | 8 +- .../quarkus/locales/it/LocalesResource.java | 12 +- .../gelf/it/GelfLogHandlerResource.java | 6 +- .../it/logging/json/GreetingResource.java | 8 +- .../set/above/LoggingMinLevelAbove.java | 8 +- .../set/below/LoggingMinLevelBelow.java | 8 +- .../child/LoggingMinLevelBelowChild.java | 8 +- .../bydefault/LoggingMinLevelByDefault.java | 8 +- .../minlevel/set/filter/LoggingFilter.java | 8 +- .../set/promote/LoggingMinLevelPromote.java | 8 +- .../sub/LoggingMinLevelPromoteSub.java | 8 +- .../unset/above/LoggingMinLevelAbove.java | 8 +- .../bydefault/LoggingMinLevelByDefault.java | 8 +- .../unset/promote/LoggingMinLevelPromote.java | 8 +- .../logging-panache-kotlin/pom.xml | 2 +- .../io/quarkus/logging/LoggingEntity.kt | 2 +- .../io/quarkus/logging/LoggingRepository.kt | 2 +- .../logging/LoggingWithPanacheKotlinTest.java | 2 +- .../java/io/quarkus/logging/LoggingBean.java | 4 +- .../io/quarkus/logging/LoggingEndpoint.java | 4 +- .../io/quarkus/logging/LoggingEntity.java | 2 +- .../logging/LoggingWithPanacheTest.java | 2 +- .../io/quarkus/it/mailer/MailResource.java | 10 +- .../it/arc/IntercepredNormalScopedFoo.java | 4 +- .../arc/ProducerOfUnusedUnremovableBean.java | 4 +- .../it/arc/ReflectiveBeanEndpoint.java | 8 +- .../io/quarkus/it/arc/RequestScopedBean.java | 2 +- .../it/arc/TestRequestScopeEndpoint.java | 6 +- .../java/io/quarkus/it/arc/UnusedBean.java | 6 +- .../quarkus/it/arc/UnusedRemovableBean.java | 2 +- .../quarkus/it/arc/UnusedUnremovableBean.java | 2 +- .../io/quarkus/it/arc/interceptor/Simple.java | 4 +- .../it/arc/interceptor/SimpleBean.java | 2 +- .../it/arc/interceptor/SimpleInterceptor.java | 8 +- .../interceptor/TestSimpleBeanEndpoint.java | 6 +- .../it/config/ApplicationInfoResource.java | 8 +- .../it/config/ConfigPropertiesResource.java | 4 +- .../it/config/MicroProfileConfigResource.java | 6 +- .../MicroProfileCustomValueConverter.java | 2 +- .../context/ContextPropagationResource.java | 20 +- .../MutinyContextPropagationResource.java | 20 +- .../io/quarkus/it/context/RequestBean.java | 2 +- .../quarkus/it/corestuff/CharSetSupport.java | 8 +- .../it/corestuff/CustomConfigTesting.java | 8 +- .../it/corestuff/ReflectionTestEndpoint.java | 8 +- .../corestuff/SerializationTestEndpoint.java | 8 +- .../it/datasource/DatasourceResource.java | 17 +- .../it/datasource/DatasourceSetup.java | 7 +- .../FaultToleranceTestResource.java | 6 +- .../PreconfiguredFaultTolerance.java | 4 +- .../io/quarkus/it/faulttolerance/Service.java | 4 +- .../it/jaxb/mapper/codegen/feed/Feed.java | 17 +- .../mapper/codegen/feed/ObjectFactory.java | 2 +- .../mapper/codegen/feed/package-info.java | 2 +- .../mapper/process/UnmarshalRSSProcess.java | 6 +- .../quarkus/it/jaxb/object/QuarkusNews.java | 4 +- .../io/quarkus/it/jaxb/rest/NewsResource.java | 8 +- .../main/java/io/quarkus/it/jpa/Address.java | 2 +- .../io/quarkus/it/jpa/CustomTypeEntity.java | 10 +- .../main/java/io/quarkus/it/jpa/Customer.java | 6 +- .../main/java/io/quarkus/it/jpa/Human.java | 2 +- .../it/jpa/JPACustomUserTypeEndpoint.java | 14 +- .../it/jpa/JPATestBootstrapEndpoint.java | 24 +- .../it/jpa/JPATestEMInjectionEndpoint.java | 22 +- .../it/jpa/JPATestReflectionEndpoint.java | 8 +- .../main/java/io/quarkus/it/jpa/Person.java | 14 +- .../io/quarkus/it/jpa/SequencedAddress.java | 8 +- .../java/io/quarkus/it/jpa/WorkAddress.java | 2 +- .../io/quarkus/it/mock/MockableBean1.java | 2 +- .../io/quarkus/it/mock/MockableBean2.java | 2 +- .../reactive/ReactiveStreamOpsResource.java | 4 +- .../it/resources/ResourcesResource.java | 8 +- .../quarkus/it/rest/AnnotatedInterface.java | 4 +- .../it/rest/ApplicationFooProvider.java | 12 +- .../io/quarkus/it/rest/ClientProducer.java | 12 +- .../io/quarkus/it/rest/ClientResource.java | 14 +- .../it/rest/EnvelopeClassResource.java | 6 +- .../io/quarkus/it/rest/ExternalService.java | 2 +- .../quarkus/it/rest/GouvFrGeoApiClient.java | 8 +- .../it/rest/GouvFrGeoApiClientImpl.java | 8 +- .../java/io/quarkus/it/rest/Greeting.java | 4 +- .../io/quarkus/it/rest/GreetingEndpoint.java | 10 +- .../io/quarkus/it/rest/GreetingService.java | 2 +- .../io/quarkus/it/rest/LoggingFilter.java | 10 +- .../io/quarkus/it/rest/LoopbackResource.java | 4 +- .../it/rest/ProgrammaticRestInterface.java | 6 +- .../java/io/quarkus/it/rest/RBACBean.java | 8 +- .../quarkus/it/rest/RBACSecuredResource.java | 20 +- .../quarkus/it/rest/ReflectionResource.java | 6 +- .../it/rest/RemovedJaxRsApplication.java | 4 +- .../RestClientBaseUriConfigKeyInterface.java | 6 +- .../it/rest/RestClientConfigKeyInterface.java | 6 +- .../quarkus/it/rest/RestClientInterface.java | 10 +- ...RestClientWithFaultToleranceInterface.java | 4 +- .../io/quarkus/it/rest/RestInterface.java | 8 +- .../it/rest/ServerSentEventResource.java | 16 +- .../io/quarkus/it/rest/ServiceWithConfig.java | 2 +- .../java/io/quarkus/it/rest/Someservice.java | 2 +- .../io/quarkus/it/rest/SslClientResource.java | 4 +- .../io/quarkus/it/rest/SslRestInterface.java | 2 +- .../java/io/quarkus/it/rest/TestResource.java | 44 +-- .../TestResourceForConstructorProperties.java | 20 +- .../TestResourceWithConstructorInjection.java | 4 +- .../rest/TestResourceWithTwoConstructors.java | 6 +- .../it/rest/TestResourceWithVariable.java | 10 +- .../quarkus/it/scheduler/CountResource.java | 10 +- .../java/io/quarkus/it/scheduler/Counter.java | 6 +- .../it/transaction/TransactionResource.java | 12 +- .../java/io/quarkus/it/validator/Hello.java | 18 +- .../java/io/quarkus/it/validator/Human.java | 16 +- .../TestValidatorAndHibernateORMEndpoint.java | 12 +- .../it/validator/TestValidatorEndpoint.java | 14 +- .../it/web/DummyContainerRequestFilter.java | 10 +- .../java/io/quarkus/it/web/TestFilter.java | 14 +- .../io/quarkus/it/web/TestSecureServlet.java | 14 +- .../java/io/quarkus/it/web/TestServlet.java | 12 +- .../it/websocket/AddWebSocketHandler.java | 20 +- .../it/websocket/ClientCodingResource.java | 10 +- .../it/websocket/ClientDtoDecoder.java | 4 +- .../it/websocket/ClientDtoEncoder.java | 4 +- .../io/quarkus/it/websocket/CodingClient.java | 8 +- .../io/quarkus/it/websocket/EchoSocket.java | 4 +- .../quarkus/it/websocket/RecodingSocket.java | 4 +- .../it/websocket/ServerDtoDecoder.java | 10 +- .../it/websocket/ServerDtoEncoder.java | 10 +- .../it/websocket/WebSocketOpenEndpoint.java | 8 +- .../src/main/resources/application.properties | 2 +- .../main/BeanManagerInjectionInTestCase.java | 4 +- .../quarkus/it/main/BeanOnlyInTestCase.java | 6 +- .../io/quarkus/it/main/BonjourService.java | 4 +- .../quarkus/it/main/DynamicTestsTestCase.java | 2 +- .../it/main/JUnit5PerClassLifecycleTest.java | 2 +- .../io/quarkus/it/main/JaxRSTestCase.java | 4 +- .../io/quarkus/it/main/MethodSourceTest.java | 2 +- .../quarkus/it/main/MockExternalService.java | 6 +- .../java/io/quarkus/it/main/MockTestCase.java | 2 +- .../java/io/quarkus/it/main/MockitoTest.java | 2 +- .../io/quarkus/it/main/OpenApiTestCase.java | 6 +- .../it/main/ParameterResolverTest.java | 2 +- ...uarkusClassloaderProtectionDomainTest.java | 2 +- .../quarkus/it/main/RestClientTestCase.java | 4 +- .../it/main/TestStereotypeTestCase.java | 6 +- .../it/main/TransactionalQuarkusTest.java | 4 +- .../main/TransactionalTestMethodTestCase.java | 8 +- .../io/quarkus/it/main/ValidatorTestCase.java | 2 +- .../io/quarkus/it/main/WebsocketTestCase.java | 12 +- integration-tests/maven/pom.xml | 4 +- .../quarkus/maven/it/AddedRestEndpoint.java | 4 +- .../java/io/quarkus/maven/it/DevMojoIT.java | 18 +- .../io/quarkus/maven/it/RemoteDevMojoIT.java | 10 +- .../my/project/itest/it/ItestResource.java | 4 +- .../src/main/java/org/acme/SomeBean.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloService.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloService.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloService.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../java/org/acme/ClasspathResources.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../java/org/acme/ClasspathResources.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../main/java/org/acme/ProtectionDomain.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 12 +- .../src/main/java/org/acme/Producer.java | 6 +- .../deployment/AcmeCodegenProvider.java | 4 +- .../main/java/org/acme/GreetingResource.java | 6 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../main/java/org/acme/MetaInfResource.java | 18 +- .../main/java/org/acme/GreetingResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../main/java/org/acme/HelloResourceBar.java | 8 +- .../main/java/org/acme/HelloResourceFoo.java | 8 +- .../main/java/org/acme/HelloResourceBar.java | 8 +- .../main/java/org/acme/HelloResourceFoo.java | 8 +- .../main/java/org/acme/HelloResourceBar.java | 10 +- .../main/java/org/acme/HelloResourceFoo.java | 10 +- .../src/main/java/org/acme/HelloService.java | 2 +- .../src/main/java/org/acme/AcmeBean.java | 4 +- .../java/org/acme/AcmeServiceProducer.java | 6 +- .../beans/src/main/java/org/acme/Other.java | 4 +- .../beans/src/main/java/org/acme/Printer.java | 2 +- .../testlib/mock/MockServiceProducer.java | 6 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/test/java/org/acme/ResourceTest.java | 2 +- .../main/java/org/acme/ClassPathResource.java | 10 +- .../java/org/acme/level0/Level0Service.java | 2 +- .../java/org/acme/level1/Level1Service.java | 4 +- .../acme/level2/submodule/Level2Service.java | 4 +- .../java/org/acme/rest/HelloResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../rest/src/main/java/org/acme/SomeBean.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../acme/quarkus/sample/HelloResource.java | 12 +- .../deployment/AcmeExtensionProcessor.java | 2 +- .../java/org/acme/CommonTransitiveBean.java | 2 +- .../src/main/java/org/acme/CommonBean.java | 2 +- .../src/main/java/org/acme/LibraryBean.java | 2 +- .../deployment/AcmeQuarkusExtProcessor.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 4 +- .../src/main/java/org/acme/SomeBean.java | 2 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../reactive/routes/MyDeclarativeRoutes.java | 2 +- .../org/acme/reactive/routes/MyFilter.java | 4 +- .../java/org/acme/CustomHeader1Filter.java | 12 +- .../java/org/acme/CustomHeader2Filter.java | 12 +- .../main/java/org/acme/DownstreamService.java | 6 +- .../org/acme/DownstreamServiceClient.java | 4 +- .../main/java/org/acme/FrontendService.java | 6 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../java/org/acme/ClasspathResources.java | 8 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../main/java/org/acme/ProtectionDomain.java | 4 +- .../java/org/acme/quarkus/HelloResource.java | 10 +- .../main/java/org/acme/GreetingResource.java | 10 +- .../main/java/org/acme/GreetingResource.java | 10 +- .../src/main/java/org/acme/HelloResource.java | 10 +- .../src/main/java/org/acme/MyApplication.java | 4 +- .../src/main/java/org/acme/HelloResource.java | 8 +- .../micrometer/mpmetrics/CountedInstance.java | 2 +- .../mpmetrics/InjectedInstance.java | 6 +- .../micrometer/mpmetrics/MessageResource.java | 6 +- .../micrometer/mpmetrics/PrimeResource.java | 8 +- .../mpmetrics/RenameMeterFilterProducer.java | 4 +- .../java/io/quarkus/ExporterResource.java | 14 +- .../doc/micrometer/ExampleResource.java | 8 +- .../prometheus/AnnotatedResource.java | 4 +- .../prometheus/CustomConfiguration.java | 8 +- .../it/micrometer/prometheus/Fruit.java | 2 +- .../micrometer/prometheus/FruitResource.java | 6 +- .../prometheus/MessageResource.java | 6 +- .../prometheus/PathTemplateResource.java | 6 +- .../prometheus/PingPongResource.java | 12 +- .../prometheus/PrimeNumberResource.java | 8 +- .../quarkus/it/mongodb/BookCodecProvider.java | 2 +- .../io/quarkus/it/mongodb/BookResource.java | 6 +- .../BookResourceWithParameterInjection.java | 14 +- .../it/mongodb/ReactiveBookResource.java | 6 +- .../discriminator/VehicleResource.java | 12 +- .../jsonb/VehicleCustomizer.java | 4 +- .../jsonb/VehicleDeserializer.java | 8 +- .../quarkus/it/mongodb/pojo/PojoResource.java | 18 +- .../quarkus/it/mongodb/BookResourceTest.java | 2 +- ...ookResourceWithParameterInjectionTest.java | 2 +- .../quarkus/it/mongodb/PojoResourceTest.java | 2 +- .../java/io/quarkus/it/mongodb/Utils.java | 4 +- .../quarkus/it/mongodb/BookCodecProvider.java | 2 +- .../io/quarkus/it/mongodb/BookResource.java | 6 +- .../BookResourceWithParameterInjection.java | 12 +- .../it/mongodb/ReactiveBookResource.java | 6 +- .../quarkus/it/mongodb/BookResourceTest.java | 2 +- ...ookResourceWithParameterInjectionTest.java | 2 +- .../java/io/quarkus/it/mongodb/Utils.java | 4 +- .../mongodb-panache-kotlin/pom.xml | 2 +- .../panache/book/BookEntityResource.kt | 22 +- .../it/mongodb/panache/book/BookRepository.kt | 2 +- .../panache/book/BookRepositoryResource.kt | 24 +- .../it/mongodb/panache/book/DummyService.kt | 2 +- .../panache/bugs/Bug5274EntityRepository.kt | 2 +- .../panache/bugs/Bug5885EntityRepository.kt | 2 +- .../panache/bugs/Bug6324ConcreteRepository.kt | 2 +- .../mongodb/panache/bugs/Bug6324Repository.kt | 2 +- .../it/mongodb/panache/bugs/BugResource.kt | 16 +- .../person/MockablePersonRepository.kt | 2 +- .../panache/person/PersonRepository.kt | 2 +- .../person/resources/PersonEntityResource.kt | 18 +- .../resources/PersonRepositoryResource.kt | 20 +- .../book/ReactiveBookEntityResource.kt | 26 +- .../reactive/book/ReactiveBookRepository.kt | 2 +- .../book/ReactiveBookRepositoryResource.kt | 28 +- .../person/ReactivePersonRepository.kt | 2 +- .../resources/ReactivePersonEntityResource.kt | 18 +- .../ReactivePersonRepositoryResource.kt | 20 +- .../panache/test/TestImperativeRepository.kt | 2 +- .../panache/test/TestReactiveRepository.kt | 2 +- .../it/mongodb/panache/test/TestResource.kt | 8 +- .../panache/MongodbPanacheMockingTest.kt | 4 +- .../ReactiveMongodbPanacheResourceTest.kt | 8 +- .../it/mongodb/panache/TestEndpoint.java | 4 +- .../panache/book/BookEntityResource.java | 6 +- .../mongodb/panache/book/BookRepository.java | 2 +- .../panache/book/BookRepositoryResource.java | 8 +- .../panache/bugs/Bug13301Repository.java | 2 +- .../panache/bugs/Bug5274EntityRepository.java | 2 +- .../panache/bugs/Bug5885EntityRepository.java | 2 +- .../bugs/Bug6324ConcreteRepository.java | 2 +- .../panache/bugs/Bug6324Repository.java | 2 +- .../it/mongodb/panache/bugs/BugResource.java | 18 +- .../person/MockablePersonRepository.java | 2 +- .../panache/person/PersonRepository.java | 2 +- .../resources/PersonEntityResource.java | 4 +- .../resources/PersonRepositoryResource.java | 6 +- .../book/ReactiveBookEntityResource.java | 8 +- .../reactive/book/ReactiveBookRepository.java | 2 +- .../book/ReactiveBookRepositoryResource.java | 10 +- .../MockableReactivePersonRepository.java | 2 +- .../person/ReactivePersonRepository.java | 2 +- .../ReactivePersonEntityResource.java | 4 +- .../ReactivePersonRepositoryResource.java | 6 +- .../test/TestImperativeRepository.java | 2 +- .../panache/test/TestReactiveRepository.java | 2 +- .../it/mongodb/panache/test/TestResource.java | 8 +- .../TransactionPersonResource.java | 14 +- .../panache/MongodbPanacheMockingTest.java | 4 +- .../ReactiveMongodbPanacheMockingTest.java | 2 +- .../ReactiveMongodbPanacheResourceTest.java | 8 +- .../rest/data/panache/BookRepository.java | 2 +- .../rest/data/panache/TestResource.java | 16 +- .../panache/MongoDbRestDataPanacheTest.java | 6 +- .../jta/TransactionBeanWithEvents.java | 34 +- .../narayana/jta/TransactionScopedBean.java | 6 +- .../narayana/jta/TransactionalResource.java | 18 +- .../narayana/jta/TransactionConfPropTest.java | 5 +- .../narayana/jta/TransactionScopedTest.java | 10 +- .../coordinator/TransactionalResource.java | 12 +- .../acme/quickstart/stm/FlightResource.java | 14 +- .../quickstart/stm/FlightServiceFactory.java | 2 +- .../profile/NativeConfigProfileResource.java | 6 +- .../nat/test/profile/UnusedRemovableBean.java | 2 +- .../io/quarkus/awt/it/GraphicsResource.java | 9 +- .../oidc-client-reactive/pom.xml | 4 +- .../quarkus/it/keycloak/FrontendResource.java | 8 +- .../OidcClientRequestCustomFilter.java | 8 +- .../it/keycloak/ProtectedResource.java | 10 +- .../ProtectedResourceServiceCustomFilter.java | 6 +- .../ProtectedResourceServiceNamedFilter.java | 6 +- ...rotectedResourceServiceReactiveFilter.java | 6 +- .../quarkus/it/keycloak/FrontendResource.java | 12 +- .../it/keycloak/ProtectedResource.java | 6 +- .../ProtectedResourceServiceOidcClient.java | 4 +- .../KeycloakRealmResourceManager.java | 2 +- integration-tests/oidc-client/pom.xml | 4 +- .../quarkus/it/keycloak/FrontendResource.java | 6 +- .../OidcClientRequestCustomFilter.java | 12 +- .../it/keycloak/ProtectedResource.java | 8 +- ...otectedResourceServiceNamedOidcClient.java | 4 +- .../ProtectedResourceServiceNoOidcClient.java | 4 +- ...edResourceServiceNonDefaultOidcClient.java | 4 +- .../ProtectedResourceServiceOidcClient.java | 4 +- ...tectedResourceServiceRegisterProvider.java | 4 +- integration-tests/oidc-code-flow/pom.xml | 4 +- ...thenticationCompletionExceptionMapper.java | 14 +- .../CustomSecurityIdentityAugmentor.java | 2 +- .../keycloak/CustomTenantConfigResolver.java | 6 +- .../it/keycloak/CustomTenantResolver.java | 2 +- .../it/keycloak/ProtectedResource.java | 16 +- .../it/keycloak/ProtectedResource2.java | 8 +- .../it/keycloak/ProtectedResource3.java | 6 +- .../it/keycloak/SecurityEventListener.java | 4 +- .../it/keycloak/TenantAutoRefresh.java | 6 +- .../io/quarkus/it/keycloak/TenantHttps.java | 8 +- .../io/quarkus/it/keycloak/TenantLogout.java | 16 +- .../io/quarkus/it/keycloak/TenantRefresh.java | 6 +- .../it/keycloak/UnprotectedResource.java | 16 +- integration-tests/oidc-tenancy/pom.xml | 4 +- .../io/quarkus/it/keycloak/CacheResource.java | 8 +- .../CustomIntrospectionUserInfoCache.java | 6 +- .../keycloak/CustomTenantConfigResolver.java | 2 +- .../it/keycloak/CustomTenantResolver.java | 2 +- .../io/quarkus/it/keycloak/OidcResource.java | 22 +- .../it/keycloak/ServiceProtectedResource.java | 6 +- .../it/keycloak/TenantHybridResource.java | 8 +- .../it/keycloak/TenantOpaqueResource.java | 8 +- .../keycloak/TenantRefreshTokenResource.java | 8 +- .../quarkus/it/keycloak/TenantResource.java | 12 +- .../AccessTokenPropagationService.java | 6 +- .../it/keycloak/CustomTenantResolver.java | 2 +- .../quarkus/it/keycloak/FrontendResource.java | 10 +- .../it/keycloak/ProtectedJwtResource.java | 16 +- .../it/keycloak/ProtectedResource.java | 10 +- .../it/keycloak/ServiceWithoutToken.java | 6 +- .../oidc-token-propagation/pom.xml | 4 +- .../AccessTokenPropagationService.java | 4 +- .../quarkus/it/keycloak/FrontendResource.java | 10 +- .../keycloak/JwtTokenPropagationService.java | 4 +- .../it/keycloak/ProtectedResource.java | 8 +- .../it/keycloak/ServiceAccountService.java | 4 +- .../io/quarkus/it/keycloak/AdminResource.java | 12 +- .../CodeFlowEncryptedIdTokenResource.java | 6 +- .../it/keycloak/CodeFlowFormPostResource.java | 6 +- .../quarkus/it/keycloak/CodeFlowResource.java | 8 +- .../it/keycloak/CodeFlowUserInfoResource.java | 8 +- .../CustomSecurityIdentityAugmentor.java | 4 +- .../keycloak/CustomTenantConfigResolver.java | 4 +- .../it/keycloak/CustomTenantResolver.java | 2 +- .../io/quarkus/it/keycloak/HrInterceptor.java | 8 +- .../java/io/quarkus/it/keycloak/HrTenant.java | 2 +- .../it/keycloak/OpaqueAdminResource.java | 12 +- .../it/keycloak/OpaqueGithubResource.java | 6 +- .../it/keycloak/OpaqueUsersResource.java | 12 +- .../it/keycloak/TenantEchoResource.java | 10 +- .../io/quarkus/it/keycloak/UsersResource.java | 12 +- .../keycloak/UsersResourceOidcRecovered.java | 12 +- ...UsersResourceOidcRecoveredNoDiscovery.java | 12 +- integration-tests/oidc/pom.xml | 4 +- .../io/quarkus/it/keycloak/AdminResource.java | 6 +- .../it/keycloak/HelloResourceBase.java | 2 +- .../quarkus/it/keycloak/IHelloResource.java | 8 +- .../it/keycloak/PermissionResource.java | 10 +- .../it/keycloak/ProtectedJwtResource.java | 10 +- .../it/keycloak/SecuredHelloWebSocket.java | 10 +- .../io/quarkus/it/keycloak/UsersResource.java | 8 +- .../io/quarkus/it/keycloak/VertxResource.java | 4 +- .../it/keycloak/WebsocketOidcTestCase.java | 10 +- .../quarkus/it/openshift/client/Routes.java | 10 +- .../opentelemetry/grpc/ExporterResource.java | 14 +- .../it/opentelemetry/grpc/HelloResource.java | 6 +- .../it/opentelemetry/ExporterResource.java | 14 +- .../it/opentelemetry/PingPongResource.java | 16 +- .../it/opentelemetry/model/db2/Db2Hit.java | 4 +- .../model/mariadb/MariaDbHit.java | 4 +- .../opentelemetry/model/oracle/OracleHit.java | 4 +- .../it/opentelemetry/model/pg/PgHit.java | 4 +- .../it/opentelemetry/ExporterResource.java | 6 +- .../it/opentelemetry/SimpleResource.java | 8 +- .../opentelemetry/SpanExporterProvider.java | 6 +- .../it/opentelemetry/TracedKafkaConsumer.java | 4 +- .../opentelemetry/TracedKafkaProcessor.java | 4 +- .../it/opentelemetry/TracedService.java | 2 +- .../output/SpanDataModuleSerializer.java | 2 +- .../reactive/ExporterResource.java | 14 +- .../reactive/ReactiveResource.java | 10 +- .../reactive/ReactiveRestClient.java | 8 +- .../OpenTelemetryReactiveClientTest.java | 2 +- .../opentelemetry/vertx/ExporterRouter.java | 10 +- .../it/opentelemetry/vertx/HelloRouter.java | 6 +- .../it/opentelemetry/vertx/SqlClientTest.java | 3 +- .../it/opentelemetry/ExporterResource.java | 14 +- .../opentelemetry/PathTemplateResource.java | 6 +- .../it/opentelemetry/PingPongResource.java | 10 +- .../it/opentelemetry/SimpleResource.java | 12 +- .../it/opentelemetry/TracedService.java | 2 +- .../output/SpanDataModuleSerializer.java | 2 +- .../opentelemetry/util/InjectionResource.java | 10 +- .../picocli/DynamicProxyInvokerCommand.java | 2 +- .../io/quarkus/it/picocli/NamedCommand.java | 2 +- .../io/quarkus/it/picocli/ParsedCommand.java | 2 +- .../io/quarkus/it/picocli/TestOneCommand.java | 4 +- .../quarkus/it/picocli/TestParsedCommand.java | 4 +- .../io/quarkus/it/quartz/CountResource.java | 10 +- .../java/io/quarkus/it/quartz/Counter.java | 6 +- .../it/quartz/DisabledMethodResource.java | 10 +- .../it/quartz/DisabledScheduledMethods.java | 2 +- .../it/quartz/FixedInstanceIdResource.java | 10 +- .../it/quartz/ManualScheduledCounter.java | 8 +- .../main/java/io/quarkus/it/qute/Beer.java | 2 +- .../java/io/quarkus/it/qute/BeerResource.java | 8 +- .../main/java/io/quarkus/it/qute/Brewery.java | 4 +- .../io/quarkus/it/qute/HelloResource.java | 12 +- .../java/io/quarkus/it/qute/HelloRoutes.java | 2 +- .../it/qute/NotFoundExceptionMapper.java | 12 +- .../java/io/quarkus/it/qute/QuteTestCase.java | 2 +- .../it/reactive/db2/client/PlantResource.java | 8 +- .../java/io/quarkus/it/amqp/AmqpEndpoint.java | 6 +- .../io/quarkus/it/amqp/PeopleManager.java | 2 +- .../io/quarkus/it/amqp/PeopleProducer.java | 2 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 14 +- .../io/quarkus/it/kafka/KafkaReceivers.java | 4 +- .../java/io/quarkus/it/kafka/fruit/Fruit.java | 2 +- .../quarkus/it/kafka/fruit/FruitProducer.java | 8 +- .../it/kafka/people/PeopleProducer.java | 2 +- .../quarkus/it/kafka/people/PeopleState.java | 2 +- .../quarkus/it/kafka/KafkaConnectorTest.java | 2 +- .../main/java/io/quarkus/it/kafka/Fruit.java | 2 +- .../io/quarkus/it/kafka/FruitProducer.java | 8 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 12 +- .../io/quarkus/it/kafka/KafkaReceivers.java | 6 +- .../io/quarkus/it/kafka/PeopleProducer.java | 2 +- .../java/io/quarkus/it/kafka/PeopleState.java | 2 +- .../quarkus/it/kafka/KafkaConnectorTest.java | 2 +- .../io/quarkus/it/kafka/FruitProducer.java | 2 +- .../io/quarkus/it/kafka/KafkaEndpoint.java | 12 +- .../io/quarkus/it/kafka/KafkaReceivers.java | 2 +- .../io/quarkus/it/kafka/PeopleProducer.java | 2 +- .../java/io/quarkus/it/kafka/PetProducer.java | 2 +- .../java/io/quarkus/it/mqtt/MQTTEndpoint.java | 12 +- .../io/quarkus/it/mqtt/PeopleManager.java | 4 +- .../io/quarkus/it/rabbitmq/PeopleManager.java | 2 +- .../quarkus/it/rabbitmq/PeopleProducer.java | 2 +- .../quarkus/it/rabbitmq/RabbitMQEndpoint.java | 10 +- .../it/rabbitmq/TestCredentialsProvider.java | 4 +- .../io/quarkus/it/rabbitmq/PeopleManager.java | 2 +- .../quarkus/it/rabbitmq/PeopleProducer.java | 2 +- .../quarkus/it/rabbitmq/RabbitMQEndpoint.java | 10 +- .../reactive/mssql/client/FruitResource.java | 8 +- .../mssql/client/HotReloadFruitResource.java | 8 +- .../reactive/mysql/client/FruitResource.java | 8 +- .../reactive/oracle/client/FruitResource.java | 8 +- .../oracle/client/HotReloadFruitResource.java | 8 +- .../it/reactive/pg/client/FruitResource.java | 8 +- .../pg/client/HotReloadFruitResource.java | 8 +- .../redis/it/RedisLocalHostProvider.java | 2 +- .../io/quarkus/redis/it/RedisResource.java | 10 +- .../it/RedisResourceWithNamedClient.java | 10 +- .../RedisWithInstanceInjectionResource.java | 14 +- .../it/RedisWithNamedClientResource.java | 12 +- .../RedisWithParameterInjectionResource.java | 12 +- .../it/RedisWithProvidedHostsResource.java | 12 +- .../devservices/it/DevServicesRedisITest.java | 2 +- .../pom.xml | 2 +- .../io/quarkus/it/rest/CountriesClient.kt | 14 +- .../io/quarkus/it/rest/CountriesResource.kt | 6 +- .../client/multipart/MultipartClient.java | 12 +- .../client/multipart/MultipartResource.java | 20 +- .../multipart/MultipartResourceTest.java | 2 +- .../it/rest/client/reactive/stork/Client.java | 6 +- .../reactive/stork/ClientCallingResource.java | 6 +- .../it/rest/client/main/AppleClient.java | 10 +- .../client/main/ClientCallingResource.java | 8 +- .../main/ClientWithExceptionMapper.java | 4 +- .../client/main/DefaultCtorTestFilter.java | 4 +- .../client/main/FaultToleranceClient.java | 10 +- .../main/FaultToleranceOnInterfaceClient.java | 10 +- .../it/rest/client/main/HelloClient.java | 16 +- .../main/MyResponseExceptionMapper.java | 2 +- .../client/main/NonDefaultCtorTestFilter.java | 4 +- .../it/rest/client/main/ParamClient.java | 10 +- .../it/rest/client/main/ParamConverter.java | 8 +- .../rest/client/main/RestResponseClient.java | 8 +- .../selfsigned/ExternalSelfSignedClient.java | 4 +- .../tracing/SpanDataModuleSerializer.java | 2 +- .../main/tracing/SpanExporterProvider.java | 6 +- .../main/wronghost/WrongHostClient.java | 8 +- .../ClientWithCustomObjectMapperTest.java | 12 +- .../client/InjectMockWithInterceptorTest.java | 2 +- .../it/rest/client/RequestEncodingTest.java | 2 +- .../quarkus/it/rest/client/MultipartBody.java | 4 +- .../rest/client/MultipartClientResource.java | 12 +- .../it/rest/client/MultipartService.java | 12 +- .../selfsigned/ExternalSelfSignedClient.java | 4 +- .../ExternalSelfSignedResource.java | 11 +- .../it/rest/client/server/EchoService.java | 12 +- .../client/wronghost/WrongHostClient.java | 8 +- .../client/wronghost/WrongHostResource.java | 10 +- .../it/resteasy/jackson/AbstractResource.java | 6 +- .../it/resteasy/jackson/BigKeysResource.java | 4 +- .../it/resteasy/jackson/GreetingResource.java | 8 +- .../it/resteasy/jackson/MessageResource.java | 4 +- .../jackson/generics/GenericsResource.java | 8 +- .../it/resteasy/mutiny/MutinyResource.java | 12 +- .../it/resteasy/mutiny/MyRestService.java | 4 +- .../it/resteasy/mutiny/SomeService.java | 6 +- .../regression/bug25818/BlockingService.java | 2 +- .../bug25818/ReproducerResource.java | 10 +- .../it/resteasy/mutiny/MutinyTest.java | 10 +- .../prod-mode/pom.xml | 4 +- .../kotlin/BlockingCoroutinesTest.java | 2 +- .../resteasy-reactive-kotlin/standard/pom.xml | 4 +- .../reactive/kotlin/AppSuppliedProvider.kt | 14 +- .../reactive/kotlin/CountriesEndpoint.kt | 6 +- .../reactive/kotlin/CountriesGateway.kt | 4 +- .../reactive/kotlin/CountryNameConsumer.kt | 2 +- .../kotlin/CountryNameMessageTransformer.kt | 2 +- .../kotlin/CountryNamePayloadTransformer.kt | 2 +- .../reactive/kotlin/CountryNameProducer.kt | 2 +- .../resteasy/reactive/kotlin/EnumEndpoint.kt | 10 +- .../it/resteasy/reactive/kotlin/Filters.kt | 10 +- .../resteasy/reactive/kotlin/FlowResource.kt | 8 +- .../reactive/kotlin/GreetingResource.kt | 16 +- .../kotlin/ReactiveGreetingResource.kt | 10 +- .../kotlin/RequestScopedKotlinClass.kt | 2 +- .../reactive/kotlin/ScheduledEndpoint.kt | 6 +- .../reactive/kotlin/SharedResource.kt | 8 +- .../reactive/kotlin/UppercaseService.kt | 2 +- .../reactive/kotlin/V2CountryEndpoint.kt | 4 +- .../reactive/kotlin/ft/ClientResource.kt | 6 +- .../reactive/kotlin/ft/HelloClient.kt | 4 +- .../reactive/kotlin/ft/HelloResource.kt | 8 +- .../reactive/kotlin/FlowResourceTest.kt | 6 +- .../main/scala/org/acme/HelloResource.scala | 6 +- .../main/scala/org/acme/MyApplication.scala | 4 +- .../scala/org/acme/GreetingResource.scala | 4 +- .../it/security/webauthn/AdminResource.java | 12 +- .../it/security/webauthn/LoginResource.java | 14 +- .../it/security/webauthn/MyWebAuthnSetup.java | 2 +- .../it/security/webauthn/PublicResource.java | 14 +- .../io/quarkus/it/security/webauthn/User.java | 8 +- .../it/security/webauthn/UserResource.java | 10 +- .../webauthn/WebAuthnCertificate.java | 4 +- .../security/webauthn/WebAuthnCredential.java | 10 +- integration-tests/shared-library/pom.xml | 4 +- .../io/quarkus/it/shared/RemovedResource.java | 4 +- .../io/quarkus/it/shared/SharedProvider.java | 14 +- .../io/quarkus/it/shared/SharedResource.java | 4 +- ....Providers => jakarta.ws.rs.ext.Providers} | 0 .../quarkus/it/spaces/GreetingResource.java | 8 +- .../it/smallrye/config/AppConfigResouce.java | 6 +- .../it/smallrye/config/ConfigResource.java | 14 +- .../config/ConfigurableExceptionMapper.java | 10 +- .../ConfigurableExceptionMapperResource.java | 10 +- .../config/PingConfigSourceInterceptor.java | 2 +- .../io/quarkus/it/smallrye/config/Prod.java | 8 +- .../io/quarkus/it/smallrye/config/Server.java | 6 +- .../smallrye/config/ServerDynamicFeature.java | 12 +- .../it/smallrye/config/ServerFilter.java | 8 +- .../it/smallrye/config/ServerResource.java | 16 +- .../it/smallrye/config/AppConfigMockTest.java | 8 +- .../it/smallrye/config/AppConfigTest.java | 2 +- .../smallrye/config/ConfigLocationsTest.java | 2 +- .../config/ConfigSourceInterceptorTest.java | 2 +- .../ConfigurableExceptionMapperTest.java | 2 +- .../config/ConfigurableSourceTest.java | 2 +- .../config/FallbackLocationsTest.java | 2 +- .../config/HibernatePropertiesTest.java | 2 +- .../it/smallrye/config/QuarkusConfigTest.java | 2 +- .../config/QuarkusTestProfileTest.java | 2 +- .../smallrye/config/ServerResourceTest.java | 8 +- .../smallrye/config/SmallRyeConfigTest.java | 2 +- .../io/quarkus/it/smallrye/config/User.java | 8 +- .../it/smallrye/config/UserResource.java | 16 +- .../test/CompletionExceptionMapper.java | 12 +- .../quarkus/context/test/ContextEndpoint.java | 24 +- .../quarkus/context/test/ContextEntity.java | 2 +- .../context/test/CustomProducersTest.java | 2 +- .../io/quarkus/context/test/ProducerBean.java | 6 +- .../io/quarkus/context/test/RequestBean.java | 4 +- .../test/SimpleContextPropagationTest.java | 2 +- .../context/test/TransactionalBean.java | 10 +- .../test/customContext/CustomContextTest.java | 2 +- .../test/mutiny/MutinyContextEndpoint.java | 28 +- .../mutiny/MutinyContextPropagationTest.java | 2 +- .../test/mutiny/MutinyTransactionalBean.java | 10 +- .../quarkus/context/test/mutiny/Person.java | 2 +- .../context/test/mutiny/SomeEntity.java | 2 +- .../context/test/mutiny/SomeOtherEntity.java | 2 +- .../graphql/client/GraphQLClientTester.java | 10 +- .../graphql/client/LuckyNumbersResource.java | 2 +- .../graphql/FaultTolerantService.java | 2 +- .../it/smallrye/graphql/GreetingResource.java | 2 +- .../it/smallrye/graphql/PayloadCreator.java | 4 +- .../smallrye-jwt-oidc-webapp/pom.xml | 4 +- .../it/keycloak/ProtectedResource.java | 8 +- .../smallrye-jwt-token-propagation/pom.xml | 4 +- .../AccessTokenPropagationService.java | 6 +- .../quarkus/it/keycloak/FrontendResource.java | 14 +- .../JwtResignedProtectedResource.java | 10 +- .../keycloak/JwtTokenPropagationService.java | 4 +- .../it/keycloak/ProtectedJwtResource.java | 16 +- .../it/keycloak/ProtectedResource.java | 12 +- .../io/quarkus/it/metrics/DummyGauge.java | 6 +- .../DummyGaugeNoReflectionAnnotation.java | 4 +- .../it/metrics/MetricsOnClassResource.java | 2 +- .../quarkus/it/metrics/MetricsResource.java | 8 +- .../inheritance/InheritanceMetricsBase.java | 2 +- .../InheritanceMetricsExtended.java | 2 +- .../MetricsInheritanceResource.java | 8 +- .../it/opentracing/ExporterResource.java | 6 +- .../quarkus/it/opentracing/JdbcResource.java | 7 +- .../it/opentracing/MockTracerProvider.java | 6 +- .../it/opentracing/PingPongResource.java | 10 +- .../it/opentracing/SimpleResource.java | 12 +- .../quarkus/it/opentracing/TracedService.java | 2 +- .../TracingProperyJdbcResource.java | 7 +- .../json/MockSpanModuleSerializer.java | 2 +- .../spring/boot/BeanPropertiesResource.java | 6 +- .../spring/boot/ClassPropertiesResource.java | 6 +- .../boot/DefaultPropertiesResource.java | 6 +- .../boot/InterfacePropertiesResource.java | 6 +- .../config/server/client/ConfigResource.java | 14 +- .../runtime/SpringCloudConfigClientTest.java | 2 +- .../it/spring/data/jpa/AbstractEntity.java | 8 +- .../spring/data/jpa/AbstractPhoneEntity.java | 2 +- .../data/jpa/AbstractTypedIdEntity.java | 4 +- .../io/quarkus/it/spring/data/jpa/Animal.java | 6 +- .../io/quarkus/it/spring/data/jpa/Book.java | 4 +- .../it/spring/data/jpa/BookResource.java | 10 +- .../io/quarkus/it/spring/data/jpa/Car.java | 2 +- .../it/spring/data/jpa/CarResource.java | 8 +- .../io/quarkus/it/spring/data/jpa/Cart.java | 12 +- .../it/spring/data/jpa/CartResource.java | 12 +- .../io/quarkus/it/spring/data/jpa/Cat.java | 2 +- .../it/spring/data/jpa/CatResource.java | 8 +- .../it/spring/data/jpa/CatalogValue.java | 10 +- .../spring/data/jpa/CatalogValueResource.java | 8 +- .../quarkus/it/spring/data/jpa/Country.java | 8 +- .../it/spring/data/jpa/CountryResource.java | 12 +- .../quarkus/it/spring/data/jpa/Customer.java | 10 +- .../it/spring/data/jpa/CustomerResource.java | 12 +- .../quarkus/it/spring/data/jpa/Employee.java | 12 +- .../it/spring/data/jpa/EmployeeResource.java | 10 +- .../data/jpa/FederalStateCatalogValue.java | 4 +- .../it/spring/data/jpa/FruitResource.java | 10 +- .../io/quarkus/it/spring/data/jpa/Mammal.java | 2 +- .../io/quarkus/it/spring/data/jpa/Movie.java | 2 +- .../it/spring/data/jpa/MovieResource.java | 8 +- .../it/spring/data/jpa/MovieSuperclass.java | 6 +- .../it/spring/data/jpa/NamedEntity.java | 2 +- .../io/quarkus/it/spring/data/jpa/Order.java | 8 +- .../it/spring/data/jpa/OrderResource.java | 10 +- .../io/quarkus/it/spring/data/jpa/Person.java | 24 +- .../spring/data/jpa/PersonRepositoryImpl.java | 4 +- .../it/spring/data/jpa/PersonResource.java | 12 +- .../quarkus/it/spring/data/jpa/PhoneCall.java | 8 +- .../it/spring/data/jpa/PhoneCallId.java | 2 +- .../it/spring/data/jpa/PhoneCallResource.java | 10 +- .../it/spring/data/jpa/PhoneNumberId.java | 4 +- .../io/quarkus/it/spring/data/jpa/Post.java | 18 +- .../it/spring/data/jpa/PostComment.java | 12 +- .../it/spring/data/jpa/PostResource.java | 10 +- .../io/quarkus/it/spring/data/jpa/Song.java | 10 +- .../it/spring/data/jpa/SongResource.java | 10 +- .../quarkus/it/spring/data/rest/Author.java | 6 +- .../spring/data/rest/AuthorsRepository.java | 4 +- .../io/quarkus/it/spring/data/rest/Book.java | 10 +- .../spring/data/rest/SpringDataRestTest.java | 4 +- .../quarkus/it/spring/AppConfiguration.java | 4 +- .../spring/InjectedSpringBeansResource.java | 16 +- .../io/quarkus/it/spring/MyApplication.java | 6 +- .../io/quarkus/it/spring/RequestBean.java | 2 +- .../it/spring/scheduled/CountResource.java | 10 +- .../quarkus/it/spring/scheduled/Counter.java | 4 +- .../java/io/quarkus/it/spring/web/Book.java | 2 +- .../quarkus/it/spring/web/CustomAdvice.java | 2 +- .../java/io/quarkus/it/spring/web/Error.java | 2 +- .../it/spring/web/GreetingController.java | 2 +- .../java/io/quarkus/it/spring/web/Person.java | 2 +- .../it/spring/web/TestSecurityTest.java | 2 +- .../extest/deployment/TestProcessor.java | 6 +- .../config/BuildTimeRunTimeConfigTest.java | 6 +- .../io/quarkus/config/ConfigBuilderTest.java | 2 +- .../RecordedBuildProfileInRuntimeTest.java | 2 +- .../io/quarkus/config/RenameConfigTest.java | 2 +- .../quarkus/config/SecretKeysConfigTest.java | 2 +- .../StaticInitConfigMappingInvalidTest.java | 2 +- .../config/StaticInitConfigMappingTest.java | 2 +- .../config/UnremoveableConfigMappingTest.java | 2 +- .../extest/AdditionalLocationsTest.java | 6 +- .../io/quarkus/extest/ConfigMappingTest.java | 2 +- .../io/quarkus/extest/ConfiguredBean.java | 4 +- .../io/quarkus/extest/ConfiguredBeanTest.java | 2 +- .../quarkus/extest/RuntimeDefaultsTest.java | 2 +- .../io/quarkus/extest/UnknownConfigTest.java | 2 +- .../runtime/RuntimeXmlConfigService.java | 2 +- .../extest/runtime/beans/CommandServlet.java | 12 +- .../runtime/beans/PublicKeyProducer.java | 4 +- .../extest/runtime/config/XmlConfig.java | 4 +- .../extest/runtime/config/XmlData.java | 2 +- .../it/extension/ClasspathTestEndpoint.java | 10 +- .../FinalFieldReflectionTestEndpoint.java | 8 +- .../quarkus/it/extension/CustomResource.java | 2 +- .../it/extension/CustomResourceWithList.java | 2 +- .../graphql/it/VertxGraphqlResource.java | 4 +- .../it/vertx/BeanRegisteringRoute.java | 4 +- .../io/quarkus/it/vertx/FilterResource.java | 6 +- .../io/quarkus/it/vertx/HeaderResource.java | 6 +- .../it/vertx/NettyEventLoopResource.java | 6 +- .../io/quarkus/it/vertx/SimpleResource.java | 8 +- .../it/vertx/VertxProducerResource.java | 14 +- .../io/quarkus/it/vertx/Http2TestCase.java | 4 +- ...sableNullValueSerializationCustomizer.java | 2 +- .../reactivejackson/SimpleEndpoint.java | 2 +- .../io/quarkus/it/vertx/EventBusConsumer.java | 2 +- .../io/quarkus/it/vertx/EventBusSender.java | 8 +- .../io/quarkus/it/vertx/JsonTestResource.java | 6 +- .../io/quarkus/it/vertx/MyApplication.java | 6 +- .../it/vertx/VertxProducerResource.java | 10 +- .../NonblockingFaultTolerantService.java | 2 +- .../it/vertx/verticles/VerticleDeployer.java | 6 +- .../it/vertx/verticles/VerticleEndpoint.java | 12 +- .../VertxRetryFallbackTest.java | 2 +- .../quarkus/it/virtual/GreetingResource.java | 12 +- .../io/quarkus/it/virtual/FunctionTest.java | 2 +- .../io/quarkus/it/virtual/FunqyGreeting.java | 2 +- .../quarkus/it/virtual/GreetingResource.java | 12 +- .../quarkus/it/virtual/GreetingServlet.java | 10 +- .../io/quarkus/it/virtual/FunctionTest.java | 2 +- .../io/quarkus/websockets/ChatServer.java | 16 +- .../java/io/quarkus/websockets/ChatTest.java | 12 +- pom.xml | 2 +- tcks/microprofile-config/pom.xml | 2 +- tcks/microprofile-context-propagation/pom.xml | 2 +- tcks/microprofile-fault-tolerance/pom.xml | 2 +- tcks/microprofile-graphql/pom.xml | 2 +- .../quarkus/tck/graphql/TestInterceptor.java | 6 +- tcks/microprofile-health/pom.xml | 2 +- tcks/microprofile-jwt/pom.xml | 2 +- tcks/microprofile-lra/pom.xml | 2 +- .../quarkus/tck/lra/NarayanaLRARecovery.java | 10 +- tcks/microprofile-metrics/optional/pom.xml | 4 +- tcks/microprofile-metrics/pom.xml | 2 +- tcks/microprofile-metrics/rest/pom.xml | 4 +- tcks/microprofile-openapi/pom.xml | 10 +- .../tck/opentracing/ExceptionMapper.java | 8 +- .../tck/opentracing/MockTracerProducer.java | 14 +- ...esteasyClientTracingRegistrarProvider.java | 4 +- tcks/microprofile-opentracing/pom.xml | 2 +- tcks/microprofile-reactive-messaging/pom.xml | 2 +- .../microprofile-rest-client-reactive/pom.xml | 4 +- .../restclient/cdi/CDIInterceptorTest.java | 2 +- .../cdi/ClientWithURIAndInterceptor.java | 4 +- .../quarkus/tck/restclient/cdi/Loggable.java | 2 +- .../restclient/cdi/LoggableInterceptor.java | 8 +- tcks/microprofile-rest-client/pom.xml | 7 +- .../restclient/cdi/CDIInterceptorTest.java | 2 +- .../cdi/ClientWithURIAndInterceptor.java | 4 +- .../quarkus/tck/restclient/cdi/Loggable.java | 2 +- .../restclient/cdi/LoggableInterceptor.java | 8 +- tcks/resteasy-reactive/pom.xml | 2 +- .../quarkus/arquillian/InjectionEnricher.java | 4 +- .../MethodParameterInjectionPoint.java | 14 +- .../java/io/quarkus/arquillian/test/Foo.java | 4 +- .../test/MethodParameterInjectionTest.java | 10 +- .../quarkus/arquillian/test/SimpleClass.java | 6 +- .../quarkus/arquillian/test/SimpleTest.java | 4 +- .../arquillian/test/SimpleWarTest.java | 2 +- .../src/main/java/io/quarkus/test/Mock.java | 8 +- .../quarkus/test/TestReactiveTransaction.java | 2 +- .../java/io/quarkus/test/TestTransaction.java | 2 +- .../quarkus/test/common/TestInstantiator.java | 2 +- .../io/quarkus/test/QuarkusProdModeTest.java | 2 +- .../internal/CreateMockitoMocksCallback.java | 6 +- .../AbstractJvmQuarkusTestExtension.java | 2 +- .../test/junit/IntegrationTestUtil.java | 4 +- .../io/quarkus/test/junit/QuarkusMock.java | 8 +- test-framework/keycloak-server/pom.xml | 10 + test-framework/kubernetes-client/pom.xml | 4 +- .../oidc/server/OidcWiremockTestResource.java | 4 +- test-framework/openshift-client/pom.xml | 4 +- ...TestSecurityIdentityAugmentorProducer.java | 4 +- ...TestSecurityIdentityAugmentorProducer.java | 12 +- .../QuarkusSecurityTestExtension.java | 4 +- .../test/security/TestAuthController.java | 10 +- .../TestHttpAuthenticationMechanism.java | 6 +- .../security/TestIdentityAssociation.java | 14 +- .../test/security/TestPrincipalProducer.java | 14 +- 5825 files changed, 21127 insertions(+), 21164 deletions(-) rename extensions/hibernate-validator/runtime/src/main/resources/META-INF/services/{javax.ws.rs.ext.Providers => jakarta.ws.rs.ext.Providers} (100%) mode change 100755 => 100644 extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java delete mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/ServletMissing.java delete mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.java delete mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletConfigSource.java delete mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource.java rename extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/{javax.ws.rs.ext.Providers => jakarta.ws.rs.ext.Providers} (100%) rename extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/services/{javax.ws.rs.client.ClientBuilder => jakarta.ws.rs.client.ClientBuilder} (100%) rename independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/{javax.ws.rs.client.ClientBuilder => jakarta.ws.rs.client.ClientBuilder} (100%) rename independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/{javax.ws.rs.sse.SseEventSource$Builder => jakarta.ws.rs.sse.SseEventSource$Builder} (100%) rename independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/{javax.ws.rs.ext.RuntimeDelegate => jakarta.ws.rs.ext.RuntimeDelegate} (100%) rename integration-tests/shared-library/src/main/resources/META-INF/services/{javax.ws.rs.ext.Providers => jakarta.ws.rs.ext.Providers} (100%) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 2e6335a92cc31..6e1d7b25a8d29 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -14,12 +14,24 @@ pom + 1.0.0 1.72 1.0.2.3 1.0.14.1 + 5.0.0 3.0.2 + 3.0.0 + 2.1.0 + 5.0.1 + 2.1.1 + 3.1.0 3.0.5 - 4.7.7.Final + 1.3.2 + 1 + 1.1.1 + 2.0.0.Final + 3.0.0.Beta3 + 6.2.1.Final 0.33.0 0.2.4 0.1.15 @@ -29,54 +41,48 @@ 1.22.0-alpha 1.22.0 1.8.1 - 4.2.1 + 5.0.0.Alpha3 1.10.3 2.1.12 0.22.0 - 2.0.1 - 3.0.1 - 1.2 - 2.0 + 3.0 + 4.0.1 + 1.3 + 3.0 1.0.1 - 2.0 - 1.2 - 1.0 - 2.0.1 - 1.13.2 - 2.13.2 - 3.3.1 - 3.0.5 + 3.0 + 2.0 + 2.0-RC1 + 3.0 + 2.0.0 + 3.1.2 + 4.0.1 + 4.0.0 3.1.1 - 1.9.1 - 2.1.1 - 5.6.0 - 3.6.0 - 1.2.2 + 2.0.1 + 3.0.0 + 6.1.0 + 4.0.0 + 2.0.0 1.0.13 2.7.0 2.30.1 - 3.23.0 + 4.2.0 1.4.1 - 1.2.1 - 1.3.5 - 3.0.4 - 2.0.2 - 1.0 - 1.2.5 - 1.1.6 - 1.0.2 - 1.6.7 - 2.2.3 - 1.6.1 - 1.1.3 - 4.0.3 - 1.3.3 - 2.0.2 - 1.1.2 - 2.3.3 - 2.3.3-b02 - 2.0.1.Final - 2.0.0.Final + 2.1.0 + 2.1.1 + 4.0.1 + 2.0.1 + 2.1.0 + 3.0.0 + 2.0.1 + 3.0.0 + 6.0.0 + 2.0.1 + 3.0.2 + 2.1.0 + 4.0.0 + 4.0.1 9.4 2.11.0 15.4.0 @@ -94,11 +100,11 @@ 5.6.14.Final 1.12.18 1.1.9.Final - 6.2.5.Final + 8.0.0.Final 6.1.7.Final - 5.13.1.Final + 6.0.0.CR1 1.1.1.Final - 1.16 + 2.0 7.6.0.Final 8.6.1 @@ -111,7 +117,7 @@ 1.2.0.Final 1.5.4.Final-format-001 1.0.1.Final - 1.20.1.Final + 2.0.0.Final 3.4.3.Final 4.3.7 @@ -158,9 +164,9 @@ 3.3.1 3.2.0 4.2.0 - 1.0.11 + 1.1.1 9.14.1 - 1.0.11 + 3.0.2 4.19.0 1.33 6.0.0 @@ -179,7 +185,7 @@ 5.1.1 5.8.0 4.10.1 - 1.1.4.Final + 2.0.0.Alpha2 20.0.3 1.15.0 3.29.0 @@ -929,12 +935,12 @@ io.quarkus quarkus-liquibase ${project.version} - + io.quarkus quarkus-liquibase-deployment ${project.version} - + io.quarkus quarkus-liquibase-mongodb @@ -3239,9 +3245,9 @@ ${classmate.version} - com.sun.activation - jakarta.activation - ${jakarta.activation.version} + org.eclipse.angus + angus-activation + ${angus-activation.version} io.jaegertracing @@ -3723,12 +3729,6 @@ io.smallrye smallrye-health ${smallrye-health.version} - - - jakarta.json - jakarta.json-api - - io.smallrye @@ -4011,6 +4011,21 @@ jakarta.annotation-api ${jakarta.annotation-api.version} + + jakarta.authentication + jakarta.authentication-api + ${jakarta.authentication-api} + + + jakarta.authorization + jakarta.authorization-api + ${jakarta.authorization-api.version} + + + jakarta.el + jakarta.el-api + ${jakarta.el-api.version} + com.sun.mail jakarta.mail @@ -4050,14 +4065,9 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec - ${jboss-jaxb-api_2.3_spec.version} - - - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec - ${jboss-jaxrs-api_2.1_spec.version} + jakarta.json + jakarta.json-api + ${jakarta.json-api.version} org.apache.qpid @@ -4279,17 +4289,15 @@ microprofile-rest-client-api ${microprofile-rest-client.version} + + org.eclipse.parsson + parsson + ${parsson.version} + org.eclipse yasson ${yasson.version} - - - - jakarta.json - jakarta.json-api - - org.eclipse.microprofile.jwt @@ -4308,14 +4316,9 @@ ${microprofile-openapi.version} - org.glassfish - jakarta.el - ${jakarta.el-impl.version} - - - org.glassfish - jakarta.json - ${jakarta.json.version} + org.glassfish.expressly + expressly + ${expressly.version} jakarta.json.bind @@ -4333,20 +4336,25 @@ ${jakarta.xml.bind-api.version} - jakarta.security.jacc - jakarta.security.jacc-api - ${jakarta.security.jacc-api.version} + javax.annotation + javax.annotation-api + ${javax.annotation-api.version} - jakarta.security.auth.message - jakarta.security.auth.message-api - ${jakarta.security.auth.message-api.version} + javax.inject + javax.inject + ${javax.inject.version} jakarta.websocket jakarta.websocket-api ${jakarta.websocket-api.version} + + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api.version} + org.graalvm.sdk graal-sdk @@ -4540,9 +4548,9 @@ - org.jboss.resteasy - resteasy-client-microprofile - ${resteasy.version} + org.jboss.resteasy.microprofile + microprofile-rest-client + ${resteasy-microprofile.version} org.eclipse.microprofile.config @@ -4554,25 +4562,11 @@ org.jboss.resteasy resteasy-json-binding-provider ${resteasy.version} - - - - jakarta.json - jakarta.json-api - - org.jboss.resteasy resteasy-json-p-provider ${resteasy.version} - - - - jakarta.json - jakarta.json-api - - org.jboss.resteasy @@ -4601,9 +4595,9 @@ ${resteasy.version} - org.jboss.resteasy + org.jboss.resteasy.spring resteasy-spring-web - ${resteasy.version} + ${resteasy-spring-web.version} org.jboss.spec.javax.annotation @@ -4615,6 +4609,11 @@ + + org.jboss.resteasy.microprofile + microprofile-config + ${resteasy-microprofile.version} + org.jboss.resteasy resteasy-links @@ -4989,7 +4988,7 @@ org.hibernate - hibernate-core + hibernate-core-jakarta ${hibernate-orm.version} @@ -5005,22 +5004,22 @@ org.hibernate - hibernate-envers + hibernate-envers-jakarta ${hibernate-orm.version} org.hibernate - hibernate-jpamodelgen + hibernate-jpamodelgen-jakarta ${hibernate-orm.version} org.hibernate.reactive - hibernate-reactive-core + hibernate-reactive-core-jakarta ${hibernate-reactive.version} org.hibernate - quarkus-local-cache + quarkus-local-cache-jakarta ${hibernate-quarkus-local-cache.version} @@ -5035,12 +5034,12 @@ org.hibernate.search - hibernate-search-mapper-orm-coordination-outbox-polling + hibernate-search-mapper-orm-coordination-outbox-polling-jakarta ${hibernate-search.version} org.hibernate.search - hibernate-search-mapper-orm + hibernate-search-mapper-orm-jakarta ${hibernate-search.version} @@ -5351,10 +5350,11 @@ org.infinispan infinispan-core ${infinispan.version} + jakarta org.infinispan - infinispan-client-hotrod + infinispan-client-hotrod-jakarta ${infinispan.version} @@ -5387,6 +5387,7 @@ infinispan-core ${infinispan.version} test-jar + jakarta org.infinispan @@ -5396,7 +5397,7 @@ org.infinispan - infinispan-commons + infinispan-commons-jakarta ${infinispan.version} @@ -5707,7 +5708,7 @@ org.keycloak - keycloak-admin-client + keycloak-admin-client-jakarta ${keycloak.version} diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 1c5fc8a625993..d94bd0fcc607c 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -41,7 +41,7 @@ 2.70.0 3.24.2 2.0.3.Final - 5.2.8 + 6.0.1 2.3.32 @@ -360,7 +360,6 @@ org.apache.activemq artemis-server ${artemis.version} - test @@ -383,29 +382,18 @@ commons-logging commons-logging - - - jakarta.json - jakarta.json-api - org.apache.activemq artemis-amqp-protocol ${artemis.version} - test org.apache.activemq artemis-server - - - jakarta.json - jakarta.json-api - diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java b/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java index fd6105199dc7d..0c2e6c92a9bbf 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java @@ -43,7 +43,7 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveHierarchyBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveHierarchyBuildItem.java index 5cd4dc005ec28..c75ec59494ed8 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveHierarchyBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveHierarchyBuildItem.java @@ -208,7 +208,7 @@ public static class DefaultIgnoreTypePredicate implements Predicate { public static final DefaultIgnoreTypePredicate INSTANCE = new DefaultIgnoreTypePredicate(); private static final List DEFAULT_IGNORED_PACKAGES = Arrays.asList("java.", "io.reactivex.", - "org.reactivestreams.", "org.slf4j.", "javax.json.", "jakarta.json.", + "org.reactivestreams.", "org.slf4j.", "jakarta.json.", "jakarta.json.", "com.fasterxml.jackson.databind.", "io.vertx.core.json."); // if this gets more complicated we will need to move to some tree like structure static final Set ALLOWED_FROM_IGNORED_PACKAGES = new HashSet<>( diff --git a/core/deployment/src/main/java/io/quarkus/deployment/proxy/ProxyFactory.java b/core/deployment/src/main/java/io/quarkus/deployment/proxy/ProxyFactory.java index f34f64c6f9c16..7b379d7c1d5af 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/proxy/ProxyFactory.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/proxy/ProxyFactory.java @@ -12,7 +12,7 @@ import java.util.Objects; import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.FieldDescriptor; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/recording/AnnotationProxyProvider.java b/core/deployment/src/main/java/io/quarkus/deployment/recording/AnnotationProxyProvider.java index 280939bd38842..205001029f4df 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/recording/AnnotationProxyProvider.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/recording/AnnotationProxyProvider.java @@ -17,7 +17,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.stream.Collectors; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java b/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java index e6a776439e17b..12fa10e419b1f 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/recording/BytecodeRecorderImpl.java @@ -42,7 +42,7 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.jandex.AnnotationValue; import org.jboss.jandex.ArrayType; diff --git a/core/deployment/src/main/java/io/quarkus/runner/bootstrap/RunningQuarkusApplicationImpl.java b/core/deployment/src/main/java/io/quarkus/runner/bootstrap/RunningQuarkusApplicationImpl.java index 79a69b073fd98..58d9740842aa2 100644 --- a/core/deployment/src/main/java/io/quarkus/runner/bootstrap/RunningQuarkusApplicationImpl.java +++ b/core/deployment/src/main/java/io/quarkus/runner/bootstrap/RunningQuarkusApplicationImpl.java @@ -81,7 +81,7 @@ public Object instance(Class clazz, Annotation... qualifiers) { try { Class actualClass = Class.forName(clazz.getName(), true, classLoader); - Class cdi = classLoader.loadClass("javax.enterprise.inject.spi.CDI"); + Class cdi = classLoader.loadClass("jakarta.enterprise.inject.spi.CDI"); Object instance = cdi.getMethod("current").invoke(null); Method selectMethod = cdi.getMethod("select", Class.class, Annotation[].class); Object cdiInstance = selectMethod.invoke(instance, actualClass, qualifiers); diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithNonSerializableInjectedInConstructor.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithNonSerializableInjectedInConstructor.java index e1b511953e9af..7b6ab8c56eedd 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithNonSerializableInjectedInConstructor.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithNonSerializableInjectedInConstructor.java @@ -1,6 +1,6 @@ package io.quarkus.deployment.recording; -import javax.inject.Inject; +import jakarta.inject.Inject; public class TestRecorderWithNonSerializableInjectedInConstructor { diff --git a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithTestJavaBeanInjectedInConstructor.java b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithTestJavaBeanInjectedInConstructor.java index def6ebb00fc6e..1be6a084210d8 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithTestJavaBeanInjectedInConstructor.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/recording/TestRecorderWithTestJavaBeanInjectedInConstructor.java @@ -1,6 +1,6 @@ package io.quarkus.deployment.recording; -import javax.inject.Inject; +import jakarta.inject.Inject; public class TestRecorderWithTestJavaBeanInjectedInConstructor { diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java index d650918f6ca4d..97df813e416ef 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java @@ -12,11 +12,11 @@ import java.util.logging.Handler; import java.util.stream.Collectors; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; import org.jboss.logmanager.handlers.AsyncHandler; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/Startup.java b/core/runtime/src/main/java/io/quarkus/runtime/Startup.java index 43750635fffa9..58bf079f15cd7 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/Startup.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/Startup.java @@ -8,13 +8,13 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.ObserverMethod; /** * This annotation can be used to initialize a CDI bean at application startup: *
    - *
  • If a bean class is annotated then a contextual instance is created and the {@link javax.annotation.PostConstruct} + *
  • If a bean class is annotated then a contextual instance is created and the {@link jakarta.annotation.PostConstruct} * callbacks are invoked.
  • *
  • If a producer method is annotated then a contextual instance is created, i.e. the producer method is invoked.
  • *
  • If a producer field is annotated then a contextual instance is created, i.e. the producer field is read.
  • @@ -68,7 +68,7 @@ /** * * @return the priority - * @see javax.annotation.Priority + * @see jakarta.annotation.Priority */ int value() default ObserverMethod.DEFAULT_PRIORITY; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/annotations/CommandLineArguments.java b/core/runtime/src/main/java/io/quarkus/runtime/annotations/CommandLineArguments.java index 0db283ba1ba1a..4479fdb738e74 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/annotations/CommandLineArguments.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/annotations/CommandLineArguments.java @@ -3,7 +3,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; /** * A qualifier that can be used to inject the command line arguments. diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java index cd1436fca8e32..3d14cb8badb26 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CharsetConverter.java @@ -5,7 +5,7 @@ import java.io.Serializable; import java.nio.charset.Charset; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CidrAddressConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CidrAddressConverter.java index 2443f5cec5e42..7dfaefabf0118 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/CidrAddressConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/CidrAddressConverter.java @@ -4,7 +4,7 @@ import java.io.Serializable; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; import org.wildfly.common.net.CidrAddress; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConverterSupport.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConverterSupport.java index 748e976d4fa3d..a06cc52b0f195 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConverterSupport.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ConverterSupport.java @@ -1,6 +1,6 @@ package io.quarkus.runtime.configuration; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/DurationConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/DurationConverter.java index 0e2c57a83b032..7104f303cd503 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/DurationConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/DurationConverter.java @@ -7,7 +7,7 @@ import java.time.format.DateTimeParseException; import java.util.regex.Pattern; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetAddressConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetAddressConverter.java index a1bbbcd1575cf..6ad217740f946 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetAddressConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetAddressConverter.java @@ -6,7 +6,7 @@ import java.net.InetAddress; import java.net.UnknownHostException; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; import org.wildfly.common.net.Inet; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetSocketAddressConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetSocketAddressConverter.java index d6dad37ef5e7e..7b761e3bca607 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetSocketAddressConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/InetSocketAddressConverter.java @@ -6,7 +6,7 @@ import java.net.InetAddress; import java.net.InetSocketAddress; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; import org.wildfly.common.net.Inet; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/LocaleConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/LocaleConverter.java index cab0ff13948ff..8a5e83a0512bb 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/LocaleConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/LocaleConverter.java @@ -6,7 +6,7 @@ import java.util.Locale; import java.util.regex.Pattern; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/MemorySizeConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/MemorySizeConverter.java index 331be5a4cdb10..8c304ea0bbd1c 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/MemorySizeConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/MemorySizeConverter.java @@ -9,7 +9,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/NormalizeRootHttpPathConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/NormalizeRootHttpPathConverter.java index fcda229d2ec0c..aba452baf545a 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/NormalizeRootHttpPathConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/NormalizeRootHttpPathConverter.java @@ -2,7 +2,7 @@ import static io.quarkus.runtime.configuration.ConverterSupport.DEFAULT_QUARKUS_CONVERTER_PRIORITY; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/PathConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/PathConverter.java index e113a49813308..bcd72cfa304ab 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/PathConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/PathConverter.java @@ -6,7 +6,7 @@ import java.nio.file.Path; import java.nio.file.Paths; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/RegexConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/RegexConverter.java index 0f8babbc4b906..518f8d03d0167 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/RegexConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/RegexConverter.java @@ -5,7 +5,7 @@ import java.io.Serializable; import java.util.regex.Pattern; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ZoneIdConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ZoneIdConverter.java index 9303eefb66409..e5d4e582edbb1 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/ZoneIdConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/ZoneIdConverter.java @@ -5,7 +5,7 @@ import java.io.Serializable; import java.time.ZoneId; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/logging/LevelConverter.java b/core/runtime/src/main/java/io/quarkus/runtime/logging/LevelConverter.java index 153b810a169e4..73cbb3548d656 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/logging/LevelConverter.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/logging/LevelConverter.java @@ -6,7 +6,7 @@ import java.util.Locale; import java.util.logging.Level; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; import org.jboss.logmanager.LogContext; diff --git a/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java b/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java index 4c8bd098cb8d9..fe93bb6e43a1a 100644 --- a/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java +++ b/devtools/cli/src/main/java/io/quarkus/cli/QuarkusCli.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.concurrent.Callable; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.cli.common.HelpOption; import io.quarkus.cli.common.OutputOptionMixin; diff --git a/devtools/maven/pom.xml b/devtools/maven/pom.xml index d6235e0ade1fd..839b86bce4462 100644 --- a/devtools/maven/pom.xml +++ b/devtools/maven/pom.xml @@ -82,8 +82,8 @@ - org.glassfish - jakarta.json + org.eclipse.parsson + parsson diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java index a3810190447fa..123660490b324 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/Function.java @@ -9,7 +9,7 @@ import com.microsoft.azure.functions.annotation.FunctionName; import com.microsoft.azure.functions.annotation.HttpTrigger; -import javax.inject.Inject; +import jakarta.inject.Inject; import java.util.Optional; /** diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java index 8a7d5a383e7a5..1cf08dac71ad4 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/main/java/org/acme/GreetingService.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java index cc484aca49cd6..b699e5643d4eb 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java @@ -9,7 +9,7 @@ import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import javax.inject.Inject; +import jakarta.inject.Inject; import java.util.HashMap; import java.util.Map; import java.util.Optional; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java index aa65b237e2b1e..8a8e4c50de273 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/main/java/org/acme/GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class GreetingResource { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java index acb7919dff865..beaa9691770af 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingFunctions.java @@ -1,6 +1,6 @@ package org.acme.funqygooglecloudfunctions; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingService.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingService.java index 61ee2f8b2e4af..2553264dba9f3 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingService.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/main/java/org/acme/funqygooglecloudfunctions/GreetingService.java @@ -1,6 +1,6 @@ package org.acme.funqygooglecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunction.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunction.java index 5ab97f59ce029..b2e16453a00a1 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunction.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunction.java @@ -1,6 +1,6 @@ package org.acme.googlecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.BackgroundFunction; import com.google.cloud.functions.Context; @@ -16,4 +16,4 @@ public void accept(StorageEvent event, Context context) throws Exception { public static class StorageEvent { public String name; } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunction.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunction.java index 2664514d3d5f4..db4fb8d4bbba8 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunction.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunction.java @@ -1,6 +1,6 @@ package org.acme.googlecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.CloudEventsFunction; @@ -16,4 +16,4 @@ public void accept(CloudEvent cloudEvent) throws Exception { System.out.println("Receive event Type: " + cloudEvent.getType()); System.out.println("Receive event Data: " + new String(cloudEvent.getData().toBytes())); } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldHttpFunction.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldHttpFunction.java index d1ada420e428d..b908e7aeef51d 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldHttpFunction.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/main/java/org/acme/googlecloudfunctions/HelloWorldHttpFunction.java @@ -2,7 +2,7 @@ import java.io.Writer; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.HttpFunction; import com.google.cloud.functions.HttpRequest; @@ -16,4 +16,4 @@ public void service(HttpRequest httpRequest, HttpResponse httpResponse) throws E Writer writer = httpResponse.getWriter(); writer.write("Hello World"); } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingResource.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingResource.java index 8c58b0385fd55..43d9e4ee26e1a 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingResource.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingResource.java @@ -1,11 +1,11 @@ package org.acme.googlecloudfunctionshttp; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingServlet.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingServlet.java index 31f9254c4a44f..a4ca3339ebe20 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingServlet.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-http-example/java/src/main/java/org/acme/googlecloudfunctions/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/java/src/main/java/org/acme/MyEntity.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/java/src/main/java/org/acme/MyEntity.tpl.qute.java index 51b4a1aae3679..de8acf86b6ad4 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/java/src/main/java/org/acme/MyEntity.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/java/src/main/java/org/acme/MyEntity.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; {#if !input.selected-extensions-ga.contains('io.quarkus:quarkus-hibernate-orm-panache')} -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; /** * Example JPA entity. @@ -33,7 +33,7 @@ public class MyEntity { } {#else} import io.quarkus.hibernate.orm.panache.PanacheEntity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** @@ -59,4 +59,4 @@ public class MyEntity { public class MyEntity extends PanacheEntity { public String field; } -{/if} \ No newline at end of file +{/if} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/kotlin/src/main/kotlin/org/acme/MyKotlinEntity.tpl.qute.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/kotlin/src/main/kotlin/org/acme/MyKotlinEntity.tpl.qute.kt index 3d8a51d8c6513..c5710b502a12d 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/kotlin/src/main/kotlin/org/acme/MyKotlinEntity.tpl.qute.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/hibernate-orm-codestart/kotlin/src/main/kotlin/org/acme/MyKotlinEntity.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme {#if !input.selected-extensions-ga.contains('io.quarkus:quarkus-hibernate-orm-panache-kotlin')} -import javax.persistence.Entity -import javax.persistence.GeneratedValue -import javax.persistence.Id +import jakarta.persistence.Entity +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id /** * Example JPA entity. @@ -33,7 +33,7 @@ class MyKotlinEntity { {#else} import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion -import javax.persistence.Entity +import jakarta.persistence.Entity /** * Example JPA entity defined as a Kotlin Panache Entity. diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/main/java/org/acme/MyReactiveMessagingApplication.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/main/java/org/acme/MyReactiveMessagingApplication.java index 877435b0e4348..8e05b96dd60b6 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/main/java/org/acme/MyReactiveMessagingApplication.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/main/java/org/acme/MyReactiveMessagingApplication.java @@ -3,9 +3,9 @@ import io.quarkus.runtime.StartupEvent; import org.eclipse.microprofile.reactive.messaging.*; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import java.util.stream.Stream; @ApplicationScoped diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/test/java/org/acme/MyReactiveMessagingApplicationTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/test/java/org/acme/MyReactiveMessagingApplicationTest.java index 7f701585b80cc..33bef2283995d 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/test/java/org/acme/MyReactiveMessagingApplicationTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-messaging-codestart/java/src/test/java/org/acme/MyReactiveMessagingApplicationTest.java @@ -7,7 +7,7 @@ import org.eclipse.microprofile.reactive.messaging.Message; import org.junit.jupiter.api.Test; -import javax.inject.Inject; +import jakarta.inject.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -22,4 +22,4 @@ void test() { assertEquals("HELLO", application.toUpperCase(Message.of("Hello")).getPayload()); assertEquals("BONJOUR", application.toUpperCase(Message.of("bonjour")).getPayload()); } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/main/java/org/acme/MyDeclarativeRoutes.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/main/java/org/acme/MyDeclarativeRoutes.java index d96fbdae31e3a..4dacbdba6a7f2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/main/java/org/acme/MyDeclarativeRoutes.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/main/java/org/acme/MyDeclarativeRoutes.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.web.Route; import io.quarkus.vertx.web.RoutingExchange; @@ -13,4 +13,4 @@ public class MyDeclarativeRoutes { void helloRoute(RoutingExchange ex) { ex.ok("Hello " + ex.getParam("name").orElse("Reactive Route") +" !!"); } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/kotlin/src/main/kotlin/org/acme/MyDeclarativeRoutes.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/kotlin/src/main/kotlin/org/acme/MyDeclarativeRoutes.kt index 2aa5124825301..6ae56f183b59f 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/kotlin/src/main/kotlin/org/acme/MyDeclarativeRoutes.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/kotlin/src/main/kotlin/org/acme/MyDeclarativeRoutes.kt @@ -3,7 +3,7 @@ package org.acme import io.quarkus.vertx.web.Route import io.quarkus.vertx.web.RoutingExchange import io.vertx.ext.web.RoutingContext -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class MyDeclarativeRoutes { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/java/src/main/java/org/acme/MyRemoteService.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/java/src/main/java/org/acme/MyRemoteService.java index f5b4974a40ffd..b2016fea392dc 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/java/src/main/java/org/acme/MyRemoteService.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/java/src/main/java/org/acme/MyRemoteService.java @@ -2,9 +2,9 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.List; import java.util.Set; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/kotlin/src/main/kotlin/org/acme/MyRemoteService.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/kotlin/src/main/kotlin/org/acme/MyRemoteService.kt index 0e599b132b33a..e28a0ae228c7d 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/kotlin/src/main/kotlin/org/acme/MyRemoteService.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/rest-client-codestart/kotlin/src/main/kotlin/org/acme/MyRemoteService.kt @@ -1,9 +1,9 @@ package org.acme import org.eclipse.microprofile.rest.client.inject.RegisterRestClient -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.QueryParam +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.QueryParam /** * To use it via injection. diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 769ac7eccf80a..720033d91c9f2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -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("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index 6cf3f82e70791..c406ce55ca1f1 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -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("{resource.path}") class {resource.class-name} { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index 9c1d477333e38..dc1b6cda15acb 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.\{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.\{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/java/src/main/java/org/acme/SomePage.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/java/src/main/java/org/acme/SomePage.java index 7c1c0836c930d..7db20ce74c75f 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/java/src/main/java/org/acme/SomePage.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/java/src/main/java/org/acme/SomePage.java @@ -2,11 +2,11 @@ import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -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.QueryParam; +import jakarta.ws.rs.core.MediaType; import static java.util.Objects.requireNonNull; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt index 85e4f4038d5e3..6a3d408e02803 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt @@ -2,11 +2,11 @@ package org.acme import io.quarkus.qute.Template import io.quarkus.qute.TemplateInstance -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -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.QueryParam +import jakarta.ws.rs.core.MediaType @Path("/some-page") class SomePage(val page: Template) { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 769ac7eccf80a..720033d91c9f2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -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("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} \ No newline at end of file +} diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index 6cf3f82e70791..c406ce55ca1f1 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -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("{resource.path}") class {resource.class-name} { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index 9c1d477333e38..dc1b6cda15acb 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.\{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.\{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/java/src/main/java/org/acme/SomePage.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/java/src/main/java/org/acme/SomePage.java index 19ba2a00cc774..a35714966e2aa 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/java/src/main/java/org/acme/SomePage.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/java/src/main/java/org/acme/SomePage.java @@ -3,11 +3,11 @@ import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -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.QueryParam; +import jakarta.ws.rs.core.MediaType; import static java.util.Objects.requireNonNull; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt index 2106a2ccd5f02..6ba6d7b76f5b4 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-qute-codestart/kotlin/src/main/kotlin/org/acme/SomePage.kt @@ -2,11 +2,11 @@ package org.acme import io.quarkus.qute.Template import io.quarkus.qute.TemplateInstance -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -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.QueryParam +import jakarta.ws.rs.core.MediaType @Path("/some-page") class SomePage(val page: Template) { diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/java/src/main/java/org/acme/StartWebSocket.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/java/src/main/java/org/acme/StartWebSocket.java index 7676e7bfcd644..dfe07814b74d2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/java/src/main/java/org/acme/StartWebSocket.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/java/src/main/java/org/acme/StartWebSocket.java @@ -1,14 +1,14 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; -import javax.websocket.EncodeException; -import javax.websocket.OnClose; -import javax.websocket.OnError; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; -import javax.websocket.server.PathParam; -import javax.websocket.server.ServerEndpoint; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.websocket.EncodeException; +import jakarta.websocket.OnClose; +import jakarta.websocket.OnError; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; +import jakarta.websocket.server.PathParam; +import jakarta.websocket.server.ServerEndpoint; import java.io.IOException; import static java.util.Objects.requireNonNull; diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/kotlin/src/main/kotlin/org/acme/StartWebSocket.kt b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/kotlin/src/main/kotlin/org/acme/StartWebSocket.kt index eadc327cb78ce..aac9a7c067f45 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/kotlin/src/main/kotlin/org/acme/StartWebSocket.kt +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/websockets-codestart/kotlin/src/main/kotlin/org/acme/StartWebSocket.kt @@ -1,9 +1,9 @@ package org.acme -import javax.enterprise.context.ApplicationScoped -import javax.websocket.* -import javax.websocket.server.PathParam -import javax.websocket.server.ServerEndpoint +import jakarta.enterprise.context.ApplicationScoped +import jakarta.websocket.* +import jakarta.websocket.server.PathParam +import jakarta.websocket.server.ServerEndpoint @ApplicationScoped @ServerEndpoint("/start-websocket/{name}") diff --git a/docs/src/main/asciidoc/_examples/acme-serve-http-requests-MyAcmeApplication.java b/docs/src/main/asciidoc/_examples/acme-serve-http-requests-MyAcmeApplication.java index a841dd2b83bf5..cec53c4ce78b4 100644 --- a/docs/src/main/asciidoc/_examples/acme-serve-http-requests-MyAcmeApplication.java +++ b/docs/src/main/asciidoc/_examples/acme-serve-http-requests-MyAcmeApplication.java @@ -1,7 +1,7 @@ // tag::application[] package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.corp.Anvil; import org.acme.corp.Toaster; @@ -23,4 +23,4 @@ public Multi longGoodbye(String name) { } // end::goodbye[] } -// end::application[] \ No newline at end of file +// end::application[] diff --git a/docs/src/main/asciidoc/amazon-lambda-http.adoc b/docs/src/main/asciidoc/amazon-lambda-http.adoc index 846c3b90f4e1f..e822762e31895 100644 --- a/docs/src/main/asciidoc/amazon-lambda-http.adoc +++ b/docs/src/main/asciidoc/amazon-lambda-http.adoc @@ -295,7 +295,7 @@ For the AWS HTTP API you can inject the AWS variables `com.amazonaws.services.la [source, java] ---- -import javax.ws.rs.core.Context; +import jakarta.ws.rs.core.Context; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; @@ -319,7 +319,7 @@ For the AWS REST API you can inject the AWS variables `com.amazonaws.services.la [source, java] ---- -import javax.ws.rs.core.Context; +import jakarta.ws.rs.core.Context; import io.quarkus.amazon.lambda.http.model.AwsProxyRequestContext; import io.quarkus.amazon.lambda.http.model.AwsProxyRequest; @@ -353,7 +353,7 @@ request that can be consumed by any HTTP framework Quarkus supports (JAX-RS, ser API Gateway supports many ways to securely invoke on your HTTP endpoints that are backed by Lambda and Quarkus. If you enable it, Quarkus will automatically parse relevant parts of the https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html[event json document] and look for security based metadata and register a `java.security.Principal` internally that can be looked up in JAX-RS -by injecting a `javax.ws.rs.core.SecurityContext`, via `HttpServletRequest.getUserPrincipal()` in servlet, and `RouteContext.user()` in Reactive Routes. +by injecting a `jakarta.ws.rs.core.SecurityContext`, via `HttpServletRequest.getUserPrincipal()` in servlet, and `RouteContext.user()` in Reactive Routes. If you want more security information, the `Principal` object can be typecast to a class that will give you more information. @@ -504,7 +504,7 @@ package org.acme; import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; @@ -535,7 +535,7 @@ package org.acme; import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.amazon.lambda.http.model.AwsProxyRequest; @@ -569,4 +569,4 @@ the `QUARKUS_AWS_LAMBDA_FORCE_USER_NAME` environment variable == SnapStart -To optimize your application for Lambda SnapStart, check xref:amazon-snapstart.adoc[the SnapStart Configuration Documentation]. \ No newline at end of file +To optimize your application for Lambda SnapStart, check xref:amazon-snapstart.adoc[the SnapStart Configuration Documentation]. diff --git a/docs/src/main/asciidoc/amazon-snapstart.adoc b/docs/src/main/asciidoc/amazon-snapstart.adoc index 89358253766f3..2b4d8a10efeab 100644 --- a/docs/src/main/asciidoc/amazon-snapstart.adoc +++ b/docs/src/main/asciidoc/amazon-snapstart.adoc @@ -153,9 +153,9 @@ import org.crac.Core; import org.crac.Resource; import org.jboss.logging.Logger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @Startup @ApplicationScoped @@ -191,4 +191,4 @@ WARNING: Restoration is limited to 2 seconds. It is also recommended to use _tiered compilation_ when using SnapStart. To achieve this, set the `JAVA_TOOL_OPTIONS` environment property to `-XX:+TieredCompilation -XX:TieredStopAtLevel=1`. -TIP: `TieredCompilation` can also be interesting for regular Lambda functions. \ No newline at end of file +TIP: `TieredCompilation` can also be interesting for regular Lambda functions. diff --git a/docs/src/main/asciidoc/amqp-reference.adoc b/docs/src/main/asciidoc/amqp-reference.adoc index f8a0df7f4f77b..0b870346c580d 100644 --- a/docs/src/main/asciidoc/amqp-reference.adoc +++ b/docs/src/main/asciidoc/amqp-reference.adoc @@ -102,7 +102,7 @@ package inbound; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class AmqpPriceConsumer { @@ -124,7 +124,7 @@ package inbound; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.concurrent.CompletionStage; @ApplicationScoped @@ -381,8 +381,8 @@ For example, The following code illustrates how you can store incoming payloads import io.smallrye.reactive.messaging.annotations.Blocking; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; @ApplicationScoped public class PriceStorage { diff --git a/docs/src/main/asciidoc/amqp.adoc b/docs/src/main/asciidoc/amqp.adoc index 99cce7e9d1bdb..92161fd78181a 100644 --- a/docs/src/main/asciidoc/amqp.adoc +++ b/docs/src/main/asciidoc/amqp.adoc @@ -164,11 +164,11 @@ package org.acme.amqp.producer; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -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.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.amqp.model.Quote; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -214,7 +214,7 @@ package org.acme.amqp.processor; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.amqp.model.Quote; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/docs/src/main/asciidoc/azure-functions.adoc b/docs/src/main/asciidoc/azure-functions.adoc index 2b8dcf1128122..31115ad7298d9 100644 --- a/docs/src/main/asciidoc/azure-functions.adoc +++ b/docs/src/main/asciidoc/azure-functions.adoc @@ -28,7 +28,7 @@ import com.microsoft.azure.functions.annotation.AuthorizationLevel; import com.microsoft.azure.functions.annotation.FunctionName; import com.microsoft.azure.functions.annotation.HttpTrigger; -import javax.inject.Inject; +import jakarta.inject.Inject; import java.util.Optional; public class Function { diff --git a/docs/src/main/asciidoc/building-my-first-extension.adoc b/docs/src/main/asciidoc/building-my-first-extension.adoc index 5fe1d64f25caf..c055684287d9b 100644 --- a/docs/src/main/asciidoc/building-my-first-extension.adoc +++ b/docs/src/main/asciidoc/building-my-first-extension.adoc @@ -530,10 +530,10 @@ mkdir -p ./greeting-extension/runtime/src/main/java/org/acme/greeting/extension ---- package org.acme.greeting.extension; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet @@ -546,7 +546,7 @@ public class GreetingExtensionServlet extends HttpServlet { // <1> } ---- -<1> As usual, defining a servlet requires to extend `javax.servlet.http.HttpServlet`. +<1> As usual, defining a servlet requires to extend `jakarta.servlet.http.HttpServlet`. <2> Since we want to respond to the HTTP GET verb, we override the `doGet` method and write `Hello` in the Servlet response's output stream. === Deploying the Greeting feature diff --git a/docs/src/main/asciidoc/cache.adoc b/docs/src/main/asciidoc/cache.adoc index 524f28c61cb54..6881cf3a3c5ad 100644 --- a/docs/src/main/asciidoc/cache.adoc +++ b/docs/src/main/asciidoc/cache.adoc @@ -78,7 +78,7 @@ package org.acme.cache; import java.time.LocalDate; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class WeatherForecastService { @@ -151,10 +151,10 @@ import java.time.LocalDate; import java.util.Arrays; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.RestQuery; @@ -211,7 +211,7 @@ package org.acme.cache; import java.time.LocalDate; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.CacheResult; @@ -344,7 +344,7 @@ When a cache key is built from several method arguments, whether they are explic ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.CacheInvalidate; import io.quarkus.cache.CacheResult; @@ -384,7 +384,7 @@ public class CachedService { You may want to include more than the arguments of a method into a cache key. This can be done by implementing the `io.quarkus.cache.CacheKeyGenerator` interface and declaring that implementation in the `keyGenerator` field of a `@CacheResult` or `@CacheInvalidate` annotation. -If a CDI scope is declared on a key generator class and if that class has a default qualifier (no qualifier annotation or `@javax.enterprise.inject.Default`), then the key generator will be injected as a CDI bean during the cache key computation. +If a CDI scope is declared on a key generator class and if that class has a default qualifier (no qualifier annotation or `@jakarta.enterprise.inject.Default`), then the key generator will be injected as a CDI bean during the cache key computation. Otherwise, the key generator will be instantiated using its default constructor. All CDI scopes supported by Quarkus can be used on a key generator. @@ -395,8 +395,8 @@ The following key generator will be injected as a CDI bean: package org.acme.cache; import java.lang.reflect.Method; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.cache.CacheKeyGenerator; import io.quarkus.cache.CompositeCacheKey; @@ -447,7 +447,7 @@ Both kinds of key generators can be used in a similar way: ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.cache.ApplicationScopedKeyGen; import org.acme.cache.NotABeanKeyGen; @@ -496,8 +496,8 @@ The following sections will show you how to do that. ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheName; @@ -539,8 +539,8 @@ Another way to retrieve a `Cache` instance consists in injecting the `io.quarkus ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheManager; @@ -578,7 +578,7 @@ If the cache entries are modified while an iteration over the set is in progress ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheName; @@ -607,7 +607,7 @@ This method associates the `CompletableFuture` with the given key in the cache. ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheName; @@ -639,7 +639,7 @@ Otherwise, the method will return `null`. ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheName; @@ -668,8 +668,8 @@ Similarly, the maximum size of a `CaffeineCache` can be changed in real time if ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheManager; @@ -804,7 +804,7 @@ cache_eviction_weight_total{cache="foo",} 540.0 ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.cache.CacheInvalidate; import io.quarkus.cache.CacheInvalidateAll; @@ -835,7 +835,7 @@ public class CachedService { ---- package org.acme.cache; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import io.quarkus.cache.CacheInvalidate; import io.quarkus.cache.CacheInvalidateAll; @@ -867,7 +867,7 @@ public class CachedService { ---- package org.acme.cache; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import io.quarkus.cache.CacheInvalidate; import io.quarkus.cache.CacheInvalidateAll; @@ -898,7 +898,7 @@ public class CachedService { ---- package org.acme.cache; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.cache.CacheInvalidate; import io.quarkus.cache.CacheInvalidateAll; @@ -928,8 +928,8 @@ public class CachedService { ---- package org.acme.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.cache.CacheManager; diff --git a/docs/src/main/asciidoc/cdi-integration.adoc b/docs/src/main/asciidoc/cdi-integration.adoc index a055a52f20994..d0519ea168818 100644 --- a/docs/src/main/asciidoc/cdi-integration.adoc +++ b/docs/src/main/asciidoc/cdi-integration.adoc @@ -160,7 +160,7 @@ _Solution_: Use the `AdditionalBeanBuildItem` as described in < Generate the bytecode of the `javax.enterprise.context.spi.Contextual#create(CreationalContext)` implementation. +<1> Generate the bytecode of the `jakarta.enterprise.context.spi.Contextual#create(CreationalContext)` implementation. The output of a bean configurator is recorded as bytecode. Therefore, there are some limitations in how a synthetic bean instance is created at runtime. @@ -451,7 +451,7 @@ _Solution_: You can inject the `CustomScopeAnnotationsBuildItem` in a build step [[additional_interceptor_bindings]] == Use Case - Additional Interceptor Bindings -In rare cases it might be handy to programmatically register an existing annotation that is not annotated with `@javax.interceptor.InterceptorBinding` as an interceptor binding. +In rare cases it might be handy to programmatically register an existing annotation that is not annotated with `@jakarta.interceptor.InterceptorBinding` as an interceptor binding. This is similar to what CDI achieves through `BeforeBeanDiscovery#addInterceptorBinding()`. We are going to use `InterceptorBindingRegistrarBuildItem` to get it done. @@ -471,7 +471,7 @@ InterceptorBindingRegistrarBuildItem addInterceptorBindings() { == Use Case - Additional Qualifiers -Sometimes it might be useful to register an existing annotation that is not annotated with `@javax.inject.Qualifier` as a CDI qualifier. +Sometimes it might be useful to register an existing annotation that is not annotated with `@jakarta.inject.Qualifier` as a CDI qualifier. This is similar to what CDI achieves through `BeforeBeanDiscovery#addQualifier()`. We are going to use `QualifierRegistrarBuildItem` to get it done. @@ -492,7 +492,7 @@ QualifierRegistrarBuildItem addQualifiers() { == Use Case - Additional Stereotypes -It is sometimes useful to register an existing annotation that is not annotated with `@javax.enterprise.inject.Stereotype` as a CDI stereotype. +It is sometimes useful to register an existing annotation that is not annotated with `@jakarta.enterprise.inject.Stereotype` as a CDI stereotype. This is similar to what CDI achieves through `BeforeBeanDiscovery#addStereotype()`. We are going to use `StereotypeRegistrarBuildItem` to get it done. diff --git a/docs/src/main/asciidoc/cdi-reference.adoc b/docs/src/main/asciidoc/cdi-reference.adoc index 8dc41d17e8b4a..3aff6c6727aed 100644 --- a/docs/src/main/asciidoc/cdi-reference.adoc +++ b/docs/src/main/asciidoc/cdi-reference.adoc @@ -212,7 +212,7 @@ public class CounterBean { * Dependency injection and lookup ** Field, constructor and initializer/setter injection ** Type-safe resolution -** Programmatic lookup via `javax.enterprise.inject.Instance` +** Programmatic lookup via `jakarta.enterprise.inject.Instance` ** Client proxies ** Injection point metadata * Scopes and contexts; see xref:cdi.adoc#bean-scope-available[here] for details @@ -455,7 +455,7 @@ An _unused_ bean: * is not _unremovable_, and * is not eligible for injection to any injection point in the dependency tree, and * does not declare any producer which is eligible for injection to any injection point in the dependency tree, and -* is not eligible for injection into any `javax.enterprise.inject.Instance` or `javax.inject.Provider` injection point. +* is not eligible for injection into any `jakarta.enterprise.inject.Instance` or `jakarta.inject.Provider` injection point. Unused interceptors and decorators are not associated with any bean. @@ -655,7 +655,7 @@ NOTE: Properties set at runtime have absolutely no effect on the bean resolution In CDI, an alternative bean may be selected either globally for an application by means of `@Priority`, or for a bean archive using a `beans.xml` descriptor. Quarkus has a simplified bean discovery and the content of `beans.xml` is ignored. -The disadvantage of `@javax.annotation.Priority` is that it has `@Target({ TYPE, PARAMETER })` and so it cannot be used for producer methods and fields. +The disadvantage of `@jakarta.annotation.Priority` is that it has `@Target({ TYPE, PARAMETER })` and so it cannot be used for producer methods and fields. This problem should be fixed in Common Annotations 2.1. Users are encouraged to use `@io.quarkus.arc.Priority` instead, until Quarkus upgrades to this version of `jakarta.annotation-api`. @@ -838,7 +838,7 @@ Other interceptors could be provided to log method invocations to different targ === Caching the Result of Programmatic Lookup -In certain situations, it is practical to obtain a bean instance programmatically via an injected `javax.enterprise.inject.Instance` and `Instance.get()`. +In certain situations, it is practical to obtain a bean instance programmatically via an injected `jakarta.enterprise.inject.Instance` and `Instance.get()`. However, according to the specification the `get()` method must identify the matching bean and obtain a contextual reference. As a consequence, a new instance of a `@Dependent` bean is returned from each invocation of `get()`. Moreover, this instance is a dependent object of the injected `Instance`. @@ -890,11 +890,11 @@ class Consumer { } ---- -TIP: It is also possible to clear the cached value via `io.quarkus.arc.InjectableInstance.clearCache()`. In this case, you'll need to inject the Quarkus-specific `io.quarkus.arc.InjectableInstance` instead of `javax.enterprise.inject.Instance`. +TIP: It is also possible to clear the cached value via `io.quarkus.arc.InjectableInstance.clearCache()`. In this case, you'll need to inject the Quarkus-specific `io.quarkus.arc.InjectableInstance` instead of `jakarta.enterprise.inject.Instance`. === Declaratively Choose Beans That Can Be Obtained by Programmatic Lookup -It is sometimes useful to narrow down the set of beans that can be obtained by programmatic lookup via `javax.enterprise.inject.Instance`. +It is sometimes useful to narrow down the set of beans that can be obtained by programmatic lookup via `jakarta.enterprise.inject.Instance`. Typically, a user needs to choose the appropriate implementation of an interface based on a runtime configuration property. Imagine that we have two beans implementing the interface `org.acme.Service`. @@ -944,7 +944,7 @@ Alternatively, you can use the `@LookupIfProperty` and `@LookupUnlessProperty` a === Injecting Multiple Bean Instances Intuitively -In CDI, it's possible to inject multiple bean instances (aka contextual references) via the `javax.enterprise.inject.Instance` which implements `java.lang.Iterable`. +In CDI, it's possible to inject multiple bean instances (aka contextual references) via the `jakarta.enterprise.inject.Instance` which implements `java.lang.Iterable`. However, it's not exactly intuitive. Therefore, a new way was introduced in Quarkus - you can inject a `java.util.List` annotated with the `io.quarkus.arc.All` qualifier. The type of elements in the list is used as the required type when performing the lookup. @@ -962,7 +962,7 @@ public class Processor { <1> The injected instance is an _immutable list_ of the contextual references of the _disambiguated_ beans. <2> For this injection point the required type is `Service` and no additional qualifiers are declared. -TIP: The list is sorted by priority as defined by `io.quarkus.arc.InjectableBean#getPriority()`. Higher priority goes first. In general, the `@javax.annotation.Priority` and `@io.quarkus.arc.Priority` annotations can be used to assign the priority to a class bean, producer method or producer field. +TIP: The list is sorted by priority as defined by `io.quarkus.arc.InjectableBean#getPriority()`. Higher priority goes first. In general, the `@jakarta.annotation.Priority` and `@io.quarkus.arc.Priority` annotations can be used to assign the priority to a class bean, producer method or producer field. If an injection point declares no other qualifier than `@All` then `@Any` is used, i.e. the behavior is equivalent to `@Inject @Any Instance`. @@ -1042,7 +1042,7 @@ If an exception is thrown by an asynchronous observer then the `CompletionStage` However, if the event producer does not care then the exception is ignored silently. Therefore, Quarkus logs an error message by default. It is also possible to implement a custom `AsyncObserverExceptionHandler`. -A bean that implements this interface should be `@javax.inject.Singleton` or `@javax.enterprise.context.ApplicationScoped`. +A bean that implements this interface should be `@jakarta.inject.Singleton` or `@jakarta.enterprise.context.ApplicationScoped`. .`NoopAsyncObserverExceptionHandler` [source, java] diff --git a/docs/src/main/asciidoc/cdi.adoc b/docs/src/main/asciidoc/cdi.adoc index 5393766a44cb2..fe91fefe70bd6 100644 --- a/docs/src/main/asciidoc/cdi.adoc +++ b/docs/src/main/asciidoc/cdi.adoc @@ -38,8 +38,8 @@ The most common ones are class-based beans: .Simple Bean Example [source,java] ---- -import javax.inject.Inject; -import javax.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.metrics.annotation.Counted; @ApplicationScoped <1> @@ -78,7 +78,7 @@ This is very useful because your application fails fast whenever the container i [TIP] ==== -Your can use programmatic lookup via `javax.enterprise.inject.Instance` to resolve ambiguities at runtime and even iterate over all beans implementing a given type: +Your can use programmatic lookup via `jakarta.enterprise.inject.Instance` to resolve ambiguities at runtime and even iterate over all beans implementing a given type: [source,java] ---- @@ -95,7 +95,7 @@ public class Translator { } ---- <1> This injection point will not result in an ambiguous dependency even if there are multiple beans that implement the `Dictionary` type. -<2> `javax.enterprise.inject.Instance` extends `Iterable`. +<2> `jakarta.enterprise.inject.Instance` extends `Iterable`. ==== == Can I use setter and constructor injection? @@ -135,7 +135,7 @@ https://jakarta.ee/specifications/cdi/2.0/cdi-spec-2.0.html#qualifiers[Qualifier As we already said a bean is assignable to an injection point if it has all the required qualifiers. If you declare no qualifier at an injection point the `@Default` qualifier is assumed. -A qualifier type is a Java annotation defined as `@Retention(RUNTIME)` and annotated with the `@javax.inject.Qualifier` meta-annotation: +A qualifier type is a Java annotation defined as `@Retention(RUNTIME)` and annotated with the `@jakarta.inject.Qualifier` meta-annotation: .Qualifier Example [source,java] @@ -176,20 +176,20 @@ NOTE: Every bean has exactly one scope. [[bean-scope-available]] == [[what-scopes-can-i-actually-use-in-my-quarkus-application]] What scopes can I actually use in my Quarkus application? -You can use all the built-in scopes mentioned by the specification except for `javax.enterprise.context.ConversationScoped`. +You can use all the built-in scopes mentioned by the specification except for `jakarta.enterprise.context.ConversationScoped`. [options="header",cols="1,1"] |=== |Annotation |Description //---------------------- -|`@javax.enterprise.context.ApplicationScoped` | A single bean instance is used for the application and shared among all injection points. The instance is created lazily, i.e. once a method is invoked upon the <>. -|`@javax.inject.Singleton` | Just like `@ApplicationScoped` except that no client proxy is used. The instance is created when an injection point that resolves to a @Singleton bean is being injected. -|`@javax.enterprise.context.RequestScoped` | The bean instance is associated with the current _request_ (usually an HTTP request). -|`@javax.enterprise.context.Dependent` | This is a pseudo-scope. The instances are not shared and every injection point spawns a new instance of the dependent bean. The lifecycle of dependent bean is bound to the bean injecting it - it will be created and destroyed along with the bean injecting it. -|`@javax.enterprise.context.SessionScoped` | This scope is backed by a `javax.servlet.http.HttpSession` object. It's only available if the `quarkus-undertow` extension is used. +|`@jakarta.enterprise.context.ApplicationScoped` | A single bean instance is used for the application and shared among all injection points. The instance is created lazily, i.e. once a method is invoked upon the <>. +|`@jakarta.inject.Singleton` | Just like `@ApplicationScoped` except that no client proxy is used. The instance is created when an injection point that resolves to a @Singleton bean is being injected. +|`@jakarta.enterprise.context.RequestScoped` | The bean instance is associated with the current _request_ (usually an HTTP request). +|`@jakarta.enterprise.context.Dependent` | This is a pseudo-scope. The instances are not shared and every injection point spawns a new instance of the dependent bean. The lifecycle of dependent bean is bound to the bean injecting it - it will be created and destroyed along with the bean injecting it. +|`@jakarta.enterprise.context.SessionScoped` | This scope is backed by a `jakarta.servlet.http.HttpSession` object. It's only available if the `quarkus-undertow` extension is used. |=== -NOTE: There can be other custom scopes provided by Quarkus extensions. For example, xref:transaction.adoc[`quarkus-narayana-jta`] provides xref:transaction.adoc#transaction-scope[`javax.transaction.TransactionScoped`]. +NOTE: There can be other custom scopes provided by Quarkus extensions. For example, xref:transaction.adoc[`quarkus-narayana-jta`] provides xref:transaction.adoc#transaction-scope[`jakarta.transaction.TransactionScoped`]. == `@ApplicationScoped` and `@Singleton` look very similar. Which one should I choose for my Quarkus application? @@ -320,8 +320,8 @@ A bean class may declare lifecycle `@PostConstruct` and `@PreDestroy` callbacks: .Lifecycle Callbacks Example [source,java] ---- -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; @ApplicationScoped public class Translator { @@ -356,7 +356,7 @@ import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding // <1> @Retention(RetentionPolicy.RUNTIME) @@ -372,10 +372,10 @@ public @interface Logged { .Simple Interceptor Example [source,java] ---- -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Logged // <1> @Priority(2020) // <2> @@ -407,7 +407,7 @@ NOTE: Instances of interceptors are dependent objects of the bean instance they .Simple Example of Interceptor Usage [source,java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Logged // <1> <2> @ApplicationScoped @@ -430,11 +430,11 @@ Decorators are similar to interceptors, but because they implement interfaces wi .Simple Decorator Example [source,java] ---- -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.enterprise.inject.Any; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.enterprise.inject.Any; public interface Account { void withdraw(BigDecimal amount); @@ -506,7 +506,7 @@ class Logger { } ---- -<1> `javax.enterprise.event.Event` is used to fire events. +<1> `jakarta.enterprise.event.Event` is used to fire events. <2> Fire the event synchronously. <3> This method is notified when a `TaskCompleted` event is fired. diff --git a/docs/src/main/asciidoc/centralized-log-management.adoc b/docs/src/main/asciidoc/centralized-log-management.adoc index d274aa94355fd..6ee23b3d85598 100644 --- a/docs/src/main/asciidoc/centralized-log-management.adoc +++ b/docs/src/main/asciidoc/centralized-log-management.adoc @@ -59,9 +59,9 @@ For demonstration purposes, we create an endpoint that does nothing but log a se [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.logging.Logger; diff --git a/docs/src/main/asciidoc/command-mode-reference.adoc b/docs/src/main/asciidoc/command-mode-reference.adoc index 73f2cbd46a499..7633b1164438a 100644 --- a/docs/src/main/asciidoc/command-mode-reference.adoc +++ b/docs/src/main/asciidoc/command-mode-reference.adoc @@ -244,8 +244,8 @@ package org.acme.commandmode.test; import java.util.Set; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.acme.commandmode.test.MyCommandModeTest.MyTestProfile; diff --git a/docs/src/main/asciidoc/config-extending-support.adoc b/docs/src/main/asciidoc/config-extending-support.adoc index fa4c16f5c7dc2..ae4f9035d3586 100644 --- a/docs/src/main/asciidoc/config-extending-support.adoc +++ b/docs/src/main/asciidoc/config-extending-support.adoc @@ -298,7 +298,7 @@ MicroProfileCustomValue value; === Converter priority -The `javax.annotation.Priority` annotation overrides the `Converter` priority and change converters precedence to fine +The `jakarta.annotation.Priority` annotation overrides the `Converter` priority and change converters precedence to fine tune the execution order. By default, if no `@Priority` is specified by the `Converter`, the converter is registered with a priority of `100`. Consider: @@ -306,7 +306,7 @@ with a priority of `100`. Consider: ---- package org.acme.config; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; @Priority(150) @@ -368,7 +368,7 @@ The `ConfigSourceInterceptorFactory` may initialize an interceptor with access t ---- package org.acme.config; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import io.smallrye.config.ConfigSourceInterceptor; import io.smallrye.config.ConfigLogging; diff --git a/docs/src/main/asciidoc/config-reference.adoc b/docs/src/main/asciidoc/config-reference.adoc index caf27a09f1490..5d5d84deeabc7 100644 --- a/docs/src/main/asciidoc/config-reference.adoc +++ b/docs/src/main/asciidoc/config-reference.adoc @@ -187,7 +187,7 @@ String suffix; @ConfigProperty(name = "greeting.name") Optional name; <3> ---- -<1> If you do not provide a value for this property, the application startup fails with `javax.enterprise.inject.spi.DeploymentException: No config value of type [class java.lang.String] exists for: greeting.message`. +<1> If you do not provide a value for this property, the application startup fails with `jakarta.enterprise.inject.spi.DeploymentException: No config value of type [class java.lang.String] exists for: greeting.message`. <2> The default value is injected if the configuration does not provide a value for `greeting.suffix`. <3> This property is optional - an empty `Optional` is injected if the configuration does not provide a value for `greeting.name`. @@ -196,7 +196,7 @@ TIP: Use xref:config-mappings.adoc#config-mappings[Config Mappings] to group sim === Default Values If a property is associated with a default value (by way of the `defaultValue` attribute), and no configuration value -is supplied for the property, then rather than throwing a `javax.enterprise.inject.spi.DeploymentException`, the +is supplied for the property, then rather than throwing a `jakarta.enterprise.inject.spi.DeploymentException`, the default value will be used. The `defaultValue` value is expressed as a `String`, and uses the same conversion mechanism used to process configuration values. Several Built-in Converters already exist for primitives, boxed primitives, and other classes; for example: diff --git a/docs/src/main/asciidoc/config.adoc b/docs/src/main/asciidoc/config.adoc index 28ce6b254b2e8..8c85387db49cc 100644 --- a/docs/src/main/asciidoc/config.adoc +++ b/docs/src/main/asciidoc/config.adoc @@ -68,10 +68,10 @@ Create the `org.acme.config.GreetingResource` REST resource with the following c ---- package org.acme.config; -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("/greeting") public class GreetingResource { @@ -112,7 +112,7 @@ String suffix; @ConfigProperty(name = "greeting.name") Optional name; <3> ---- -<1> If you do not provide a value for this property, the application startup fails with `javax.enterprise.inject.spi.DeploymentException: No config value of type [class java.lang.String] exists for: greeting.message`. +<1> If you do not provide a value for this property, the application startup fails with `jakarta.enterprise.inject.spi.DeploymentException: No config value of type [class java.lang.String] exists for: greeting.message`. <2> The default value is injected if the configuration does not provide a value for `greeting.suffix`. <3> This property is optional - an empty `Optional` is injected if the configuration does not provide a value for `greeting.name`. diff --git a/docs/src/main/asciidoc/doc-create-tutorial.adoc b/docs/src/main/asciidoc/doc-create-tutorial.adoc index 2fdfe4f9522a9..237328c5f1fd4 100644 --- a/docs/src/main/asciidoc/doc-create-tutorial.adoc +++ b/docs/src/main/asciidoc/doc-create-tutorial.adoc @@ -180,7 +180,7 @@ Let's add the following code to that file: // tag::application[] package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.corp.Anvil; import org.acme.corp.Toaster; diff --git a/docs/src/main/asciidoc/elasticsearch.adoc b/docs/src/main/asciidoc/elasticsearch.adoc index 45c9f8a840644..40c57463d07ee 100644 --- a/docs/src/main/asciidoc/elasticsearch.adoc +++ b/docs/src/main/asciidoc/elasticsearch.adoc @@ -113,8 +113,8 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.http.util.EntityUtils; import org.elasticsearch.client.Request; @@ -194,10 +194,10 @@ Now, create the `org.acme.elasticsearch.FruitResource` class as follows: ---- package org.acme.elasticsearch; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import java.io.IOException; import java.net.URI; import java.util.List; @@ -290,7 +290,7 @@ import org.apache.http.ssl.SSLContextBuilder; import org.apache.http.ssl.SSLContexts; import org.elasticsearch.client.RestClientBuilder; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import javax.net.ssl.SSLContext; import java.io.InputStream; import java.nio.file.Files; @@ -399,8 +399,8 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.elasticsearch.action.get.GetRequest; import org.elasticsearch.action.get.GetResponse; diff --git a/docs/src/main/asciidoc/funqy-gcp-functions.adoc b/docs/src/main/asciidoc/funqy-gcp-functions.adoc index 8ce831a04917c..be764d8c59bbf 100644 --- a/docs/src/main/asciidoc/funqy-gcp-functions.adoc +++ b/docs/src/main/asciidoc/funqy-gcp-functions.adoc @@ -83,7 +83,7 @@ NOTE: Quarkus supports Cloud Functions gen 1 and gen 2. For an overview of Cloud [source,java] ---- -import javax.inject.Inject; +import jakarta.inject.Inject; import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; diff --git a/docs/src/main/asciidoc/funqy.adoc b/docs/src/main/asciidoc/funqy.adoc index 4e7403c59abd2..5ad901bad9639 100644 --- a/docs/src/main/asciidoc/funqy.adoc +++ b/docs/src/main/asciidoc/funqy.adoc @@ -118,8 +118,8 @@ The default object lifecycle for a Funqy class is `@Dependent`. ---- import io.quarkus.funqy.Funq; -import javax.inject.Inject; -import javax.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingFunction { diff --git a/docs/src/main/asciidoc/gcp-functions-http.adoc b/docs/src/main/asciidoc/gcp-functions-http.adoc index 3e08fa4086779..54bae65285fae 100644 --- a/docs/src/main/asciidoc/gcp-functions-http.adoc +++ b/docs/src/main/asciidoc/gcp-functions-http.adoc @@ -72,10 +72,10 @@ NOTE: Quarkus supports Cloud Functions gen 1 and gen 2. For an overview of Cloud [source,java] ---- -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("/hello") public class GreetingResource { @@ -94,11 +94,11 @@ public class GreetingResource { ---- import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/docs/src/main/asciidoc/gcp-functions.adoc b/docs/src/main/asciidoc/gcp-functions.adoc index 54e6de864825b..53f7a0474af41 100644 --- a/docs/src/main/asciidoc/gcp-functions.adoc +++ b/docs/src/main/asciidoc/gcp-functions.adoc @@ -94,9 +94,9 @@ public class TestHttpFunction implements HttpFunction { [source,java] ---- import java.io.Writer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.HttpFunction; import com.google.cloud.functions.HttpRequest; import com.google.cloud.functions.HttpResponse; @@ -126,9 +126,9 @@ This `BackgroundFunction` is triggered by a Storage event, you can use any event [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.BackgroundFunction; import com.google.cloud.functions.Context; import io.quarkus.gcp.function.test.service.GreetingService; @@ -164,9 +164,9 @@ This `RawBackgroundFunction` is triggered by a PubSub event, you can use any eve [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.Context; import com.google.cloud.functions.RawBackgroundFunction; import io.quarkus.gcp.function.test.service.GreetingService; @@ -197,9 +197,9 @@ This `CloudEventsFunction` is triggered by a Cloud Events Storage event, you can [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.CloudEventsFunction; diff --git a/docs/src/main/asciidoc/getting-started-reactive.adoc b/docs/src/main/asciidoc/getting-started-reactive.adoc index fead1e41e8c1f..e94727b4274c1 100644 --- a/docs/src/main/asciidoc/getting-started-reactive.adoc +++ b/docs/src/main/asciidoc/getting-started-reactive.adoc @@ -121,9 +121,9 @@ Let's start with the `Fruit` entity.Create the `src/main/java/org/acme/hibernate ---- package org.acme.hibernate.orm.panache; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; // <1> @@ -182,8 +182,8 @@ Create the `src/main/java/org/acme/hibernate/orm/panache/FruitResource.java` fil ---- package org.acme.hibernate.orm.panache; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Path; @Path("/fruits") @ApplicationScoped diff --git a/docs/src/main/asciidoc/getting-started-testing.adoc b/docs/src/main/asciidoc/getting-started-testing.adoc index 8027f88fa1835..43bbc5c87accd 100644 --- a/docs/src/main/asciidoc/getting-started-testing.adoc +++ b/docs/src/main/asciidoc/getting-started-testing.adoc @@ -346,7 +346,7 @@ service directly without using HTTP: ---- package org.acme.getting.started.testing; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/docs/src/main/asciidoc/getting-started.adoc b/docs/src/main/asciidoc/getting-started.adoc index aaac5a62fc529..bac34c02fe8fd 100644 --- a/docs/src/main/asciidoc/getting-started.adoc +++ b/docs/src/main/asciidoc/getting-started.adoc @@ -152,10 +152,10 @@ During the project creation, the `src/main/java/org/acme/GreetingResource.java` ---- package org.acme; -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("/hello") public class GreetingResource { @@ -237,7 +237,7 @@ Create the `src/main/java/org/acme/GreetingService.java` file with the following ---- package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { @@ -255,11 +255,11 @@ Edit the `GreetingResource` class to inject the `GreetingService` and create a n ---- package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/docs/src/main/asciidoc/grpc-getting-started.adoc b/docs/src/main/asciidoc/grpc-getting-started.adoc index 1b4871783bf6b..6ca7f25c88e38 100644 --- a/docs/src/main/asciidoc/grpc-getting-started.adoc +++ b/docs/src/main/asciidoc/grpc-getting-started.adoc @@ -290,10 +290,10 @@ import io.quarkus.example.HelloRequest; import io.quarkus.grpc.GrpcClient; import io.smallrye.mutiny.Uni; -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("/hello") public class ExampleResource { diff --git a/docs/src/main/asciidoc/grpc-service-consumption.adoc b/docs/src/main/asciidoc/grpc-service-consumption.adoc index 363d8dae5a4ca..c5ab94b411a5c 100644 --- a/docs/src/main/asciidoc/grpc-service-consumption.adoc +++ b/docs/src/main/asciidoc/grpc-service-consumption.adoc @@ -78,10 +78,10 @@ import io.smallrye.mutiny.Uni; import hello.Greeter; -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("/hello") public class ExampleResource { @@ -107,10 +107,10 @@ import io.quarkus.grpc.GrpcClient; import hello.GreeterGrpc.GreeterBlockingStub; -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("/hello") public class ExampleResource { @@ -154,11 +154,11 @@ import io.quarkus.grpc.GrpcClient; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/streaming") @Produces(MediaType.APPLICATION_JSON) @@ -266,7 +266,7 @@ Headers can be useful e.g. for authentication. To set headers for a gRPC call, create a client with headers attached and then perform the call on this client: [source,java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import examples.Greeter; import examples.HelloReply; @@ -345,7 +345,7 @@ class MyBean { ---- <1> Registers the `MySpecialInterceptor` for this particular client. -When you have multiple client interceptors, you can order them by implementing the `javax.enterprise.inject.spi.Prioritized` interface: +When you have multiple client interceptors, you can order them by implementing the `jakarta.enterprise.inject.spi.Prioritized` interface: [source, java] ---- diff --git a/docs/src/main/asciidoc/grpc-service-implementation.adoc b/docs/src/main/asciidoc/grpc-service-implementation.adoc index 626d245c33a95..272647040240b 100644 --- a/docs/src/main/asciidoc/grpc-service-implementation.adoc +++ b/docs/src/main/asciidoc/grpc-service-implementation.adoc @@ -62,7 +62,7 @@ public class HelloService implements Greeter { <2> } } ---- -<1> A gRPC service implementation bean must be annotated with the `@GrpcService` annotation and should not declare any other CDI qualifier. All gRPC services have the `javax.inject.Singleton` scope. Additionally, the request context is always active during a service call. +<1> A gRPC service implementation bean must be annotated with the `@GrpcService` annotation and should not declare any other CDI qualifier. All gRPC services have the `jakarta.inject.Singleton` scope. Additionally, the request context is always active during a service call. <2> `hello.Greeter` is the generated service interface. NOTE: The service implementation bean can also extend the Mutiny implementation base, where the class name is structured as follows: `Mutiny${NAME_OF_THE_SERVICE}Grpc.${NAME_OF_THE_SERVICE}ImplBase`. @@ -284,7 +284,7 @@ public class StreamingService implements Streaming { } ---- -When you have multiple server interceptors, you can order them by implementing the `javax.enterprise.inject.spi.Prioritized` interface. Please note that all the global interceptors are invoked before the service-specific +When you have multiple server interceptors, you can order them by implementing the `jakarta.enterprise.inject.spi.Prioritized` interface. Please note that all the global interceptors are invoked before the service-specific interceptors. [source, java] diff --git a/docs/src/main/asciidoc/hibernate-orm.adoc b/docs/src/main/asciidoc/hibernate-orm.adoc index 5017dd72d4e5b..44bade252a708 100644 --- a/docs/src/main/asciidoc/hibernate-orm.adoc +++ b/docs/src/main/asciidoc/hibernate-orm.adoc @@ -426,9 +426,9 @@ difference is that you would specify your Hibernate ORM configuration in `META-I Optimistically create the tables; will cause background errors being logged if they already exist, but is practical to retain existing data across runs (or create as needed) --> - + - + @@ -583,7 +583,7 @@ Applications that frequently read the same entities can see their performance im === Caching of entities -To enable second-level cache, mark the entities that you want cached with `@javax.persistence.Cacheable`: +To enable second-level cache, mark the entities that you want cached with `@jakarta.persistence.Cacheable`: [source,java] ---- @@ -839,11 +839,11 @@ Let's start by implementing the `/{tenant}` endpoint. As you can see from the so [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @ApplicationScoped @Path("/{tenant}") @@ -866,7 +866,7 @@ In order to resolve the tenant from incoming requests and map it to a specific t [source,java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.runtime.tenant.TenantResolver; import io.vertx.ext.web.RoutingContext; diff --git a/docs/src/main/asciidoc/hibernate-reactive.adoc b/docs/src/main/asciidoc/hibernate-reactive.adoc index 890e27eb0831d..8a64046d61581 100644 --- a/docs/src/main/asciidoc/hibernate-reactive.adoc +++ b/docs/src/main/asciidoc/hibernate-reactive.adoc @@ -265,7 +265,7 @@ Here's a list of things to pay attention when using Hibernate Reactive in Quarku * it's not possible to configure multiple persistence units at the moment * it's not configurable via a `persistence.xml` file * integration with the Envers extension is not supported -* transaction demarcation cannot be done using `javax.transaction.Transactional` +* transaction demarcation cannot be done using `jakarta.transaction.Transactional` == Simplifying Hibernate Reactive with Panache diff --git a/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc b/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc index 0b1406948fadb..1cd5b605ccd46 100644 --- a/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc +++ b/docs/src/main/asciidoc/hibernate-search-orm-elasticsearch.adoc @@ -89,10 +89,10 @@ package org.acme.hibernate.search.elasticsearch.model; import java.util.List; import java.util.Objects; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToMany; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToMany; import io.quarkus.hibernate.orm.panache.PanacheEntity; @@ -136,8 +136,8 @@ package org.acme.hibernate.search.elasticsearch.model; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -187,15 +187,15 @@ package org.acme.hibernate.search.elasticsearch; import java.util.List; import java.util.Optional; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.acme.hibernate.search.elasticsearch.model.Author; import org.acme.hibernate.search.elasticsearch.model.Book; @@ -293,8 +293,8 @@ package org.acme.hibernate.search.elasticsearch.model; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; @@ -336,10 +336,10 @@ package org.acme.hibernate.search.elasticsearch.model; import java.util.List; import java.util.Objects; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToMany; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToMany; import org.hibernate.search.engine.backend.types.Sortable; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; @@ -439,8 +439,8 @@ package org.acme.hibernate.search.elasticsearch.config; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; -import javax.enterprise.context.Dependent; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Named; @SearchExtension // <1> public class AnalysisConfigurer implements ElasticsearchAnalysisConfigurer { diff --git a/docs/src/main/asciidoc/http-reference.adoc b/docs/src/main/asciidoc/http-reference.adoc index 0572dc61dea26..cc1fed445383b 100644 --- a/docs/src/main/asciidoc/http-reference.adoc +++ b/docs/src/main/asciidoc/http-reference.adoc @@ -301,7 +301,7 @@ link:https://en.wikipedia.org/wiki/Cross-origin_resource_sharing[Cross-origin re allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served. -Quarkus comes with a CORS filter which implements the `javax.servlet.Filter` interface and intercepts all incoming HTTP +Quarkus comes with a CORS filter which implements the `jakarta.servlet.Filter` interface and intercepts all incoming HTTP requests. It can be enabled in the Quarkus configuration file, `src/main/resources/application.properties`: [source, properties] diff --git a/docs/src/main/asciidoc/jms.adoc b/docs/src/main/asciidoc/jms.adoc index 5d7f27d8b99a5..7d39cff258cbe 100644 --- a/docs/src/main/asciidoc/jms.adoc +++ b/docs/src/main/asciidoc/jms.adoc @@ -98,11 +98,11 @@ import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.jms.ConnectionFactory; -import javax.jms.JMSContext; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.jms.ConnectionFactory; +import jakarta.jms.JMSContext; import io.quarkus.runtime.ShutdownEvent; import io.quarkus.runtime.StartupEvent; @@ -148,14 +148,14 @@ package org.acme.jms; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.jms.ConnectionFactory; -import javax.jms.JMSConsumer; -import javax.jms.JMSContext; -import javax.jms.JMSException; -import javax.jms.Message; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.jms.ConnectionFactory; +import jakarta.jms.JMSConsumer; +import jakarta.jms.JMSContext; +import jakarta.jms.JMSException; +import jakarta.jms.Message; import io.quarkus.runtime.ShutdownEvent; import io.quarkus.runtime.StartupEvent; @@ -210,11 +210,11 @@ Create the `src/main/java/org/acme/jms/PriceResource.java` file with the followi ---- package org.acme.jms; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** * A simple resource showing the last price. diff --git a/docs/src/main/asciidoc/kafka-reactive-getting-started.adoc b/docs/src/main/asciidoc/kafka-reactive-getting-started.adoc index 6e6e2a09e466c..3ddd222a421fd 100644 --- a/docs/src/main/asciidoc/kafka-reactive-getting-started.adoc +++ b/docs/src/main/asciidoc/kafka-reactive-getting-started.adoc @@ -156,11 +156,11 @@ package org.acme.kafka.producer; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -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.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.kafka.model.Quote; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -208,7 +208,7 @@ package org.acme.kafka.processor; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.kafka.model.Quote; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/docs/src/main/asciidoc/kafka-schema-registry-avro.adoc b/docs/src/main/asciidoc/kafka-schema-registry-avro.adoc index 32a4abd5010e7..297d0b399616a 100644 --- a/docs/src/main/asciidoc/kafka-schema-registry-avro.adoc +++ b/docs/src/main/asciidoc/kafka-schema-registry-avro.adoc @@ -116,9 +116,9 @@ import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; import org.jboss.logging.Logger; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/movies") public class MovieResource { @@ -178,11 +178,11 @@ from the `movies-from-kafka` channel and will expose it via Server-Sent Events: ---- package org.acme.kafka; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.kafka.quarkus.Movie; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -445,10 +445,10 @@ import io.restassured.http.ContentType; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import java.net.URI; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; diff --git a/docs/src/main/asciidoc/kafka-streams.adoc b/docs/src/main/asciidoc/kafka-streams.adoc index 7d8468d733e5d..839d448a705c8 100644 --- a/docs/src/main/asciidoc/kafka-streams.adoc +++ b/docs/src/main/asciidoc/kafka-streams.adoc @@ -126,7 +126,7 @@ import java.util.Collections; import java.util.List; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.smallrye.mutiny.Multi; import io.smallrye.reactive.messaging.kafka.Record; @@ -359,8 +359,8 @@ package org.acme.kafka.streams.aggregator.streams; import java.time.Instant; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.acme.kafka.streams.aggregator.model.Aggregation; import org.acme.kafka.streams.aggregator.model.TemperatureMeasurement; @@ -594,8 +594,8 @@ one more method to the `KafkaStreamsPipeline` class which obtains the current st ---- package org.acme.kafka.streams.aggregator.streams; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.acme.kafka.streams.aggregator.model.Aggregation; import org.acme.kafka.streams.aggregator.model.WeatherStationData; @@ -723,13 +723,13 @@ import java.net.URI; import java.net.URISyntaxException; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.acme.kafka.streams.aggregator.streams.GetWeatherStationDataResult; import org.acme.kafka.streams.aggregator.streams.KafkaStreamsPipeline; @@ -942,15 +942,15 @@ import java.net.URI; import java.net.URISyntaxException; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.acme.kafka.streams.aggregator.streams.GetWeatherStationDataResult; import org.acme.kafka.streams.aggregator.streams.KafkaStreamsPipeline; diff --git a/docs/src/main/asciidoc/kafka.adoc b/docs/src/main/asciidoc/kafka.adoc index 0937bad429616..152940bc1d59a 100644 --- a/docs/src/main/asciidoc/kafka.adoc +++ b/docs/src/main/asciidoc/kafka.adoc @@ -108,7 +108,7 @@ Continuing from the previous minimal configuration, your Quarkus application can ---- import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class PriceConsumer { @@ -179,11 +179,11 @@ Alternatively, your application can inject a `Multi` in your bean and subscribe import io.smallrye.mutiny.Multi; import io.smallrye.reactive.messaging.annotations.Channel; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.RestStreamElementType; @Path("/prices") @@ -250,8 +250,8 @@ For example, The following code illustrates how you can store incoming payloads import io.smallrye.reactive.messaging.annotations.Blocking; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; @ApplicationScoped public class PriceStorage { @@ -555,7 +555,7 @@ import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.OffsetAndTimestamp; import org.apache.kafka.clients.consumer.TopicPartition; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -603,7 +603,7 @@ import io.smallrye.reactive.messaging.kafka.IncomingKafkaRecord; import org.eclipse.microprofile.reactive.messaging.Acknowledgment; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; @@ -724,7 +724,7 @@ package org.acme; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; @@ -822,7 +822,7 @@ With `AveragePriceEntity` being a JPA entity extending `CheckpointEntity`: ---- package org.acme; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.smallrye.reactivemessaging.kafka.CheckpointEntity; @@ -892,7 +892,7 @@ It can use `double` payloads as in the following snippet: import io.smallrye.mutiny.Multi; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.time.Duration; import java.util.Random; @@ -983,11 +983,11 @@ For this, you can use an `Emitter`. import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.core.MediaType; @Path("/prices") public class PriceResource { @@ -1028,11 +1028,11 @@ import java.util.concurrent.CompletableFuture; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.core.MediaType; @Path("/prices") public class PriceResource { @@ -1062,11 +1062,11 @@ You can therefore use Mutiny APIs for handling downstream messages and errors. ---- import org.eclipse.microprofile.reactive.messaging.Channel; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.core.MediaType; import io.smallrye.reactive.messaging.MutinyEmitter; @@ -1201,7 +1201,7 @@ In case of in-memory channels, `@Broadcast` annotation can be used on the `@Outg ---- import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; @@ -1246,7 +1246,7 @@ It can be injected as a regular emitter `@Channel`: [source, java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -1317,7 +1317,7 @@ A processor method can be simply implemented using both the `@Incoming` and `@Ou import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class PriceProcessor { @@ -1340,7 +1340,7 @@ You can apply asynchronous stream processing by consuming and returning reactive [source,java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; @@ -1382,7 +1382,7 @@ The following example includes a batch of Kafka records inside a transaction. [source, java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; @@ -1450,9 +1450,9 @@ In rare cases, you may need to access the underlying Kafka clients. [source,java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.apache.kafka.clients.producer.ProducerRecord; @@ -1489,9 +1489,9 @@ import org.apache.kafka.clients.admin.AdminClient; import org.apache.kafka.clients.admin.AdminClientConfig; import org.apache.kafka.clients.admin.KafkaAdminClient; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import java.util.HashMap; import java.util.Map; @@ -1552,7 +1552,7 @@ import io.smallrye.reactive.messaging.annotations.Broadcast; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * A bean consuming data from the "fruit-in" channel and applying some price conversion. @@ -2325,10 +2325,10 @@ package org.acme; import java.util.concurrent.CompletionStage; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; @@ -2373,10 +2373,10 @@ package org.acme; import java.util.concurrent.CompletionStage; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; @@ -2412,7 +2412,7 @@ For simplicity purposes, our `Fruit` class is pretty simple: ---- package org.acme; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; @@ -2430,8 +2430,8 @@ To consume `Fruit` instances stored on a Kafka topic, and persist them into a da ---- package org.acme; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import org.eclipse.microprofile.reactive.messaging.Incoming; @@ -2492,7 +2492,7 @@ For simplicity purposes, our `Fruit` class is pretty simple: ---- package org.acme; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; // <1> @@ -2511,8 +2511,8 @@ To consume `Fruit` instances stored on a Kafka topic, and persist them into a da ---- package org.acme; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; import org.eclipse.microprofile.reactive.messaging.Incoming; @@ -2601,9 +2601,9 @@ package org.acme; import java.util.concurrent.CompletionStage; -import javax.transaction.Transactional; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; @@ -2641,8 +2641,8 @@ The following example demonstrates how to receive a payload, store it in the dat ---- package org.acme; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -2748,10 +2748,10 @@ The following example demonstrates: ---- package org.acme; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.faulttolerance.Bulkhead; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -2797,11 +2797,11 @@ The next example demonstrates that using the Hibernate Reactive API (without Pan [source, java] ---- -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.faulttolerance.Bulkhead; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/docs/src/main/asciidoc/kotlin.adoc b/docs/src/main/asciidoc/kotlin.adoc index 32f1b264b9d29..4e5e51a0ffc95 100644 --- a/docs/src/main/asciidoc/kotlin.adoc +++ b/docs/src/main/asciidoc/kotlin.adoc @@ -38,10 +38,10 @@ The addition of `resteasy-reactive-jackson` in the extension list results in imp ---- package org.acme -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("/hello") class ReactiveGreetingResource { @@ -68,9 +68,9 @@ We also update the `ReactiveGreetingResource` class like so: [source,kotlin] ---- -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.core.MediaType @Path("/hello") class ReactiveGreetingResource { @@ -148,7 +148,7 @@ The generated `pom.xml` contains the following modifications compared to its cou - + @@ -169,10 +169,10 @@ In order to understand why this plugin is needed, first we need to note that by Having `final` classes however does not work well with various frameworks that need to create https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html[Dynamic Proxies]. Thus, the `all-open` Kotlin compiler plugin allows us to configure the compiler to *not* mark as `final` classes that have certain annotations. In the snippet above, -we have specified that classes annotated with `javax.ws.rs.Path` should not be `final`. +we have specified that classes annotated with `jakarta.ws.rs.Path` should not be `final`. -If your application contains Kotlin classes annotated with `javax.enterprise.context.ApplicationScoped` -for example, then `` needs to be added as well. Same goes for any class that needs to have a dynamic proxy created at runtime. +If your application contains Kotlin classes annotated with `jakarta.enterprise.context.ApplicationScoped` +for example, then `` needs to be added as well. Same goes for any class that needs to have a dynamic proxy created at runtime. Future versions of Quarkus will configure the Kotlin compiler plugin in a way that will make it unnecessary to alter this configuration. @@ -224,8 +224,8 @@ java { } allOpen { // <2> - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } @@ -292,8 +292,8 @@ java { } allOpen { // <2> - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } @@ -513,14 +513,14 @@ In the example below, this can be easily solved by adapting the annotation, addi [source,kotlin] ---- -import javax.inject.Inject -import javax.enterprise.inject.Default -import javax.enterprise.context.ApplicationScoped +import jakarta.inject.Inject +import jakarta.enterprise.inject.Default +import jakarta.enterprise.context.ApplicationScoped -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 @@ -555,12 +555,12 @@ Alternatively, prefer the use of constructor injection which works without modif [source,kotlin] ---- -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped -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 @ApplicationScoped class GreetingService { diff --git a/docs/src/main/asciidoc/lifecycle.adoc b/docs/src/main/asciidoc/lifecycle.adoc index b30f503c0833a..b4b453c3d4b2b 100644 --- a/docs/src/main/asciidoc/lifecycle.adoc +++ b/docs/src/main/asciidoc/lifecycle.adoc @@ -144,8 +144,8 @@ following content: ---- package org.acme.lifecycle; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.runtime.ShutdownEvent; import io.quarkus.runtime.StartupEvent; @@ -190,7 +190,7 @@ A bean represented by a class, producer method or field annotated with `@Startup ---- package org.acme.lifecycle; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Startup // <1> @ApplicationScoped diff --git a/docs/src/main/asciidoc/logging.adoc b/docs/src/main/asciidoc/logging.adoc index 911fc1ad52e47..e0a9abb078615 100644 --- a/docs/src/main/asciidoc/logging.adoc +++ b/docs/src/main/asciidoc/logging.adoc @@ -31,10 +31,10 @@ Internally Quarkus uses JBoss Logging; you can also use it inside your applicati ---- import org.jboss.logging.Logger; -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("/hello") public class ExampleResource { diff --git a/docs/src/main/asciidoc/mailer.adoc b/docs/src/main/asciidoc/mailer.adoc index 50247bed360f7..74f392a4ebd75 100644 --- a/docs/src/main/asciidoc/mailer.adoc +++ b/docs/src/main/asciidoc/mailer.adoc @@ -66,9 +66,9 @@ import io.quarkus.mailer.Mail; import io.quarkus.mailer.Mailer; import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/mail") // <1> public class MailResource { diff --git a/docs/src/main/asciidoc/micrometer.adoc b/docs/src/main/asciidoc/micrometer.adoc index 43215db440cb7..c8cbffcb4f40f 100644 --- a/docs/src/main/asciidoc/micrometer.adoc +++ b/docs/src/main/asciidoc/micrometer.adoc @@ -102,9 +102,9 @@ package org.acme.micrometer; import io.micrometer.core.instrument.MeterRegistry; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/example") @Produces("text/plain") diff --git a/docs/src/main/asciidoc/mongodb-panache.adoc b/docs/src/main/asciidoc/mongodb-panache.adoc index 6dd4f49dce37d..6ed6a033b0b35 100644 --- a/docs/src/main/asciidoc/mongodb-panache.adoc +++ b/docs/src/main/asciidoc/mongodb-panache.adoc @@ -991,9 +991,9 @@ It allows more advanced reactive use cases, for example, you can use it to send ---- import org.jboss.resteasy.reactive.RestStreamElementType; import org.reactivestreams.Publisher; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @GET @Path("/stream") @@ -1325,11 +1325,11 @@ And this resource: ---- import java.net.URI; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/persons") public class PersonResource { diff --git a/docs/src/main/asciidoc/mongodb.adoc b/docs/src/main/asciidoc/mongodb.adoc index d7d278dca2807..2795751a9baf2 100644 --- a/docs/src/main/asciidoc/mongodb.adoc +++ b/docs/src/main/asciidoc/mongodb.adoc @@ -149,8 +149,8 @@ import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoCursor; import org.bson.Document; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import java.util.ArrayList; import java.util.List; @@ -351,8 +351,8 @@ import io.quarkus.mongodb.reactive.ReactiveMongoCollection; import io.smallrye.mutiny.Uni; import org.bson.Document; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import java.util.List; @ApplicationScoped @@ -394,13 +394,13 @@ import io.smallrye.mutiny.Uni; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.core.MediaType; @Path("/reactive_fruits") @Produces(MediaType.APPLICATION_JSON) @@ -540,8 +540,8 @@ import com.mongodb.client.MongoClient; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoCursor; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import java.util.ArrayList; import java.util.List; diff --git a/docs/src/main/asciidoc/native-reference.adoc b/docs/src/main/asciidoc/native-reference.adoc index fc216a13e5a22..2e581e09f0633 100644 --- a/docs/src/main/asciidoc/native-reference.adoc +++ b/docs/src/main/asciidoc/native-reference.adoc @@ -671,10 +671,10 @@ add a new `TimestampResource` to the application that looks like this: ---- package org.acme; -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("/timestamp") public class TimestampResource { @@ -725,8 +725,8 @@ package org.acme; import javax.crypto.Cipher; import javax.crypto.NoSuchPaddingException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.nio.charset.StandardCharsets; import java.security.KeyPair; import java.security.KeyPairGenerator; @@ -869,10 +869,10 @@ Add a REST resource with the following code ---- package org.acme; -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("/string-builder") public class StringBuilderResource { @@ -1061,10 +1061,10 @@ To demonstrate this, add this `MulticastResource` code to your project ---- package org.acme; -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; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.DatagramChannel; @@ -1200,10 +1200,10 @@ package org.acme; import sun.misc.Unsafe; -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; import java.lang.reflect.Field; @Path("/crash") diff --git a/docs/src/main/asciidoc/openapi-swaggerui.adoc b/docs/src/main/asciidoc/openapi-swaggerui.adoc index f2558a4d3fdb3..f8e5f7818dee5 100644 --- a/docs/src/main/asciidoc/openapi-swaggerui.adoc +++ b/docs/src/main/asciidoc/openapi-swaggerui.adoc @@ -65,10 +65,10 @@ public class Fruit { ---- package org.acme.openapi.swaggerui; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Set; @@ -111,7 +111,7 @@ package org.acme.openapi.swaggerui; import io.quarkus.test.junit.QuarkusTest; import org.junit.jupiter.api.Test; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import static io.restassured.RestAssured.given; import static org.hamcrest.CoreMatchers.is; @@ -273,7 +273,7 @@ There are some MicroProfile OpenAPI annotations which describe global API inform All of this information (and more) can be included in your Java code by using appropriate OpenAPI annotations on a JAX-RS `Application` class. Because a JAX-RS `Application` class is not required in Quarkus, you will -likely have to create one. It can simply be an empty class that extends `javax.ws.rs.core.Application`. This +likely have to create one. It can simply be an empty class that extends `jakarta.ws.rs.core.Application`. This empty class can then be annotated with various OpenAPI annotations such as `@OpenAPIDefinition`. For example: [source, java] diff --git a/docs/src/main/asciidoc/opentelemetry.adoc b/docs/src/main/asciidoc/opentelemetry.adoc index 6136a9fe7c77c..ea75097b5a4de 100644 --- a/docs/src/main/asciidoc/opentelemetry.adoc +++ b/docs/src/main/asciidoc/opentelemetry.adoc @@ -72,10 +72,10 @@ Create a `src/main/java/org/acme/opentelemetry/TracedResource.java` file with th ---- package org.acme.opentelemetry; -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; import org.jboss.logging.Logger; @Path("/hello") diff --git a/docs/src/main/asciidoc/opentracing.adoc b/docs/src/main/asciidoc/opentracing.adoc index 1494fe2d390f3..c13d939ca6d04 100644 --- a/docs/src/main/asciidoc/opentracing.adoc +++ b/docs/src/main/asciidoc/opentracing.adoc @@ -81,10 +81,10 @@ Create the `src/main/java/org/acme/opentracing/TracedResource.java` file with th ---- package org.acme.opentracing; -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; import org.jboss.logging.Logger; @Path("/hello") @@ -178,7 +178,7 @@ Here is an example of a `FrancophoneService` which methods are traced. [source, java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.opentracing.Traced; diff --git a/docs/src/main/asciidoc/optaplanner.adoc b/docs/src/main/asciidoc/optaplanner.adoc index 1de048f099bce..4b0a9bfc77c7e 100644 --- a/docs/src/main/asciidoc/optaplanner.adoc +++ b/docs/src/main/asciidoc/optaplanner.adoc @@ -618,9 +618,9 @@ package org.acme.optaplanner.rest; import java.util.UUID; import java.util.concurrent.ExecutionException; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.acme.optaplanner.domain.TimeTable; import org.optaplanner.core.api.solver.SolverJob; @@ -751,7 +751,7 @@ package org.acme.optaplanner.solver; import java.time.DayOfWeek; import java.time.LocalTime; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import org.acme.optaplanner.domain.Lesson; @@ -819,7 +819,7 @@ import java.time.LocalTime; import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import org.acme.optaplanner.domain.Room; @@ -956,11 +956,11 @@ and use those accordingly: ---- package org.acme.optaplanner.rest; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import io.quarkus.panache.common.Sort; import org.acme.optaplanner.domain.Lesson; @@ -1057,7 +1057,7 @@ Poll for the latest solution until the solver finishes solving: ---- package org.acme.optaplanner.rest; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import org.acme.optaplanner.domain.Lesson; diff --git a/docs/src/main/asciidoc/picocli.adoc b/docs/src/main/asciidoc/picocli.adoc index bc5fde66ac2d2..fc950d446b953 100644 --- a/docs/src/main/asciidoc/picocli.adoc +++ b/docs/src/main/asciidoc/picocli.adoc @@ -42,8 +42,8 @@ package com.acme.picocli; import picocli.CommandLine; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; @CommandLine.Command // <1> public class HelloCommand implements Runnable { @@ -139,8 +139,8 @@ import io.quarkus.picocli.runtime.PicocliCommandLineFactory; import io.quarkus.picocli.runtime.annotations.TopCommand; import picocli.CommandLine; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; @TopCommand @CommandLine.Command @@ -245,7 +245,7 @@ import io.quarkus.runtime.QuarkusApplication; import io.quarkus.runtime.annotations.QuarkusMain; import picocli.CommandLine; -import javax.inject.Inject; +import jakarta.inject.Inject; @QuarkusMain @CommandLine.Command(name = "demo", mixinStandardHelpOptions = true) diff --git a/docs/src/main/asciidoc/quartz.adoc b/docs/src/main/asciidoc/quartz.adoc index ab735667530f4..e463f08d5efd6 100644 --- a/docs/src/main/asciidoc/quartz.adoc +++ b/docs/src/main/asciidoc/quartz.adoc @@ -87,9 +87,9 @@ In the `org.acme.quartz` package, create the `Task` class, with the following co ---- package org.acme.quartz; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import java.time.Instant; -import javax.persistence.Table; +import jakarta.persistence.Table; import io.quarkus.hibernate.orm.panache.PanacheEntity; @@ -117,9 +117,9 @@ In the `org.acme.quartz` package, create the `TaskBean` class, with the followin ---- package org.acme.quartz; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import io.quarkus.scheduler.Scheduled; @@ -241,10 +241,10 @@ package org.acme.quartz; import java.util.List; -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("/tasks") public class TaskResource { diff --git a/docs/src/main/asciidoc/qute-reference.adoc b/docs/src/main/asciidoc/qute-reference.adoc index c0da62306af59..cfff9234e9656 100644 --- a/docs/src/main/asciidoc/qute-reference.adoc +++ b/docs/src/main/asciidoc/qute-reference.adoc @@ -1678,11 +1678,11 @@ If using <>, you can rely on ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.Template; @@ -1738,10 +1738,10 @@ Use those static methods to build your template instances: ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.qute.TemplateInstance; @Path("hello") @@ -1768,7 +1768,7 @@ By default, the name of the `@CheckedTemplate` method is used as is. ---- package org.acme.quarkus.sample; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.CheckedTemplate; @@ -2380,10 +2380,10 @@ The end result is that a using Qute within a JAX-RS resource may look as simple ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.Template; diff --git a/docs/src/main/asciidoc/qute.adoc b/docs/src/main/asciidoc/qute.adoc index a4d8be410882e..c6ae4ab28b4e4 100644 --- a/docs/src/main/asciidoc/qute.adoc +++ b/docs/src/main/asciidoc/qute.adoc @@ -80,10 +80,10 @@ Now let's inject the "compiled" template in the resource class. ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.Template; @@ -142,10 +142,10 @@ Now let's declare and use those templates in the resource class. ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.CheckedTemplate; @@ -177,10 +177,10 @@ Keep in mind this style of declaration allows you to reference templates declare ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.qute.TemplateInstance; @@ -261,11 +261,11 @@ Finally, let's create a resource class with type-safe templates: ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.Template; @@ -322,11 +322,11 @@ Finally, let's create a resource class. ---- package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.TemplateInstance; import io.quarkus.qute.Template; @@ -471,7 +471,7 @@ The template is simple: ---- package org.acme.quarkus.sample; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.qute.Template; import io.quarkus.qute.Location; diff --git a/docs/src/main/asciidoc/rabbitmq-reference.adoc b/docs/src/main/asciidoc/rabbitmq-reference.adoc index fe8a90bc5d753..e7bb380a417c4 100644 --- a/docs/src/main/asciidoc/rabbitmq-reference.adoc +++ b/docs/src/main/asciidoc/rabbitmq-reference.adoc @@ -88,7 +88,7 @@ package inbound; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class RabbitMQPriceConsumer { @@ -110,7 +110,7 @@ package inbound; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.concurrent.CompletionStage; @ApplicationScoped @@ -304,8 +304,8 @@ For example, The following code illustrates how you can store incoming payloads import io.smallrye.reactive.messaging.annotations.Blocking; import org.eclipse.microprofile.reactive.messaging.Incoming; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; @ApplicationScoped public class PriceStorage { @@ -875,4 +875,4 @@ Type: _string_ | false | Type: _string_ | false | `/` -|=== \ No newline at end of file +|=== diff --git a/docs/src/main/asciidoc/rabbitmq.adoc b/docs/src/main/asciidoc/rabbitmq.adoc index eaab10dde15bb..f9351c79d867c 100644 --- a/docs/src/main/asciidoc/rabbitmq.adoc +++ b/docs/src/main/asciidoc/rabbitmq.adoc @@ -159,11 +159,11 @@ package org.acme.rabbitmq.producer; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -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.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.rabbitmq.model.Quote; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -217,7 +217,7 @@ package org.acme.rabbitmq.processor; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.rabbitmq.model.Quote; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/docs/src/main/asciidoc/reactive-event-bus.adoc b/docs/src/main/asciidoc/reactive-event-bus.adoc index 7c2da2420748a..651e1fb477083 100644 --- a/docs/src/main/asciidoc/reactive-event-bus.adoc +++ b/docs/src/main/asciidoc/reactive-event-bus.adoc @@ -63,7 +63,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { @@ -112,7 +112,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import io.smallrye.mutiny.Uni; @@ -240,11 +240,11 @@ import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.eventbus.EventBus; import io.vertx.mutiny.core.eventbus.Message; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/async") public class EventResource { @@ -312,11 +312,11 @@ import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.eventbus.EventBus; import io.vertx.mutiny.core.eventbus.Message; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/async") public class EventResource { @@ -346,7 +346,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/docs/src/main/asciidoc/reactive-routes.adoc b/docs/src/main/asciidoc/reactive-routes.adoc index 04a39e0a3856a..d7021e2b29e7f 100644 --- a/docs/src/main/asciidoc/reactive-routes.adoc +++ b/docs/src/main/asciidoc/reactive-routes.adoc @@ -68,7 +68,7 @@ import io.quarkus.vertx.web.Route.HttpMethod; import io.quarkus.vertx.web.RoutingExchange; import io.vertx.ext.web.RoutingContext; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped // <1> public class MyDeclarativeRoutes { @@ -95,7 +95,7 @@ public class MyDeclarativeRoutes { } } ---- -<1> If there is a reactive route found on a class with no scope annotation then `@javax.inject.Singleton` is added automatically. +<1> If there is a reactive route found on a class with no scope annotation then `@jakarta.inject.Singleton` is added automatically. <2> The `@Route` annotation indicates that the method is a reactive route. Again, by default, the code contained in the method must not block. <3> The method gets a https://vertx.io/docs/apidocs/io/vertx/ext/web/RoutingContext.html[`RoutingContext`] as a parameter. From the `RoutingContext` you can retrieve the HTTP request (using `request()`) and write the response using `response().end(...)`. <4> If the annotated method does not return `void` the arguments are optional. diff --git a/docs/src/main/asciidoc/reactive-sql-clients.adoc b/docs/src/main/asciidoc/reactive-sql-clients.adoc index 98c7fbed5f234..b9f30a8d41767 100644 --- a/docs/src/main/asciidoc/reactive-sql-clients.adoc +++ b/docs/src/main/asciidoc/reactive-sql-clients.adoc @@ -734,7 +734,7 @@ Here's an example for PostgreSQL: [source,java] ---- -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.reactive.pg.client.PgPoolCreator; import io.vertx.pgclient.PgConnectOptions; diff --git a/docs/src/main/asciidoc/redis.adoc b/docs/src/main/asciidoc/redis.adoc index 1916e4cc31d83..7c4a5f18ca169 100644 --- a/docs/src/main/asciidoc/redis.adoc +++ b/docs/src/main/asciidoc/redis.adoc @@ -104,8 +104,8 @@ Create the `src/main/java/org/acme/redis/IncrementService.java` file, with the f ---- package org.acme.redis; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.redis.datasource.ReactiveRedisDataSource; import io.quarkus.redis.datasource.RedisDataSource; @@ -177,12 +177,12 @@ Create the `src/main/java/org/acme/redis/IncrementResource.java` file, with the ---- package org.acme.redis; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.POST; -import javax.ws.rs.DELETE; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.DELETE; import java.util.List; import io.smallrye.mutiny.Uni; diff --git a/docs/src/main/asciidoc/rest-client-multipart.adoc b/docs/src/main/asciidoc/rest-client-multipart.adoc index bd13bb7bc0698..ebd46c0ab0b4f 100644 --- a/docs/src/main/asciidoc/rest-client-multipart.adoc +++ b/docs/src/main/asciidoc/rest-client-multipart.adoc @@ -69,8 +69,8 @@ package org.acme.rest.client.multipart; import java.io.InputStream; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.providers.multipart.PartType; @@ -99,11 +99,11 @@ Using the RESTEasy REST Client is as simple as creating an interface using the p ---- package org.acme.rest.client.multipart; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.providers.multipart.MultipartForm; @@ -168,11 +168,11 @@ package org.acme.rest.client.multipart; import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; @@ -208,11 +208,11 @@ Create the directory `src/main/java/org/acme/rest/client/multipart/server` and i ---- package org.acme.rest.client.multipart.server; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/echo") public class EchoService { diff --git a/docs/src/main/asciidoc/rest-client-reactive.adoc b/docs/src/main/asciidoc/rest-client-reactive.adoc index 4bd6631f2a20d..5f023ddaa2f9c 100644 --- a/docs/src/main/asciidoc/rest-client-reactive.adoc +++ b/docs/src/main/asciidoc/rest-client-reactive.adoc @@ -98,9 +98,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -148,10 +148,10 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.reactive.RestQuery; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MultivaluedMap; import java.util.Map; import java.util.Set; @@ -232,10 +232,10 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -280,7 +280,7 @@ public interface ExtensionsService { ---- # Your configuration properties quarkus.rest-client.extensions-api.url=https://stage.code.quarkus.io/api -quarkus.rest-client.extensions-api.scope=javax.inject.Singleton +quarkus.rest-client.extensions-api.scope=jakarta.inject.Singleton ---- === Disabling Hostname Verification @@ -307,8 +307,8 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.Set; @Path("/extension") @@ -342,9 +342,9 @@ With this approach the client interface could look as follows: ---- package org.acme.rest.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -362,8 +362,8 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.RestClientBuilder; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.net.URI; import java.util.Set; @@ -403,8 +403,8 @@ Let's see an example about how to provide the HTTP Client Options via CDI: ---- package org.acme.rest.client; -import javax.enterprise.inject.Produces; -import javax.ws.rs.ext.ContextResolver; +import jakarta.enterprise.inject.Produces; +import jakarta.ws.rs.ext.ContextResolver; import io.vertx.core.http.HttpClientOptions; import io.quarkus.arc.Unremovable; @@ -431,8 +431,8 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.RestClientBuilder; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.net.URI; import java.util.Set; @@ -519,9 +519,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; import java.util.concurrent.CompletionStage; @@ -545,8 +545,8 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.Set; import java.util.concurrent.CompletionStage; @@ -602,9 +602,9 @@ package org.acme.rest.client; import io.smallrye.mutiny.Uni; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -627,8 +627,8 @@ package org.acme.rest.client; import io.smallrye.mutiny.Uni; import org.eclipse.microprofile.rest.client.inject.RestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.Set; @Path("/extension") @@ -691,10 +691,10 @@ import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -730,9 +730,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; import java.util.UUID; @ApplicationScoped @@ -767,9 +767,9 @@ import io.smallrye.mutiny.Uni; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; import java.util.UUID; @ApplicationScoped @@ -1069,8 +1069,8 @@ Let's assume you have the following client: ---- package io.quarkus.it.rest.client.main; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/docs/src/main/asciidoc/rest-client.adoc b/docs/src/main/asciidoc/rest-client.adoc index 680315e9376d8..68819f809131c 100644 --- a/docs/src/main/asciidoc/rest-client.adoc +++ b/docs/src/main/asciidoc/rest-client.adoc @@ -112,9 +112,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.jaxrs.QueryParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.Set; @Path("/extensions") @@ -160,8 +160,8 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; import org.jboss.resteasy.annotations.jaxrs.QueryParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.Set; @Path("/extensions") @@ -184,7 +184,7 @@ The name of the property needs to follow a certain convention which is best disp ---- # Your configuration properties quarkus.rest-client."org.acme.rest.client.ExtensionsService".url=https://stage.code.quarkus.io/api # // <1> -quarkus.rest-client."org.acme.rest.client.ExtensionsService".scope=javax.inject.Singleton # // <2> +quarkus.rest-client."org.acme.rest.client.ExtensionsService".scope=jakarta.inject.Singleton # // <2> ---- <1> Having this configuration means that all requests performed using `ExtensionsService` will use `https://stage.code.quarkus.io` as the base URL. @@ -201,7 +201,7 @@ The standard MicroProfile Rest Client properties notation can also be used to co [source,properties] ---- org.acme.rest.client.ExtensionsService/mp-rest/url=https://stage.code.quarkus.io/api -org.acme.rest.client.ExtensionsService/mp-rest/scope=javax.inject.Singleton +org.acme.rest.client.ExtensionsService/mp-rest/scope=jakarta.inject.Singleton ---- If a property is specified via both the Quarkus notation and the MicroProfile notation, the Quarkus notation takes a precedence. @@ -223,7 +223,7 @@ public interface ExtensionsService { ---- # Your configuration properties quarkus.rest-client.extensions-api.url=https://stage.code.quarkus.io/api -quarkus.rest-client.extensions-api.scope=javax.inject.Singleton +quarkus.rest-client.extensions-api.scope=jakarta.inject.Singleton ---- === Disabling Hostname Verification @@ -275,9 +275,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.Set; @Path("/extension") @@ -353,8 +353,8 @@ package org.acme.rest.client; import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.jaxrs.QueryParam; @@ -381,9 +381,9 @@ package org.acme.rest.client; import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; @@ -436,8 +436,8 @@ package org.acme.rest.client; import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.jaxrs.QueryParam; @@ -464,9 +464,9 @@ package org.acme.rest.client; import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; @@ -529,8 +529,8 @@ package org.acme.rest.client; import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -562,9 +562,9 @@ package org.acme.rest.client; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; import java.util.UUID; @ApplicationScoped diff --git a/docs/src/main/asciidoc/rest-data-panache.adoc b/docs/src/main/asciidoc/rest-data-panache.adoc index 5506edf988b22..17d11e65b702a 100644 --- a/docs/src/main/asciidoc/rest-data-panache.adoc +++ b/docs/src/main/asciidoc/rest-data-panache.adoc @@ -345,13 +345,13 @@ And this method will be exposed along with the generated methods using `http://l == Securing endpoints -REST Data with Panache will use the Security annotations within the package `javax.annotation.security` that are defined on your resource interfaces: +REST Data with Panache will use the Security annotations within the package `jakarta.annotation.security` that are defined on your resource interfaces: [source,java] ---- -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; @DenyAll @ResourceProperties diff --git a/docs/src/main/asciidoc/rest-json.adoc b/docs/src/main/asciidoc/rest-json.adoc index 62be7a6e4496b..e3495cae5a666 100644 --- a/docs/src/main/asciidoc/rest-json.adoc +++ b/docs/src/main/asciidoc/rest-json.adoc @@ -138,10 +138,10 @@ import java.util.Collections; import java.util.LinkedHashMap; import java.util.Set; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/fruits") public class FruitResource { @@ -213,7 +213,7 @@ An example where a custom module needs to be registered would look like so: ---- import com.fasterxml.jackson.databind.ObjectMapper; import io.quarkus.jackson.ObjectMapperCustomizer; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class RegisterCustomModuleCustomizer implements ObjectMapperCustomizer { @@ -234,7 +234,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.quarkus.arc.All; import io.quarkus.jackson.ObjectMapperCustomizer; import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; public class CustomObjectMapper { @@ -271,9 +271,9 @@ If for example a custom serializer named `FooSerializer` for type `com.example.F [source,java] ---- import io.quarkus.jsonb.JsonbConfigCustomizer; -import javax.inject.Singleton; -import javax.json.bind.JsonbConfig; -import javax.json.bind.serializer.JsonbSerializer; +import jakarta.inject.Singleton; +import jakarta.json.bind.JsonbConfig; +import jakarta.json.bind.serializer.JsonbSerializer; @Singleton public class FooSerializerRegistrationCustomizer implements JsonbConfigCustomizer { @@ -284,17 +284,17 @@ public class FooSerializerRegistrationCustomizer implements JsonbConfigCustomize } ---- -A more advanced option would be to directly provide a bean of `javax.json.bind.JsonbConfig` (with a `Dependent` scope) or in the extreme case to provide a bean of type `javax.json.bind.Jsonb` (with a `Singleton` scope). -If the latter approach is leveraged it is very important to manually inject and apply all `io.quarkus.jsonb.JsonbConfigCustomizer` beans in the CDI producer that produces `javax.json.bind.Jsonb`. +A more advanced option would be to directly provide a bean of `jakarta.json.bind.JsonbConfig` (with a `Dependent` scope) or in the extreme case to provide a bean of type `jakarta.json.bind.Jsonb` (with a `Singleton` scope). +If the latter approach is leveraged it is very important to manually inject and apply all `io.quarkus.jsonb.JsonbConfigCustomizer` beans in the CDI producer that produces `jakarta.json.bind.Jsonb`. Failure to do so will prevent JSON-B specific customizations provided by various extensions from being applied. [source,java] ---- import io.quarkus.jsonb.JsonbConfigCustomizer; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.json.bind.JsonbConfig; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.json.bind.JsonbConfig; public class CustomJsonbConfig { @@ -420,9 +420,9 @@ import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/legumes") public class LegumeResource { diff --git a/docs/src/main/asciidoc/resteasy-reactive-migration.adoc b/docs/src/main/asciidoc/resteasy-reactive-migration.adoc index 96caaba04f23f..8822ed0b8cf00 100644 --- a/docs/src/main/asciidoc/resteasy-reactive-migration.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive-migration.adoc @@ -94,13 +94,13 @@ The following table matches the legacy RESTEasy annotations with the new RESTEas |=== NOTE: The previous table does not include the `org.jboss.resteasy.annotations.Form` annotation because there is no RESTEasy Reactive specific replacement for it. -Users are instead encouraged to use the JAX-RS standard `javax.ws.rs.BeanParam` annotation which is supported on both the server and the client. +Users are instead encouraged to use the JAX-RS standard `jakarta.ws.rs.BeanParam` annotation which is supported on both the server and the client. === JAX-RS providers Although RESTEasy Reactive provides the same spec compliant behavior as RESTEasy Classic does, it does not include the same exact provider implementations at runtime. -The most common case where the difference in providers might result in different behavior, is the included `javax.ws.rs.ext.ExceptionMapper` implementations. To see what classes are included in the application, launch the application in dev mode and navigate to http://localhost:8080/q/dev/io.quarkus.quarkus-resteasy-reactive/exception-mappers. +The most common case where the difference in providers might result in different behavior, is the included `jakarta.ws.rs.ext.ExceptionMapper` implementations. To see what classes are included in the application, launch the application in dev mode and navigate to http://localhost:8080/q/dev/io.quarkus.quarkus-resteasy-reactive/exception-mappers. ==== Service Loading diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index 45ecdb31be79e..a6b075eccf14b 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -7,13 +7,13 @@ https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc include::_attributes.adoc[] :categories: web :summary: Discover how to develop highly scalable reactive REST services with JAX-RS and RESTEasy Reactive. -:jaxrsapi: https://javadoc.io/doc/javax.ws.rs/javax.ws.rs-api/2.1.1 -:jaxrsspec: /specs/jaxrs/2.1/index.html +:jaxrsapi: https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/3.1.0 +:jaxrsspec: https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html :jdkapi: https://docs.oracle.com/en/java/javase/11/docs/api/java.base -:mutinyapi: https://javadoc.io/doc/io.smallrye.reactive/mutiny/1.6.0 +:mutinyapi: https://javadoc.io/doc/io.smallrye.reactive/mutiny/2.1.0 :httpspec: https://tools.ietf.org/html/rfc7231 -:jsonpapi: https://javadoc.io/doc/javax.json/javax.json-api/1.1.4 -:injectapi: https://javadoc.io/static/jakarta.inject/jakarta.inject/1 +:jsonpapi: https://javadoc.io/doc/jakarta.json/jakarta.json-api/1.1.4 +:injectapi: https://javadoc.io/static/jakarta.inject/jakarta.inject-api/2.0.1 :vertxapi: https://javadoc.io/doc/io.vertx/vertx-core/latest/index.html :resteasy-reactive-api: https://javadoc.io/doc/io.quarkus.resteasy.reactive/resteasy-reactive/{quarkus-version} :resteasy-reactive-common-api: https://javadoc.io/doc/io.quarkus.resteasy.reactive/resteasy-reactive-common/{quarkus-version} @@ -64,8 +64,8 @@ You can now write your first endpoint in the `org.acme.rest.Endpoint` class: ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("") public class Endpoint { @@ -91,21 +91,21 @@ HTTP response:: the response part of the HTTP call, consisting of an HTTP respon === Declaring endpoints: URI mapping -Any class annotated with a link:{jaxrsapi}/javax/ws/rs/Path.html[`@Path`] annotation can have its methods exposed as REST endpoints, +Any class annotated with a link:{jaxrsapi}/jakarta/ws/rs/Path.html[`@Path`] annotation can have its methods exposed as REST endpoints, provided they have an HTTP method annotation (see below). -That link:{jaxrsapi}/javax/ws/rs/Path.html[`@Path`] annotation defines the URI prefix under which those methods will be exposed. It can +That link:{jaxrsapi}/jakarta/ws/rs/Path.html[`@Path`] annotation defines the URI prefix under which those methods will be exposed. It can be empty, or contain a prefix such as `rest` or `rest/V1`. -Each exposed endpoint method can in turn have another link:{jaxrsapi}/javax/ws/rs/Path.html[`@Path`] annotation which adds to its containing +Each exposed endpoint method can in turn have another link:{jaxrsapi}/jakarta/ws/rs/Path.html[`@Path`] annotation which adds to its containing class annotation. For example, this defines a `rest/hello` endpoint: [source,java] ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("rest") public class Endpoint { @@ -126,8 +126,8 @@ You can set the root path for all rest endpoints using the `@ApplicationPath` an ---- package org.acme.rest; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/api") public static class MyApplication extends Application { @@ -148,31 +148,31 @@ method will be mapped to the method: |=== |Annotation|Usage -|link:{jaxrsapi}/javax/ws/rs/GET.html[`@GET`] +|link:{jaxrsapi}/jakarta/ws/rs/GET.html[`@GET`] |Obtain a resource representation, should not modify state, link:{httpspec}#section-4.2.2[idempotent] (link:{httpspec}#section-4.3.1[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/HEAD.html[`@HEAD`] +|link:{jaxrsapi}/jakarta/ws/rs/HEAD.html[`@HEAD`] |Obtain metadata about a resource, similar to `GET` with no body (link:{httpspec}#section-4.3.2[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/POST.html[`@POST`] +|link:{jaxrsapi}/jakarta/ws/rs/POST.html[`@POST`] |Create a resource and obtain a link to it (link:{httpspec}#section-4.3.3[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/PUT.html[`@PUT`] +|link:{jaxrsapi}/jakarta/ws/rs/PUT.html[`@PUT`] |Replace a resource or create one, should be link:{httpspec}#section-4.2.2[idempotent] (link:{httpspec}#section-4.3.4[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/DELETE.html[`@DELETE`] +|link:{jaxrsapi}/jakarta/ws/rs/DELETE.html[`@DELETE`] |Delete an existing resource, link:{httpspec}#section-4.2.2[idempotent] (link:{httpspec}#section-4.3.5[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/OPTIONS.html[`@OPTIONS`] +|link:{jaxrsapi}/jakarta/ws/rs/OPTIONS.html[`@OPTIONS`] |Obtain information about a resource, link:{httpspec}#section-4.2.2[idempotent] (link:{httpspec}#section-4.3.7[HTTP docs]) -|link:{jaxrsapi}/javax/ws/rs/PATCH.html[`@PATCH`] +|link:{jaxrsapi}/jakarta/ws/rs/PATCH.html[`@PATCH`] |Update a resource, or create one, not link:{httpspec}#section-4.2.2[idempotent] (https://tools.ietf.org/html/rfc5789#section-2[HTTP docs]) |=== You can also declare other HTTP methods by declaring them as an annotation with the -link:{jaxrsapi}/javax/ws/rs/HttpMethod.html[`@HttpMethod`] annotation: +link:{jaxrsapi}/jakarta/ws/rs/HttpMethod.html[`@HttpMethod`] annotation: [source,java] ---- @@ -181,8 +181,8 @@ package org.acme.rest; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.ws.rs.HttpMethod; -import javax.ws.rs.Path; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.Path; @Retention(RetentionPolicy.RUNTIME) @HttpMethod("CHEESE") @@ -211,16 +211,16 @@ link:{httpspec}#section-3.1.1.1[MIME (Media Type)] values, such as the following - `text/*` which is a sub-type wildcard for any text media type - `\*/*` which is a wildcard for any media type -You may annotate your endpoint class with the link:{jaxrsapi}/javax/ws/rs/Produces.html[`@Produces`] -or link:{jaxrsapi}/javax/ws/rs/Consumes.html[`@Consumes`] annotations, which +You may annotate your endpoint class with the link:{jaxrsapi}/jakarta/ws/rs/Produces.html[`@Produces`] +or link:{jaxrsapi}/jakarta/ws/rs/Consumes.html[`@Consumes`] annotations, which allow you to specify one or more media types that your endpoint may accept as HTTP request body or produce as HTTP response body. Those class annotations apply to each method. -Any method may also be annotated with the link:{jaxrsapi}/javax/ws/rs/Produces.html[`@Produces`] -or link:{jaxrsapi}/javax/ws/rs/Consumes.html[`@Consumes`] annotations, in which +Any method may also be annotated with the link:{jaxrsapi}/jakarta/ws/rs/Produces.html[`@Produces`] +or link:{jaxrsapi}/jakarta/ws/rs/Consumes.html[`@Consumes`] annotations, in which case they override any eventual class annotation. -The link:{jaxrsapi}/javax/ws/rs/core/MediaType.html[`MediaType`] class has many constants you +The link:{jaxrsapi}/jakarta/ws/rs/core/MediaType.html[`MediaType`] class has many constants you can use to point to specific pre-defined media types. See <> for more information. @@ -286,8 +286,8 @@ Then you could obtain all the various parameters with this endpoint method: ---- package org.acme.rest; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.RestCookie; import org.jboss.resteasy.reactive.RestForm; @@ -317,12 +317,12 @@ NOTE: The link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestPa annotation is optional: any parameter whose name matches an existing URI template variable will be automatically assumed to have link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestPath.html[`@RestPath`]. -You can also use any of the JAX-RS annotations link:{jaxrsapi}/javax/ws/rs/PathParam.html[`@PathParam`], -link:{jaxrsapi}/javax/ws/rs/QueryParam.html[`@QueryParam`], -link:{jaxrsapi}/javax/ws/rs/HeaderParam.html[`@HeaderParam`], -link:{jaxrsapi}/javax/ws/rs/CookieParam.html[`@CookieParam`], -link:{jaxrsapi}/javax/ws/rs/FormParam.html[`@FormParam`] or -link:{jaxrsapi}/javax/ws/rs/MatrixParam.html[`@MatrixParam`] for this, +You can also use any of the JAX-RS annotations link:{jaxrsapi}/jakarta/ws/rs/PathParam.html[`@PathParam`], +link:{jaxrsapi}/jakarta/ws/rs/QueryParam.html[`@QueryParam`], +link:{jaxrsapi}/jakarta/ws/rs/HeaderParam.html[`@HeaderParam`], +link:{jaxrsapi}/jakarta/ws/rs/CookieParam.html[`@CookieParam`], +link:{jaxrsapi}/jakarta/ws/rs/FormParam.html[`@FormParam`] or +link:{jaxrsapi}/jakarta/ws/rs/MatrixParam.html[`@MatrixParam`] for this, but they require you to specify the parameter name. See <> for more advanced use-cases. @@ -349,8 +349,8 @@ so we can rewrite the previous example like this: ---- package org.acme.rest; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.RestCookie; import org.jboss.resteasy.reactive.RestForm; @@ -403,8 +403,8 @@ the following endpoint will serve requests for `/hello/stef/23` and `/hello` but ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("hello") public class Endpoint { @@ -461,8 +461,8 @@ The following parameter types will be supported out of the box: |link:{jdkapi}/java/math/BigDecimal.html[`BigDecimal`], link:{jdkapi}/java/math/BigInteger.html[`BigInteger`] |Large integers and decimals. -|link:{jsonpapi}/javax/json/JsonArray.html[`JsonArray`], link:{jsonpapi}/javax/json/JsonObject.html[`JsonObject`], -link:{jsonpapi}/javax/json/JsonStructure.html[`JsonStructure`], link:{jsonpapi}/javax/json/JsonValue.html[`JsonValue`] +|link:{jsonpapi}/jakarta/json/JsonArray.html[`JsonArray`], link:{jsonpapi}/jakarta/json/JsonObject.html[`JsonObject`], +link:{jsonpapi}/jakarta/json/JsonStructure.html[`JsonStructure`], link:{jsonpapi}/jakarta/json/JsonValue.html[`JsonValue`] |JSON value types |link:{vertxapi}io/vertx/core/buffer/Buffer.html[`Buffer`] @@ -488,9 +488,9 @@ the following endpoint: [source,java] ---- -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; @@ -594,7 +594,7 @@ public static class Resource { ==== Handling malformed input -As part of reading the multipart body, RESTEasy Reactive invokes the proper MessageBodyReaderlink:{jaxrsapi}/javax/ws/rs/ext/MessageBodyReader.html[`MessageBodyReader`] for each part of the request. +As part of reading the multipart body, RESTEasy Reactive invokes the proper MessageBodyReaderlink:{jaxrsapi}/jakarta/ws/rs/ext/MessageBodyReader.html[`MessageBodyReader`] for each part of the request. If an `IOException` occurs for one of these parts (for example if Jackson was unable to deserialize a JSON part), then a `org.jboss.resteasy.reactive.server.multipart.MultipartPartReadingException` is thrown. If this exception is not handled by the application as mentioned in <>, an HTTP 400 response is returned by default. @@ -605,7 +605,7 @@ that will hold the information we want to expose as: [source,java] ---- -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; @@ -625,10 +625,10 @@ And then expose this POJO via a Resource like so: [source,java] ---- -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("multipart") public class Endpoint { @@ -646,10 +646,10 @@ Additionally, you can also manually append the parts of the form using the class [source,java] ---- -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; import org.jboss.resteasy.reactive.server.multipart.MultipartFormDataOutput; @@ -723,10 +723,10 @@ import java.time.Duration; import java.time.Instant; import java.util.Date; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.NewCookie; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.NewCookie; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.RestResponse.ResponseBuilder; @@ -750,7 +750,7 @@ public class Endpoint { } ---- -NOTE: You can also use the JAX-RS type link:{jaxrsapi}/javax/ws/rs/core/Response.html[`Response`] but it is +NOTE: You can also use the JAX-RS type link:{jaxrsapi}/jakarta/ws/rs/core/Response.html[`Response`] but it is not strongly typed to your entity. ==== Using annotations @@ -766,8 +766,8 @@ import org.jboss.resteasy.reactive.Header; import org.jboss.resteasy.reactive.ResponseHeaders; import org.jboss.resteasy.reactive.ResponseStatus; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("") public class Endpoint { @@ -797,11 +797,11 @@ package org.acme.rest; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicLong; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.RestResponse; @Path("/fruits") @@ -852,7 +852,7 @@ public class FruitResource { ==== Using RedirectException -Users can also throw `javax.ws.rs.RedirectionException` from a method body to get RESTEasy Reactive to perform the desired redirect. +Users can also throw `jakarta.ws.rs.RedirectionException` from a method body to get RESTEasy Reactive to perform the desired redirect. === Async/reactive support @@ -869,8 +869,8 @@ which will be mapped to a response exactly according to the previously described ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.mutiny.Uni; @@ -905,9 +905,9 @@ text data: ---- package org.acme.rest; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.messaging.Channel; @@ -936,7 +936,7 @@ response. Exception mappers are also not invoked because part of the response ma If you want to stream JSON objects in your response, you can use https://html.spec.whatwg.org/multipage/server-sent-events.html[Server-Sent Events] by just annotating your endpoint method with -link:{jaxrsapi}/javax/ws/rs/Produces.html[`@Produces(MediaType.SERVER_SENT_EVENTS)`] +link:{jaxrsapi}/jakarta/ws/rs/Produces.html[`@Produces(MediaType.SERVER_SENT_EVENTS)`] and specifying that each element should be <> with `@RestStreamElementType(MediaType.APPLICATION_JSON)`. @@ -944,11 +944,11 @@ and specifying that each element should be <> with ---- package org.acme.rest; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.RestStreamElementType; @@ -1001,40 +1001,40 @@ method takes parameters of the following type: |=== |Type|Usage -|link:{jaxrsapi}/javax/ws/rs/core/HttpHeaders.html[`HttpHeaders`] +|link:{jaxrsapi}/jakarta/ws/rs/core/HttpHeaders.html[`HttpHeaders`] |All the request headers -|link:{jaxrsapi}/javax/ws/rs/container/ResourceInfo.html[`ResourceInfo`] +|link:{jaxrsapi}/jakarta/ws/rs/container/ResourceInfo.html[`ResourceInfo`] |Information about the current endpoint method and class (requires reflection) -|link:{jaxrsapi}/javax/ws/rs/core/SecurityContext.html[`SecurityContext`] +|link:{jaxrsapi}/jakarta/ws/rs/core/SecurityContext.html[`SecurityContext`] |Access to the current user and roles |link:{resteasy-reactive-api}/org/jboss/resteasy/reactive/server/SimpleResourceInfo.html[`SimpleResourceInfo`] |Information about the current endpoint method and class (no reflection required) -|link:{jaxrsapi}/javax/ws/rs/core/UriInfo.html[`UriInfo`] +|link:{jaxrsapi}/jakarta/ws/rs/core/UriInfo.html[`UriInfo`] |Provides information about the current endpoint and application URI -|link:{jaxrsapi}/javax/ws/rs/core/Application.html[`Application`] +|link:{jaxrsapi}/jakarta/ws/rs/core/Application.html[`Application`] |Advanced: Current JAX-RS application class -|link:{jaxrsapi}/javax/ws/rs/core/Configuration.html[`Configuration`] +|link:{jaxrsapi}/jakarta/ws/rs/core/Configuration.html[`Configuration`] |Advanced: Configuration about the deployed JAX-RS application -|link:{jaxrsapi}/javax/ws/rs/ext/Providers.html[`Providers`] +|link:{jaxrsapi}/jakarta/ws/rs/ext/Providers.html[`Providers`] |Advanced: Runtime access to JAX-RS providers -|link:{jaxrsapi}/javax/ws/rs/core/Request.html[`Request`] +|link:{jaxrsapi}/jakarta/ws/rs/core/Request.html[`Request`] |Advanced: Access to the current HTTP method and <> -|link:{jaxrsapi}/javax/ws/rs/core/ResourceContext.html[`ResourceContext`] +|link:{jaxrsapi}/jakarta/ws/rs/core/ResourceContext.html[`ResourceContext`] |Advanced: access to instances of endpoints |link:{resteasy-reactive-api}/org/jboss/resteasy/reactive/server/spi/ServerRequestContext.html[`ServerRequestContext`] |Advanced: RESTEasy Reactive access to the current request/response -|link:{jaxrsapi}/javax/ws/rs/sse/Sse.html[`Sse`] +|link:{jaxrsapi}/jakarta/ws/rs/sse/Sse.html[`Sse`] |Advanced: Complex SSE use-cases |link:{vertxapi}/io/vertx/core/http/HttpServerRequest.html[`HttpServerRequest`] @@ -1053,9 +1053,9 @@ package org.acme.rest; import java.security.Principal; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.SecurityContext; @Path("user") public class Endpoint { @@ -1069,7 +1069,7 @@ public class Endpoint { ---- You can also inject those context objects using -{injectapi}/javax/inject/Inject.html[`@Inject`] on fields of the same +{injectapi}/jakarta/inject/Inject.html[`@Inject`] on fields of the same type: [source,java] @@ -1078,11 +1078,11 @@ package org.acme.rest; import java.security.Principal; -import javax.inject.Inject; +import jakarta.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.SecurityContext; @Path("user") public class Endpoint { @@ -1106,9 +1106,9 @@ package org.acme.rest; import java.security.Principal; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.SecurityContext; @Path("user") public class Endpoint { @@ -1203,8 +1203,8 @@ A very simple JAX-RS Resource that uses `Person` could be: ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("person") public class Person { @@ -1745,7 +1745,7 @@ You can override this behaviour using the https://javadoc.io/doc/io.smallrye.common/smallrye-common-annotation/1.5.0/io/smallrye/common/annotation/Blocking.html[`@Blocking`] and https://javadoc.io/doc/io.smallrye.common/smallrye-common-annotation/1.5.0/io/smallrye/common/annotation/NonBlocking.html[`@NonBlocking`] -annotations. This can be applied at the method, class or `javax.ws.rs.core.Application` level. +annotations. This can be applied at the method, class or `jakarta.ws.rs.core.Application` level. The example below will override the default behaviour and always run on a worker thread, even though it returns a `Uni`. @@ -1753,8 +1753,8 @@ The example below will override the default behaviour and always run on a worker ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.common.annotation.Blocking; @@ -1781,8 +1781,8 @@ package org.acme.rest; import java.time.Duration; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.mutiny.Uni; @@ -1798,13 +1798,13 @@ public class Endpoint { } ---- -If a method or class is annotated with `javax.transaction.Transactional` then it will also be treated as a blocking +If a method or class is annotated with `jakarta.transaction.Transactional` then it will also be treated as a blocking method. This is because JTA is a blocking technology, and is generally used with other blocking technology such as Hibernate and JDBC. An explicit `@Blocking` or `@NonBlocking` on the class will override this behaviour. ==== Overriding the default behaviour -If you want to override the default behaviour you can annotate a `javax.ws.rs.core.Application` subclass in your application +If you want to override the default behaviour you can annotate a `jakarta.ws.rs.core.Application` subclass in your application with `@Blocking` or `@NonBlocking`, and this will set the default for every method that does not have an explicit annotation. Behaviour can still be overridden on a class or method level by annotating them directly, however all endpoints without @@ -1815,16 +1815,16 @@ an annotation will now follow the default, no matter their method signature. If your application needs to return non-nominal HTTP codes in error cases, the best is to throw exceptions that will result in the proper HTTP response being sent by the -framework using link:{jaxrsapi}/javax/ws/rs/WebApplicationException.html[`WebApplicationException`] or any of its subtypes: +framework using link:{jaxrsapi}/jakarta/ws/rs/WebApplicationException.html[`WebApplicationException`] or any of its subtypes: [source,java] ---- package org.acme.rest; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; @Path("cheeses/{cheese}") public class Endpoint { @@ -1856,12 +1856,12 @@ package org.acme.rest; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.RestResponse; @@ -1942,7 +1942,7 @@ Your exception mapper may declare any of the following parameter types: |Any of the <> | -|link:{jaxrsapi}/javax/ws/rs/container/ContainerRequestContext.html[`ContainerRequestContext`] +|link:{jaxrsapi}/jakarta/ws/rs/container/ContainerRequestContext.html[`ContainerRequestContext`] |A context object to access the current request |=== @@ -1953,7 +1953,7 @@ It may declare any of the following return types: |=== |Type|Usage -|link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestResponse.html[`RestResponse`] or link:{jaxrsapi}/javax/ws/rs/core/Response.html[`Response`] +|link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestResponse.html[`RestResponse`] or link:{jaxrsapi}/jakarta/ws/rs/core/Response.html[`Response`] |The response to send to the client when the exception occurs |link:{mutinyapi}/io/smallrye/mutiny/Uni.html[`Uni`] or link:{mutinyapi}/io/smallrye/mutiny/Uni.html[`Uni`] @@ -2056,10 +2056,10 @@ Your filters may declare any of the following parameter types: |Any of the <> | -|link:{jaxrsapi}/javax/ws/rs/container/ContainerRequestContext.html[`ContainerRequestContext`] +|link:{jaxrsapi}/jakarta/ws/rs/container/ContainerRequestContext.html[`ContainerRequestContext`] |A context object to access the current request -|link:{jaxrsapi}/javax/ws/rs/container/ContainerResponseContext.html[`ContainerResponseContext`] +|link:{jaxrsapi}/jakarta/ws/rs/container/ContainerResponseContext.html[`ContainerResponseContext`] |A context object to access the current response |link:{jdkapi}/java/lang/Throwable.html[`Throwable`] @@ -2073,7 +2073,7 @@ It may declare any of the following return types: |=== |Type|Usage -|link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestResponse.html[`RestResponse`] or link:{jaxrsapi}/javax/ws/rs/core/Response.html[`Response`] +|link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestResponse.html[`RestResponse`] or link:{jaxrsapi}/jakarta/ws/rs/core/Response.html[`Response`] |The response to send to the client instead of continuing the filter chain, or `null` if the filter chain should proceed |link:{jdkapi}/java/util/Optional.html[`Optional>`] or link:{jdkapi}/java/util/Optional.html[`Optional`] @@ -2084,7 +2084,7 @@ It may declare any of the following return types: |=== -NOTE: You can restrict the Resource methods for which a filter runs, by using link:{jaxrsapi}/javax/ws/rs/NameBinding.html[`@NameBinding`] meta-annotations. +NOTE: You can restrict the Resource methods for which a filter runs, by using link:{jaxrsapi}/jakarta/ws/rs/NameBinding.html[`@NameBinding`] meta-annotations. ==== The JAX-RS way @@ -2105,11 +2105,11 @@ package org.acme.rest.json; import io.vertx.core.http.HttpServerRequest; import org.jboss.logging.Logger; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.Provider; @Provider public class LoggingFilter implements ContainerRequestFilter { @@ -2150,14 +2150,14 @@ Now, whenever a REST method is invoked, the request will be logged into the cons Whenever your endpoint methods return an object (of when they return a link:{resteasy-reactive-common-api}/org/jboss/resteasy/reactive/RestResponse.html[`RestResponse`] -or link:{jaxrsapi}/javax/ws/rs/core/Response.html[`Response`] with +or link:{jaxrsapi}/jakarta/ws/rs/core/Response.html[`Response`] with an entity), RESTEasy Reactive will look for a way to map that into an HTTP response body. Similarly, whenever your endpoint method takes an object as parameter, we will look for a way to map the HTTP request body into that object. -This is done via a pluggable system of link:{jaxrsapi}/javax/ws/rs/ext/MessageBodyReader.html[`MessageBodyReader`] -and link:{jaxrsapi}/javax/ws/rs/ext/MessageBodyWriter.html[`MessageBodyWriter`] interfaces, +This is done via a pluggable system of link:{jaxrsapi}/jakarta/ws/rs/ext/MessageBodyReader.html[`MessageBodyReader`] +and link:{jaxrsapi}/jakarta/ws/rs/ext/MessageBodyWriter.html[`MessageBodyWriter`] interfaces, which are responsible for defining which Java type they map from/to, for which media types, and how they turn HTTP bodies to/from Java instances of that type. @@ -2167,9 +2167,9 @@ For example, if we have our own `Cheese` type on our endpoint: ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; class Cheese { public String name; @@ -2195,7 +2195,7 @@ public class Endpoint { ---- Then we can define how to read and write it with our body reader/writers, annotated -with link:{jaxrsapi}/javax/ws/rs/ext/Provider.html[`@Provider`]: +with link:{jaxrsapi}/jakarta/ws/rs/ext/Provider.html[`@Provider`]: [source,java] ---- @@ -2208,12 +2208,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider public class CheeseBodyHandler implements MessageBodyReader, @@ -2258,7 +2258,7 @@ public class CheeseBodyHandler implements MessageBodyReader, If you want to get the most performance our of your writer, you can extend the link:{resteasy-reactive-api}/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyWriter.html[`ServerMessageBodyWriter`] -instead of link:{jaxrsapi}/javax/ws/rs/ext/MessageBodyWriter.html[`MessageBodyWriter`] +instead of link:{jaxrsapi}/jakarta/ws/rs/ext/MessageBodyWriter.html[`MessageBodyWriter`] where you will be able to use less reflection and bypass the blocking IO layer: [source,java] @@ -2272,11 +2272,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; @@ -2303,15 +2303,15 @@ public class CheeseBodyHandler implements MessageBodyReader, ---- NOTE: You can restrict which content-types your reader/writer apply to by adding -link:{jaxrsapi}/javax/ws/rs/Consumes.html[`Consumes`]/link:{jaxrsapi}/javax/ws/rs/Produces.html[`Produces`] annotations +link:{jaxrsapi}/jakarta/ws/rs/Consumes.html[`Consumes`]/link:{jaxrsapi}/jakarta/ws/rs/Produces.html[`Produces`] annotations on your provider class. === Reader and Writer interceptors Just as you can intercept requests and responses, you can also intercept readers and writers, by -extending the link:{jaxrsapi}/javax/ws/rs/ext/ReaderInterceptor.html[`ReaderInterceptor`] or -link:{jaxrsapi}/javax/ws/rs/ext/WriterInterceptor.html[`WriterInterceptor`] on a class annotated with -link:{jaxrsapi}/javax/ws/rs/ext/Provider.html[`@Provider`]. +extending the link:{jaxrsapi}/jakarta/ws/rs/ext/ReaderInterceptor.html[`ReaderInterceptor`] or +link:{jaxrsapi}/jakarta/ws/rs/ext/WriterInterceptor.html[`WriterInterceptor`] on a class annotated with +link:{jaxrsapi}/jakarta/ws/rs/ext/Provider.html[`@Provider`]. If we look at this endpoint: @@ -2319,9 +2319,9 @@ If we look at this endpoint: ---- package org.acme.rest; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; @Path("cheese") public class Endpoint { @@ -2346,12 +2346,12 @@ package org.acme.rest; import java.io.IOException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.ReaderInterceptorContext; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.ReaderInterceptorContext; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.WriterInterceptorContext; @Provider public class CheeseIOInterceptor implements ReaderInterceptor, WriterInterceptor { @@ -2393,8 +2393,8 @@ However, you can change this default behavior and constrain a provider to: All <> can be declared as link:{jdkapi}/java/lang/String.html[`String`], but also any of the following types: -- Types for which a link:{jaxrsapi}/javax/ws/rs/ext/ParamConverter.html[`ParamConverter`] is available via a registered -link:{jaxrsapi}/javax/ws/rs/ext/ParamConverterProvider.html[`ParamConverterProvider`]. +- Types for which a link:{jaxrsapi}/jakarta/ws/rs/ext/ParamConverter.html[`ParamConverter`] is available via a registered +link:{jaxrsapi}/jakarta/ws/rs/ext/ParamConverterProvider.html[`ParamConverterProvider`]. - Primitive types. - Types that have a constructor that accepts a single link:{jdkapi}/java/lang/String.html[`String`] argument. - Types that have a static method named `valueOf` or `fromString` with a single link:{jdkapi}/java/lang/String.html[`String`] argument @@ -2413,11 +2413,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.RestQuery; @@ -2506,7 +2506,7 @@ conditions, such as: - A resource tag, similar to a hash code of the resource to designate its state or version Let's see how you can do conditional request validation using the -link:{jaxrsapi}/javax/ws/rs/core/Request.html[`Request`] context object: +link:{jaxrsapi}/jakarta/ws/rs/core/Request.html[`Request`] context object: [source,java] ---- @@ -2517,13 +2517,13 @@ import java.time.temporal.ChronoUnit; import java.time.temporal.TemporalUnit; import java.util.Date; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; @Path("conditional") public class Endpoint { @@ -2637,12 +2637,12 @@ The following endpoint supports serving cheese in plain text or JSON: ---- package org.acme.rest; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/docs/src/main/asciidoc/resteasy.adoc b/docs/src/main/asciidoc/resteasy.adoc index 6a439993512d1..07bb3bcf1dc3c 100644 --- a/docs/src/main/asciidoc/resteasy.adoc +++ b/docs/src/main/asciidoc/resteasy.adoc @@ -116,10 +116,10 @@ import java.util.Collections; import java.util.LinkedHashMap; import java.util.Set; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/fruits") public class FruitResource { @@ -197,7 +197,7 @@ An example where a custom module needs to be registered would look like so: ---- import com.fasterxml.jackson.databind.ObjectMapper; import io.quarkus.jackson.ObjectMapperCustomizer; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class RegisterCustomModuleCustomizer implements ObjectMapperCustomizer { @@ -218,7 +218,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.quarkus.arc.All; import io.quarkus.jackson.ObjectMapperCustomizer; import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; public class CustomObjectMapper { @@ -248,9 +248,9 @@ If for example a custom serializer named `FooSerializer` for type `com.example.F [source,java] ---- import io.quarkus.jsonb.JsonbConfigCustomizer; -import javax.inject.Singleton; -import javax.json.bind.JsonbConfig; -import javax.json.bind.serializer.JsonbSerializer; +import jakarta.inject.Singleton; +import jakarta.json.bind.JsonbConfig; +import jakarta.json.bind.serializer.JsonbSerializer; @Singleton public class FooSerializerRegistrationCustomizer implements JsonbConfigCustomizer { @@ -261,17 +261,17 @@ public class FooSerializerRegistrationCustomizer implements JsonbConfigCustomize } ---- -A more advanced option would be to directly provide a bean of `javax.json.bind.JsonbConfig` (with a `Dependent` scope) or in the extreme case to provide a bean of type `javax.json.bind.Jsonb` (with a `Singleton` scope). -If the latter approach is leveraged it is very important to manually inject and apply all `io.quarkus.jsonb.JsonbConfigCustomizer` beans in the CDI producer that produces `javax.json.bind.Jsonb`. +A more advanced option would be to directly provide a bean of `jakarta.json.bind.JsonbConfig` (with a `Dependent` scope) or in the extreme case to provide a bean of type `jakarta.json.bind.Jsonb` (with a `Singleton` scope). +If the latter approach is leveraged it is very important to manually inject and apply all `io.quarkus.jsonb.JsonbConfigCustomizer` beans in the CDI producer that produces `jakarta.json.bind.Jsonb`. Failure to do so will prevent JSON-B specific customizations provided by various extensions from being applied. [source,java] ---- import io.quarkus.jsonb.JsonbConfigCustomizer; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.json.bind.JsonbConfig; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.json.bind.JsonbConfig; public class CustomJsonbConfig { @@ -502,12 +502,12 @@ import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; @Path("/legumes") @Produces(MediaType.APPLICATION_JSON) @@ -656,11 +656,11 @@ package org.acme.rest.json; import io.vertx.core.http.HttpServerRequest; import org.jboss.logging.Logger; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.Provider; @Provider public class LoggingFilter implements ContainerRequestFilter { @@ -773,7 +773,7 @@ If multiple JAX-RS applications are defined, the property `quarkus.resteasy.igno === Support limitations of JAX-RS application -The RESTEasy extension doesn't support the method `getProperties()` of the class `javax.ws.rs.core.Application`. Moreover, it only relies on the methods `getClasses()` and `getSingletons()` to filter out the annotated resource, provider and feature classes. +The RESTEasy extension doesn't support the method `getProperties()` of the class `jakarta.ws.rs.core.Application`. Moreover, it only relies on the methods `getClasses()` and `getSingletons()` to filter out the annotated resource, provider and feature classes. It doesn't filter out the built-in resource, provider and feature classes and also the resource, provider and feature classes registered by the other extensions. Finally, the objects returned by the method `getSingletons()` are ignored, only the classes are taken into account to filter out the resource, provider and feature classes, in other words the method `getSingletons()` is actually managed the same way as `getClasses()`. @@ -784,7 +784,7 @@ It's possible to inject other beans via `@Inject`, bind interceptors using bindi If there is no scope annotation declared on the resource class then the scope is defaulted. The default scope can be controlled through the `quarkus.resteasy.singleton-resources` property. -If set to `true` (default) then a *single instance* of a resource class is created to service all requests (as defined by `@javax.inject.Singleton`). +If set to `true` (default) then a *single instance* of a resource class is created to service all requests (as defined by `@jakarta.inject.Singleton`). If set to `false` then a *new instance* of the resource class is created per each request. An explicit CDI scope annotation (`@RequestScoped`, `@ApplicationScoped`, etc.) always overrides the default behavior and specifies the lifecycle of resource instances. diff --git a/docs/src/main/asciidoc/scheduler-reference.adoc b/docs/src/main/asciidoc/scheduler-reference.adoc index ba28c9bf9a524..fad3e54d8f0e0 100644 --- a/docs/src/main/asciidoc/scheduler-reference.adoc +++ b/docs/src/main/asciidoc/scheduler-reference.adoc @@ -24,7 +24,7 @@ NOTE: If you add the `quarkus-quartz` dependency to your project the lightweight A method annotated with `@io.quarkus.scheduler.Scheduled` is automatically scheduled for invocation. A scheduled method must not be abstract or private. It may be either static or non-static. -A scheduled method can be annotated with interceptor bindings, such as `@javax.transaction.Transactional` and `@org.eclipse.microprofile.metrics.annotation.Counted`. +A scheduled method can be annotated with interceptor bindings, such as `@jakarta.transaction.Transactional` and `@org.eclipse.microprofile.metrics.annotation.Counted`. NOTE: If there is a bean class that has no scope and declares at least one non-static method annotated with `@Scheduled` then `@Singleton` is used. diff --git a/docs/src/main/asciidoc/scheduler.adoc b/docs/src/main/asciidoc/scheduler.adoc index bf9cb8b4526eb..1eb6cb7734565 100644 --- a/docs/src/main/asciidoc/scheduler.adoc +++ b/docs/src/main/asciidoc/scheduler.adoc @@ -82,7 +82,7 @@ In the `org.acme.scheduler` package, create the `CounterBean` class, with the fo package org.acme.scheduler; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.scheduler.Scheduled; import io.quarkus.scheduler.ScheduledExecution; @@ -141,11 +141,11 @@ Create the `CountResource` class as follows: ---- package org.acme.scheduler; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/count") public class CountResource { diff --git a/docs/src/main/asciidoc/scripting.adoc b/docs/src/main/asciidoc/scripting.adoc index 923157b4cb038..be46030a02ddd 100644 --- a/docs/src/main/asciidoc/scripting.adoc +++ b/docs/src/main/asciidoc/scripting.adoc @@ -36,12 +36,12 @@ Normally we would link to a Git repository to clone but in this case there is no //JAVA_OPTIONS -Djava.util.logging.manager=org.jboss.logmanager.LogManager import io.quarkus.runtime.Quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.logging.Logger; @Path("/hello") @@ -165,9 +165,9 @@ Now let us replace the class with one that uses Quarkus features: [source,java] ---- import io.quarkus.runtime.Quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello") @ApplicationScoped @@ -284,12 +284,12 @@ Edit the `quarksapp` class to inject the `GreetingService` and create a new endp //DEPS io.quarkus:quarkus-resteasy-reactive:{quarkus-version} import io.quarkus.runtime.Quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") @ApplicationScoped diff --git a/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc b/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc index 8720c9e4aca12..099f6b43f5337 100644 --- a/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc +++ b/docs/src/main/asciidoc/security-authorize-web-endpoints-reference.adoc @@ -256,13 +256,13 @@ As an equivalent to `@RolesAllowed("**")`, {project-name} also provides the `io. ---- import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("subject") public class SubjectExposingResource { @@ -332,13 +332,13 @@ tester.role=Tester ---- import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("subject") public class SubjectExposingResource { diff --git a/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc index 2829879a2fae8..4dd0af56d87a3 100644 --- a/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc +++ b/docs/src/main/asciidoc/security-basic-authentication-tutorial.adoc @@ -88,11 +88,11 @@ Add a regular JAX-RS resource to your Java source code, as outlined in the follo ---- package org.acme.security.jpa; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/public") public class PublicResource { @@ -112,11 +112,11 @@ Add a JAX-RS resource with the following `@RolesAllowed` annotation: ---- package org.acme.security.jpa; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -136,12 +136,12 @@ We are also using `SecurityContext` to get access to the currently authenticated ---- package org.acme.security.jpa; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/users") public class UserResource { @@ -163,8 +163,8 @@ You can now describe how you want security information to be stored in the model ---- package org.acme.security.jpa; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import io.quarkus.hibernate.orm.panache.PanacheEntity; import io.quarkus.elytron.security.common.BcryptUtil; @@ -247,9 +247,9 @@ This approach is suitable for development but needs to be revised for production ---- package org.acme.security.jpa; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; -import javax.transaction.Transactional; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; +import jakarta.transaction.Transactional; import io.quarkus.runtime.StartupEvent; diff --git a/docs/src/main/asciidoc/security-csrf-prevention.adoc b/docs/src/main/asciidoc/security-csrf-prevention.adoc index 8ab6b30b7561c..73108c1104878 100644 --- a/docs/src/main/asciidoc/security-csrf-prevention.adoc +++ b/docs/src/main/asciidoc/security-csrf-prevention.adoc @@ -75,14 +75,14 @@ Now let's create a resource class which returns an HTML form and handles form PO ---- package io.quarkus.it.csrf; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; @@ -140,15 +140,15 @@ Your JAX-RS endpoint may accept not only HTTP POST requests with `application/x- ---- package io.quarkus.it.csrf; -import javax.inject.Inject; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; @@ -227,16 +227,16 @@ If you prefer to compare the CSRF form field and cookie values in the applicatio ---- package io.quarkus.it.csrf; -import javax.inject.Inject; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.Consumes; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; diff --git a/docs/src/main/asciidoc/security-customization.adoc b/docs/src/main/asciidoc/security-customization.adoc index 2c3fc782a2717..3453662758a11 100644 --- a/docs/src/main/asciidoc/security-customization.adoc +++ b/docs/src/main/asciidoc/security-customization.adoc @@ -146,7 +146,7 @@ import io.quarkus.security.identity.SecurityIdentityAugmentor; import io.quarkus.security.runtime.QuarkusSecurityIdentity; import io.smallrye.mutiny.Uni; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.function.Supplier; @ApplicationScoped @@ -187,7 +187,7 @@ import io.quarkus.security.identity.SecurityIdentityAugmentor; import io.quarkus.security.runtime.QuarkusSecurityIdentity; import io.smallrye.mutiny.Uni; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.function.Supplier; import java.util.Set; @@ -232,7 +232,7 @@ You can enforce the order by implementing a default `SecurityIdentityAugmentor#p ==== By default, the request context is not activated when augmenting the security identity, this means that if you want to use for example Hibernate -that mandates a request context, you will have a `javax.enterprise.context.ContextNotActiveException`. +that mandates a request context, you will have a `jakarta.enterprise.context.ContextNotActiveException`. The solution is to activate the request context, the following example shows how to get the roles from an Hibernate with Panache `UserRoleEntity`. @@ -243,9 +243,9 @@ import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.security.identity.SecurityIdentityAugmentor; import io.smallrye.mutiny.Uni; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; @ApplicationScoped public class RolesAugmentor implements SecurityIdentityAugmentor { @@ -272,8 +272,8 @@ public class RolesAugmentor implements SecurityIdentityAugmentor { import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.security.runtime.QuarkusSecurityIdentity; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.control.ActivateRequestContext; import java.util.function.Supplier; @Dependent @@ -309,11 +309,11 @@ If you use JAX-RS `ContainerRequestFilter` to set a custom JAX-RS `SecurityConte ---- import java.security.Principal; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.ext.Provider; @Provider @PreMatching diff --git a/docs/src/main/asciidoc/security-jdbc.adoc b/docs/src/main/asciidoc/security-jdbc.adoc index b0efe9bc01701..541cddf7c603f 100644 --- a/docs/src/main/asciidoc/security-jdbc.adoc +++ b/docs/src/main/asciidoc/security-jdbc.adoc @@ -83,11 +83,11 @@ Let's start by implementing the `/api/public` endpoint. As you can see from the ---- package org.acme.security.jdbc; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/public") public class PublicResource { @@ -108,11 +108,11 @@ The source code for the `/api/admin` endpoint is also very simple. The main diff ---- package org.acme.security.jdbc; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -133,12 +133,12 @@ We are using `SecurityContext` to get access to the current authenticated Princi ---- package org.acme.security.jdbc; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/users") public class UserResource { diff --git a/docs/src/main/asciidoc/security-jwt-build.adoc b/docs/src/main/asciidoc/security-jwt-build.adoc index fd6986be93465..0d63ece610023 100644 --- a/docs/src/main/asciidoc/security-jwt-build.adoc +++ b/docs/src/main/asciidoc/security-jwt-build.adoc @@ -44,8 +44,8 @@ The first step is to initialize a `JwtClaimsBuilder` using one of the options be [source, java] ---- import java.util.Collections; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; import io.smallrye.jwt.build.Jwt; import io.smallrye.jwt.build.JwtClaimsBuilder; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/docs/src/main/asciidoc/security-jwt.adoc b/docs/src/main/asciidoc/security-jwt.adoc index d523d030bb6d7..cbc7c22e3d2c7 100644 --- a/docs/src/main/asciidoc/security-jwt.adoc +++ b/docs/src/main/asciidoc/security-jwt.adoc @@ -81,16 +81,16 @@ package org.acme.security.jwt; import java.security.Principal; -import javax.annotation.security.PermitAll; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.PermitAll; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; @@ -186,17 +186,17 @@ So now let's actually secure something. Take a look at the new endpoint method ` ---- package org.acme.security.jwt; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; @@ -457,7 +457,7 @@ Success! We now have: Now that we can generate a JWT to access our secured REST endpoints, let's see what more we can do with the `JsonWebToken` interface and the JWT claims. The `org.eclipse.microprofile.jwt.JsonWebToken` interface extends the `java.security.Principal` -interface, and is in fact the type of the object that is returned by the `javax.ws.rs.core.SecurityContext#getUserPrincipal()` call we +interface, and is in fact the type of the object that is returned by the `jakarta.ws.rs.core.SecurityContext#getUserPrincipal()` call we used previously. This means that code that does not use CDI but does have access to the REST container `SecurityContext` can get hold of the caller `JsonWebToken` interface by casting the `SecurityContext#getUserPrincipal()`. @@ -471,17 +471,17 @@ All the JWT claims can also be injected. Let's expand our `TokenSecuredResource` ---- package org.acme.security.jwt; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; @@ -624,7 +624,7 @@ However, `@RequestScoped` must be used when the individual token claims are inje ---- package org.acme.security.jwt; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; @@ -700,9 +700,9 @@ You can also use it to customize the way the token is verified or decrypted. For [source,java] ---- import javax.crypto.SecretKey; -import javax.ws.rs.GET; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.jwt.JsonWebToken; import io.smallrye.jwt.auth.principal.JWTParser; import io.smallrye.jwt.build.Jwt; @@ -756,9 +756,9 @@ If you need to provide your own factory, for example, to avoid verifying the tok ---- import java.nio.charset.StandardCharsets; import java.util.Base64; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import org.jose4j.jwt.JwtClaims; import org.jose4j.jwt.consumer.InvalidJwtException; import io.smallrye.jwt.auth.principal.DefaultJWTCallerPrincipal; diff --git a/docs/src/main/asciidoc/security-keycloak-admin-client.adoc b/docs/src/main/asciidoc/security-keycloak-admin-client.adoc index c0f59f3104897..066ab69960068 100644 --- a/docs/src/main/asciidoc/security-keycloak-admin-client.adoc +++ b/docs/src/main/asciidoc/security-keycloak-admin-client.adoc @@ -67,9 +67,9 @@ package org.acme.keycloak.admin.client; import org.keycloak.admin.client.Keycloak; import org.keycloak.representations.idm.RoleRepresentation; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.List; @Path("/api/admin") @@ -121,10 +121,10 @@ import org.keycloak.admin.client.Keycloak; import org.keycloak.admin.client.KeycloakBuilder; import org.keycloak.representations.idm.RoleRepresentation; -import javax.annotations.PostConstruct; -import javax.annotations.PreConstruct; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotations.PostConstruct; +import jakarta.annotations.PreConstruct; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.List; @Path("/api/admin") diff --git a/docs/src/main/asciidoc/security-keycloak-authorization.adoc b/docs/src/main/asciidoc/security-keycloak-authorization.adoc index 003588d8892c1..77a43c25733af 100644 --- a/docs/src/main/asciidoc/security-keycloak-authorization.adoc +++ b/docs/src/main/asciidoc/security-keycloak-authorization.adoc @@ -105,9 +105,9 @@ As you can see from the source code below it is just a regular JAX-RS resource: ---- package org.acme.security.keycloak.authorization; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.annotations.cache.NoCache; @@ -147,10 +147,10 @@ The source code for the `/api/admin` endpoint is also very simple: ---- package org.acme.security.keycloak.authorization; -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; import io.quarkus.security.Authenticated; diff --git a/docs/src/main/asciidoc/security-ldap.adoc b/docs/src/main/asciidoc/security-ldap.adoc index 1644ff9262e71..abc5e47d40153 100644 --- a/docs/src/main/asciidoc/security-ldap.adoc +++ b/docs/src/main/asciidoc/security-ldap.adoc @@ -81,11 +81,11 @@ Let's start by implementing the `/api/public` endpoint. As you can see from the ---- package org.acme.elytron.security.ldap; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/public") public class PublicResource { @@ -106,11 +106,11 @@ The source code for the `/api/admin` endpoint is also very simple. The main diff ---- package org.acme.elytron.security.ldap; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -131,12 +131,12 @@ We are using `SecurityContext` to get access to the current authenticated Princi ---- package org.acme.elytron.security.ldap; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/users") public class UserResource { diff --git a/docs/src/main/asciidoc/security-oauth2.adoc b/docs/src/main/asciidoc/security-oauth2.adoc index 74e2f6ba85593..9604fa770433c 100644 --- a/docs/src/main/asciidoc/security-oauth2.adoc +++ b/docs/src/main/asciidoc/security-oauth2.adoc @@ -66,10 +66,10 @@ Create the `src/main/java/org/acme/security/oauth2/TokenSecuredResource.java` fi ---- package org.acme.security.oauth2; -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("/secured") public class TokenSecuredResource { @@ -92,14 +92,14 @@ package org.acme.security.oauth2; import java.security.Principal; -import javax.annotation.security.PermitAll; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.PermitAll; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; @Path("/secured") @ApplicationScoped @@ -170,15 +170,15 @@ package org.acme.security.oauth2; import java.security.Principal; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; @Path("/secured") @ApplicationScoped diff --git a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc index ca9d49d71748e..d7b691799709d 100644 --- a/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-oidc-bearer-authentication-concept.adoc @@ -52,12 +52,12 @@ If you need to access JWT token claims then you can inject `JsonWebToken`: package org.acme.security.openid.connect; import org.eclipse.microprofile.jwt.JsonWebToken; -import javax.inject.Inject; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -80,7 +80,7 @@ Injection of `JsonWebToken` is supported in `@ApplicationScoped`, `@Singleton` a === User Info Set `quarkus.oidc.authentication.user-info-required=true` if a UserInfo JSON object from the OIDC userinfo endpoint has to be requested. -A request will be sent to the OpenID Provider UserInfo endpoint and an `io.quarkus.oidc.UserInfo` (a simple `javax.json.JsonObject` wrapper) object will be created. +A request will be sent to the OpenID Provider UserInfo endpoint and an `io.quarkus.oidc.UserInfo` (a simple `jakarta.json.JsonObject` wrapper) object will be created. `io.quarkus.oidc.UserInfo` can be either injected or accessed as a SecurityIdentity `userinfo` attribute. [[config-metadata]] @@ -145,7 +145,7 @@ quarkus.oidc.token.require-jwt-introspection-only=true An advantage of this approach is that the configuration is simple and easy to understand, while its disavantage is that a remote OIDC metadata discovery call is required to discover an introspection endpoint address (though the verification keys will also not be fetched). -Note that `io.quarkus.oidc.TokenIntrospection` (a simple `javax.json.JsonObject` wrapper) object will be created and can be either injected or accessed as a SecurityIdentity `introspection` attribute if either JWT or opaque token has been successfully introspected. +Note that `io.quarkus.oidc.TokenIntrospection` (a simple `jakarta.json.JsonObject` wrapper) object will be created and can be either injected or accessed as a SecurityIdentity `introspection` attribute if either JWT or opaque token has been successfully introspected. [[token-introspection-userinfo-cache]] === Token Introspection and UserInfo Cache @@ -204,10 +204,10 @@ In such cases you may want to consider skipping the issuer verification by setti [source, java] ---- -import javax.inject.Inject; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.jwt.JsonWebToken; import io.quarkus.oidc.OidcConfigurationMetadata; diff --git a/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc index abce2de972bf7..12d8b107a5452 100644 --- a/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-concept.adoc @@ -53,7 +53,7 @@ One can access ID Token claims by injecting `JsonWebToken` with an `IdToken` qua [source, java] ---- -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.JsonWebToken; import io.quarkus.oidc.IdToken; import io.quarkus.security.Authenticated; @@ -77,7 +77,7 @@ Access Token is usually used by the OIDC `web-app` application to access other e [source, java] ---- -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.JsonWebToken; import io.quarkus.oidc.AccessTokenCredential; import io.quarkus.security.Authenticated; @@ -116,7 +116,7 @@ RefreshToken is only used to refresh the current ID and access tokens as part of If the ID token does not provide enough information about the currently-authenticated user, then you can set a `quarkus.oidc.authentication.user-info-required=true` property for a https://openid.net/specs/openid-connect-core-1_0.html#UserInfo[UserInfo] JSON object from the OIDC userinfo endpoint to be requested. -A request will be sent to the OpenID Provider UserInfo endpoint using the access token returned with the authorization code grant response and an `io.quarkus.oidc.UserInfo` (a simple `javax.json.JsonObject` wrapper) object will be created. `io.quarkus.oidc.UserInfo` can be either injected or accessed as a SecurityIdentity `userinfo` attribute. +A request will be sent to the OpenID Provider UserInfo endpoint using the access token returned with the authorization code grant response and an `io.quarkus.oidc.UserInfo` (a simple `jakarta.json.JsonObject` wrapper) object will be created. `io.quarkus.oidc.UserInfo` can be either injected or accessed as a SecurityIdentity `userinfo` attribute. [[config-metadata]] === Configuration metadata @@ -313,9 +313,9 @@ If you work with a social provider such as Google and are concerned that the use [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.OidcSession; @@ -394,8 +394,8 @@ Here is a simple example: ---- package io.quarkus.oidc.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.arc.AlternativePriority; import io.quarkus.oidc.AuthorizationCodeTokens; @@ -465,8 +465,8 @@ One can register `@ApplicationScoped` bean which will observe important OIDC aut [source, java] ---- -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.oidc.IdTokenCredential; import io.quarkus.oidc.SecurityEvent; @@ -565,10 +565,10 @@ This is all what is needed for an endpoint like this one to return the currently [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.oidc.UserInfo; import io.quarkus.security.Authenticated; @@ -597,7 +597,7 @@ package io.quarkus.it.keycloak; import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.UserInfo; import io.quarkus.security.identity.AuthenticationRequestContext; @@ -636,10 +636,10 @@ Now, the following code will work when the user is signing in into your applicat [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; diff --git a/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc index f56876df5d88c..296812d78163d 100644 --- a/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc +++ b/docs/src/main/asciidoc/security-oidc-code-flow-authentication-tutorial.adoc @@ -70,10 +70,10 @@ Let's write a simple JAX-RS resource which has all the tokens returned in the au ---- package org.acme.security.openid.connect.web.authentication; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc index e246378d6217b..7ddee6eaa0bdb 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client-reference.adoc @@ -148,9 +148,9 @@ One can use `OidcClient` directly as follows: [source,java] ---- -import javax.inject.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; +import jakarta.inject.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; import io.quarkus.oidc.client.OidcClient; import io.quarkus.oidc.client.Tokens; @@ -188,9 +188,9 @@ You can inject `Tokens` which uses `OidcClient` internally. `Tokens` can be used [source,java] ---- -import javax.inject.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; +import jakarta.inject.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; import io.quarkus.oidc.client.Tokens; @@ -226,9 +226,9 @@ Note in this case the default client is disabled with a `client-enabled=false` p [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.client.OidcClient; import io.quarkus.oidc.client.OidcClients; @@ -253,9 +253,9 @@ If you also use xref:security-openid-connect-multitenancy.adoc[OIDC multitenancy [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.client.OidcClient; import io.quarkus.oidc.client.OidcClients; @@ -284,9 +284,9 @@ If you need you can also create new `OidcClient` programmatically like this: [source,java] ---- -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.client.OidcClient; import io.quarkus.oidc.client.OidcClients; @@ -322,9 +322,9 @@ In case of multiple configured ``OidcClient``s you can specify the `OidcClient` ---- package io.quarkus.oidc.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/clients") public class OidcClientResource { @@ -936,7 +936,7 @@ quarkus.oidc-token-propagation-reactive.exchange-token=true [[token-propagation]] == Token Propagation -The `quarkus-oidc-token-propagation` extension provides two JAX-RS `javax.ws.rs.client.ClientRequestFilter` class implementations that simplify the propagation of authentication information. +The `quarkus-oidc-token-propagation` extension provides two JAX-RS `jakarta.ws.rs.client.ClientRequestFilter` class implementations that simplify the propagation of authentication information. `io.quarkus.oidc.token.propagation.AccessTokenRequestFilter` propagates the xref:security-oidc-bearer-authentication-concept.adoc[Bearer token] present in the current active request or the token acquired from the xref:security-oidc-code-flow-authentication-concept.adoc[Authorization code flow mechanism], as the HTTP `Authorization` header's `Bearer` scheme value. The `io.quarkus.oidc.token.propagation.JsonWebTokenRequestFilter` provides the same functionality, but in addition provides support for JWT tokens. diff --git a/docs/src/main/asciidoc/security-openid-connect-client.adoc b/docs/src/main/asciidoc/security-openid-connect-client.adoc index ebe5be51ea46f..24ffbe3c5f444 100644 --- a/docs/src/main/asciidoc/security-openid-connect-client.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-client.adoc @@ -101,11 +101,11 @@ Let's start by implementing `ProtectedResource`: ---- package org.acme.security.openid.connect.client; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.security.Authenticated; import io.smallrye.mutiny.Uni; @@ -145,9 +145,9 @@ Next let's add a REST Client with `OidcClientRequestReactiveFilter` and another ---- package org.acme.security.openid.connect.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -178,9 +178,9 @@ where `RestClientWithOidcClientFilter` will depend on `OidcClientRequestReactive ---- package org.acme.security.openid.connect.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -215,10 +215,10 @@ Now let's complete creating the application with adding `FrontendResource`: ---- package org.acme.security.openid.connect.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RestClient; @@ -272,9 +272,9 @@ Finally, let's add a JAX-RS `ExceptionMapper`: ---- package org.acme.security.openid.connect.client; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.ClientWebApplicationException; diff --git a/docs/src/main/asciidoc/security-openid-connect-multitenancy.adoc b/docs/src/main/asciidoc/security-openid-connect-multitenancy.adoc index 1699e3e2f59b7..62614000eae20 100644 --- a/docs/src/main/asciidoc/security-openid-connect-multitenancy.adoc +++ b/docs/src/main/asciidoc/security-openid-connect-multitenancy.adoc @@ -85,10 +85,10 @@ Let's start by implementing the `/{tenant}` endpoint. As you can see from the so ---- package org.acme.quickstart.oidc; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.jwt.JsonWebToken; @@ -155,7 +155,7 @@ In order to resolve the tenant from incoming requests and map it to a specific ` ---- package org.acme.quickstart.oidc; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.ConfigProvider; @@ -242,7 +242,7 @@ and use a custom `TenantConfigResolver` to resolve it: ---- package org.acme.quickstart.oidc; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.ext.web.RoutingContext; @@ -278,7 +278,7 @@ Therefore, when working with multiple OpenID Connect Providers, you only need a ---- package org.acme.quickstart.oidc; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.ext.web.RoutingContext; @@ -633,7 +633,7 @@ This interface allows you to dynamically create tenant configurations at runtime ---- package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.function.Supplier; import io.smallrye.mutiny.Uni; @@ -709,7 +709,7 @@ package org.acme.quickstart.oidc; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.core.http.Cookie; diff --git a/docs/src/main/asciidoc/security-overview-concept.adoc b/docs/src/main/asciidoc/security-overview-concept.adoc index c73fb97653405..02c54e5b6f32f 100644 --- a/docs/src/main/asciidoc/security-overview-concept.adoc +++ b/docs/src/main/asciidoc/security-overview-concept.adoc @@ -73,10 +73,10 @@ For more information, see xref:resteasy-reactive.adoc#secure-serialization[Writi === Secure auto-generated resources by REST Data with Panache -If you're using the REST Data with Panache extension to auto-generate your resources, you can still use the Security annotations within the package `javax.annotation.security`. +If you're using the REST Data with Panache extension to auto-generate your resources, you can still use the Security annotations within the package `jakarta.annotation.security`. For more information, see xref:rest-data-panache.adoc#securing-endpoints[Securing auto-generated resources]. == Security vulnerability detection Most of the Quarkus tags are reported in the US link:https://nvd.nist.gov[National Vulnerability Database (NVD)]. -For information about security vulnerabilities, see xref:security-vulnerability-detection-concept.adoc[Security vulnerability detection and reporting in Quarkus]. \ No newline at end of file +For information about security vulnerabilities, see xref:security-vulnerability-detection-concept.adoc[Security vulnerability detection and reporting in Quarkus]. diff --git a/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc b/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc index 4ccb8a45d1a94..fcadf0b406f33 100644 --- a/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc +++ b/docs/src/main/asciidoc/security-proactive-authentication-concept.adoc @@ -45,10 +45,10 @@ There is more than one way to fix the example: [source,java] ---- -import javax.annotation.security.PermitAll; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.mutiny.Uni; @@ -69,8 +69,8 @@ public class HelloResource { [source,java] ---- -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class HelloService { @@ -91,11 +91,11 @@ You can use JAX-RS `ExceptionMapper` to capture Quarkus Security authentication ---- package io.quarkus.it.keycloak; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.AuthenticationFailedException; @@ -123,8 +123,8 @@ You will then only need to customize the response, as outlined in the following ---- package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.security.AuthenticationFailedException; import io.vertx.core.Handler; diff --git a/docs/src/main/asciidoc/security-protect-service-application-using-oidc-bearer-authentication-tutorial.adoc b/docs/src/main/asciidoc/security-protect-service-application-using-oidc-bearer-authentication-tutorial.adoc index 328f509eafd16..3a5fb499b6115 100644 --- a/docs/src/main/asciidoc/security-protect-service-application-using-oidc-bearer-authentication-tutorial.adoc +++ b/docs/src/main/asciidoc/security-protect-service-application-using-oidc-bearer-authentication-tutorial.adoc @@ -88,10 +88,10 @@ Let's start by implementing the `/api/users/me` endpoint. As you can see from th ---- package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; import io.quarkus.security.identity.SecurityIdentity; @@ -131,11 +131,11 @@ The source code for the `/api/admin` endpoint is also very simple. The main diff ---- package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { diff --git a/docs/src/main/asciidoc/security-webauthn-concept.adoc b/docs/src/main/asciidoc/security-webauthn-concept.adoc index 606cd1dab998f..d2af30144d5bc 100644 --- a/docs/src/main/asciidoc/security-webauthn-concept.adoc +++ b/docs/src/main/asciidoc/security-webauthn-concept.adoc @@ -132,12 +132,12 @@ package org.acme.security.webauthn; import java.security.Principal; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/public") public class PublicResource { @@ -165,11 +165,11 @@ The source code for the `/api/admin` endpoint is also very simple. The main diff ---- package org.acme.security.webauthn; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -190,11 +190,11 @@ We are using `SecurityContext` to get access to the current authenticated Princi ---- package org.acme.security.webauthn; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/users") public class UserResource { @@ -221,11 +221,11 @@ package org.acme.security.webauthn; import java.util.ArrayList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; import io.quarkus.hibernate.reactive.panache.PanacheEntity; import io.smallrye.mutiny.Uni; @@ -337,8 +337,8 @@ We also need a second entity for the credentials: ---- package org.acme.security.webauthn; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.reactive.panache.PanacheEntity; @@ -362,10 +362,10 @@ And last but not least, our user entity: ---- package org.acme.security.webauthn; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import io.quarkus.hibernate.reactive.panache.PanacheEntity; import io.smallrye.mutiny.Uni; @@ -416,7 +416,7 @@ import java.util.HashSet; import java.util.List; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; import io.quarkus.security.webauthn.WebAuthnUserProvider; @@ -934,13 +934,13 @@ package org.acme.security.webauthn; import java.net.URI; -import javax.inject.Inject; -import javax.ws.rs.BeanParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.inject.Inject; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.jboss.resteasy.reactive.RestForm; @@ -1277,7 +1277,7 @@ manually, we need to override the `WebAuthnUserProvider` with one that doesn't u ---- package org.acme.security.webauthn.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.acme.security.webauthn.MyWebAuthnSetup; diff --git a/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc b/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc index 89ac22f169bd5..c4660e2dd5fff 100644 --- a/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc +++ b/docs/src/main/asciidoc/smallrye-fault-tolerance.adoc @@ -113,7 +113,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class CoffeeRepositoryService { @@ -155,9 +155,9 @@ package org.acme.microprofile.faulttolerance; import java.util.List; import java.util.Random; import java.util.concurrent.atomic.AtomicLong; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.logging.Logger; diff --git a/docs/src/main/asciidoc/smallrye-graphql-client.adoc b/docs/src/main/asciidoc/smallrye-graphql-client.adoc index 6bafc2ea51b8f..75e7fe81beaa0 100644 --- a/docs/src/main/asciidoc/smallrye-graphql-client.adoc +++ b/docs/src/main/asciidoc/smallrye-graphql-client.adoc @@ -34,7 +34,7 @@ Any input and output objects for the operation will be translated to/from their in the GraphQL query language. The *dynamic* client, on the other hand, works rather like an equivalent of the JAX-RS client -from the `javax.ws.rs.client` package. It does not require the domain classes to work, it works with +from the `jakarta.ws.rs.client` package. It does not require the domain classes to work, it works with abstract representations of GraphQL documents instead. Documents are built using a domain-specific language (DSL). The exchanged objects are treated as an abstract `JsonObject`, but, when necessary, it is possible to convert them to concrete model objects (if suitable model classes are available). diff --git a/docs/src/main/asciidoc/smallrye-health.adoc b/docs/src/main/asciidoc/smallrye-health.adoc index a0e0039e69fc5..55bab4d8c1b74 100644 --- a/docs/src/main/asciidoc/smallrye-health.adoc +++ b/docs/src/main/asciidoc/smallrye-health.adoc @@ -114,7 +114,7 @@ import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Liveness; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Liveness @ApplicationScoped <1> <2> @@ -168,7 +168,7 @@ import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Readiness; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Readiness @ApplicationScoped @@ -213,7 +213,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 @ApplicationScoped @@ -247,7 +247,7 @@ import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.HealthCheckResponseBuilder; import org.eclipse.microprofile.health.Readiness; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Readiness @ApplicationScoped @@ -316,7 +316,7 @@ import org.eclipse.microprofile.health.Liveness; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Liveness @ApplicationScoped @@ -374,7 +374,7 @@ import io.smallrye.health.api.AsyncHealthCheck; import org.eclipse.microprofile.health.Liveness; import org.eclipse.microprofile.health.HealthCheckResponse; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Liveness @ApplicationScoped diff --git a/docs/src/main/asciidoc/smallrye-metrics.adoc b/docs/src/main/asciidoc/smallrye-metrics.adoc index 442c69bf7b9c5..f1874e40b926c 100644 --- a/docs/src/main/asciidoc/smallrye-metrics.adoc +++ b/docs/src/main/asciidoc/smallrye-metrics.adoc @@ -101,10 +101,10 @@ import org.eclipse.microprofile.metrics.annotation.Counted; import org.eclipse.microprofile.metrics.annotation.Gauge; import org.eclipse.microprofile.metrics.annotation.Timed; -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 PrimeNumberChecker { diff --git a/docs/src/main/asciidoc/spring-boot-properties.adoc b/docs/src/main/asciidoc/spring-boot-properties.adoc index 1547546f37c01..17ac3085e1e12 100644 --- a/docs/src/main/asciidoc/spring-boot-properties.adoc +++ b/docs/src/main/asciidoc/spring-boot-properties.adoc @@ -69,10 +69,10 @@ First, create a `GreetingResource` JAX-RS resource in the ---- package org.acme.spring.boot.properties; -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("/hello") public class GreetingResource { @@ -118,11 +118,11 @@ Now modify `GreetingResource` to start using the `GreetingProperties`: ---- package org.acme.spring.boot.properties; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/greeting") public class GreetingResource { @@ -191,11 +191,11 @@ And update the `GreetingResource` and its test `GreetingResourceTest`: ---- package org.acme.spring.boot.properties; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/greeting") public class GreetingResource { @@ -270,11 +270,11 @@ And update the `GreetingResource` and its test `GreetingResourceTest`: ---- package org.acme.spring.boot.properties; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/greeting") public class GreetingResource { @@ -364,11 +364,11 @@ greeting.message.text = hello ---- package org.acme.spring.boot.properties; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/greeting") public class GreetingResource { diff --git a/docs/src/main/asciidoc/spring-cache.adoc b/docs/src/main/asciidoc/spring-cache.adoc index 75807f3294506..667ffa5bcc955 100644 --- a/docs/src/main/asciidoc/spring-cache.adoc +++ b/docs/src/main/asciidoc/spring-cache.adoc @@ -133,9 +133,9 @@ import java.time.LocalDate; import java.util.Arrays; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.RestQuery; diff --git a/docs/src/main/asciidoc/spring-cloud-config-client.adoc b/docs/src/main/asciidoc/spring-cloud-config-client.adoc index 12978d647ccec..dc8dbc2dac2f8 100644 --- a/docs/src/main/asciidoc/spring-cloud-config-client.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config-client.adoc @@ -65,10 +65,10 @@ First, create a simple `GreetingResource` JAX-RS resource in the ---- package org.acme.spring.spring.cloud.config.client; -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("/hello") public class GreetingResource { @@ -87,10 +87,10 @@ As we want to use configuration properties obtained from the Config Server, we w ---- package org.acme.spring.spring.cloud.config.client; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/docs/src/main/asciidoc/spring-data-jpa.adoc b/docs/src/main/asciidoc/spring-data-jpa.adoc index 66350c5c6578a..724e70274d3c6 100644 --- a/docs/src/main/asciidoc/spring-data-jpa.adoc +++ b/docs/src/main/asciidoc/spring-data-jpa.adoc @@ -67,9 +67,9 @@ Throughout the course of this guide, the following JPA Entity will be used: ---- package org.acme.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Fruit { @@ -192,11 +192,11 @@ Create `FruitResource` with the following content: ---- package org.acme.spring.data.jpa; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; import java.util.List; import java.util.Optional; diff --git a/docs/src/main/asciidoc/spring-data-rest.adoc b/docs/src/main/asciidoc/spring-data-rest.adoc index 1c889b168c509..96ebe5eafc156 100644 --- a/docs/src/main/asciidoc/spring-data-rest.adoc +++ b/docs/src/main/asciidoc/spring-data-rest.adoc @@ -87,9 +87,9 @@ Throughout the course of this guide, the following JPA Entity will be used: ---- package org.acme.spring.data.rest; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Fruit { @@ -419,12 +419,12 @@ It is important to annotate the correct method in order to customize its REST en ==== Securing endpoints -This extension will automatically use the Security annotations within the package `javax.annotation.security` that are defined on your resource interfaces: +This extension will automatically use the Security annotations within the package `jakarta.annotation.security` that are defined on your resource interfaces: [source,java] ---- -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; @DenyAll public interface FruitResource extends CrudRepository { diff --git a/docs/src/main/asciidoc/spring-di.adoc b/docs/src/main/asciidoc/spring-di.adoc index 1b2100e4aaab0..d2afae25f9d79 100644 --- a/docs/src/main/asciidoc/spring-di.adoc +++ b/docs/src/main/asciidoc/spring-di.adoc @@ -203,10 +203,10 @@ package org.acme.spring.di; import org.springframework.beans.factory.annotation.Autowired; -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("/greeting") public class GreeterResource { diff --git a/docs/src/main/asciidoc/spring-scheduled.adoc b/docs/src/main/asciidoc/spring-scheduled.adoc index e96aaf3123c4c..b3428806082b8 100644 --- a/docs/src/main/asciidoc/spring-scheduled.adoc +++ b/docs/src/main/asciidoc/spring-scheduled.adoc @@ -70,7 +70,7 @@ package org.acme.spring.scheduler; import org.springframework.scheduling.annotation.Scheduled; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped // <1> public class CounterBean { @@ -132,11 +132,11 @@ Create the `CountResource` class with the following content: ---- package org.acme.spring.scheduler; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/count") public class CountResource { diff --git a/docs/src/main/asciidoc/spring-web.adoc b/docs/src/main/asciidoc/spring-web.adoc index ce6664f34b23a..374526dd9c6c8 100644 --- a/docs/src/main/asciidoc/spring-web.adoc +++ b/docs/src/main/asciidoc/spring-web.adoc @@ -441,7 +441,7 @@ The following method return types are supported: === Controller method parameter types In addition to the method parameters that can be annotated with the appropriate Spring Web annotations from the previous table, -`javax.servlet.http.HttpServletRequest` and `javax.servlet.http.HttpServletResponse` are also supported. +`jakarta.servlet.http.HttpServletRequest` and `jakarta.servlet.http.HttpServletResponse` are also supported. For this to function however, users need to add the `quarkus-undertow` dependency. === Exception handler method return types @@ -514,7 +514,7 @@ The following table shows how Spring Web annotations can be converted to JAX-RS |@ExceptionHandler | -|No equivalent annotation in JAX-RS. Exceptions are handled by implementing `javax.ws.rs.ext.ExceptionMapper` +|No equivalent annotation in JAX-RS. Exceptions are handled by implementing `jakarta.ws.rs.ext.ExceptionMapper` |=== == More Spring guides diff --git a/docs/src/main/asciidoc/stork-kubernetes.adoc b/docs/src/main/asciidoc/stork-kubernetes.adoc index 41a12b19cfdef..0572cc5955726 100644 --- a/docs/src/main/asciidoc/stork-kubernetes.adoc +++ b/docs/src/main/asciidoc/stork-kubernetes.adoc @@ -315,9 +315,9 @@ package org.acme; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** * The REST Client interface. @@ -348,10 +348,10 @@ package org.acme; import org.eclipse.microprofile.rest.client.inject.RestClient; -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; /** * A frontend API using our REST Client (which uses Stork to locate and select the service instance on each call). diff --git a/docs/src/main/asciidoc/stork.adoc b/docs/src/main/asciidoc/stork.adoc index 5d3358a6fa15b..1f20ac054c0b4 100644 --- a/docs/src/main/asciidoc/stork.adoc +++ b/docs/src/main/asciidoc/stork.adoc @@ -113,8 +113,8 @@ import io.quarkus.runtime.StartupEvent; import io.vertx.mutiny.core.Vertx; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class BlueService { @@ -148,8 +148,8 @@ import io.quarkus.runtime.StartupEvent; import io.vertx.mutiny.core.Vertx; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class RedService { @@ -190,8 +190,8 @@ import io.vertx.ext.consul.ConsulClientOptions; import io.vertx.mutiny.core.Vertx; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class Registration { @@ -234,9 +234,9 @@ package org.acme; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** * The REST Client interface. @@ -269,10 +269,10 @@ package org.acme; import org.eclipse.microprofile.rest.client.inject.RestClient; -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; /** * A frontend API using our REST Client (which uses Stork to locate and select the service instance on each call). @@ -307,7 +307,7 @@ import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Provider; @Provider public class CustomLoggingFilter implements ResteasyReactiveClientRequestFilter { diff --git a/docs/src/main/asciidoc/tests-with-coverage.adoc b/docs/src/main/asciidoc/tests-with-coverage.adoc index 10a87a396ab33..6d07b11c8569a 100644 --- a/docs/src/main/asciidoc/tests-with-coverage.adoc +++ b/docs/src/main/asciidoc/tests-with-coverage.adoc @@ -55,11 +55,11 @@ First, a JAX-RS resource serving a hello endpoint: ---- package org.acme.testcoverage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { @@ -92,7 +92,7 @@ This endpoint uses a greeting service: ---- package org.acme.testcoverage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/docs/src/main/asciidoc/transaction.adoc b/docs/src/main/asciidoc/transaction.adoc index bc8561521b227..72a8e829ce443 100644 --- a/docs/src/main/asciidoc/transaction.adoc +++ b/docs/src/main/asciidoc/transaction.adoc @@ -43,7 +43,7 @@ the JTA `UserTransaction` API directly, however this is less user-friendly than === Declarative approach -The easiest way to define your transaction boundaries is to use the `@Transactional` annotation on your entry method (`javax.transaction.Transactional`). +The easiest way to define your transaction boundaries is to use the `@Transactional` annotation on your entry method (`jakarta.transaction.Transactional`). [source,java] ---- diff --git a/docs/src/main/asciidoc/validation.adoc b/docs/src/main/asciidoc/validation.adoc index 8e57b7f8b66e0..e43e9f1268685 100644 --- a/docs/src/main/asciidoc/validation.adoc +++ b/docs/src/main/asciidoc/validation.adoc @@ -76,8 +76,8 @@ Create the `org.acme.validation.Book` class with the following content: ---- package org.acme.validation; -import javax.validation.constraints.NotBlank; -import javax.validation.constraints.Min; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Min; public class Book { @@ -103,10 +103,10 @@ Create the following REST resource as `org.acme.validation.BookResource`: ---- package org.acme.validation; -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("/books") public class BookResource { @@ -207,8 +207,8 @@ The best option is then to annotate a method of your business service with your ---- package org.acme.validation; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.Valid; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.Valid; @ApplicationScoped public class BookService { @@ -287,12 +287,12 @@ you can very easily tweak it by declaring replacement beans that will be injecte If you create a bean of the following types in your application, it will automatically be injected into the `ValidatorFactory` configuration: - * `javax.validation.ClockProvider` - * `javax.validation.ConstraintValidator` - * `javax.validation.ConstraintValidatorFactory` - * `javax.validation.MessageInterpolator` - * `javax.validation.ParameterNameProvider` - * `javax.validation.TraversableResolver` + * `jakarta.validation.ClockProvider` + * `jakarta.validation.ConstraintValidator` + * `jakarta.validation.ConstraintValidatorFactory` + * `jakarta.validation.MessageInterpolator` + * `jakarta.validation.ParameterNameProvider` + * `jakarta.validation.TraversableResolver` * `org.hibernate.validator.spi.properties.GetterPropertySelectionStrategy` * `org.hibernate.validator.spi.nodenameprovider.PropertyNodeNameProvider` * `org.hibernate.validator.spi.scripting.ScriptEvaluatorFactory` @@ -335,7 +335,7 @@ public class MyEmailValidatorFactoryCustomizer implements ValidatorFactoryCustom ---- All beans implementing `ValidatorFactoryCustomizer` are applied, meaning you can have several of them. -If you need to enforce some ordering, you can use the usual `@javax.annotation.Priority` annotation - beans with higher priority are applied first. +If you need to enforce some ordering, you can use the usual `@jakarta.annotation.Priority` annotation - beans with higher priority are applied first. ==== Constraint validators as beans @@ -495,7 +495,7 @@ using a bootstrap that is Quarkus-specific. Creating a `ValidatorFactory` by yourself it not supported in native executables and if you try to do so, -you will get an error similar to `javax.validation.NoProviderFoundException: Unable to create a Configuration, because no +you will get an error similar to `jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.` when running your native executable. diff --git a/docs/src/main/asciidoc/vertx-reference.adoc b/docs/src/main/asciidoc/vertx-reference.adoc index 9f65e43ff7baf..4af928c091ef6 100644 --- a/docs/src/main/asciidoc/vertx-reference.adoc +++ b/docs/src/main/asciidoc/vertx-reference.adoc @@ -167,12 +167,12 @@ Now, in your code, you can create an instance of `WebClient`: package org.acme.vertx; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.smallrye.mutiny.Uni; @@ -263,10 +263,10 @@ package org.acme.vertx; import io.vertx.core.json.JsonObject; import io.vertx.core.json.JsonArray; -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("/hello") @Produces(MediaType.APPLICATION_JSON) @@ -348,7 +348,7 @@ import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.vertx.core.AbstractVerticle; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyBeanVerticle extends AbstractVerticle { @@ -375,8 +375,8 @@ package io.quarkus.vertx.verticles; import io.quarkus.runtime.StartupEvent; import io.vertx.mutiny.core.Vertx; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class VerticleDeployer { @@ -413,8 +413,8 @@ package org.acme.verticle; import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.vertx.core.AbstractVerticle; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; @Dependent public class MyVerticle extends AbstractVerticle { @@ -438,10 +438,10 @@ import io.quarkus.runtime.StartupEvent; import io.vertx.core.DeploymentOptions; import io.vertx.mutiny.core.Vertx; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; @ApplicationScoped public class MyApp { @@ -488,7 +488,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { @@ -526,7 +526,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import io.smallrye.mutiny.Uni; @@ -659,11 +659,11 @@ import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.eventbus.EventBus; import io.vertx.mutiny.core.eventbus.Message; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/async") public class EventResource { @@ -760,11 +760,11 @@ import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.eventbus.EventBus; import io.vertx.mutiny.core.eventbus.Message; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/bus") public class EventResource { @@ -797,7 +797,7 @@ package org.acme.vertx; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { @@ -850,9 +850,9 @@ import io.vertx.ext.web.Router; import io.vertx.ext.web.handler.sockjs.SockJSBridgeOptions; import io.vertx.ext.web.handler.sockjs.SockJSHandler; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import java.util.concurrent.atomic.AtomicInteger; @ApplicationScoped diff --git a/docs/src/main/asciidoc/vertx.adoc b/docs/src/main/asciidoc/vertx.adoc index 089c64cda1fa2..1f26c616b5fcb 100644 --- a/docs/src/main/asciidoc/vertx.adoc +++ b/docs/src/main/asciidoc/vertx.adoc @@ -121,9 +121,9 @@ import io.vertx.mutiny.core.Vertx; import java.nio.charset.StandardCharsets; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/vertx") // <1> public class VertxResource { @@ -291,7 +291,7 @@ So, first, add the following imports to the `src/main/java/org/acme/VertxResourc ---- import io.vertx.mutiny.core.eventbus.EventBus; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; ---- @@ -324,7 +324,7 @@ package org.acme; import io.quarkus.vertx.ConsumeEvent; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped // <1> public class GreetingService { diff --git a/docs/src/main/asciidoc/virtual-threads.adoc b/docs/src/main/asciidoc/virtual-threads.adoc index a1df10eb19821..abd75832d04d2 100644 --- a/docs/src/main/asciidoc/virtual-threads.adoc +++ b/docs/src/main/asciidoc/virtual-threads.adoc @@ -158,8 +158,8 @@ import org.acme.fortune.repository.FortuneRepository; import io.smallrye.common.annotation.RunOnVirtualThread; import io.smallrye.mutiny.Uni; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.List; import java.util.Random; @@ -209,8 +209,8 @@ import org.acme.fortune.repository.FortuneRepository; import io.smallrye.common.annotation.RunOnVirtualThread; import io.smallrye.mutiny.Uni; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.List; import java.util.Random; diff --git a/docs/src/main/asciidoc/websockets.adoc b/docs/src/main/asciidoc/websockets.adoc index 9ac772c40a532..e517ca24f9001 100644 --- a/docs/src/main/asciidoc/websockets.adoc +++ b/docs/src/main/asciidoc/websockets.adoc @@ -78,14 +78,14 @@ package org.acme.websockets; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; -import javax.websocket.OnClose; -import javax.websocket.OnError; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.server.PathParam; -import javax.websocket.server.ServerEndpoint; -import javax.websocket.Session; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.websocket.OnClose; +import jakarta.websocket.OnError; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.server.PathParam; +import jakarta.websocket.server.ServerEndpoint; +import jakarta.websocket.Session; @ServerEndpoint("/chat/{username}") // <1> @ApplicationScoped @@ -170,7 +170,7 @@ You can also test your web socket applications using the approach detailed {quic Quarkus also contains a WebSocket client. You can call `ContainerProvider.getWebSocketContainer().connectToServer` to create a websocket connection. By default, the `quarkus-websockets` artifact includes both client and server support. However, if you only want the client you can include `quarkus-websockets-client` instead. -When you connect to the server you can either pass in the Class of the annotated client endpoint you want to use, or an instance of `javax.websocket.Endpoint`. If you +When you connect to the server you can either pass in the Class of the annotated client endpoint you want to use, or an instance of `jakarta.websocket.Endpoint`. If you are using the annotated endpoint then you can use the exact same annotations as you can on the server, except it must be annotated with `@ClientEndpoint` instead of `@ServerEndpoint`. @@ -184,11 +184,11 @@ import java.net.URI; import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ClientEndpoint; -import javax.websocket.ContainerProvider; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpoint; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 91e6bcb283a32..c0625b131859a 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -1991,8 +1991,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.List; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.Liveness; import org.eclipse.microprofile.health.HealthCheck; @@ -2383,7 +2383,7 @@ The CDI layer processes CDI beans that are either explicitly registered or that .Register a Bean Defining Annotation [source,java] ---- -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.DotName; import io.quarkus.extest.runtime.TestAnnotation; @@ -2692,13 +2692,13 @@ public final class MyExtProcessor { resource.produce(new NativeImageResourceBuildItem( "META-INF/my-descriptor.xml")); //<2> - resourceBundle.produce(new NativeImageResourceBuildItem("javax.xml.bind.Messages")); //<3> + resourceBundle.produce(new NativeImageResourceBuildItem("jakarta.xml.bind.Messages")); //<3> } } ---- <1> Indicate that the /security/runtime.keys classpath resource should be copied into native image. <2> Indicate that the `META-INF/my-descriptor.xml` resource should be copied into native image -<3> Indicate that the "javax.xml.bind.Messages" resource bundle should be copied into native image. +<3> Indicate that the "jakarta.xml.bind.Messages" resource bundle should be copied into native image. ==== Service files diff --git a/docs/src/main/asciidoc/writing-native-applications-tips.adoc b/docs/src/main/asciidoc/writing-native-applications-tips.adoc index 9f980abf296d9..c5a30df7100d9 100644 --- a/docs/src/main/asciidoc/writing-native-applications-tips.adoc +++ b/docs/src/main/asciidoc/writing-native-applications-tips.adoc @@ -175,7 +175,7 @@ If we were to use the code above, we would get an exception like the following w [source] ---- -Exception handling request to /person: org.jboss.resteasy.spi.UnhandledException: javax.json.bind.JsonbException: Can't create instance of a class: class org.acme.jsonb.Person, No default constructor found +Exception handling request to /person: org.jboss.resteasy.spi.UnhandledException: jakarta.json.bind.JsonbException: Can't create instance of a class: class org.acme.jsonb.Person, No default constructor found ---- or if you are using Jackson: diff --git a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java index 59f72061b792d..404c5e95efc62 100644 --- a/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java +++ b/extensions/agroal/deployment/src/main/java/io/quarkus/agroal/deployment/AgroalProcessor.java @@ -9,10 +9,11 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.enterprise.inject.Default; -import javax.inject.Singleton; import javax.sql.XADataSource; +import jakarta.enterprise.inject.Default; +import jakarta.inject.Singleton; + import org.jboss.jandex.DotName; import org.jboss.logging.Logger; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/AgroalMetricsTestCase.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/AgroalMetricsTestCase.java index bff4db9e227e6..ae450c67ebb3e 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/AgroalMetricsTestCase.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/AgroalMetricsTestCase.java @@ -4,7 +4,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.Gauge; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DataSourceHealthCheckWithExtraProducerTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DataSourceHealthCheckWithExtraProducerTest.java index 84e109ece6f44..eed6b117bf038 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DataSourceHealthCheckWithExtraProducerTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DataSourceHealthCheckWithExtraProducerTest.java @@ -11,10 +11,11 @@ import java.sql.SQLFeatureNotSupportedException; import java.util.logging.Logger; -import javax.enterprise.inject.Produces; -import javax.inject.Qualifier; import javax.sql.DataSource; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Qualifier; + import org.hamcrest.CoreMatchers; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java index eca93780eaee3..82a39be7771e9 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DefaultDataSourceConfigTest.java @@ -10,7 +10,7 @@ import java.sql.SQLException; import java.time.Duration; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeResource.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeResource.java index f9aa6c7f1ba61..6f275b84147e2 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeResource.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeResource.java @@ -5,10 +5,11 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; import javax.sql.DataSource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/dev") public class DevModeResource { diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeTestEndpoint.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeTestEndpoint.java index d8a641e6299a1..572663fce573f 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeTestEndpoint.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevModeTestEndpoint.java @@ -5,10 +5,10 @@ import java.net.URLDecoder; import java.nio.charset.StandardCharsets; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.agroal.api.AgroalDataSource; import io.quarkus.agroal.DataSource; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevServicesH2DatasourceTestCase.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevServicesH2DatasourceTestCase.java index bf750efb887e0..60c402a7c5585 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevServicesH2DatasourceTestCase.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DevServicesH2DatasourceTestCase.java @@ -8,7 +8,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DisabledTransactionDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DisabledTransactionDataSourceConfigTest.java index 18c40907e778b..7d119341a723e 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DisabledTransactionDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/DisabledTransactionDataSourceConfigTest.java @@ -6,7 +6,7 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/FlushOnCloseDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/FlushOnCloseDataSourceConfigTest.java index 1352b04bc6fdc..aa9dfd71843ed 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/FlushOnCloseDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/FlushOnCloseDataSourceConfigTest.java @@ -8,8 +8,8 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; import org.jboss.shrinkwrap.api.asset.EmptyAsset; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesConfigTest.java index 1c0506a38b8bf..2348746ad5e61 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesConfigTest.java @@ -4,7 +4,7 @@ import java.sql.SQLException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesErroneousButWorkingConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesErroneousButWorkingConfigTest.java index d8154cc39634b..51e74c5372284 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesErroneousButWorkingConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDataSourcesErroneousButWorkingConfigTest.java @@ -4,7 +4,7 @@ import java.sql.SQLException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDevServicesDataSourcesConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDevServicesDataSourcesConfigTest.java index 786123ddcabea..149d0c55bb4a5 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDevServicesDataSourcesConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/MultipleDevServicesDataSourcesConfigTest.java @@ -6,7 +6,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java index 0fd72eeccf9be..5560036234a51 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NamedDataSourceConfigTest.java @@ -7,7 +7,7 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NoNettyDataSourceConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NoNettyDataSourceConfigTest.java index 263f4651bf2b5..996c11cc81bcb 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NoNettyDataSourceConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/NoNettyDataSourceConfigTest.java @@ -3,7 +3,7 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolInterceptorsTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolInterceptorsTest.java index 510ecb9608893..a05e53a1c991b 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolInterceptorsTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolInterceptorsTest.java @@ -3,8 +3,8 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolLessTestCase.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolLessTestCase.java index 20a8b2dd85e68..e575e9072b3bb 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolLessTestCase.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/PoolLessTestCase.java @@ -4,7 +4,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/UnknownDriverConfigTest.java b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/UnknownDriverConfigTest.java index b5a5e602e85b5..48c87cca8dc2b 100644 --- a/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/UnknownDriverConfigTest.java +++ b/extensions/agroal/deployment/src/test/java/io/quarkus/agroal/test/UnknownDriverConfigTest.java @@ -7,7 +7,7 @@ import java.sql.SQLException; import java.time.Duration; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/DataSource.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/DataSource.java index cdf7ea6fde4e6..69c70c6dd6bb1 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/DataSource.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/DataSource.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Qualifier used to specify which datasource will be injected. diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java index e0c703bc38a0c..fe497d2ce0bf2 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/DataSources.java @@ -13,13 +13,13 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.annotation.PreDestroy; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import org.jboss.logging.Logger; import org.jboss.tm.XAResourceRecoveryRegistry; diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/JdbcDriver.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/JdbcDriver.java index 60e69bfca3b5d..1791d3b78f1e8 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/JdbcDriver.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/JdbcDriver.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Defines which database the JDBC driver is compatible with. diff --git a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/health/DataSourceHealthCheck.java b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/health/DataSourceHealthCheck.java index dcf5df7c3664e..36f7fd7d7a2fd 100644 --- a/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/health/DataSourceHealthCheck.java +++ b/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/health/DataSourceHealthCheck.java @@ -5,10 +5,11 @@ import java.util.Map; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; import javax.sql.DataSource; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; + import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.HealthCheckResponseBuilder; diff --git a/extensions/amazon-lambda-http/http-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java b/extensions/amazon-lambda-http/http-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java index 9a7b50c9a38ce..375acb1a72f0d 100644 --- a/extensions/amazon-lambda-http/http-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java +++ b/extensions/amazon-lambda-http/http-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java @@ -3,11 +3,11 @@ import java.util.HashMap; import java.util.concurrent.Future; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java b/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java index 63cd0cdcc30ea..0d4e47b984ee0 100644 --- a/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java +++ b/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java @@ -1,9 +1,9 @@ package ${package}; -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("/hello") public class GreetingResource { diff --git a/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java b/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java index 9ea933ac90f4f..74bdaa92f3b69 100644 --- a/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java +++ b/extensions/amazon-lambda-http/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java index f06d78ddce59d..dc16614d36a37 100644 --- a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java +++ b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java @@ -3,11 +3,11 @@ import java.util.Collections; import java.util.Map; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java index 2b31ac455fc1f..4984b060fc758 100644 --- a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java +++ b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java index 4b1c91c3ff8e5..f655a66a59b8d 100644 --- a/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java +++ b/extensions/amazon-lambda-http/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java @@ -5,10 +5,10 @@ import java.util.Optional; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java b/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java index 63cd0cdcc30ea..0d4e47b984ee0 100644 --- a/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java +++ b/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingResource.java @@ -1,9 +1,9 @@ package ${package}; -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("/hello") public class GreetingResource { diff --git a/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java b/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java index 9ea933ac90f4f..74bdaa92f3b69 100644 --- a/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java +++ b/extensions/amazon-lambda-rest/maven-archetype/src/main/resources/archetype-resources/src/main/java/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/extensions/amazon-lambda-rest/rest-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java b/extensions/amazon-lambda-rest/rest-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java index 12cf93ac581e4..13d69b62cc9e1 100644 --- a/extensions/amazon-lambda-rest/rest-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java +++ b/extensions/amazon-lambda-rest/rest-event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java @@ -3,11 +3,11 @@ import java.util.HashMap; import java.util.concurrent.Future; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java index 101885641518e..aedfc48fce2cf 100644 --- a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java +++ b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/AwsHttpContextProducers.java @@ -3,11 +3,11 @@ import java.util.Collections; import java.util.Map; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import com.amazonaws.services.lambda.runtime.Context; diff --git a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java index 0a4ed7294ae72..f9724fa8b4837 100644 --- a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java +++ b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/DefaultLambdaIdentityProvider.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.amazon.lambda.http.model.AwsProxyRequest; import io.quarkus.amazon.lambda.http.model.AwsProxyRequestContext; diff --git a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java index ad7b7f234911b..e535a4213a799 100644 --- a/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java +++ b/extensions/amazon-lambda-rest/runtime/src/main/java/io/quarkus/amazon/lambda/http/LambdaHttpAuthenticationMechanism.java @@ -5,10 +5,10 @@ import java.util.Optional; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import io.quarkus.amazon.lambda.http.model.AwsProxyRequest; import io.quarkus.security.identity.IdentityProvider; diff --git a/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java b/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java index c8d78d0caf3b2..17b71080c46e1 100644 --- a/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java +++ b/extensions/amazon-lambda/deployment/src/main/java/io/quarkus/amazon/lambda/deployment/AmazonLambdaProcessor.java @@ -11,7 +11,7 @@ import java.util.Optional; import java.util.Set; -import javax.inject.Named; +import jakarta.inject.Named; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/amazon-lambda/event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java b/extensions/amazon-lambda/event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java index d6f98929b281d..17972d771aa51 100644 --- a/extensions/amazon-lambda/event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java +++ b/extensions/amazon-lambda/event-server/src/test/java/io/quarkus/amazon/lambda/runtime/EventServerTest.java @@ -2,11 +2,11 @@ import java.util.concurrent.Future; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java index 8c6a5b24ebaca..0e01f030363cc 100644 --- a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java +++ b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java @@ -1,6 +1,6 @@ package ${package}; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ProcessingService { diff --git a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/StreamLambda.java b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/StreamLambda.java index 314f90bd18f3c..2cf39878ca243 100644 --- a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/StreamLambda.java +++ b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/StreamLambda.java @@ -1,6 +1,6 @@ package ${package}; -import javax.inject.Named; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestStreamHandler; diff --git a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestLambda.java b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestLambda.java index 167b7f25510b2..640ca4f195094 100644 --- a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestLambda.java +++ b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestLambda.java @@ -1,7 +1,7 @@ package ${package}; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; diff --git a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedLambda.java b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedLambda.java index 8f218add00908..8d11a903fb1c9 100644 --- a/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedLambda.java +++ b/extensions/amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedLambda.java @@ -1,7 +1,7 @@ package ${package}; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; diff --git a/extensions/amazon-lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaConfig.java b/extensions/amazon-lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaConfig.java index c22d3462f2bf4..8335b3f3d3a08 100644 --- a/extensions/amazon-lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaConfig.java +++ b/extensions/amazon-lambda/runtime/src/main/java/io/quarkus/amazon/lambda/runtime/LambdaConfig.java @@ -10,7 +10,7 @@ public class LambdaConfig { /** - * The handler name. Handler names are specified on handler classes using the {@link @javax.inject.Named} annotation. + * The handler name. Handler names are specified on handler classes using the {@link @jakarta.inject.Named} annotation. * * If this name is unspecified and there is exactly one unnamed implementation of * {@link com.amazonaws.services.lambda.runtime.RequestHandler} diff --git a/extensions/arc/deployment/pom.xml b/extensions/arc/deployment/pom.xml index 74666d60cd6c4..d3ae086a16991 100644 --- a/extensions/arc/deployment/pom.xml +++ b/extensions/arc/deployment/pom.xml @@ -46,9 +46,9 @@ - org.jboss.spec.javax.ejb - jboss-ejb-api_3.1_spec - 1.0.2.Final + jakarta.ejb + jakarta.ejb-api + 4.0.1 test diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java index 228f0e8845a34..9ea0451e9e748 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java @@ -38,7 +38,7 @@ public class ArcConfig { *
  • does not have a name,
  • *
  • does not declare an observer,
  • *
  • does not declare any producer which is eligible for injection to any injection point,
  • - *
  • is not directly eligible for injection into any {@link javax.enterprise.inject.Instance} injection point
  • + *
  • is not directly eligible for injection into any {@link jakarta.enterprise.inject.Instance} injection point
  • *
* * @see UnremovableBeanBuildItem @@ -97,14 +97,14 @@ public class ArcConfig { * * Each element value is used to match an alternative bean class, an alternative stereotype annotation type or a bean class * that declares an alternative producer. If any value matches then the priority of {@link Integer#MAX_VALUE} is used for - * the relevant bean. The priority declared via {@link javax.annotation.Priority} or + * the relevant bean. The priority declared via {@link jakarta.annotation.Priority} or * {@link io.quarkus.arc.AlternativePriority} is overridden. */ @ConfigItem public Optional> selectedAlternatives; /** - * If set to true then {@code javax.enterprise.inject.Produces} is automatically added to all non-void methods that are + * If set to true then {@code jakarta.enterprise.inject.Produces} is automatically added to all non-void methods that are * annotated with a scope annotation, a stereotype or a qualifier, and are not annotated with {@code Inject} or * {@code Produces}, and no parameter is annotated with {@code Disposes}, {@code Observes} or {@code ObservesAsync}. */ @@ -171,8 +171,8 @@ public class ArcConfig { * If set to true then the container attempts to detect wrong usages of annotations and eventually fails the build to * prevent unexpected behavior of a Quarkus application. *

- * A typical example is {@code @javax.ejb.Singleton} which is often confused with {@code @javax.inject.Singleton}. As a - * result a component annotated with {@code @javax.ejb.Singleton} would be completely ignored. Another example is an inner + * A typical example is {@code @jakarta.ejb.Singleton} which is often confused with {@code @jakarta.inject.Singleton}. As a + * result a component annotated with {@code @jakarta.ejb.Singleton} would be completely ignored. Another example is an inner * class annotated with a scope annotation - this component would be again completely ignored. */ @ConfigItem(defaultValue = "true") diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcProcessor.java index faa0e98f9f3b3..de570503f99e5 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcProcessor.java @@ -19,10 +19,10 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.AmbiguousResolutionException; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; @@ -681,7 +681,7 @@ void initTestApplicationClassPredicateBean(ArcRecorder recorder, BeanContainerBu @BuildStep List marker() { return Arrays.asList(new AdditionalApplicationArchiveMarkerBuildItem("META-INF/beans.xml"), - new AdditionalApplicationArchiveMarkerBuildItem("META-INF/services/javax.enterprise.inject.spi.Extension")); + new AdditionalApplicationArchiveMarkerBuildItem("META-INF/services/jakarta.enterprise.inject.spi.Extension")); } @BuildStep diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoInjectAnnotationBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoInjectAnnotationBuildItem.java index 9cdcb3ed4ae7d..7790980340de8 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoInjectAnnotationBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoInjectAnnotationBuildItem.java @@ -3,7 +3,7 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.jandex.DotName; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoProducerMethodsProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoProducerMethodsProcessor.java index a1cf21c30d99e..6baf5c6ab4d2d 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoProducerMethodsProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/AutoProducerMethodsProcessor.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java index 978b99960df4e..5229798998106 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java @@ -26,8 +26,8 @@ import java.util.function.Supplier; import java.util.stream.Stream; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.CreationException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.CreationException; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigValue; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/InterceptorBindingRegistrarBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/InterceptorBindingRegistrarBuildItem.java index 308bb79a6a653..329201ab1a131 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/InterceptorBindingRegistrarBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/InterceptorBindingRegistrarBuildItem.java @@ -5,7 +5,7 @@ /** * Makes it possible to register annotations that should be considered interceptor bindings but are not annotated with - * {@code javax.interceptor.InterceptorBinding}. + * {@code jakarta.interceptor.InterceptorBinding}. */ public final class InterceptorBindingRegistrarBuildItem extends MultiBuildItem { @@ -18,4 +18,4 @@ public InterceptorBindingRegistrarBuildItem(InterceptorBindingRegistrar registra public InterceptorBindingRegistrar getInterceptorBindingRegistrar() { return registrar; } -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/QualifierRegistrarBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/QualifierRegistrarBuildItem.java index 61ba26d156ec8..500f13b1ebe4a 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/QualifierRegistrarBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/QualifierRegistrarBuildItem.java @@ -5,7 +5,7 @@ /** * Makes it possible to register annotations that should be considered qualifiers but are not annotated with - * {@code javax.inject.Qualifier}. + * {@code jakarta.inject.Qualifier}. */ public final class QualifierRegistrarBuildItem extends MultiBuildItem { @@ -18,4 +18,4 @@ public QualifierRegistrarBuildItem(QualifierRegistrar registrar) { public QualifierRegistrar getQualifierRegistrar() { return registrar; } -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StartupBuildSteps.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StartupBuildSteps.java index 4e08d4f01c182..8fe0e03af62b2 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StartupBuildSteps.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StartupBuildSteps.java @@ -5,9 +5,9 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.ObserverMethod; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StereotypeRegistrarBuildItem.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StereotypeRegistrarBuildItem.java index 578850c253ffd..dfd84bb58ce5d 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StereotypeRegistrarBuildItem.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/StereotypeRegistrarBuildItem.java @@ -5,7 +5,7 @@ /** * Makes it possible to register annotations that should be considered stereotypes but are not annotated with - * {@code javax.enterprise.inject.Stereotype}. + * {@code jakarta.enterprise.inject.Stereotype}. */ public final class StereotypeRegistrarBuildItem extends MultiBuildItem { diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/SyntheticBeansProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/SyntheticBeansProcessor.java index 7161c6bf4cb55..f48c4cbbde3e3 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/SyntheticBeansProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/SyntheticBeansProcessor.java @@ -6,7 +6,7 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.enterprise.inject.CreationException; +import jakarta.enterprise.inject.CreationException; import org.jboss.jandex.DotName; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/WrongAnnotationUsageProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/WrongAnnotationUsageProcessor.java index e10d994a4e877..2d7434b23e08b 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/WrongAnnotationUsageProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/WrongAnnotationUsageProcessor.java @@ -42,12 +42,12 @@ void detect(ArcConfig config, ApplicationIndexBuildItem applicationIndex, Custom @Override public String apply(AnnotationInstance annotationInstance) { - return String.format("%s declared on %s, use @javax.inject.Singleton instead", + return String.format("%s declared on %s, use @jakarta.inject.Singleton instead", annotationInstance.toString(false), getTargetInfo(annotationInstance)); } }; unsupported.add(new UnsupportedAnnotation(DotName.createSimple("com.google.inject.Singleton"), singletonFun)); - unsupported.add(new UnsupportedAnnotation(DotName.createSimple("javax.ejb.Singleton"), singletonFun)); + unsupported.add(new UnsupportedAnnotation(DotName.createSimple("jakarta.ejb.Singleton"), singletonFun)); unsupported.add(new UnsupportedAnnotation(DotName.createSimple("groovy.lang.Singleton"), singletonFun)); unsupported.add(new UnsupportedAnnotation(DotName.createSimple("jakarta.ejb.Singleton"), singletonFun)); diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevInterceptorInfo.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevInterceptorInfo.java index fcdc7679623ee..1322965d7693d 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevInterceptorInfo.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevInterceptorInfo.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.InterceptionType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.MethodInfo; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevObserverInfo.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevObserverInfo.java index 372e3aa0eb92b..c24383d931a0e 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevObserverInfo.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevObserverInfo.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; import io.quarkus.arc.deployment.CompletedApplicationClassPredicateBuildItem; import io.quarkus.arc.processor.ObserverInfo; diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java index da06c71e42253..c8716fb2ed2d2 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java @@ -20,9 +20,9 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/extensions/arc/deployment/src/test/java/B.java b/extensions/arc/deployment/src/test/java/B.java index 5194ebda21cdd..f066e8bebfc5c 100644 --- a/extensions/arc/deployment/src/test/java/B.java +++ b/extensions/arc/deployment/src/test/java/B.java @@ -1,8 +1,8 @@ import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/arc/deployment/src/test/java/C.java b/extensions/arc/deployment/src/test/java/C.java index aa51f51320b50..57cac3b6b2179 100644 --- a/extensions/arc/deployment/src/test/java/C.java +++ b/extensions/arc/deployment/src/test/java/C.java @@ -1,6 +1,6 @@ -import javax.inject.Inject; +import jakarta.inject.Inject; -@javax.inject.Singleton +@jakarta.inject.Singleton public class C { private B b; diff --git a/extensions/arc/deployment/src/test/java/L.java b/extensions/arc/deployment/src/test/java/L.java index f385d890d5113..8151246b643f1 100644 --- a/extensions/arc/deployment/src/test/java/L.java +++ b/extensions/arc/deployment/src/test/java/L.java @@ -1,4 +1,4 @@ -@javax.inject.Singleton +@jakarta.inject.Singleton public class L { private final C c; diff --git a/extensions/arc/deployment/src/test/java/SingleLetterDefaultPackageTest.java b/extensions/arc/deployment/src/test/java/SingleLetterDefaultPackageTest.java index a7427a72b0e86..a9aa3ea64f38c 100644 --- a/extensions/arc/deployment/src/test/java/SingleLetterDefaultPackageTest.java +++ b/extensions/arc/deployment/src/test/java/SingleLetterDefaultPackageTest.java @@ -1,6 +1,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java index 35c473f0c65bb..9a5049bfaa727 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBean.java @@ -3,10 +3,10 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Provider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java index 9b162bfbf1fa4..5575471671ed6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/SimpleBeanTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.wildfly.common.Assert.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Foo.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Foo.java index 761f616c60fc0..62a140a633ad3 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Foo.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Foo.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.alternatives; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Foo { @@ -9,4 +9,4 @@ public String ping() { return getClass().getName(); } -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Producers.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Producers.java index e4af5a4981c40..996d5e1542764 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Producers.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/Producers.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.alternatives; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; @ApplicationScoped class Producers { @@ -16,4 +16,4 @@ class Producers { public String bravo() { return "bravo"; } -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesFqcnTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesFqcnTest.java index 655ea198f2988..8f0ba184b6df9 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesFqcnTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesFqcnTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageStartsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageStartsTest.java index dc24f009e36a9..06e46d962fa6c 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageStartsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageStartsTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageTest.java index 28d2579f8722c..0a4926974ef39 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesPackageTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesSimpleNameTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesSimpleNameTest.java index d4a3d6f8e29d3..8fe9e7acc8cf9 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesSimpleNameTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/SelectedAlternativesSimpleNameTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/bar/MyStereotype.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/bar/MyStereotype.java index ee139c1661646..1943f5bdcf24f 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/bar/MyStereotype.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/alternatives/bar/MyStereotype.java @@ -5,9 +5,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Stereotype; @Alternative @Dependent @@ -15,4 +15,4 @@ @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) public @interface MyStereotype { -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/annotations/SharedLiteralWithPrivateDefaultTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/annotations/SharedLiteralWithPrivateDefaultTest.java index 44f28a75620f3..5583e5fa4a005 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/annotations/SharedLiteralWithPrivateDefaultTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/annotations/SharedLiteralWithPrivateDefaultTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/arguments/CommandLineArgumentsTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/arguments/CommandLineArgumentsTestCase.java index a30169b488337..4ab973c62960e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/arguments/CommandLineArgumentsTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/arguments/CommandLineArgumentsTestCase.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.arguments; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoinject/AutoFieldInjectionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoinject/AutoFieldInjectionTest.java index 96b10acffdbbd..186a3539705f3 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoinject/AutoFieldInjectionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoinject/AutoFieldInjectionTest.java @@ -12,10 +12,10 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodDisabledTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodDisabledTest.java index 231b3adb4f36a..e45da53066d4b 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodDisabledTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodDisabledTest.java @@ -11,12 +11,12 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodTest.java index 75a497e3afe32..dadedda6c431f 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoproduces/AutoProducerMethodTest.java @@ -14,11 +14,11 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Model; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Model; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoscope/AutoScopeBuildItemTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoscope/AutoScopeBuildItemTest.java index ec9038412da26..9212a428a2224 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoscope/AutoScopeBuildItemTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/autoscope/AutoScopeBuildItemTest.java @@ -6,9 +6,9 @@ import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.junit.jupiter.api.Test; @@ -59,7 +59,7 @@ public void execute(BuildContext context) { }).setLogRecordPredicate(log -> "AutoScopeBuildItemTest".equals(log.getLoggerName())) .assertLogRecords(records -> { assertEquals(1, records.size()); - assertEquals("javax.inject.Singleton:Foo!", records.get(0).getMessage()); + assertEquals("jakarta.inject.Singleton:Foo!", records.get(0).getMessage()); }); @Inject diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/bda/BeanDefiningAnnotationScopeTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/bda/BeanDefiningAnnotationScopeTest.java index 069008aba8a71..775811adf046c 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/bda/BeanDefiningAnnotationScopeTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/bda/BeanDefiningAnnotationScopeTest.java @@ -12,13 +12,13 @@ import java.util.UUID; import java.util.function.Consumer; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Stereotype; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Stereotype; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.jboss.jandex.DotName; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java index d9a1741335be7..dd7c6e61b8037 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigArrayConverterTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java index 1762af06bdf97..8132c0b8e796f 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigImplicitConverterTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Provider; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingInstanceTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingInstanceTest.java index 95b6085d8efac..f06ef7b7f48e7 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingInstanceTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingInstanceTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperties; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingTest.java index e651d90957fc2..be92a6f2d2c22 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigMappingTest.java @@ -14,8 +14,8 @@ import java.util.OptionalInt; import java.util.stream.Stream; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.spi.Converter; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigOptionalsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigOptionalsTest.java index f470551e44df5..213bdeea4f223 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigOptionalsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigOptionalsTest.java @@ -9,10 +9,10 @@ import java.util.OptionalInt; import java.util.OptionalLong; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Provider; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Provider; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertiesTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertiesTest.java index 77240a0531527..89f7fecc2b2bd 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertiesTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertiesTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperties; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java index 98f8cacbdba5a..549b9c355218f 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionValidationTest.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.config; -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 org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionWithoutInjectAnnotationTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionWithoutInjectAnnotationTest.java index 01bd589c223bb..32e6d82fd2d20 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionWithoutInjectAnnotationTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/ConfigPropertyInjectionWithoutInjectAnnotationTest.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.config; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/IndexedPropertiesInjectionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/IndexedPropertiesInjectionTest.java index c7f9cf265428b..3f80ccc8d7a2d 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/IndexedPropertiesInjectionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/IndexedPropertiesInjectionTest.java @@ -14,8 +14,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -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 org.eclipse.microprofile.config.spi.Converter; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/NullConverterTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/NullConverterTest.java index 4dfe167c1c9ab..6d5c22e8347fe 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/NullConverterTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/NullConverterTest.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.config; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.config.spi.Converter; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigMappingTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigMappingTest.java index 056fa27eddfa8..a316b1170e49e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigMappingTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigMappingTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertiesTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertiesTest.java index ec4afc607053d..d025706df9030 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertiesTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertiesTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperties; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertyTest.java index c961a8c0f6610..a5d5388e47ec9 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/RemovedConfigPropertyTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/SomeBeanUsingConfig.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/SomeBeanUsingConfig.java index 36eaee3a6f50c..b4a834ae028f6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/SomeBeanUsingConfig.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/SomeBeanUsingConfig.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.config; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/UnremovedConfigMappingTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/UnremovedConfigMappingTest.java index 62aec774965d9..a7278367d2a54 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/UnremovedConfigMappingTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/config/UnremovedConfigMappingTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/configroot/ConfigRootInjectionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/configroot/ConfigRootInjectionTest.java index 283fe7c195cd3..d92809ccf9814 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/configroot/ConfigRootInjectionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/configroot/ConfigRootInjectionTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/context/CustomPseudoScopeTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/context/CustomPseudoScopeTest.java index f4dcc8e6606ed..5d84c548c495f 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/context/CustomPseudoScopeTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/context/CustomPseudoScopeTest.java @@ -15,10 +15,10 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.inject.Inject; -import javax.inject.Scope; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.inject.Inject; +import jakarta.inject.Scope; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/devconsole/DevObserverInfoTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/devconsole/DevObserverInfoTest.java index ca364db576e2f..9bd7c3c57fabc 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/devconsole/DevObserverInfoTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/devconsole/DevObserverInfoTest.java @@ -7,8 +7,8 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/Bravo.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/Bravo.java index 964fc97dd09d2..614a9059c827d 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/Bravo.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/Bravo.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.exclude; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.test.exclude.ExcludeTypesTest.Pong; @@ -11,4 +11,4 @@ public String ping() { return "bravo"; } -} \ No newline at end of file +} diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/ExcludeTypesTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/ExcludeTypesTest.java index e55696dd03de1..bccf5e4cdfbb6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/ExcludeTypesTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/ExcludeTypesTest.java @@ -9,13 +9,13 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/bar/Bar.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/bar/Bar.java index 675518790cdb8..c349498b18d5c 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/bar/Bar.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/bar/Bar.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.exclude.bar; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.test.exclude.ExcludeTypesTest.Pong; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/baz/bazzz/Baz.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/baz/bazzz/Baz.java index 7aaf9eb3d40e2..23c41120554ad 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/baz/bazzz/Baz.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/exclude/baz/bazzz/Baz.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.exclude.baz.bazzz; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.test.exclude.ExcludeTypesTest.Pong; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java index 8bc478d83ee84..87bc7768536d5 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java @@ -8,13 +8,13 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java index f8467967a3d04..422ee302fe943 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java @@ -9,13 +9,13 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorBindingRegistrarTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorBindingRegistrarTest.java index 4e02c449ade01..19e7c34eee335 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorBindingRegistrarTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorBindingRegistrarTest.java @@ -9,12 +9,12 @@ import java.lang.annotation.Target; import java.util.List; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java index 9121031232e92..a685bce5d00c8 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/InterceptorNoBindingsTest.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptor; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.DefinitionException; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/staticmethods/InterceptedStaticMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/staticmethods/InterceptedStaticMethodTest.java index eb0adf4a65c14..082c30442a385 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/staticmethods/InterceptedStaticMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/staticmethods/InterceptedStaticMethodTest.java @@ -12,11 +12,11 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lock/LockTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lock/LockTest.java index cc63d6a773607..c076d9d791b79 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lock/LockTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lock/LockTest.java @@ -14,8 +14,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/log/InjectedLoggerTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/log/InjectedLoggerTest.java index 1d7490532b410..94830a723b2ec 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/log/InjectedLoggerTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/log/InjectedLoggerTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInjectionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInjectionTest.java index 5803d5a16ce73..1858d9d334fcf 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInjectionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInjectionTest.java @@ -8,13 +8,13 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInvalidTypeParamTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInvalidTypeParamTest.java index 1c9f5679ba5c2..79ca737402578 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInvalidTypeParamTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/ListInvalidTypeParamTest.java @@ -7,9 +7,9 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionOnProducersTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionOnProducersTest.java index fc71f9b7581a3..7a2bd1491e9bf 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionOnProducersTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionOnProducersTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsCombinedTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsCombinedTest.java index 4c1ff364a9267..e37891518caf7 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsCombinedTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsCombinedTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsTest.java index c8c4fbd3951da..f94e26236cb78 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/LookupConditionsTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/MyQualifier.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/MyQualifier.java index 2e5b6351d93f4..ea481aa18e917 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/MyQualifier.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/lookup/MyQualifier.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; @Qualifier @Retention(RUNTIME) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java index 0da3f232c822a..75b890ebf8116 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.metadata; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AmbiguousAsyncObserverExceptionHandlerTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AmbiguousAsyncObserverExceptionHandlerTest.java index cef3e3cc92e63..aa01bb2e02b1c 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AmbiguousAsyncObserverExceptionHandlerTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AmbiguousAsyncObserverExceptionHandlerTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.AmbiguousResolutionException; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.inject.Singleton; +import jakarta.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AsyncObserverTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AsyncObserverTest.java index b7f3ab2a5bf54..5920684e619ed 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AsyncObserverTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/AsyncObserverTest.java @@ -11,14 +11,14 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/ObserverTransformerTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/ObserverTransformerTest.java index b7e05fbe0ae6f..801babe116758 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/ObserverTransformerTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/ObserverTransformerTest.java @@ -15,10 +15,10 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Qualifier; -import javax.inject.Singleton; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/SyntheticObserverTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/SyntheticObserverTest.java index 197d47f888252..72c05388e88a5 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/SyntheticObserverTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/observer/SyntheticObserverTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileAllAnyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileAllAnyTest.java index f28c330a15e6d..26831ea64e904 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileAllAnyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileAllAnyTest.java @@ -6,9 +6,9 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileTest.java index 36d91c62f8fb1..59797986c3ca3 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/IfBuildProfileTest.java @@ -6,16 +6,16 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/Logging.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/Logging.java index 9964d1c851c83..f699744c542a6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/Logging.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/Logging.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileAllAnyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileAllAnyTest.java index 23ff729b46940..c0d9838dc5ede 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileAllAnyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileAllAnyTest.java @@ -6,9 +6,9 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileTest.java index 3ade40320f219..cf20f2a8c22c4 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/profile/UnlessBuildProfileTest.java @@ -6,16 +6,16 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/CombinedBuildProfileAndBuildPropertiesTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/CombinedBuildProfileAndBuildPropertiesTest.java index bbd3e8dd3ac3f..010097d43a565 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/CombinedBuildProfileAndBuildPropertiesTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/CombinedBuildProfileAndBuildPropertiesTest.java @@ -3,12 +3,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/IfBuildPropertyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/IfBuildPropertyTest.java index 8a8f7fcf17f9a..5333920045e78 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/IfBuildPropertyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/IfBuildPropertyTest.java @@ -3,12 +3,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/SimpleUnlessBuildPropertyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/SimpleUnlessBuildPropertyTest.java index 6f824c20ebb84..56e9af20d3a17 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/SimpleUnlessBuildPropertyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/SimpleUnlessBuildPropertyTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/UnlessBuildPropertyTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/UnlessBuildPropertyTest.java index 5626676e91df9..eefb7172061b6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/UnlessBuildPropertyTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/properties/UnlessBuildPropertyTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/qualifiers/QualifierRegistrarTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/qualifiers/QualifierRegistrarTest.java index 8b57925898fa3..06de4f30b28c9 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/qualifiers/QualifierRegistrarTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/qualifiers/QualifierRegistrarTest.java @@ -14,10 +14,10 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/remove/RemoveFwkBeansTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/remove/RemoveFwkBeansTest.java index 51262ad14c2d5..564c62f4cb703 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/remove/RemoveFwkBeansTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/remove/RemoveFwkBeansTest.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.remove; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/startup/StartupAnnotationTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/startup/StartupAnnotationTest.java index 85b099dbd5f62..c5f0097aaf1eb 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/startup/StartupAnnotationTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/startup/StartupAnnotationTest.java @@ -6,12 +6,12 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Consumer; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java index d78cdfac814cd..3f8edb36b2cef 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedBeanTestCase.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java index db5cb47a226a8..2751f8c513ccf 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeHierarchyTestCase.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java index 87c7ab7485ed1..eb092ea23c5cc 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/stereotype/DoubleScopedStereotypeTestCase.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Bar.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Bar.java index 79cab85c69faa..ae5628c71e452 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Bar.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Bar.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.transform.injectionPoint; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import io.quarkus.arc.Unremovable; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/DummyBean.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/DummyBean.java index 85169d10c90a2..0538fb24a7826 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/DummyBean.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/DummyBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.transform.injectionPoint; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class DummyBean { diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/PrivateFieldInjectionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/PrivateFieldInjectionTest.java index cca2b852439a1..7d51b32c658c1 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/PrivateFieldInjectionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/PrivateFieldInjectionTest.java @@ -4,9 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Simple.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Simple.java index e16ff97815961..273225937422e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Simple.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeDecorator.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeDecorator.java index fa5962042c06f..a48fc62c1980d 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeDecorator.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeDecorator.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.transform.injectionPoint; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; @Dependent @Priority(1) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeInterceptor.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeInterceptor.java index 617ad8d4350c3..dcb6c2cdebc25 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeInterceptor.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/SomeInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.transform.injectionPoint; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Priority(1) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/Foo.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/Foo.java index 616245bebbf80..1b2f25be619c3 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/Foo.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/Foo.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.transform.injectionPoint.diffPackage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class Foo { diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/SomeBean.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/SomeBean.java index b27d0378c5184..9b884343e29a6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/SomeBean.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/transform/injectionPoint/diffPackage/SomeBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.transform.injectionPoint.diffPackage; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class SomeBean { diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/AddMissingNoargsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/AddMissingNoargsConstructorTest.java index 8a67a04977691..e33c4e5ee321e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/AddMissingNoargsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/AddMissingNoargsConstructorTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FailedToAddMissingNoargsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FailedToAddMissingNoargsConstructorTest.java index bc093ca197f6e..ab056a07cfbca 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FailedToAddMissingNoargsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FailedToAddMissingNoargsConstructorTest.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.unproxyable; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassDoNotRemoveFlagTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassDoNotRemoveFlagTest.java index 65fbeb2be01bb..96e65e30377a6 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassDoNotRemoveFlagTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassDoNotRemoveFlagTest.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.unproxyable; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassRemoveFlagTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassRemoveFlagTest.java index 1feb96aff89eb..775b76609cf5b 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassRemoveFlagTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalClassRemoveFlagTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalMethodRemoveFlagTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalMethodRemoveFlagTest.java index 99ca1f42faefa..5880c65cab48e 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalMethodRemoveFlagTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/FinalMethodRemoveFlagTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/MultipleAddMissingNoargsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/MultipleAddMissingNoargsConstructorTest.java index 3b91621ffb113..15c1007de2efb 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/MultipleAddMissingNoargsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/MultipleAddMissingNoargsConstructorTest.java @@ -5,10 +5,10 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorChangeFlagTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorChangeFlagTest.java index dfd22e456d9b4..928f97891e436 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorChangeFlagTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorChangeFlagTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorDoNotChangeFlagTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorDoNotChangeFlagTest.java index 2080250b28cbb..879dcf07122d0 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorDoNotChangeFlagTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/PrivateNoArgsConstructorDoNotChangeFlagTest.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.unproxyable; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerAddMissingNoargsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerAddMissingNoargsConstructorTest.java index 08e16da21fe5d..8bd51672bdf20 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerAddMissingNoargsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerAddMissingNoargsConstructorTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerFailedToAddMissingNoargsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerFailedToAddMissingNoargsConstructorTest.java index e655ec4d685a9..feb7c9ccb4032 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerFailedToAddMissingNoargsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerFailedToAddMissingNoargsConstructorTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java index 4ebf0abe4de45..d69da5c035330 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java @@ -5,11 +5,11 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/RequestScopedFinalMethodsTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/RequestScopedFinalMethodsTest.java index 5c21aedd73fe3..6f3fc94046f92 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/RequestScopedFinalMethodsTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/RequestScopedFinalMethodsTest.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.unproxyable; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/SynthProxiableBeanWithoutNoArgConstructorTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/SynthProxiableBeanWithoutNoArgConstructorTest.java index acd789b187820..ef6a129fba0ff 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/SynthProxiableBeanWithoutNoArgConstructorTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unproxyable/SynthProxiableBeanWithoutNoArgConstructorTest.java @@ -5,8 +5,8 @@ import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Vetoed; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ApiLookupProblemDetectedTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ApiLookupProblemDetectedTest.java index 75993a7f51360..1506823c865ef 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ApiLookupProblemDetectedTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ApiLookupProblemDetectedTest.java @@ -7,7 +7,7 @@ import java.util.logging.Formatter; import java.util.logging.LogRecord; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ArcLookupProblemDetectedTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ArcLookupProblemDetectedTest.java index bdfb511d39fe7..664b4eeac7ece 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ArcLookupProblemDetectedTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ArcLookupProblemDetectedTest.java @@ -7,9 +7,9 @@ import java.util.logging.Formatter; import java.util.logging.LogRecord; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/Charlie.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/Charlie.java index 658ff83938c4a..871604772ff35 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/Charlie.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/Charlie.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.unused; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Charlie { diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ProducerBean.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ProducerBean.java index a19e62a9026d5..392c7e5e85596 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ProducerBean.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/ProducerBean.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.unused; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import io.quarkus.arc.Unremovable; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/UnusedExclusionTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/UnusedExclusionTest.java index 03a84facdf2dd..145dc34e435fe 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/UnusedExclusionTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/UnusedExclusionTest.java @@ -3,10 +3,10 @@ import java.lang.reflect.Method; import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/subpackage/Beta.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/subpackage/Beta.java index faea7869514c0..6baf3315539cd 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/subpackage/Beta.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/unused/subpackage/Beta.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.unused.subpackage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * Another unused bean that shouldn't be removed. diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ObserverOnInnerClassTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ObserverOnInnerClassTest.java index 8f596ed83b45a..7097ff241f5b5 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ObserverOnInnerClassTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ObserverOnInnerClassTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ProducerOnInnerClassTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ProducerOnInnerClassTest.java index 964a73d6b6cd0..7a7b0e13944b5 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ProducerOnInnerClassTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ProducerOnInnerClassTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ScopeOnInnerClassTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ScopeOnInnerClassTest.java index bc896e2889bd3..743cdba3499aa 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ScopeOnInnerClassTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/ScopeOnInnerClassTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/WrongSingletonTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/WrongSingletonTest.java index e276c9dcdee0e..fa23c3038be6b 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/WrongSingletonTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/wrongannotations/WrongSingletonTest.java @@ -6,9 +6,9 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.junit.jupiter.api.Test; @@ -25,7 +25,7 @@ public class WrongSingletonTest { .addClasses(EjbSingleton.class)) .assertException(t -> { Throwable rootCause = ExceptionUtil.getRootCause(t); - assertTrue(rootCause.getMessage().contains("javax.ejb.Singleton"), t.toString()); + assertTrue(rootCause.getMessage().contains("jakarta.ejb.Singleton"), t.toString()); assertTrue(rootCause.getMessage().contains("com.google.inject.Singleton"), t.toString()); }); @@ -35,7 +35,7 @@ public void testValidationFailed() { fail(); } - @javax.ejb.Singleton + @jakarta.ejb.Singleton static class EjbSingleton { @Inject diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/log/LoggerName.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/log/LoggerName.java index c9288d1874f34..f0b0643d833a8 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/log/LoggerName.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/log/LoggerName.java @@ -8,9 +8,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.Nonbinding; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Qualifier; @Qualifier @Retention(RUNTIME) @@ -45,4 +45,4 @@ public String value() { } -} \ No newline at end of file +} diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupIfProperty.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupIfProperty.java index d35ca529779c9..6e86cc5bf12d5 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupIfProperty.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupIfProperty.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; /** * Indicates that a bean should only be obtained by programmatic lookup if the property matches the provided value. diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupUnlessProperty.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupUnlessProperty.java index 229288f7dba8b..0840aadaaf7fe 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupUnlessProperty.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/lookup/LookupUnlessProperty.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; /** * Indicates that a bean should only be obtained by programmatic lookup if the property does not match the provided value. diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/AdditionalBean.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/AdditionalBean.java index 4b5dabc4c4b33..678b92d0014cd 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/AdditionalBean.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/AdditionalBean.java @@ -6,8 +6,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Stereotype; /** * This built-in stereotype is automatically added to all additional beans that do not have a scope annotation declared. diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java index 77dfa066f4e78..7594bb3bb9c47 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/BeanContainer.java @@ -84,7 +84,7 @@ default T instance(Class type, Annotation... qualifiers) { * } * * - * @return the context for {@link javax.enterprise.context.RequestScoped} + * @return the context for {@link jakarta.enterprise.context.RequestScoped} * @throws IllegalStateException If the container is not running */ ManagedContext requestContext(); diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigBeanCreator.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigBeanCreator.java index 88092c81b6bb8..4d0fdaf4efaad 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigBeanCreator.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigBeanCreator.java @@ -2,9 +2,9 @@ import java.util.Map; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.DeploymentException; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.InjectionPoint; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigMappingCreator.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigMappingCreator.java index 276b55345b2fe..d59f8f67df12c 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigMappingCreator.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigMappingCreator.java @@ -4,9 +4,9 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.Annotated; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.Annotated; +import jakarta.enterprise.inject.spi.InjectionPoint; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperties; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigRecorder.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigRecorder.java index 5b5331cd74f53..72067f2afa0b8 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigRecorder.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ConfigRecorder.java @@ -8,7 +8,7 @@ import java.util.Objects; import java.util.Set; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java index d72d6e40569c4..4ace62d76588f 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/InterceptorBindings.java @@ -3,7 +3,7 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.AbstractAnnotationLiteral; import io.quarkus.arc.ArcInvocationContext; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LaunchModeProducer.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LaunchModeProducer.java index 56097f13886cc..032cf606ab805 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LaunchModeProducer.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LaunchModeProducer.java @@ -1,7 +1,7 @@ package io.quarkus.arc.runtime; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.quarkus.runtime.LaunchMode; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LoggerProducer.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LoggerProducer.java index c6ba2847d7a97..6742cfb215241 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LoggerProducer.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/LoggerProducer.java @@ -4,11 +4,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/EventsMonitor.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/EventsMonitor.java index 72c0cb997ead1..e5e1e7298a1f6 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/EventsMonitor.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/EventsMonitor.java @@ -7,14 +7,14 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.spi.EventMetadata; -import javax.inject.Singleton; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.inject.Singleton; @Singleton public class EventsMonitor { diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationInterceptor.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationInterceptor.java index 9fc6d20629be1..611e46898dc5b 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationInterceptor.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationInterceptor.java @@ -3,17 +3,17 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Method; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Intercepted; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationTree.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationTree.java index f46e1ab4923b1..5f43e0d396743 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationTree.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationTree.java @@ -2,7 +2,7 @@ import java.lang.reflect.Method; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import io.quarkus.arc.InjectableBean; diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationsMonitor.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationsMonitor.java index 0a65ff3bee254..61f1189c55d8d 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationsMonitor.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/InvocationsMonitor.java @@ -5,7 +5,7 @@ import java.util.Iterator; import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class InvocationsMonitor { diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/Monitored.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/Monitored.java index bd8a9e1c15d24..6c3c7c2601940 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/Monitored.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/devconsole/Monitored.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Inherited @InterceptorBinding diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/test/PreloadedTestApplicationClassPredicate.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/test/PreloadedTestApplicationClassPredicate.java index 9e47053377c35..1971672176ca6 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/test/PreloadedTestApplicationClassPredicate.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/test/PreloadedTestApplicationClassPredicate.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.runtime.test.TestApplicationClassPredicate; diff --git a/extensions/cache/deployment/src/main/java/io/quarkus/cache/deployment/CacheProcessor.java b/extensions/cache/deployment/src/main/java/io/quarkus/cache/deployment/CacheProcessor.java index 907779962d749..e6261081f5cf9 100644 --- a/extensions/cache/deployment/src/main/java/io/quarkus/cache/deployment/CacheProcessor.java +++ b/extensions/cache/deployment/src/main/java/io/quarkus/cache/deployment/CacheProcessor.java @@ -26,8 +26,8 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/CacheConfigTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/CacheConfigTest.java index 936c2e93e1e21..8940882f42018 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/CacheConfigTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/CacheConfigTest.java @@ -8,9 +8,9 @@ import java.time.Duration; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java index 508bc2f84ea0b..e93a65fd7599f 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java @@ -8,10 +8,10 @@ import java.util.UUID; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DisabledCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DisabledCacheTest.java index dd59c088dcd33..2193524435925 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DisabledCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DisabledCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/UnknownCacheTypeTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/UnknownCacheTypeTest.java index 144d98304ecee..f7edf4f476d9d 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/UnknownCacheTypeTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/UnknownCacheTypeTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/devmode/CacheHotReloadResource.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/devmode/CacheHotReloadResource.java index 620c2561058d4..0a48840317e53 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/devmode/CacheHotReloadResource.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/devmode/CacheHotReloadResource.java @@ -1,9 +1,9 @@ package io.quarkus.cache.test.devmode; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.cache.CacheResult; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheKeyGeneratorTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheKeyGeneratorTest.java index 8c5617244ca0c..f715b610ddd29 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheKeyGeneratorTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheKeyGeneratorTest.java @@ -8,14 +8,14 @@ import java.math.BigInteger; import java.security.SecureRandom; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheNamesTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheNamesTest.java index ca592c53b6f5a..a96e3fc57799b 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheNamesTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CacheNamesTest.java @@ -8,9 +8,9 @@ import java.util.Arrays; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompletionStageReturnTypeTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompletionStageReturnTypeTest.java index 823fe07a0df2e..1f449eabaa705 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompletionStageReturnTypeTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompletionStageReturnTypeTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ConcurrencyTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ConcurrencyTest.java index c021e73ea9274..d3a7d951edc63 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ConcurrencyTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ConcurrencyTest.java @@ -10,8 +10,8 @@ import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicReference; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/DefaultKeyCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/DefaultKeyCacheTest.java index 62876b19f45ce..88eba8e8165ce 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/DefaultKeyCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/DefaultKeyCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitCompositeKeyCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitCompositeKeyCacheTest.java index 7da8ef9ffc4de..c3dbb591d9633 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitCompositeKeyCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitCompositeKeyCacheTest.java @@ -5,8 +5,8 @@ import java.math.BigDecimal; import java.util.Locale; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitSimpleKeyCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitSimpleKeyCacheTest.java index 5cdfe92b1fbec..df971786cd595 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitSimpleKeyCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ExplicitSimpleKeyCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitCompositeKeyCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitCompositeKeyCacheTest.java index b1c3dd6c5a3df..6c30dee27bdc8 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitCompositeKeyCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitCompositeKeyCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitSimpleKeyCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitSimpleKeyCacheTest.java index 397d9816c2b4f..0ccb2d233a7d4 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitSimpleKeyCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ImplicitSimpleKeyCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultiValueTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultiValueTest.java index 69d051b026a42..d4cb97a47c204 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultiValueTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultiValueTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultipleCacheAnnotationsTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultipleCacheAnnotationsTest.java index 3a887208cfdcf..741241c78a0bf 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultipleCacheAnnotationsTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/MultipleCacheAnnotationsTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NoOpCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NoOpCacheTest.java index cabfbd1f1f800..ee85ca6927b93 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NoOpCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NoOpCacheTest.java @@ -6,8 +6,8 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NullKeyOrValueCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NullKeyOrValueCacheTest.java index a446a0665e78b..98f3d9b366b49 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NullKeyOrValueCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/NullKeyOrValueCacheTest.java @@ -5,8 +5,8 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ProgrammaticApiTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ProgrammaticApiTest.java index c88078ca58a5c..c511e5a39ec26 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ProgrammaticApiTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ProgrammaticApiTest.java @@ -16,8 +16,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SharedCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SharedCacheTest.java index b2a22736dfb0c..b960df270ee2c 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SharedCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SharedCacheTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SpecializedCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SpecializedCacheTest.java index 5bcbee0a5b0dc..92bcdb043d36e 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SpecializedCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/SpecializedCacheTest.java @@ -5,8 +5,8 @@ import java.util.function.Function; import java.util.function.Predicate; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ThrowExecutionExceptionCauseTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ThrowExecutionExceptionCauseTest.java index f727969910204..a151e6cd29434 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ThrowExecutionExceptionCauseTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ThrowExecutionExceptionCauseTest.java @@ -5,8 +5,8 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UniReturnTypeTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UniReturnTypeTest.java index 2032442f72b79..bd8be955cd497 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UniReturnTypeTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UniReturnTypeTest.java @@ -4,8 +4,8 @@ import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroCaffeineCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroCaffeineCacheTest.java index 7ea8c94f317b2..ddec12d8a44e2 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroCaffeineCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroCaffeineCacheTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroNoOpCacheTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroNoOpCacheTest.java index 49fa7c596ef93..278e3779a81f0 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroNoOpCacheTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/runtime/ZeroNoOpCacheTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidate.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidate.java index cddf7e91d6b3e..9ea1a4ed9905a 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidate.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidate.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.cache.CacheInvalidate.List; import io.quarkus.cache.runtime.UndefinedCacheKeyGenerator; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidateAll.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidateAll.java index 62b8ebb808b6a..fc938f6f10817 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidateAll.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheInvalidateAll.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.cache.CacheInvalidateAll.List; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheName.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheName.java index ec1e1ad4d8d42..ea411baa8bea8 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheName.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheName.java @@ -8,8 +8,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.inject.Qualifier; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Qualifier; /** *

diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheResult.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheResult.java index 3347feabe8f63..3f05ba995f758 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheResult.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/CacheResult.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.cache.runtime.UndefinedCacheKeyGenerator; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInterceptor.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInterceptor.java index ed67b2ca57f78..c66bbe53dae8b 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInterceptor.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInterceptor.java @@ -11,10 +11,10 @@ import java.util.concurrent.CompletionStage; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.interceptor.Interceptor.Priority; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor.Priority; +import jakarta.interceptor.InvocationContext; import org.jboss.logging.Logger; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateAllInterceptor.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateAllInterceptor.java index 4d504f62e391d..431a647ead897 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateAllInterceptor.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateAllInterceptor.java @@ -2,10 +2,10 @@ import java.util.function.Function; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.jboss.logging.Logger; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateInterceptor.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateInterceptor.java index 46f2c8addab9b..4aa932d0275b3 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateInterceptor.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheInvalidateInterceptor.java @@ -3,10 +3,10 @@ import java.util.List; import java.util.function.Function; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.jboss.logging.Logger; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheKeyParameterPositions.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheKeyParameterPositions.java index a3e48e3668c9b..a98136cd2643d 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheKeyParameterPositions.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheKeyParameterPositions.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; /** * This interceptor binding is added at build time on a method if: diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerInitializer.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerInitializer.java index cd09c01d4bba2..ae3aa1af9352a 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerInitializer.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerInitializer.java @@ -1,6 +1,6 @@ package io.quarkus.cache.runtime; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.quarkus.cache.CacheManager; import io.quarkus.runtime.StartupEvent; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerRecorder.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerRecorder.java index e97a685ef9003..8350ca55c6b28 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerRecorder.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheManagerRecorder.java @@ -5,7 +5,7 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import io.quarkus.cache.CacheManager; import io.quarkus.cache.runtime.caffeine.CaffeineCacheManagerBuilder; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheProducer.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheProducer.java index a8d1cffc7e54f..fa3fc0d07e789 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheProducer.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheProducer.java @@ -2,10 +2,10 @@ import java.lang.annotation.Annotation; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheManager; diff --git a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheResultInterceptor.java b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheResultInterceptor.java index b16691a6ecb7f..dadc40e07d033 100644 --- a/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheResultInterceptor.java +++ b/extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheResultInterceptor.java @@ -4,10 +4,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.jboss.logging.Logger; diff --git a/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/FooResource.java b/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/FooResource.java index dacc045c1276f..b618d43a2e869 100644 --- a/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/FooResource.java +++ b/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/FooResource.java @@ -1,9 +1,9 @@ package io.quarkus.config.yaml.deployment; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/InterfaceConfigPropertiesTest.java b/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/InterfaceConfigPropertiesTest.java index efcda74d9f6eb..b63409d07999e 100644 --- a/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/InterfaceConfigPropertiesTest.java +++ b/extensions/config-yaml/deployment/src/test/java/io/quarkus/config/yaml/deployment/InterfaceConfigPropertiesTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfReactiveConfig.java b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfReactiveConfig.java index 399a673bb4d30..e4bac6a7c5d1b 100644 --- a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfReactiveConfig.java +++ b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfReactiveConfig.java @@ -76,9 +76,9 @@ public class CsrfReactiveConfig { * If this property is enabled then the input stream will be read and cached by the CSRF filter to verify the token. * * If you prefer then you can disable this property and compare - * CSRF form and cookie parameters in the application code using JAX-RS javax.ws.rs.FormParam which refers to the + * CSRF form and cookie parameters in the application code using JAX-RS jakarta.ws.rs.FormParam which refers to the * {@link #formFieldName} - * form property and javax.ws.rs.CookieParam which refers to the {@link CsrfReactiveConfig#cookieName} cookie. + * form property and jakarta.ws.rs.CookieParam which refers to the {@link CsrfReactiveConfig#cookieName} cookie. * * Note that even if the CSRF token verification in the CSRF filter is disabled, the filter will still perform checks to * ensure the token diff --git a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfRequestResponseReactiveFilter.java b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfRequestResponseReactiveFilter.java index 29e7b1458c65c..0102266094961 100644 --- a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfRequestResponseReactiveFilter.java +++ b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfRequestResponseReactiveFilter.java @@ -3,12 +3,12 @@ import java.security.SecureRandom; import java.util.Base64; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfTokenParameterProvider.java b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfTokenParameterProvider.java index b84dd490da8de..85294cedf4c1e 100644 --- a/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfTokenParameterProvider.java +++ b/extensions/csrf-reactive/runtime/src/main/java/io/quarkus/csrf/reactive/runtime/CsrfTokenParameterProvider.java @@ -1,8 +1,8 @@ package io.quarkus.csrf.reactive.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import io.vertx.ext.web.RoutingContext; @@ -48,4 +48,4 @@ public String getToken() { public String getParameterName() { return csrfFormFieldName; } -} \ No newline at end of file +} diff --git a/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/DataSourcesExcludedFromHealthChecksProcessor.java b/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/DataSourcesExcludedFromHealthChecksProcessor.java index 4a2bc100a952a..80b43e8033719 100644 --- a/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/DataSourcesExcludedFromHealthChecksProcessor.java +++ b/extensions/datasource/deployment/src/main/java/io/quarkus/datasource/deployment/DataSourcesExcludedFromHealthChecksProcessor.java @@ -2,7 +2,7 @@ import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.datasource.runtime.DataSourcesBuildTimeConfig; diff --git a/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchClientConfigTest.java b/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchClientConfigTest.java index 23b80db7a5111..f05e8a728aea6 100644 --- a/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchClientConfigTest.java +++ b/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchClientConfigTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.http.impl.nio.client.HttpAsyncClientBuilder; import org.elasticsearch.client.RestClientBuilder; diff --git a/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/TestResource.java b/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/TestResource.java index 743a2cfb851a1..5a10c4ebb8d67 100644 --- a/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/TestResource.java +++ b/extensions/elasticsearch-rest-client/deployment/src/test/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/TestResource.java @@ -4,11 +4,11 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.apache.http.util.EntityUtils; import org.elasticsearch.client.Request; diff --git a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/ElasticsearchClientConfig.java b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/ElasticsearchClientConfig.java index 1af174c1e9bc8..a658039ab9a86 100644 --- a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/ElasticsearchClientConfig.java +++ b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/ElasticsearchClientConfig.java @@ -8,8 +8,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Annotate implementations of {@code org.elasticsearch.client.RestClientBuilder.HttpClientConfigCallback} to provide further diff --git a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchRestClientProducer.java b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchRestClientProducer.java index 2a3260fcbd5d3..bbe796b9051b1 100644 --- a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchRestClientProducer.java +++ b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchRestClientProducer.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.io.UncheckedIOException; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.elasticsearch.client.RestClient; import org.elasticsearch.client.RestClientBuilder; diff --git a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/health/ElasticsearchHealthCheck.java b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/health/ElasticsearchHealthCheck.java index 46001379905ce..d952600d65244 100644 --- a/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/health/ElasticsearchHealthCheck.java +++ b/extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/health/ElasticsearchHealthCheck.java @@ -1,7 +1,7 @@ package io.quarkus.elasticsearch.restclient.lowlevel.runtime.health; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.http.util.EntityUtils; import org.eclipse.microprofile.health.HealthCheck; diff --git a/extensions/elasticsearch-rest-high-level-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/highlevel/runtime/ElasticsearchRestHighLevelClientProducer.java b/extensions/elasticsearch-rest-high-level-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/highlevel/runtime/ElasticsearchRestHighLevelClientProducer.java index c69728bc3e39c..789b12460ab7b 100644 --- a/extensions/elasticsearch-rest-high-level-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/highlevel/runtime/ElasticsearchRestHighLevelClientProducer.java +++ b/extensions/elasticsearch-rest-high-level-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/highlevel/runtime/ElasticsearchRestHighLevelClientProducer.java @@ -4,12 +4,12 @@ import java.io.UncheckedIOException; import java.util.Collections; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.elasticsearch.client.RestClient; import org.elasticsearch.client.RestHighLevelClient; diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/CustomRoleDecoder.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/CustomRoleDecoder.java index 4971a596602f4..a98b538d8067f 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/CustomRoleDecoder.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/CustomRoleDecoder.java @@ -4,7 +4,7 @@ import java.util.Set; import java.util.stream.StreamSupport; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.wildfly.security.authz.Attributes; import org.wildfly.security.authz.AuthorizationIdentity; diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/ParametrizedPathsResource.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/ParametrizedPathsResource.java index c79be49f172e8..483e2a02364e3 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/ParametrizedPathsResource.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/ParametrizedPathsResource.java @@ -1,9 +1,9 @@ package io.quarkus.elytron.security.jdbc; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/RolesEndpointClassLevel.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/RolesEndpointClassLevel.java index 9ffbfcd94d136..430bd0b72ec88 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/RolesEndpointClassLevel.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/RolesEndpointClassLevel.java @@ -1,10 +1,10 @@ package io.quarkus.elytron.security.jdbc; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; /** * Test JAXRS endpoint with RolesAllowed specified at the class level diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SingleRoleSecuredServlet.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SingleRoleSecuredServlet.java index 9f89abb22a255..df11ad4eee670 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SingleRoleSecuredServlet.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SingleRoleSecuredServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic secured servlet test target diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SubjectExposingResource.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SubjectExposingResource.java index ba6b1452ed6dc..6826d7a002181 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SubjectExposingResource.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/SubjectExposingResource.java @@ -2,14 +2,14 @@ import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("subject") public class SubjectExposingResource { diff --git a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/TestApplication.java b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/TestApplication.java index fd8cc93299986..9b114eebc04ce 100644 --- a/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/TestApplication.java +++ b/extensions/elytron-security-jdbc/deployment/src/test/java/io/quarkus/elytron/security/jdbc/TestApplication.java @@ -1,8 +1,8 @@ package io.quarkus.elytron.security.jdbc; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationScoped @ApplicationPath("/jaxrs-secured") diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/CustomRoleDecoder.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/CustomRoleDecoder.java index 9697832847407..bed410dbeac14 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/CustomRoleDecoder.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/CustomRoleDecoder.java @@ -4,7 +4,7 @@ import java.util.Set; import java.util.stream.StreamSupport; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.wildfly.security.authz.Attributes; import org.wildfly.security.authz.AuthorizationIdentity; diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/ParametrizedPathsResource.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/ParametrizedPathsResource.java index 33d8be9dfdf78..c2e9f78a215ce 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/ParametrizedPathsResource.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/ParametrizedPathsResource.java @@ -1,9 +1,9 @@ package io.quarkus.elytron.security.ldap.rest; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/parameterized-paths") public class ParametrizedPathsResource { diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/RolesEndpointClassLevel.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/RolesEndpointClassLevel.java index fc8e8f8b8ebed..32dcbd8881419 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/RolesEndpointClassLevel.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/RolesEndpointClassLevel.java @@ -1,10 +1,10 @@ package io.quarkus.elytron.security.ldap.rest; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; /** * Test JAXRS endpoint with RolesAllowed specified at the class level diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SingleRoleSecuredServlet.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SingleRoleSecuredServlet.java index a9c6df3421306..06377067d4b5c 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SingleRoleSecuredServlet.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SingleRoleSecuredServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic secured servlet test target diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SubjectExposingResource.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SubjectExposingResource.java index 124a0a7f704e7..f54c4a300f88d 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SubjectExposingResource.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/SubjectExposingResource.java @@ -2,14 +2,14 @@ import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("subject") public class SubjectExposingResource { diff --git a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/TestApplication.java b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/TestApplication.java index 752efd59d42e6..93d1b19541927 100644 --- a/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/TestApplication.java +++ b/extensions/elytron-security-ldap/deployment/src/test/java/io/quarkus/elytron/security/ldap/rest/TestApplication.java @@ -1,8 +1,8 @@ package io.quarkus.elytron.security.ldap.rest; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationScoped @ApplicationPath("/jaxrs-secured") diff --git a/extensions/elytron-security-oauth2/deployment/src/main/java/io/quarkus/elytron/security/oauth2/deployment/OAuth2DeploymentProcessor.java b/extensions/elytron-security-oauth2/deployment/src/main/java/io/quarkus/elytron/security/oauth2/deployment/OAuth2DeploymentProcessor.java index 978eb2c002a6c..2c9f858563826 100644 --- a/extensions/elytron-security-oauth2/deployment/src/main/java/io/quarkus/elytron/security/oauth2/deployment/OAuth2DeploymentProcessor.java +++ b/extensions/elytron-security-oauth2/deployment/src/main/java/io/quarkus/elytron/security/oauth2/deployment/OAuth2DeploymentProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.elytron.security.oauth2.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.wildfly.security.auth.server.SecurityRealm; diff --git a/extensions/elytron-security-oauth2/runtime/src/main/java/io/quarkus/elytron/security/oauth2/runtime/auth/OAuth2AuthMechanism.java b/extensions/elytron-security-oauth2/runtime/src/main/java/io/quarkus/elytron/security/oauth2/runtime/auth/OAuth2AuthMechanism.java index 6e67cbbc7d66b..c61b680c29706 100644 --- a/extensions/elytron-security-oauth2/runtime/src/main/java/io/quarkus/elytron/security/oauth2/runtime/auth/OAuth2AuthMechanism.java +++ b/extensions/elytron-security-oauth2/runtime/src/main/java/io/quarkus/elytron/security/oauth2/runtime/auth/OAuth2AuthMechanism.java @@ -3,7 +3,7 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpResponseStatus; diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomAuth.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomAuth.java index b6ff714b8710f..ba9653080aa06 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomAuth.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomAuth.java @@ -9,7 +9,7 @@ import java.util.Locale; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomRoleAccessResource.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomRoleAccessResource.java index 37ca1302d8c62..e93424668a9c2 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomRoleAccessResource.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/CustomRoleAccessResource.java @@ -2,12 +2,12 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("custom-role") public class CustomRoleAccessResource { diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java index aa608206efdec..31cf1ee9025aa 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/ParametrizedPathsResource.java @@ -1,9 +1,9 @@ package io.quarkus.security.test; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/RolesEndpointClassLevel.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/RolesEndpointClassLevel.java index 5b4e84e012427..af586599a7928 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/RolesEndpointClassLevel.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/RolesEndpointClassLevel.java @@ -1,10 +1,10 @@ package io.quarkus.security.test; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; /** * Test JAXRS endpoint with RolesAllowed specified at the class level diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/SubjectExposingResource.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/SubjectExposingResource.java index b8f484e8ec1e4..6486c5274352b 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/SubjectExposingResource.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/SubjectExposingResource.java @@ -2,14 +2,14 @@ import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com @@ -59,4 +59,4 @@ public String getSubjectDenied(@Context SecurityContext sec) { String name = user != null ? user.getName() : "anonymous"; return name; } -} \ No newline at end of file +} diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestApplication.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestApplication.java index 909d4ad45a662..de064a7942259 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestApplication.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestApplication.java @@ -1,8 +1,8 @@ package io.quarkus.security.test; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationScoped @ApplicationPath("/jaxrs-secured") diff --git a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java index c589eb74e1788..9f74f8fe4f2d7 100644 --- a/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java +++ b/extensions/elytron-security-properties-file/deployment/src/test/java/io/quarkus/security/test/TestSecureServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic secured servlet test target diff --git a/extensions/elytron-security-properties-file/runtime/pom.xml b/extensions/elytron-security-properties-file/runtime/pom.xml index e3b6f020ce1b0..1fff93e0a6590 100644 --- a/extensions/elytron-security-properties-file/runtime/pom.xml +++ b/extensions/elytron-security-properties-file/runtime/pom.xml @@ -57,12 +57,12 @@ jakarta.enterprise.cdi-api - jakarta.security.jacc - jakarta.security.jacc-api + jakarta.authorization + jakarta.authorization-api - jakarta.security.auth.message - jakarta.security.auth.message-api + jakarta.authentication + jakarta.authentication-api diff --git a/extensions/elytron-security/runtime/pom.xml b/extensions/elytron-security/runtime/pom.xml index 7a6c2bf98b103..f72f64b88ff00 100644 --- a/extensions/elytron-security/runtime/pom.xml +++ b/extensions/elytron-security/runtime/pom.xml @@ -60,12 +60,12 @@ jakarta.enterprise.cdi-api - jakarta.security.jacc - jakarta.security.jacc-api + jakarta.authorization + jakarta.authorization-api - jakarta.security.auth.message - jakarta.security.auth.message-api + jakarta.authentication + jakarta.authentication-api io.quarkus diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/DefaultRoleDecoder.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/DefaultRoleDecoder.java index 4e8b6ffd400aa..eb9dd2c431aeb 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/DefaultRoleDecoder.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/DefaultRoleDecoder.java @@ -4,10 +4,10 @@ import java.util.HashSet; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.wildfly.security.authz.Attributes; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronPasswordIdentityProvider.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronPasswordIdentityProvider.java index f46861159196b..5118f6b612034 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronPasswordIdentityProvider.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronPasswordIdentityProvider.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.wildfly.security.auth.server.RealmUnavailableException; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronRecorder.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronRecorder.java index a2ebff71bc80e..70e68707ef4a9 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronRecorder.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronRecorder.java @@ -2,7 +2,7 @@ import java.security.Permission; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; import org.wildfly.security.auth.server.RealmMapper; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronSecurityDomainManager.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronSecurityDomainManager.java index 16e2c59100c08..6d1d0a625bff0 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronSecurityDomainManager.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronSecurityDomainManager.java @@ -1,7 +1,7 @@ package io.quarkus.elytron.security.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.wildfly.security.auth.server.SecurityDomain; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTokenIdentityProvider.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTokenIdentityProvider.java index 4ab58334f261c..9c913152b2a89 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTokenIdentityProvider.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTokenIdentityProvider.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.wildfly.security.auth.server.RealmUnavailableException; diff --git a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTrustedIdentityProvider.java b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTrustedIdentityProvider.java index d5e1a1e6fd341..314d2492e2785 100644 --- a/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTrustedIdentityProvider.java +++ b/extensions/elytron-security/runtime/src/main/java/io/quarkus/elytron/security/runtime/ElytronTrustedIdentityProvider.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.wildfly.security.auth.server.RealmIdentity; diff --git a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java index 4ab0a4203ff54..fb2909b73b8ec 100644 --- a/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java +++ b/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java @@ -18,8 +18,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Default; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Default; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.Location; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/DevModeTestEndpoint.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/DevModeTestEndpoint.java index 53d36b3f80504..496d61e1ca676 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/DevModeTestEndpoint.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/DevModeTestEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.flyway.test; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.flywaydb.core.Flyway; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeCreateFromHibernateTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeCreateFromHibernateTest.java index 63e85e3c533ea..a9d30c5362216 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeCreateFromHibernateTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeCreateFromHibernateTest.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.function.Function; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.CoreMatchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeModifyMigrationTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeModifyMigrationTest.java index 51fd003dd2805..b2a407536956b 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeModifyMigrationTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayDevModeModifyMigrationTest.java @@ -8,9 +8,9 @@ import java.sql.Statement; import java.util.function.Function; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateNamedDataSourceTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateNamedDataSourceTest.java index e316ab7e9b211..5b21636867b7b 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateNamedDataSourceTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateNamedDataSourceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateTest.java index cf4a555038b4a..96eae7ac51708 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionBaselineOnMigrateTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCDICallback.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCDICallback.java index 73a6bdbf9f470..d80b9f8c0be76 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCDICallback.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCDICallback.java @@ -3,7 +3,7 @@ import java.util.Arrays; import java.util.List; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.callback.Callback; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCallbackTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCallbackTest.java index 18e7fb48d7f3e..43422e9923b2c 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCallbackTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCallbackTest.java @@ -9,7 +9,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartTest.java index fd0ca9159bf5b..140f9bb5eda76 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartTest.java @@ -8,7 +8,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.h2.jdbc.JdbcSQLSyntaxErrorException; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartWithJavaMigrationTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartWithJavaMigrationTest.java index b491b69b54d91..8b1f25d96663c 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartWithJavaMigrationTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAndMigrateAtStartWithJavaMigrationTest.java @@ -8,7 +8,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationVersion; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAtStartTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAtStartTest.java index 72b9944c89a9f..47083ba671a51 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAtStartTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionCleanAtStartTest.java @@ -8,7 +8,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceTest.java index 0ce8f0c6ee495..eca8ae357d7e0 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceWithoutFlywayTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceWithoutFlywayTest.java index 4153bca4a8707..04fed955e4bd8 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceWithoutFlywayTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigDefaultDataSourceWithoutFlywayTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigEmptyTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigEmptyTest.java index ad2021699d337..d5f680c6d9ef6 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigEmptyTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigEmptyTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java index 06995fe92d44c..54e6680272594 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigFixture.java @@ -6,8 +6,8 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.flywaydb.core.Flyway; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMissingNamedDataSourceTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMissingNamedDataSourceTest.java index c02d987a45335..af5c7cca818f5 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMissingNamedDataSourceTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMissingNamedDataSourceTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesTest.java index 6d4ce974f2662..3396fb7382bff 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesWithoutDefaultTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesWithoutDefaultTest.java index 3795a64ab20d7..a009f2126823b 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesWithoutDefaultTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigMultiDataSourcesWithoutDefaultTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutDefaultTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutDefaultTest.java index c17e8149e3b66..9383d79337634 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutDefaultTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutDefaultTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutFlywayTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutFlywayTest.java index a313404927752..747677ef9e214 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutFlywayTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionConfigNamedDataSourceWithoutFlywayTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFilesystemResourceTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFilesystemResourceTest.java index 49d761832b0ae..7d33b3491df1f 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFilesystemResourceTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionFilesystemResourceTest.java @@ -9,7 +9,7 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationVersion; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionInitSqlTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionInitSqlTest.java index d0ca6e2dbe7a1..f701d2391c6af 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionInitSqlTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionInitSqlTest.java @@ -7,9 +7,10 @@ import java.sql.ResultSet; import java.sql.SQLException; -import javax.inject.Inject; import javax.sql.DataSource; +import jakarta.inject.Inject; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartNamedDataSourceTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartNamedDataSourceTest.java index fc473ae613f5e..95db9554486c4 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartNamedDataSourceTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartNamedDataSourceTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartSubfolderTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartSubfolderTest.java index 691a994acb227..07124ffe392b0 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartSubfolderTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartSubfolderTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java index d7ec0171b3e7c..461ef4438d4d7 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionMigrateAtStartTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationInfo; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionRepairAtStartTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionRepairAtStartTest.java index 695d72326c2a4..448dcd01a605e 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionRepairAtStartTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionRepairAtStartTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.flywaydb.core.Flyway; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java index a1eeaa5832af0..72a5421f080ca 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithCustomizerTest.java @@ -8,8 +8,8 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.flywaydb.core.api.configuration.FluentConfiguration; import org.junit.jupiter.api.Test; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java index 24a35bb5b11ce..8cce50403573c 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/FlywayExtensionWithMultipleDatasourcesAndCustomizersTest.java @@ -8,9 +8,9 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.flywaydb.core.api.configuration.FluentConfiguration; import org.junit.jupiter.api.Test; diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/Fruit.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/Fruit.java index ea2c34b0fbb2c..fa416d1d30f7b 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/Fruit.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/Fruit.java @@ -1,9 +1,9 @@ package io.quarkus.flyway.test; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Fruit { diff --git a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/MultiDataSourcesDevModeEndpoint.java b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/MultiDataSourcesDevModeEndpoint.java index a4beccf452d72..2b5634b4df4ed 100644 --- a/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/MultiDataSourcesDevModeEndpoint.java +++ b/extensions/flyway/deployment/src/test/java/io/quarkus/flyway/test/MultiDataSourcesDevModeEndpoint.java @@ -3,12 +3,12 @@ import java.util.Arrays; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.Location; diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayDataSource.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayDataSource.java index ba4229d4e67bf..1962087461c5a 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayDataSource.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/FlywayDataSource.java @@ -10,9 +10,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Named; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Named; +import jakarta.inject.Qualifier; /** * Qualifier used to specify which datasource will be used and therefore which Flyway instance will be injected. @@ -57,4 +57,4 @@ public String toString() { return "FlywayDataSourceLiteral [value=" + value + "]"; } } -} \ No newline at end of file +} diff --git a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRecorder.java b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRecorder.java index 6c5acb799b95d..94c7919fe4615 100644 --- a/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRecorder.java +++ b/extensions/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/FlywayRecorder.java @@ -6,9 +6,10 @@ import java.util.Map; import java.util.function.Supplier; -import javax.enterprise.inject.UnsatisfiedResolutionException; import javax.sql.DataSource; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; + import org.flywaydb.core.Flyway; import org.flywaydb.core.api.callback.Callback; import org.flywaydb.core.api.migration.JavaMigration; diff --git a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java index 8c6a5b24ebaca..0e01f030363cc 100644 --- a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java +++ b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/ProcessingService.java @@ -1,6 +1,6 @@ package ${package}; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ProcessingService { diff --git a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestFunq.java b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestFunq.java index a2003020c071a..04c38761b5dd7 100644 --- a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestFunq.java +++ b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/TestFunq.java @@ -1,6 +1,6 @@ package ${package}; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.funqy.Funq; public class TestFunq { diff --git a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedFunq.java b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedFunq.java index 7fbf033a19124..e936a1e34885d 100644 --- a/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedFunq.java +++ b/extensions/funqy/funqy-amazon-lambda/maven-archetype/src/main/resources/archetype-resources/src/main/java/UnusedFunq.java @@ -1,6 +1,6 @@ package ${package}; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.funqy.Funq; public class UnusedFunq { diff --git a/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java b/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java index 1bab3bc381945..55896c5153e05 100644 --- a/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java +++ b/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.funqy.Funq; import io.smallrye.mutiny.Uni; diff --git a/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java b/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java index 5f20bdb0a7ab0..3ad7c6dc10bd5 100644 --- a/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java +++ b/extensions/funqy/funqy-http/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/extensions/funqy/funqy-http/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/http/VertxRequestHandler.java b/extensions/funqy/funqy-http/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/http/VertxRequestHandler.java index eb918f79755be..ae54f23d3ce5a 100644 --- a/extensions/funqy/funqy-http/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/http/VertxRequestHandler.java +++ b/extensions/funqy/funqy-http/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/http/VertxRequestHandler.java @@ -3,8 +3,8 @@ import java.io.InputStream; import java.util.concurrent.Executor; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java index a011852d793c4..4376750399482 100644 --- a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java +++ b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingFunctions.java @@ -4,7 +4,7 @@ import java.util.Timer; import java.util.TimerTask; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.funqy.Funq; import io.smallrye.mutiny.Uni; diff --git a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java index 5f20bdb0a7ab0..3ad7c6dc10bd5 100644 --- a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java +++ b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeLeakTest.java b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeLeakTest.java index 2c2c8f62b7e8a..f56e5968b8727 100644 --- a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeLeakTest.java +++ b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeLeakTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; diff --git a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeTest.java b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeTest.java index 01d51b8b9b033..59b84b0650ca9 100644 --- a/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeTest.java +++ b/extensions/funqy/funqy-knative-events/deployment/src/test/java/io/quarkus/funqy/test/RequestScopeTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; diff --git a/extensions/funqy/funqy-knative-events/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/knative/events/VertxRequestHandler.java b/extensions/funqy/funqy-knative-events/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/knative/events/VertxRequestHandler.java index eb172090110f0..4f898ca78efd7 100644 --- a/extensions/funqy/funqy-knative-events/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/knative/events/VertxRequestHandler.java +++ b/extensions/funqy/funqy-knative-events/runtime/src/main/java/io/quarkus/funqy/runtime/bindings/knative/events/VertxRequestHandler.java @@ -23,8 +23,8 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/ReflectionRegistrationUtil.java b/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/ReflectionRegistrationUtil.java index aa60c6dc782aa..4d63d8ca85754 100644 --- a/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/ReflectionRegistrationUtil.java +++ b/extensions/funqy/funqy-server-common/deployment/src/main/java/io/quarkus/funqy/deployment/ReflectionRegistrationUtil.java @@ -18,7 +18,7 @@ private ReflectionRegistrationUtil() { static final IgnoreMethodForReflectionPredicate IGNORE_METHOD_FOR_REFLECTION_PREDICATE = new IgnoreMethodForReflectionPredicate(); private static final DotName JSON_IGNORE = DotName.createSimple("com.fasterxml.jackson.annotation.JsonIgnore"); - private static final DotName JSONB_TRANSIENT = DotName.createSimple("javax.json.bind.annotation.JsonbTransient"); + private static final DotName JSONB_TRANSIENT = DotName.createSimple("jakarta.json.bind.annotation.JsonbTransient"); private static class IgnoreTypeForReflectionPredicate implements Predicate { diff --git a/extensions/funqy/funqy-server-common/deployment/src/test/java/io/quarkus/funqy/deployment/DependencyInjectionTest.java b/extensions/funqy/funqy-server-common/deployment/src/test/java/io/quarkus/funqy/deployment/DependencyInjectionTest.java index dcd6aebb47cd6..c1cbc53cde929 100644 --- a/extensions/funqy/funqy-server-common/deployment/src/test/java/io/quarkus/funqy/deployment/DependencyInjectionTest.java +++ b/extensions/funqy/funqy-server-common/deployment/src/test/java/io/quarkus/funqy/deployment/DependencyInjectionTest.java @@ -1,8 +1,8 @@ package io.quarkus.funqy.deployment; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/google-cloud-functions/deployment/src/main/java/io/quarkus/gcp/functions/deployment/GoogleCloudFunctionsProcessor.java b/extensions/google-cloud-functions/deployment/src/main/java/io/quarkus/gcp/functions/deployment/GoogleCloudFunctionsProcessor.java index 39b31dc51359c..08db4e6356a8b 100644 --- a/extensions/google-cloud-functions/deployment/src/main/java/io/quarkus/gcp/functions/deployment/GoogleCloudFunctionsProcessor.java +++ b/extensions/google-cloud-functions/deployment/src/main/java/io/quarkus/gcp/functions/deployment/GoogleCloudFunctionsProcessor.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Named; +import jakarta.inject.Named; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/google-cloud-functions/runtime/src/main/java/io/quarkus/gcp/functions/GoogleCloudFunctionsConfig.java b/extensions/google-cloud-functions/runtime/src/main/java/io/quarkus/gcp/functions/GoogleCloudFunctionsConfig.java index 237d63a94d9f5..7e9d4229e3a7c 100644 --- a/extensions/google-cloud-functions/runtime/src/main/java/io/quarkus/gcp/functions/GoogleCloudFunctionsConfig.java +++ b/extensions/google-cloud-functions/runtime/src/main/java/io/quarkus/gcp/functions/GoogleCloudFunctionsConfig.java @@ -9,7 +9,7 @@ @ConfigRoot(phase = ConfigPhase.RUN_TIME) public class GoogleCloudFunctionsConfig { /** - * The function name. Function names are specified on function classes using the {@link @javax.inject.Named} annotation. + * The function name. Function names are specified on function classes using the {@link @jakarta.inject.Named} annotation. * * If this name is unspecified and there is exactly one unnamed function then this unnamed function will be used. * If there is only a single named function and the name is unspecified then the named function will be used. diff --git a/extensions/grpc-common/runtime/src/main/java/io/quarkus/grpc/common/Generated.java b/extensions/grpc-common/runtime/src/main/java/io/quarkus/grpc/common/Generated.java index f46c523ed4656..1c744b8fd5102 100644 --- a/extensions/grpc-common/runtime/src/main/java/io/quarkus/grpc/common/Generated.java +++ b/extensions/grpc-common/runtime/src/main/java/io/quarkus/grpc/common/Generated.java @@ -15,10 +15,10 @@ /** * The {@code @Generated} annotation is used to mark source code that has been generated during the gRPC generation phase. - * Classes generated by {@code protoc} are post-processed to remove the {@code javax.annotation.Generated} and use + * Classes generated by {@code protoc} are post-processed to remove the {@code jakarta.annotation.Generated} and use * this annotation instead, avoiding a dependency on a pre-jakarta annotation. * - * This class is a direct copy of {@code javax.annotation.Generated}. + * This class is a direct copy of {@code jakarta.annotation.Generated}. */ @Documented @Retention(SOURCE) diff --git a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClient.java b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClient.java index 016df6b54627c..dbc907d4ca0d5 100644 --- a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClient.java +++ b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcClient.java @@ -7,8 +7,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Qualifies an injected gRPC client. diff --git a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcService.java b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcService.java index 0f2b5f15af94e..c2b9c81e7356f 100644 --- a/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcService.java +++ b/extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcService.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; /** * Qualifies a gRPC service. diff --git a/extensions/grpc/api/src/main/java/io/quarkus/grpc/RegisterClientInterceptor.java b/extensions/grpc/api/src/main/java/io/quarkus/grpc/RegisterClientInterceptor.java index 372a57b62d086..1337ce7b6d944 100644 --- a/extensions/grpc/api/src/main/java/io/quarkus/grpc/RegisterClientInterceptor.java +++ b/extensions/grpc/api/src/main/java/io/quarkus/grpc/RegisterClientInterceptor.java @@ -8,8 +8,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; import io.grpc.ClientInterceptor; diff --git a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcClientProcessor.java b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcClientProcessor.java index b1263d9e1afff..8d63f6e75057f 100644 --- a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcClientProcessor.java +++ b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcClientProcessor.java @@ -20,9 +20,9 @@ import java.util.function.Consumer; import java.util.regex.Pattern; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcDotNames.java b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcDotNames.java index b59cafd4d8ebe..8a59a56b0fb95 100644 --- a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcDotNames.java +++ b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcDotNames.java @@ -38,7 +38,7 @@ public class GrpcDotNames { public static final DotName BLOCKING = DotName.createSimple(Blocking.class.getName()); public static final DotName NON_BLOCKING = DotName.createSimple(NonBlocking.class.getName()); - public static final DotName TRANSACTIONAL = DotName.createSimple("javax.transaction.Transactional"); + public static final DotName TRANSACTIONAL = DotName.createSimple("jakarta.transaction.Transactional"); public static final DotName ABSTRACT_BLOCKING_STUB = DotName.createSimple(AbstractBlockingStub.class.getName()); public static final DotName MUTINY_STUB = DotName.createSimple(MutinyStub.class.getName()); diff --git a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcServerProcessor.java b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcServerProcessor.java index 2e3753c823301..eb2874ecf541a 100644 --- a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcServerProcessor.java +++ b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/GrpcServerProcessor.java @@ -20,8 +20,8 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.transaction.Transaction; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.transaction.Transaction; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; @@ -305,7 +305,7 @@ private static BlockingMode inheritedBlockingMode(Predicate checker, * ({@link io.smallrye.common.annotation.Blocking} or {@link io.smallrye.common.annotation.NonBlocking}). * *

- * Otherwise returns the "topmost" "non-explicit" annotation (aka {@link javax.transaction.Transactional}). + * Otherwise returns the "topmost" "non-explicit" annotation (aka {@link jakarta.transaction.Transactional}). */ private static boolean methodIsBlocking(List classes, String methodName, Type[] methodArgs) { BlockingMode classModeInherited = BlockingMode.UNDEFINED; @@ -480,7 +480,7 @@ private void validateBindableService(BeanInfo bean, Type generatedBeanType, } if (!bean.getScope().getDotName().equals(BuiltinScope.SINGLETON.getName())) { errors.produce(new ValidationPhaseBuildItem.ValidationErrorBuildItem( - new IllegalStateException("A gRPC service bean must have the javax.inject.Singleton scope: " + bean))); + new IllegalStateException("A gRPC service bean must have the jakarta.inject.Singleton scope: " + bean))); } } diff --git a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/devmode/GrpcDevConsoleProcessor.java b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/devmode/GrpcDevConsoleProcessor.java index d3c48c0da19e7..e9071e73b62f6 100644 --- a/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/devmode/GrpcDevConsoleProcessor.java +++ b/extensions/grpc/deployment/src/main/java/io/quarkus/grpc/deployment/devmode/GrpcDevConsoleProcessor.java @@ -11,7 +11,7 @@ import java.util.Map; import java.util.Set; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/auth/GrpcAuthTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/auth/GrpcAuthTest.java index b73d71e2c7604..4b02bd8ce4f7d 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/auth/GrpcAuthTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/auth/GrpcAuthTest.java @@ -12,8 +12,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.security.RolesAllowed; -import javax.inject.Singleton; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/BlockingStubInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/BlockingStubInjectionTest.java index a2e0938f68152..c57a0bccdb3c9 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/BlockingStubInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/BlockingStubInjectionTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ChannelInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ChannelInjectionTest.java index 98b485108193d..3da0b2c7b3ddd 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ChannelInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ChannelInjectionTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientServiceInterfaceCompressionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientServiceInterfaceCompressionTest.java index c4cd152fa99c3..34d37b25562dd 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientServiceInterfaceCompressionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientServiceInterfaceCompressionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientStubCompressionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientStubCompressionTest.java index 47445be8f071e..d7ff52dc44190 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientStubCompressionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/ClientStubCompressionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InstanceInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InstanceInjectionTest.java index 0acb1f1135160..bca8216a4f3a6 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InstanceInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InstanceInjectionTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InvalidInjectionTypeTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InvalidInjectionTypeTest.java index 79e1539e17181..acf1939121c28 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InvalidInjectionTypeTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/InvalidInjectionTypeTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MultipleStubsInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MultipleStubsInjectionTest.java index 62aa983bd64f4..25b4569c7faf1 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MultipleStubsInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MultipleStubsInjectionTest.java @@ -4,8 +4,8 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionFailureTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionFailureTest.java index be2bc69ca38be..c7c4f24370f21 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionFailureTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionFailureTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionTest.java index b6ae1d2dc51d4..9cb2012f75fb2 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyClientInjectionTest.java @@ -4,8 +4,8 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyStubInjectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyStubInjectionTest.java index 31ea175e08ad4..a3cf817593051 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyStubInjectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/MutinyStubInjectionTest.java @@ -4,8 +4,8 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/deadline/ClientDeadlineTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/deadline/ClientDeadlineTest.java index 63ea795c5689f..3dc5af1cbd5b0 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/deadline/ClientDeadlineTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/deadline/ClientDeadlineTest.java @@ -5,8 +5,8 @@ import java.time.Duration; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyFirstClientInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyFirstClientInterceptor.java index 24091f43b6019..3184b43015f47 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyFirstClientInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyFirstClientInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.client.interceptors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyLastClientInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyLastClientInterceptor.java index adfacbbdc4aba..f52744201abb8 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyLastClientInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyLastClientInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.client.interceptors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MySecondClientInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MySecondClientInterceptor.java index 74fd6e2660163..5d31be71ef409 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MySecondClientInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MySecondClientInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.client.interceptors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyThirdClientInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyThirdClientInterceptor.java index 57fec96ad488f..5d4b8cc81d113 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyThirdClientInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/interceptors/MyThirdClientInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.client.interceptors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/tls/HelloWorldTlsEndpoint.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/tls/HelloWorldTlsEndpoint.java index b141a022c2628..257f696220444 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/tls/HelloWorldTlsEndpoint.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/client/tls/HelloWorldTlsEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.client.tls; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.grpc.examples.helloworld.GreeterGrpc; import io.grpc.examples.helloworld.HelloReply; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/deployment/GrpcServerProcessorTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/deployment/GrpcServerProcessorTest.java index 2c416a3e594f5..6a0896add0cb0 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/deployment/GrpcServerProcessorTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/deployment/GrpcServerProcessorTest.java @@ -6,7 +6,7 @@ import java.util.Set; import java.util.stream.Stream; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcHealthTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcHealthTest.java index 2beb229323c96..5e5c8e9593044 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcHealthTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcHealthTest.java @@ -11,8 +11,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcServerTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcServerTest.java index 97f5ae868184e..e3dafe6ea13bf 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcServerTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcServerTest.java @@ -4,9 +4,9 @@ import java.util.stream.Collectors; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingAndNonBlockingTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingAndNonBlockingTest.java index d966ff48d942d..804f52d2097a5 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingAndNonBlockingTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingAndNonBlockingTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnClassTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnClassTest.java index 382a5f0b94fe3..91608a7b89ee0 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnClassTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnClassTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; @@ -52,4 +52,4 @@ public Uni returnThread2(com.dam.Blocking.Empty req com.dam.Blocking.ThreadName.newBuilder().setName(message).build()); } } -} \ No newline at end of file +} diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnMethodTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnMethodTest.java index d33ad2e788021..fba1916ad90d7 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnMethodTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingConfusingOnMethodTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingServiceTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingServiceTest.java index 5623d865b9f25..828c4e96df90e 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingServiceTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/BlockingServiceTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/TransactionalAsBlockingTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/TransactionalAsBlockingTest.java index 7393f39b8e08f..72b3aaf980ede 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/TransactionalAsBlockingTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/TransactionalAsBlockingTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/inheritance/BlockingFromTransactionalTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/inheritance/BlockingFromTransactionalTest.java index fffe21c01be69..a1f791a387b74 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/inheritance/BlockingFromTransactionalTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/blocking/inheritance/BlockingFromTransactionalTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeServiceCallingResource.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeServiceCallingResource.java index 29aa18ae02207..291a895cba5ff 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeServiceCallingResource.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeServiceCallingResource.java @@ -2,8 +2,8 @@ import java.time.Duration; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import devmodetest.v1.DevModeService; import devmodetest.v1.Devmodetest; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestInterceptor.java index 392e8861c3e61..36c1273c2b833 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestInterceptor.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.server.devmode; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.ForwardingServerCall; import io.grpc.Metadata; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestRestResource.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestRestResource.java index 7283367806fe9..5812798c3f1aa 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestRestResource.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestRestResource.java @@ -1,11 +1,11 @@ package io.quarkus.grpc.server.devmode; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/test") @Consumes(MediaType.TEXT_PLAIN) diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestService.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestService.java index 9e1c701fd2455..38342eb19371d 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestService.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/DevModeTestService.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.server.devmode; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import devmodetest.v1.Devmodetest; import io.grpc.examples.helloworld.GreeterGrpc; @@ -29,4 +29,4 @@ public void sayHello(HelloRequest request, StreamObserver responseOb } responseObserver.onCompleted(); } -} \ No newline at end of file +} diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/IsUpEndpoint.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/IsUpEndpoint.java index 5dcb55086e1c3..8ae2ed770b46b 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/IsUpEndpoint.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/devmode/IsUpEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.grpc.server.devmode; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.quarkus.grpc.runtime.GrpcServerRecorder; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInInterceptorTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInInterceptorTest.java index 77b3f250683fd..35e46d90cf292 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInInterceptorTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInInterceptorTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInterceptorTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInterceptorTest.java index 2db87eba423da..8b18819dee161 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInterceptorTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/FailingInterceptorTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/GlobalAndServiceInterceptorsTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/GlobalAndServiceInterceptorsTest.java index 111dde25faf40..1787f47d18ada 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/GlobalAndServiceInterceptorsTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/GlobalAndServiceInterceptorsTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MyFirstInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MyFirstInterceptor.java index bee9dba9d37bc..f9c00822d94a1 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MyFirstInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MyFirstInterceptor.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.Context; import io.grpc.Contexts; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MySecondInterceptor.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MySecondInterceptor.java index eb93fb52f78ac..7df550672cd86 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MySecondInterceptor.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/MySecondInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.server.interceptors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.ForwardingServerCall; import io.grpc.Metadata; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityReversedTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityReversedTest.java index 789ebaa394df9..100635ee338ea 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityReversedTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityReversedTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityTest.java index 513584414039b..f64a5b522ed5a 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorPriorityTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorProducerTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorProducerTest.java index 01d0d0a129177..11342326945d1 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorProducerTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorProducerTest.java @@ -3,9 +3,9 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorRegistrationTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorRegistrationTest.java index ce659ffa89489..cc2ea0da96732 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorRegistrationTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/interceptors/ServerInterceptorRegistrationTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/grpc/protoc/src/main/resources/MutinyBean.mustache b/extensions/grpc/protoc/src/main/resources/MutinyBean.mustache index ac6e65301832e..dc104a738f8ea 100644 --- a/extensions/grpc/protoc/src/main/resources/MutinyBean.mustache +++ b/extensions/grpc/protoc/src/main/resources/MutinyBean.mustache @@ -6,7 +6,7 @@ import io.grpc.BindableService; import io.quarkus.grpc.GrpcService; import io.quarkus.grpc.MutinyBean; -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "by {{classPrefix}} Grpc generator", comments = "Source: {{protoName}}") public class {{serviceName}}Bean extends {{className}}.{{serviceName}}ImplBase implements BindableService, MutinyBean { diff --git a/extensions/grpc/protoc/src/main/resources/MutinyClient.mustache b/extensions/grpc/protoc/src/main/resources/MutinyClient.mustache index 07064f661e80d..d7fe565824524 100644 --- a/extensions/grpc/protoc/src/main/resources/MutinyClient.mustache +++ b/extensions/grpc/protoc/src/main/resources/MutinyClient.mustache @@ -6,7 +6,7 @@ import java.util.function.BiFunction; import io.quarkus.grpc.MutinyClient; -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "by {{classPrefix}} Grpc generator", comments = "Source: {{protoName}}") public class {{serviceName}}Client implements {{serviceName}}, MutinyClient<{{classPrefix}}{{serviceName}}Grpc.{{classPrefix}}{{serviceName}}Stub> { diff --git a/extensions/grpc/protoc/src/main/resources/MutinyInterface.mustache b/extensions/grpc/protoc/src/main/resources/MutinyInterface.mustache index 83fa0f922e720..3cd96f2cc7e10 100644 --- a/extensions/grpc/protoc/src/main/resources/MutinyInterface.mustache +++ b/extensions/grpc/protoc/src/main/resources/MutinyInterface.mustache @@ -4,7 +4,7 @@ package {{packageName}}; import io.quarkus.grpc.MutinyService; -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "by {{classPrefix}} Grpc generator", comments = "Source: {{protoName}}") public interface {{serviceName}} extends MutinyService { diff --git a/extensions/grpc/protoc/src/main/resources/MutinyStub.mustache b/extensions/grpc/protoc/src/main/resources/MutinyStub.mustache index a7f27ee291e80..9b1d9391b3fb8 100644 --- a/extensions/grpc/protoc/src/main/resources/MutinyStub.mustache +++ b/extensions/grpc/protoc/src/main/resources/MutinyStub.mustache @@ -11,7 +11,7 @@ import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; {{#deprecated}} @java.lang.Deprecated {{/deprecated}} -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "by {{classPrefix}} Grpc generator", comments = "Source: {{protoName}}") public final class {{className}} implements io.quarkus.grpc.MutinyGrpc { diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandler.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandler.java index a94224cfb9a80..115bee8b47879 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandler.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandler.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.auth; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandlerProvider.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandlerProvider.java index 2d4e0f4792ad3..f120d33b87056 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandlerProvider.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/AuthExceptionHandlerProvider.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.auth; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/DefaultAuthExceptionHandlerProvider.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/DefaultAuthExceptionHandlerProvider.java index db0600c2a1565..e762ce3184607 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/DefaultAuthExceptionHandlerProvider.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/DefaultAuthExceptionHandlerProvider.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.auth; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/GrpcSecurityInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/GrpcSecurityInterceptor.java index 259ef106ac967..c7586173caebb 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/GrpcSecurityInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/auth/GrpcSecurityInterceptor.java @@ -5,10 +5,10 @@ import java.util.List; import java.util.concurrent.Executor; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.Prioritized; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.Prioritized; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcClientInterceptorContainer.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcClientInterceptorContainer.java index 04bd951dc961c..b686947c0adfe 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcClientInterceptorContainer.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcClientInterceptorContainer.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.grpc.ClientInterceptor; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcContainer.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcContainer.java index 5f4ca57711534..91e145703aac4 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcContainer.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcContainer.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import io.grpc.BindableService; import io.grpc.ServerInterceptor; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcServerRecorder.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcServerRecorder.java index a322d25b3d8ee..162190eb28322 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcServerRecorder.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/GrpcServerRecorder.java @@ -24,7 +24,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.regex.Pattern; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/Interceptors.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/Interceptors.java index 4f371baa55ff1..559944d23e72a 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/Interceptors.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/Interceptors.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.Prioritized; import io.quarkus.arc.Arc; import io.quarkus.arc.InstanceHandle; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/CollectStreams.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/CollectStreams.java index 31dd15d5af10a..561d6d20c42d4 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/CollectStreams.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/CollectStreams.java @@ -6,7 +6,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcServices.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcServices.java index a389c25d53061..ce3e554f1397b 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcServices.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/GrpcServices.java @@ -8,8 +8,8 @@ import java.util.Map; import java.util.Set; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import grpc.health.v1.HealthOuterClass.HealthCheckResponse.ServingStatus; import io.grpc.MethodDescriptor.MethodType; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/StreamCollectorInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/StreamCollectorInterceptor.java index f0044724e93b5..6b11467d6fe90 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/StreamCollectorInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/devmode/StreamCollectorInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.grpc.runtime.devmode; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.grpc.stub.ServerCallStreamObserver; import io.grpc.stub.StreamObserver; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthCheck.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthCheck.java index 6692552618be7..763de679f0436 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthCheck.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthCheck.java @@ -2,8 +2,8 @@ import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthEndpoint.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthEndpoint.java index f76df3363ebb7..39c6d9bd95ae5 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthEndpoint.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthEndpoint.java @@ -3,8 +3,8 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import grpc.health.v1.HealthOuterClass; import grpc.health.v1.HealthOuterClass.HealthCheckResponse.ServingStatus; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthStorage.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthStorage.java index d2c3efd0a6e46..93296a00cac49 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthStorage.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthStorage.java @@ -5,8 +5,8 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import grpc.health.v1.HealthOuterClass.HealthCheckResponse; import grpc.health.v1.HealthOuterClass.HealthCheckResponse.ServingStatus; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/stork/StorkMeasuringGrpcInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/stork/StorkMeasuringGrpcInterceptor.java index 5ae82a966ff0b..3dc8716b501cc 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/stork/StorkMeasuringGrpcInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/stork/StorkMeasuringGrpcInterceptor.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/Channels.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/Channels.java index 200ce9314138f..542c9f32e5726 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/Channels.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/Channels.java @@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import org.jboss.logging.Logger; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/GrpcClientConfigProvider.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/GrpcClientConfigProvider.java index 062b4d85dec9b..c0438f63e0510 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/GrpcClientConfigProvider.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/GrpcClientConfigProvider.java @@ -5,8 +5,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.BiFunction; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.grpc.stub.AbstractStub; import io.quarkus.arc.Arc; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/IOThreadClientInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/IOThreadClientInterceptor.java index 6102729883a50..a8aabb2d54022 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/IOThreadClientInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/IOThreadClientInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.runtime.supports; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java index ae45cba61ede6..e02cf3001f172 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcDuplicatedContextGrpcInterceptor.java @@ -7,9 +7,9 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcRequestContextGrpcInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcRequestContextGrpcInterceptor.java index a797e52305dbb..af46d32a51268 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcRequestContextGrpcInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/context/GrpcRequestContextGrpcInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.runtime.supports.context; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; import org.jboss.logging.Logger; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/DefaultExceptionHandlerProvider.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/DefaultExceptionHandlerProvider.java index 2c7823943e66b..07b4513a64dca 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/DefaultExceptionHandlerProvider.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/DefaultExceptionHandlerProvider.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.runtime.supports.exc; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/ExceptionInterceptor.java b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/ExceptionInterceptor.java index 13aaadfc27c94..8338614455294 100644 --- a/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/ExceptionInterceptor.java +++ b/extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/supports/exc/ExceptionInterceptor.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.runtime.supports.exc; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Prioritized; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Prioritized; +import jakarta.inject.Inject; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/extensions/hal/runtime/pom.xml b/extensions/hal/runtime/pom.xml index 50319b6dc1721..7e5ca0cd3df41 100644 --- a/extensions/hal/runtime/pom.xml +++ b/extensions/hal/runtime/pom.xml @@ -22,8 +22,8 @@ quarkus-arc - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api io.quarkus diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapper.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapper.java index 6b1bcb8f64100..1a0caa75f83b5 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapper.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapper.java @@ -4,7 +4,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; /** * The Hal collection wrapper that includes the list of Hal entities {@link HalEntityWrapper}, the collection name and the Hal diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapperJsonbSerializer.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapperJsonbSerializer.java index c12e137b805d0..16ab71e68eafd 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapperJsonbSerializer.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalCollectionWrapperJsonbSerializer.java @@ -1,8 +1,8 @@ package io.quarkus.hal; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; public class HalCollectionWrapperJsonbSerializer implements JsonbSerializer { diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapper.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapper.java index 24b3a1e6b0852..c908213f4dab5 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapper.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapper.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; /** * The Hal entity wrapper that includes the entity and the Hal links. diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapperJsonbSerializer.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapperJsonbSerializer.java index 8133180e8c0ac..990febd478606 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapperJsonbSerializer.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalEntityWrapperJsonbSerializer.java @@ -2,9 +2,9 @@ import java.util.Map; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; import org.eclipse.yasson.internal.ProcessingContext; import org.eclipse.yasson.internal.model.ClassModel; diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalLinkJsonbSerializer.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalLinkJsonbSerializer.java index f4759eb53bf99..60fd49d43e2a5 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalLinkJsonbSerializer.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalLinkJsonbSerializer.java @@ -1,8 +1,8 @@ package io.quarkus.hal; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; public class HalLinkJsonbSerializer implements JsonbSerializer { diff --git a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalWrapper.java b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalWrapper.java index 80d5953b21f2b..16338be4d3aea 100644 --- a/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalWrapper.java +++ b/extensions/hal/runtime/src/main/java/io/quarkus/hal/HalWrapper.java @@ -2,7 +2,7 @@ import java.util.Map; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; public abstract class HalWrapper { diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/AbstractEnversResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/AbstractEnversResource.java index ff25a02708dc0..c784bb37fa34d 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/AbstractEnversResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/AbstractEnversResource.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.envers; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.UserTransaction; import org.hibernate.envers.boot.internal.EnversService; import org.hibernate.envers.configuration.internal.AuditEntitiesConfiguration; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationPerPUTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationPerPUTest.java index fa9a0d78024dd..b19f5066bac18 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationPerPUTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationPerPUTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.envers.boot.internal.EnversService; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationTest.java index e77431faa99f7..155a3f5eab2fa 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversConfigurationTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.envers.boot.internal.EnversService; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversFastBootingTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversFastBootingTest.java index b85d1dc123544..d6148c030447e 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversFastBootingTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversFastBootingTest.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.envers; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestAuditTableSuffixResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestAuditTableSuffixResource.java index a9a981522c35a..54de9dd23f690 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestAuditTableSuffixResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestAuditTableSuffixResource.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.envers; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hibernate.envers.boot.internal.EnversService; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestStoreDataAtDeleteResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestStoreDataAtDeleteResource.java index fead8b7164435..282b529ec8f30 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestStoreDataAtDeleteResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestStoreDataAtDeleteResource.java @@ -2,13 +2,13 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.resource.spi.IllegalStateException; -import javax.transaction.UserTransaction; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.resource.spi.IllegalStateException; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; import org.hibernate.envers.AuditReader; import org.hibernate.envers.AuditReaderFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestValidationResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestValidationResource.java index 1f23138f3ef44..9b18d539bbbce 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestValidationResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/EnversTestValidationResource.java @@ -2,13 +2,13 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.resource.spi.IllegalStateException; -import javax.transaction.UserTransaction; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.resource.spi.IllegalStateException; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.hibernate.envers.AuditReader; import org.hibernate.envers.AuditReaderFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedEntity.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedEntity.java index 4ada528c36186..467f0805aa001 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedEntity.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.envers.Audited; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedVersionEntity.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedVersionEntity.java index ee34d72c4752b..2c7c49f5b8caa 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedVersionEntity.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyAuditedVersionEntity.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.envers; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Version; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Version; import org.hibernate.envers.Audited; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyListenerlessRevisionEntity.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyListenerlessRevisionEntity.java index 2c5d8d5bfa6bd..6fb28f2380fda 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyListenerlessRevisionEntity.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyListenerlessRevisionEntity.java @@ -2,12 +2,12 @@ import java.util.Date; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; import org.hibernate.envers.RevisionEntity; import org.hibernate.envers.RevisionNumber; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyRevisionEntity.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyRevisionEntity.java index 1993a8e74a807..e9b9e848bde20 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyRevisionEntity.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/MyRevisionEntity.java @@ -2,12 +2,12 @@ import java.util.Date; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; import org.hibernate.envers.RevisionEntity; import org.hibernate.envers.RevisionNumber; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigActiveFalseAndAuditedEntityTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigActiveFalseAndAuditedEntityTest.java index aa43bd037f1af..98e33f6c8214a 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigActiveFalseAndAuditedEntityTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigActiveFalseAndAuditedEntityTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; -import javax.persistence.metamodel.Bindable; +import jakarta.inject.Inject; +import jakarta.persistence.metamodel.Bindable; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndActiveTrueTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndActiveTrueTest.java index 79d05890ed219..015ce40820608 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndActiveTrueTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndActiveTrueTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; -import javax.persistence.metamodel.Bindable; +import jakarta.inject.Inject; +import jakarta.persistence.metamodel.Bindable; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndAuditedEntityTest.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndAuditedEntityTest.java index d6635ea0feb28..a08002b25b19d 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndAuditedEntityTest.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/ConfigEnabledFalseAndAuditedEntityTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; -import javax.persistence.metamodel.Bindable; +import jakarta.inject.Inject; +import jakarta.persistence.metamodel.Bindable; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAllowIdentifierReuseResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAllowIdentifierReuseResource.java index bc850778d8273..ec292e5af92e1 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAllowIdentifierReuseResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAllowIdentifierReuseResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAuditStrategyResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAuditStrategyResource.java index 935802a49729c..4e306b7d3cc70 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAuditStrategyResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestAuditStrategyResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.envers.strategy.AuditStrategy; import org.hibernate.envers.strategy.ValidityAuditStrategy; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDefaultSchemaCatalogResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDefaultSchemaCatalogResource.java index 3e286acf0a56b..3561af8b27764 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDefaultSchemaCatalogResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDefaultSchemaCatalogResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDoNotAuditOptimisticLockingFieldResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDoNotAuditOptimisticLockingFieldResource.java index b8d093933a355..160b2a505cf93 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDoNotAuditOptimisticLockingFieldResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestDoNotAuditOptimisticLockingFieldResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.persister.entity.EntityPersister; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestEmbeddableSetOrdinalFieldNameResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestEmbeddableSetOrdinalFieldNameResource.java index c65d08b75d34f..2eea17a75e150 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestEmbeddableSetOrdinalFieldNameResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestEmbeddableSetOrdinalFieldNameResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedColumnNamingStrategyResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedColumnNamingStrategyResource.java index b37e14c066334..1b11d33a2b452 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedColumnNamingStrategyResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedColumnNamingStrategyResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.envers.boot.internal.ImprovedModifiedColumnNamingStrategy; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedFlagsResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedFlagsResource.java index 004e53d738027..afcd5f6955064 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedFlagsResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestModifiedFlagsResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestOriginalIdPropNameResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestOriginalIdPropNameResource.java index 657e12e0f51e6..68aa00d195ebb 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestOriginalIdPropNameResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestOriginalIdPropNameResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.persister.entity.EntityPersister; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionListenerResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionListenerResource.java index fb247da185b4f..8c5ec1c1a570d 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionListenerResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionListenerResource.java @@ -3,9 +3,9 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.envers.AuditReader; import org.hibernate.envers.AuditReaderFactory; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionOnCollectionChangeResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionOnCollectionChangeResource.java index 98e82b1e839c4..9406e1dbba828 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionOnCollectionChangeResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestRevisionOnCollectionChangeResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestTrackEntitiesChangedInRevisionResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestTrackEntitiesChangedInRevisionResource.java index 0ef6cb7b74c47..6a26e6abeff4c 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestTrackEntitiesChangedInRevisionResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestTrackEntitiesChangedInRevisionResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestUseRevisionEntityWithNativeIdResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestUseRevisionEntityWithNativeIdResource.java index 1e2bfc68bdd9c..2330d358cfb87 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestUseRevisionEntityWithNativeIdResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestUseRevisionEntityWithNativeIdResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestValidityStrategyFieldNameOverridesResource.java b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestValidityStrategyFieldNameOverridesResource.java index d2ff2f748894f..c6149be97b802 100644 --- a/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestValidityStrategyFieldNameOverridesResource.java +++ b/extensions/hibernate-envers/deployment/src/test/java/io/quarkus/hibernate/orm/envers/config/EnversTestValidityStrategyFieldNameOverridesResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.envers.config; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.envers.AbstractEnversResource; diff --git a/extensions/hibernate-envers/runtime/pom.xml b/extensions/hibernate-envers/runtime/pom.xml index b22c2b29f4177..629766711b228 100644 --- a/extensions/hibernate-envers/runtime/pom.xml +++ b/extensions/hibernate-envers/runtime/pom.xml @@ -17,7 +17,7 @@ org.hibernate - hibernate-envers + hibernate-envers-jakarta diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java index effe1a6823ba6..c48d6bba53428 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassNames.java @@ -24,24 +24,24 @@ private static DotName createConstant(String fqcn) { "io.quarkus.hibernate.orm.runtime.tenant.TenantConnectionResolver"); public static final DotName TENANT_RESOLVER = createConstant("io.quarkus.hibernate.orm.runtime.tenant.TenantResolver"); - public static final DotName STATIC_METAMODEL = createConstant("javax.persistence.metamodel.StaticMetamodel"); + public static final DotName STATIC_METAMODEL = createConstant("jakarta.persistence.metamodel.StaticMetamodel"); public static final DotName QUARKUS_PERSISTENCE_UNIT = createConstant("io.quarkus.hibernate.orm.PersistenceUnit"); public static final DotName QUARKUS_PERSISTENCE_UNIT_REPEATABLE_CONTAINER = createConstant( "io.quarkus.hibernate.orm.PersistenceUnit$List"); - public static final DotName JPA_PERSISTENCE_UNIT = createConstant("javax.persistence.PersistenceUnit"); - public static final DotName JPA_PERSISTENCE_CONTEXT = createConstant("javax.persistence.PersistenceContext"); + public static final DotName JPA_PERSISTENCE_UNIT = createConstant("jakarta.persistence.PersistenceUnit"); + public static final DotName JPA_PERSISTENCE_CONTEXT = createConstant("jakarta.persistence.PersistenceContext"); public static final DotName PERSISTENCE_UNIT_EXTENSION = createConstant( "io.quarkus.hibernate.orm.PersistenceUnitExtension"); public static final DotName PERSISTENCE_UNIT_EXTENSION_REPEATABLE_CONTAINER = createConstant( "io.quarkus.hibernate.orm.PersistenceUnitExtension$List"); - public static final DotName JPA_ENTITY = createConstant("javax.persistence.Entity"); - public static final DotName MAPPED_SUPERCLASS = createConstant("javax.persistence.MappedSuperclass"); - public static final DotName EMBEDDABLE = createConstant("javax.persistence.Embeddable"); - public static final DotName CONVERTER = createConstant("javax.persistence.Converter"); - public static final DotName EMBEDDED = createConstant("javax.persistence.Embedded"); - public static final DotName ELEMENT_COLLECTION = createConstant("javax.persistence.ElementCollection"); + public static final DotName JPA_ENTITY = createConstant("jakarta.persistence.Entity"); + public static final DotName MAPPED_SUPERCLASS = createConstant("jakarta.persistence.MappedSuperclass"); + public static final DotName EMBEDDABLE = createConstant("jakarta.persistence.Embeddable"); + public static final DotName CONVERTER = createConstant("jakarta.persistence.Converter"); + public static final DotName EMBEDDED = createConstant("jakarta.persistence.Embedded"); + public static final DotName ELEMENT_COLLECTION = createConstant("jakarta.persistence.ElementCollection"); public static final DotName PROXY = createConstant("org.hibernate.annotations.Proxy"); public static final DotName HIBERNATE_PROXY = createConstant("org.hibernate.proxy.HibernateProxy"); public static final DotName TYPE = createConstant("org.hibernate.annotations.Type"); @@ -49,9 +49,9 @@ private static DotName createConstant(String fqcn) { public static final DotName TYPE_DEFINITIONS = createConstant("org.hibernate.annotations.TypeDefs"); public static final DotName INJECT_SERVICE = createConstant("org.hibernate.service.spi.InjectService"); - public static final DotName ENTITY_MANAGER_FACTORY = createConstant("javax.persistence.EntityManagerFactory"); + public static final DotName ENTITY_MANAGER_FACTORY = createConstant("jakarta.persistence.EntityManagerFactory"); public static final DotName SESSION_FACTORY = createConstant("org.hibernate.SessionFactory"); - public static final DotName ENTITY_MANAGER = createConstant("javax.persistence.EntityManager"); + public static final DotName ENTITY_MANAGER = createConstant("jakarta.persistence.EntityManager"); public static final DotName SESSION = createConstant("org.hibernate.Session"); public static final DotName INTERCEPTOR = createConstant("org.hibernate.Interceptor"); diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmAnnotations.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmAnnotations.java index 740051d409ef8..bc4c30f2646d8 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmAnnotations.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmAnnotations.java @@ -28,97 +28,97 @@ private HibernateOrmAnnotations() { DotName.createSimple("org.hibernate.annotations.TypeDefs")); public static final List JPA_MAPPING_ANNOTATIONS = List.of( - DotName.createSimple("javax.persistence.Access"), - DotName.createSimple("javax.persistence.AssociationOverride"), - DotName.createSimple("javax.persistence.AssociationOverrides"), - DotName.createSimple("javax.persistence.AttributeOverride"), - DotName.createSimple("javax.persistence.AttributeOverrides"), - DotName.createSimple("javax.persistence.Basic"), - DotName.createSimple("javax.persistence.Cacheable"), - DotName.createSimple("javax.persistence.CollectionTable"), - DotName.createSimple("javax.persistence.Column"), - DotName.createSimple("javax.persistence.ColumnResult"), - DotName.createSimple("javax.persistence.ConstructorResult"), - DotName.createSimple("javax.persistence.Convert"), - DotName.createSimple("javax.persistence.Converter"), - DotName.createSimple("javax.persistence.Converts"), - DotName.createSimple("javax.persistence.DiscriminatorColumn"), - DotName.createSimple("javax.persistence.DiscriminatorValue"), - DotName.createSimple("javax.persistence.ElementCollection"), - DotName.createSimple("javax.persistence.Embeddable"), - DotName.createSimple("javax.persistence.Embedded"), - DotName.createSimple("javax.persistence.EmbeddedId"), - DotName.createSimple("javax.persistence.Entity"), - DotName.createSimple("javax.persistence.EntityListeners"), - DotName.createSimple("javax.persistence.EntityResult"), - DotName.createSimple("javax.persistence.Enumerated"), - DotName.createSimple("javax.persistence.ExcludeDefaultListeners"), - DotName.createSimple("javax.persistence.ExcludeSuperclassListeners"), - DotName.createSimple("javax.persistence.FieldResult"), - DotName.createSimple("javax.persistence.ForeignKey"), - DotName.createSimple("javax.persistence.GeneratedValue"), - DotName.createSimple("javax.persistence.Id"), - DotName.createSimple("javax.persistence.IdClass"), - DotName.createSimple("javax.persistence.Index"), - DotName.createSimple("javax.persistence.Inheritance"), - DotName.createSimple("javax.persistence.JoinColumn"), - DotName.createSimple("javax.persistence.JoinColumns"), - DotName.createSimple("javax.persistence.JoinTable"), - DotName.createSimple("javax.persistence.Lob"), - DotName.createSimple("javax.persistence.ManyToMany"), - DotName.createSimple("javax.persistence.ManyToOne"), - DotName.createSimple("javax.persistence.MapKey"), - DotName.createSimple("javax.persistence.MapKeyClass"), - DotName.createSimple("javax.persistence.MapKeyColumn"), - DotName.createSimple("javax.persistence.MapKeyEnumerated"), - DotName.createSimple("javax.persistence.MapKeyJoinColumn"), - DotName.createSimple("javax.persistence.MapKeyJoinColumns"), - DotName.createSimple("javax.persistence.MapKeyTemporal"), - DotName.createSimple("javax.persistence.MappedSuperclass"), - DotName.createSimple("javax.persistence.MapsId"), - DotName.createSimple("javax.persistence.NamedAttributeNode"), - DotName.createSimple("javax.persistence.NamedEntityGraph"), - DotName.createSimple("javax.persistence.NamedEntityGraphs"), - DotName.createSimple("javax.persistence.NamedNativeQueries"), - DotName.createSimple("javax.persistence.NamedNativeQuery"), - DotName.createSimple("javax.persistence.NamedQueries"), - DotName.createSimple("javax.persistence.NamedQuery"), - DotName.createSimple("javax.persistence.NamedStoredProcedureQueries"), - DotName.createSimple("javax.persistence.NamedStoredProcedureQuery"), - DotName.createSimple("javax.persistence.NamedSubgraph"), - DotName.createSimple("javax.persistence.OneToMany"), - DotName.createSimple("javax.persistence.OneToOne"), - DotName.createSimple("javax.persistence.OrderBy"), - DotName.createSimple("javax.persistence.OrderColumn"), - DotName.createSimple("javax.persistence.PersistenceContext"), - DotName.createSimple("javax.persistence.PersistenceContexts"), - DotName.createSimple("javax.persistence.PersistenceProperty"), - DotName.createSimple("javax.persistence.PersistenceUnit"), - DotName.createSimple("javax.persistence.PersistenceUnits"), - DotName.createSimple("javax.persistence.PostLoad"), - DotName.createSimple("javax.persistence.PostPersist"), - DotName.createSimple("javax.persistence.PostRemove"), - DotName.createSimple("javax.persistence.PostUpdate"), - DotName.createSimple("javax.persistence.PrePersist"), - DotName.createSimple("javax.persistence.PreRemove"), - DotName.createSimple("javax.persistence.PreUpdate"), - DotName.createSimple("javax.persistence.PrimaryKeyJoinColumn"), - DotName.createSimple("javax.persistence.PrimaryKeyJoinColumns"), - DotName.createSimple("javax.persistence.QueryHint"), - DotName.createSimple("javax.persistence.SecondaryTable"), - DotName.createSimple("javax.persistence.SecondaryTables"), - DotName.createSimple("javax.persistence.SequenceGenerator"), - DotName.createSimple("javax.persistence.SequenceGenerators"), - DotName.createSimple("javax.persistence.SqlResultSetMapping"), - DotName.createSimple("javax.persistence.SqlResultSetMappings"), - DotName.createSimple("javax.persistence.StoredProcedureParameter"), - DotName.createSimple("javax.persistence.Table"), - DotName.createSimple("javax.persistence.TableGenerator"), - DotName.createSimple("javax.persistence.TableGenerators"), - DotName.createSimple("javax.persistence.Temporal"), - DotName.createSimple("javax.persistence.Transient"), - DotName.createSimple("javax.persistence.UniqueConstraint"), - DotName.createSimple("javax.persistence.Version")); + DotName.createSimple("jakarta.persistence.Access"), + DotName.createSimple("jakarta.persistence.AssociationOverride"), + DotName.createSimple("jakarta.persistence.AssociationOverrides"), + DotName.createSimple("jakarta.persistence.AttributeOverride"), + DotName.createSimple("jakarta.persistence.AttributeOverrides"), + DotName.createSimple("jakarta.persistence.Basic"), + DotName.createSimple("jakarta.persistence.Cacheable"), + DotName.createSimple("jakarta.persistence.CollectionTable"), + DotName.createSimple("jakarta.persistence.Column"), + DotName.createSimple("jakarta.persistence.ColumnResult"), + DotName.createSimple("jakarta.persistence.ConstructorResult"), + DotName.createSimple("jakarta.persistence.Convert"), + DotName.createSimple("jakarta.persistence.Converter"), + DotName.createSimple("jakarta.persistence.Converts"), + DotName.createSimple("jakarta.persistence.DiscriminatorColumn"), + DotName.createSimple("jakarta.persistence.DiscriminatorValue"), + DotName.createSimple("jakarta.persistence.ElementCollection"), + DotName.createSimple("jakarta.persistence.Embeddable"), + DotName.createSimple("jakarta.persistence.Embedded"), + DotName.createSimple("jakarta.persistence.EmbeddedId"), + DotName.createSimple("jakarta.persistence.Entity"), + DotName.createSimple("jakarta.persistence.EntityListeners"), + DotName.createSimple("jakarta.persistence.EntityResult"), + DotName.createSimple("jakarta.persistence.Enumerated"), + DotName.createSimple("jakarta.persistence.ExcludeDefaultListeners"), + DotName.createSimple("jakarta.persistence.ExcludeSuperclassListeners"), + DotName.createSimple("jakarta.persistence.FieldResult"), + DotName.createSimple("jakarta.persistence.ForeignKey"), + DotName.createSimple("jakarta.persistence.GeneratedValue"), + DotName.createSimple("jakarta.persistence.Id"), + DotName.createSimple("jakarta.persistence.IdClass"), + DotName.createSimple("jakarta.persistence.Index"), + DotName.createSimple("jakarta.persistence.Inheritance"), + DotName.createSimple("jakarta.persistence.JoinColumn"), + DotName.createSimple("jakarta.persistence.JoinColumns"), + DotName.createSimple("jakarta.persistence.JoinTable"), + DotName.createSimple("jakarta.persistence.Lob"), + DotName.createSimple("jakarta.persistence.ManyToMany"), + DotName.createSimple("jakarta.persistence.ManyToOne"), + DotName.createSimple("jakarta.persistence.MapKey"), + DotName.createSimple("jakarta.persistence.MapKeyClass"), + DotName.createSimple("jakarta.persistence.MapKeyColumn"), + DotName.createSimple("jakarta.persistence.MapKeyEnumerated"), + DotName.createSimple("jakarta.persistence.MapKeyJoinColumn"), + DotName.createSimple("jakarta.persistence.MapKeyJoinColumns"), + DotName.createSimple("jakarta.persistence.MapKeyTemporal"), + DotName.createSimple("jakarta.persistence.MappedSuperclass"), + DotName.createSimple("jakarta.persistence.MapsId"), + DotName.createSimple("jakarta.persistence.NamedAttributeNode"), + DotName.createSimple("jakarta.persistence.NamedEntityGraph"), + DotName.createSimple("jakarta.persistence.NamedEntityGraphs"), + DotName.createSimple("jakarta.persistence.NamedNativeQueries"), + DotName.createSimple("jakarta.persistence.NamedNativeQuery"), + DotName.createSimple("jakarta.persistence.NamedQueries"), + DotName.createSimple("jakarta.persistence.NamedQuery"), + DotName.createSimple("jakarta.persistence.NamedStoredProcedureQueries"), + DotName.createSimple("jakarta.persistence.NamedStoredProcedureQuery"), + DotName.createSimple("jakarta.persistence.NamedSubgraph"), + DotName.createSimple("jakarta.persistence.OneToMany"), + DotName.createSimple("jakarta.persistence.OneToOne"), + DotName.createSimple("jakarta.persistence.OrderBy"), + DotName.createSimple("jakarta.persistence.OrderColumn"), + DotName.createSimple("jakarta.persistence.PersistenceContext"), + DotName.createSimple("jakarta.persistence.PersistenceContexts"), + DotName.createSimple("jakarta.persistence.PersistenceProperty"), + DotName.createSimple("jakarta.persistence.PersistenceUnit"), + DotName.createSimple("jakarta.persistence.PersistenceUnits"), + DotName.createSimple("jakarta.persistence.PostLoad"), + DotName.createSimple("jakarta.persistence.PostPersist"), + DotName.createSimple("jakarta.persistence.PostRemove"), + DotName.createSimple("jakarta.persistence.PostUpdate"), + DotName.createSimple("jakarta.persistence.PrePersist"), + DotName.createSimple("jakarta.persistence.PreRemove"), + DotName.createSimple("jakarta.persistence.PreUpdate"), + DotName.createSimple("jakarta.persistence.PrimaryKeyJoinColumn"), + DotName.createSimple("jakarta.persistence.PrimaryKeyJoinColumns"), + DotName.createSimple("jakarta.persistence.QueryHint"), + DotName.createSimple("jakarta.persistence.SecondaryTable"), + DotName.createSimple("jakarta.persistence.SecondaryTables"), + DotName.createSimple("jakarta.persistence.SequenceGenerator"), + DotName.createSimple("jakarta.persistence.SequenceGenerators"), + DotName.createSimple("jakarta.persistence.SqlResultSetMapping"), + DotName.createSimple("jakarta.persistence.SqlResultSetMappings"), + DotName.createSimple("jakarta.persistence.StoredProcedureParameter"), + DotName.createSimple("jakarta.persistence.Table"), + DotName.createSimple("jakarta.persistence.TableGenerator"), + DotName.createSimple("jakarta.persistence.TableGenerators"), + DotName.createSimple("jakarta.persistence.Temporal"), + DotName.createSimple("jakarta.persistence.Transient"), + DotName.createSimple("jakarta.persistence.UniqueConstraint"), + DotName.createSimple("jakarta.persistence.Version")); public static final List HIBERNATE_MAPPING_ANNOTATIONS = List.of( DotName.createSimple("org.hibernate.annotations.AccessType"), @@ -221,12 +221,12 @@ private HibernateOrmAnnotations() { DotName.createSimple("org.hibernate.engine.jdbc.cursor.internal.StandardRefCursorSupport")); public static final List JPA_LISTENER_ANNOTATIONS = List.of( - DotName.createSimple("javax.persistence.PostLoad"), - DotName.createSimple("javax.persistence.PostPersist"), - DotName.createSimple("javax.persistence.PostRemove"), - DotName.createSimple("javax.persistence.PostUpdate"), - DotName.createSimple("javax.persistence.PrePersist"), - DotName.createSimple("javax.persistence.PreRemove"), - DotName.createSimple("javax.persistence.PreUpdate")); + DotName.createSimple("jakarta.persistence.PostLoad"), + DotName.createSimple("jakarta.persistence.PostPersist"), + DotName.createSimple("jakarta.persistence.PostRemove"), + DotName.createSimple("jakarta.persistence.PostUpdate"), + DotName.createSimple("jakarta.persistence.PrePersist"), + DotName.createSimple("jakarta.persistence.PreRemove"), + DotName.createSimple("jakarta.persistence.PreUpdate")); } diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java index 38bcc201eed4d..11ba38dedd6a8 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java @@ -7,8 +7,8 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java index cd98bf5ae3d65..d788b78380818 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java @@ -32,16 +32,17 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; -import javax.persistence.AttributeConverter; -import javax.persistence.SharedCacheMode; -import javax.persistence.ValidationMode; -import javax.persistence.spi.PersistenceUnitTransactionType; -import javax.transaction.TransactionManager; -import javax.xml.bind.JAXBElement; import javax.xml.namespace.QName; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.SharedCacheMode; +import jakarta.persistence.ValidationMode; +import jakarta.persistence.spi.PersistenceUnitTransactionType; +import jakarta.transaction.TransactionManager; +import jakarta.xml.bind.JAXBElement; + import org.hibernate.boot.archive.scan.spi.ClassDescriptor; import org.hibernate.boot.archive.scan.spi.PackageDescriptor; import org.hibernate.cfg.AvailableSettings; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java index 8890c080ee02a..1d48665ff8724 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaJandexScavenger.java @@ -494,7 +494,7 @@ private static boolean isIgnored(DotName classDotName) { String className = classDotName.toString(); if (className.startsWith("java.util.") || className.startsWith("java.lang.") || className.startsWith("org.hibernate.engine.spi.") - || className.startsWith("javax.persistence.") + || className.startsWith("jakarta.persistence.") || className.startsWith("jakarta.persistence.")) { return true; } diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaModelBuildItem.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaModelBuildItem.java index dd614b1c7347c..00eed878c7aeb 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaModelBuildItem.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/JpaModelBuildItem.java @@ -7,7 +7,7 @@ import java.util.Set; import java.util.TreeSet; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.jboss.jandex.DotName; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/QuarkusPersistenceXmlParser.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/QuarkusPersistenceXmlParser.java index 06189f0913bfa..1293b51191a19 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/QuarkusPersistenceXmlParser.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/QuarkusPersistenceXmlParser.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; -import javax.persistence.spi.PersistenceUnitTransactionType; +import jakarta.persistence.spi.PersistenceUnitTransactionType; import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor; import org.hibernate.jpa.boot.internal.PersistenceXmlParser; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ResteasyReactiveServerIntegrationProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ResteasyReactiveServerIntegrationProcessor.java index 3c1800fd2969f..f015b4037083a 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ResteasyReactiveServerIntegrationProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ResteasyReactiveServerIntegrationProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.deployment; -import javax.persistence.PersistenceException; +import jakarta.persistence.PersistenceException; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.BuildSteps; diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/test/HibernateTestTransactionCallback.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/test/HibernateTestTransactionCallback.java index 96e8de319f2d3..b7a700e2802ff 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/test/HibernateTestTransactionCallback.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/test/HibernateTestTransactionCallback.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.deployment.test; -import javax.enterprise.inject.spi.CDI; -import javax.persistence.EntityManager; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.persistence.EntityManager; import io.quarkus.narayana.jta.runtime.test.TestTransactionCallback; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateMetricsTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateMetricsTestCase.java index 51895d50c14e3..5a0609ecdd0ec 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateMetricsTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateMetricsTestCase.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Id; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; +import jakarta.transaction.Transactional; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.MetricID; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateOrmAnnotationsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateOrmAnnotationsTest.java index 6d27add51d26b..d9e356bc3edc9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateOrmAnnotationsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateOrmAnnotationsTest.java @@ -17,7 +17,7 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import org.hibernate.Hibernate; import org.jboss.jandex.AnnotationInstance; @@ -51,7 +51,7 @@ public static void index() throws IOException { @Test public void testNoMissingJpaAnnotation() { Set jpaMappingAnnotations = findRuntimeAnnotations(jpaIndex); - jpaMappingAnnotations.removeIf(name -> name.toString().startsWith("javax.persistence.metamodel.")); + jpaMappingAnnotations.removeIf(name -> name.toString().startsWith("jakarta.persistence.metamodel.")); assertThat(HibernateOrmAnnotations.JPA_MAPPING_ANNOTATIONS) .containsExactlyInAnyOrderElementsOf(jpaMappingAnnotations); diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPACacheDisabledTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPACacheDisabledTest.java index 16a072e787fbc..22125085774ad 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPACacheDisabledTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPACacheDisabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.hibernate.cache.spi.CacheImplementor; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPAFastBootingTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPAFastBootingTest.java index 78bcacddd6b2a..4c7ecd850e049 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPAFastBootingTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/JPAFastBootingTest.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntity.java index 69a3dfb0d6c4d..82522bff4b6aa 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntity.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.orm; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; @Entity public class MyEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntityTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntityTestResource.java index a2827a372d727..32a9e7347c80b 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntityTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/MyEntityTestResource.java @@ -1,13 +1,13 @@ package io.quarkus.hibernate.orm; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/my-entity") public class MyEntityTestResource { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java index 27bbb9c23b507..a3c88f33abf83 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/NoTransactionTest.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.TransactionRequiredException; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TransactionRequiredException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntity.java index 777ff0d0d081d..aa3644e2e903a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntity.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.orm; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; @Entity public class OtherEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntityTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntityTestResource.java index 43213338a1b61..5241ded42fa87 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntityTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/OtherEntityTestResource.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.orm; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/other-entity") public class OtherEntityTestResource { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SchemaUtil.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SchemaUtil.java index 786743640dfbe..9ddd7e2d461d0 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SchemaUtil.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SchemaUtil.java @@ -4,7 +4,7 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.persister.entity.AbstractEntityPersister; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SmokeTestUtils.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SmokeTestUtils.java index fbaa9784096f8..b720b3f156795 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SmokeTestUtils.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/SmokeTestUtils.java @@ -5,7 +5,7 @@ import java.util.function.BiConsumer; import java.util.function.Function; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * Very simple reusable tests that simply check that persistence doesn't seem to explode. diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/TransactionTestUtils.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/TransactionTestUtils.java index 7f57554a2dbfc..9b8cebb443659 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/TransactionTestUtils.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/TransactionTestUtils.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; public class TransactionTestUtils { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/UseNamedDatasourceTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/UseNamedDatasourceTest.java index 1f32c84dd1535..b8b01f621c584 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/UseNamedDatasourceTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/UseNamedDatasourceTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/GetterAccessAssociationsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/GetterAccessAssociationsTest.java index b11e678d654c0..76a91e1f4d8f9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/GetterAccessAssociationsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/GetterAccessAssociationsTest.java @@ -7,23 +7,23 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.hibernate.LazyInitializationException; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessAssociationsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessAssociationsTest.java index eb33fe93856b5..8f878ae8aeafe 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessAssociationsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessAssociationsTest.java @@ -5,23 +5,23 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFieldTypesTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFieldTypesTest.java index 657bcbefb5a04..e654142647fbb 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFieldTypesTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFieldTypesTest.java @@ -4,17 +4,17 @@ import java.time.LocalDate; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFinalFieldTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFinalFieldTest.java index 14b8157df5b00..c0c317ac5212d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFinalFieldTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessFinalFieldTest.java @@ -12,15 +12,15 @@ import java.util.Objects; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.Embeddable; -import javax.persistence.Embedded; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Embedded; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.transaction.UserTransaction; import org.hibernate.annotations.Immutable; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessInheritanceTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessInheritanceTest.java index 21eca3aedf230..1fff2080e1951 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessInheritanceTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldAccessInheritanceTest.java @@ -2,18 +2,18 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldWithProxyAndLazyLoadingAndInheritanceTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldWithProxyAndLazyLoadingAndInheritanceTest.java index 09ce9e5542bc9..0d54300f1837c 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldWithProxyAndLazyLoadingAndInheritanceTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/applicationfieldaccess/PublicFieldWithProxyAndLazyLoadingAndInheritanceTest.java @@ -9,15 +9,15 @@ import static io.quarkus.hibernate.orm.TransactionTestUtils.inTransaction; import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/attributeconverter/AttributeConverterAutoApplyTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/attributeconverter/AttributeConverterAutoApplyTest.java index f42f99c5d75dc..aeae08943f7e8 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/attributeconverter/AttributeConverterAutoApplyTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/attributeconverter/AttributeConverterAutoApplyTest.java @@ -2,15 +2,15 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.AttributeConverter; -import javax.persistence.Basic; -import javax.persistence.Converter; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Basic; +import jakarta.persistence.Converter; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.transaction.UserTransaction; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/BatchFetchSizeTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/BatchFetchSizeTest.java index cb27c4980500e..46a7ddd81982a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/BatchFetchSizeTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/BatchFetchSizeTest.java @@ -4,8 +4,8 @@ import java.util.List; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.hibernate.Hibernate; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/MainEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/MainEntity.java index 24991eb440382..1c27b81aaabe1 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/MainEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/MainEntity.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class MainEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/OtherEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/OtherEntity.java index c949597ca2d88..021ebffbfe51f 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/OtherEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/batch/OtherEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.batch; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class OtherEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigActiveFalseAndEntityTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigActiveFalseAndEntityTest.java index adba4fcda687f..3c36eac99a6eb 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigActiveFalseAndEntityTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigActiveFalseAndEntityTest.java @@ -3,9 +3,9 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigEnabledFalseAndEntityTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigEnabledFalseAndEntityTest.java index f4ca7a7979d2a..89a28b9e244c4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigEnabledFalseAndEntityTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/ConfigEnabledFalseAndEntityTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/MyEntity.java index f0bd91cbfcdd4..64bea93d727ba 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/MyEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.config; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/namedpu/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/namedpu/MyEntity.java index 448718117c48d..f717f7a5fc5b3 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/namedpu/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/namedpu/MyEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.config.namedpu; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/unsupportedproperties/UnsupportedPropertiesTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/unsupportedproperties/UnsupportedPropertiesTest.java index 7645a5ccc8e26..60f3f592e96f7 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/unsupportedproperties/UnsupportedPropertiesTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/config/unsupportedproperties/UnsupportedPropertiesTest.java @@ -9,15 +9,15 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; +import jakarta.inject.Inject; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; import org.hibernate.BaseSessionEventListener; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/DevConsoleInfoSupplierTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/DevConsoleInfoSupplierTestResource.java index ee7d67d45428a..cb49eafd682bd 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/DevConsoleInfoSupplierTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/DevConsoleInfoSupplierTestResource.java @@ -4,10 +4,10 @@ import java.util.Collection; -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; import io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil; import io.quarkus.hibernate.orm.runtime.devconsole.HibernateOrmDevConsoleInfoSupplier; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithFailingDDLGeneration.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithFailingDDLGeneration.java index f698f9d7eff99..aaaa30ecec2de 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithFailingDDLGeneration.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithFailingDDLGeneration.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.devconsole; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithSuccessfulDDLGeneration.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithSuccessfulDDLGeneration.java index fed6cdfe1f56f..2fdb5533fb640 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithSuccessfulDDLGeneration.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/devconsole/MyEntityWithSuccessfulDDLGeneration.java @@ -1,13 +1,13 @@ package io.quarkus.hibernate.orm.devconsole; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedNativeQuery; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedNativeQuery; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.Table; @Entity(name = MyEntityWithSuccessfulDDLGeneration.NAME) @Table(name = MyEntityWithSuccessfulDDLGeneration.TABLE_NAME) diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java index d378a84c78179..2fda35a337a41 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/Address.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.enhancer; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class Address { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerFinalFieldTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerFinalFieldTest.java index 13a2287eec7c6..cb75eb3788fa6 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerFinalFieldTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/enhancer/HibernateEntityEnhancerFinalFieldTest.java @@ -12,15 +12,15 @@ import java.util.Objects; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.Embeddable; -import javax.persistence.Embedded; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Embedded; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.transaction.UserTransaction; import org.hibernate.annotations.Immutable; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueTest.java index 0171ef5763be2..1576205438b92 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueTest.java @@ -4,9 +4,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithMultiplePUsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithMultiplePUsTest.java index 01d6cef662322..7de645adc39d3 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithMultiplePUsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithMultiplePUsTest.java @@ -4,9 +4,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithPersistenceXmlTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithPersistenceXmlTest.java index a125dc4f807cb..6aeb5fb72ecf3 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithPersistenceXmlTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedDefaultValueWithPersistenceXmlTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedFalseValueWithPersistenceXmlTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedFalseValueWithPersistenceXmlTest.java index c23694cf8b683..9e020a7520bfa 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedFalseValueWithPersistenceXmlTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedFalseValueWithPersistenceXmlTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueTest.java index 326562e12bf75..1322a6297276f 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueTest.java @@ -4,9 +4,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithMultiplePUsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithMultiplePUsTest.java index 73564b1cf1d77..291b825926a5f 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithMultiplePUsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithMultiplePUsTest.java @@ -4,9 +4,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithPersistenceXmlTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithPersistenceXmlTest.java index 150f6759a64a3..474b28bf83fbd 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithPersistenceXmlTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/ignore_explicit_for_joined/IgnoreExplicitForJoinedTrueValueWithPersistenceXmlTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/ApplicationScopedInterceptorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/ApplicationScopedInterceptorTest.java index 3acbf402aed18..d114c555a330d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/ApplicationScopedInterceptorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/ApplicationScopedInterceptorTest.java @@ -7,12 +7,12 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.transaction.UserTransaction; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.transaction.UserTransaction; import org.hibernate.EmptyInterceptor; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/DependentInterceptorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/DependentInterceptorTest.java index c6b7a42a656d4..3824f3b3eb5bd 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/DependentInterceptorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/DependentInterceptorTest.java @@ -7,13 +7,13 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.transaction.UserTransaction; import org.hibernate.EmptyInterceptor; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/TransactionScopedInterceptorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/TransactionScopedInterceptorTest.java index 029d581d7f12d..8878a756c2cb1 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/TransactionScopedInterceptorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/interceptor/TransactionScopedInterceptorTest.java @@ -8,13 +8,13 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.transaction.TransactionScoped; -import javax.transaction.UserTransaction; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.transaction.TransactionScoped; +import jakarta.transaction.UserTransaction; import org.hibernate.EmptyInterceptor; import org.hibernate.Session; @@ -95,7 +95,7 @@ public void testManualSessionNoTransaction() { manualSession.find(MyEntity.class, 0); } }) - .isInstanceOf(javax.enterprise.context.ContextNotActiveException.class); + .isInstanceOf(jakarta.enterprise.context.ContextNotActiveException.class); assertThat(TransactionScopedInterceptor.instances).isEmpty(); assertThat(TransactionScopedInterceptor.loadedIds).isEmpty(); diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java index 81881654bc0db..9b17029e1da03 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/jdbc/ApplicationScopedStatementInspectorTest.java @@ -5,12 +5,12 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.transaction.UserTransaction; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.transaction.UserTransaction; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java index d19a4dd62178a..0efe1e06bdc0d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java @@ -2,9 +2,9 @@ import static io.quarkus.hibernate.orm.TransactionTestUtils.inTransaction; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicDefaultGroupTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicDefaultGroupTest.java index 9de6fb25239b1..0fbd07d71bfe4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicDefaultGroupTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicDefaultGroupTest.java @@ -2,13 +2,13 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.Hibernate; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicMultiNonDefaultGroupTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicMultiNonDefaultGroupTest.java index b55f00ab4e8f1..c3709a6af399b 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicMultiNonDefaultGroupTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicMultiNonDefaultGroupTest.java @@ -2,13 +2,13 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.Hibernate; import org.hibernate.annotations.LazyGroup; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicNonDefaultGroupTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicNonDefaultGroupTest.java index 066369407e320..0d8182b019e92 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicNonDefaultGroupTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/LazyBasicNonDefaultGroupTest.java @@ -2,13 +2,13 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.Hibernate; import org.hibernate.annotations.LazyGroup; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersDefaultValueTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersDefaultValueTest.java index f11a12284f522..fe59e01f3b1b0 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersDefaultValueTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersDefaultValueTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersTrueTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersTrueTest.java index e7110907de6af..da43073745a23 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersTrueTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogBindParametersTrueTest.java @@ -4,9 +4,9 @@ import java.util.logging.Formatter; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlDefaultValueTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlDefaultValueTest.java index 134a7824191ee..9426791910586 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlDefaultValueTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlDefaultValueTest.java @@ -4,8 +4,8 @@ import java.util.Map; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.hibernate.cfg.AvailableSettings; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlFalseTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlFalseTest.java index 12eee82daca9a..0725a4bab39e7 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlFalseTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/log/LogSqlFormatSqlFalseTest.java @@ -4,8 +4,8 @@ import java.util.Map; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.hibernate.cfg.AvailableSettings; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MetadataBuilderContributorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MetadataBuilderContributorTest.java index 322c8a2f397c9..5ea3b81d9a495 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MetadataBuilderContributorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MetadataBuilderContributorTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MyEntity.java index f359e6333e1e0..edcbc3bde6f91 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/metadatabuildercontributor/MyEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.metadatabuildercontributor; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiEntityManagerTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiEntityManagerTest.java index e54a57bd14ca8..3866961095489 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiEntityManagerTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiEntityManagerTest.java @@ -4,12 +4,12 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.TransactionRequiredException; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TransactionRequiredException; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiSessionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiSessionTest.java index 298c8cbcb3cb5..e4b616c6452f0 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiSessionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsCdiSessionTest.java @@ -4,11 +4,11 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.TransactionRequiredException; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.TransactionRequiredException; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsClassLevelAnnotationTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsClassLevelAnnotationTest.java index c54039c29950c..33b996a9a0281 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsClassLevelAnnotationTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsClassLevelAnnotationTest.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsInterceptorTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsInterceptorTest.java index 3ea762b478a4e..d5f73061f69ad 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsInterceptorTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsInterceptorTest.java @@ -7,8 +7,8 @@ import java.util.Collections; import java.util.List; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.hibernate.EmptyInterceptor; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsPackageAnnotationsTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsPackageAnnotationsTest.java index b60cc19306e3c..01640faa96d20 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsPackageAnnotationsTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsPackageAnnotationsTest.java @@ -3,9 +3,9 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionEntityManagerTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionEntityManagerTest.java index 559c3afaea2b0..de7eb15cbae28 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionEntityManagerTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionEntityManagerTest.java @@ -3,9 +3,9 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionSessionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionSessionTest.java index 9f6bb37c5e904..1296ef7636856 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionSessionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsResourceInjectionSessionTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsSqlLoadScriptTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsSqlLoadScriptTestResource.java index 3d6a2f7d73ed1..250e298c1c04c 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsSqlLoadScriptTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsSqlLoadScriptTestResource.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.shared.SharedEntity; @@ -29,4 +29,4 @@ public String getName(@PathParam("id") long id) { return NO_ENTITY_MESSAGE; } -} \ No newline at end of file +} diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsUnaffectedEntitiesTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsUnaffectedEntitiesTest.java index 1f23dad8c30ff..14c8fb08046bc 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsUnaffectedEntitiesTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/MultiplePersistenceUnitsUnaffectedEntitiesTest.java @@ -6,9 +6,9 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/inventory/Plane.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/inventory/Plane.java index 0e30523433e30..ddbc030e9bd78 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/inventory/Plane.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/inventory/Plane.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.inventory; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class Plane { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/shared/SharedEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/shared/SharedEntity.java index 3d6ce1d1fd7de..a44bf088f606e 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/shared/SharedEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/shared/SharedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.shared; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SharedEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/User.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/User.java index 5071e3a692150..5f00bb3efda64 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/User.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/User.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.user; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "User_") diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/subpackage/OtherUserInSubPackage.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/subpackage/OtherUserInSubPackage.java index 23bbff849c261..c31218d987542 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/subpackage/OtherUserInSubPackage.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/annotation/user/subpackage/OtherUserInSubPackage.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.user.subpackage; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class OtherUserInSubPackage { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/DefaultEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/DefaultEntity.java index 2728a81561194..6ba640a717f90 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/DefaultEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/DefaultEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.config; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class DefaultEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/inventory/Plane.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/inventory/Plane.java index d750e05c35492..2933e7327e54e 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/inventory/Plane.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/inventory/Plane.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.config.inventory; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class Plane { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/user/User.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/user/User.java index 97689aadcf801..7af54d28438e4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/user/User.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/multiplepersistenceunits/model/config/user/User.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.multiplepersistenceunits.model.config.user; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "User_") diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/ImplicitNamingStrategyTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/ImplicitNamingStrategyTest.java index 79aab86e17251..63ff486b993fa 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/ImplicitNamingStrategyTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/ImplicitNamingStrategyTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/PhysicalNamingStrategyTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/PhysicalNamingStrategyTest.java index 757e4a47c97c3..5434b8a921a89 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/PhysicalNamingStrategyTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/naming/PhysicalNamingStrategyTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity1.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity1.java index 9f83eee305db2..fa9bca678edb7 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity1.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity1.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.packages; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class ChildEntity1 { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity2.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity2.java index 665d572744948..2feed342d0f86 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity2.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ChildEntity2.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.packages; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class ChildEntity2 { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/PackageLevelAnnotationTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/PackageLevelAnnotationTest.java index b299c86075d08..55f4335c0baa9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/PackageLevelAnnotationTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/PackageLevelAnnotationTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ParentEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ParentEntity.java index 747a825970d3a..f58eb8653d7f1 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ParentEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/packages/ParentEntity.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.packages; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; import org.hibernate.annotations.Any; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/persistenceunitextension/InvalidTypeForPersistenceUnitExtensionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/persistenceunitextension/InvalidTypeForPersistenceUnitExtensionTest.java index b1916e4be18e8..75a9589301ca9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/persistenceunitextension/InvalidTypeForPersistenceUnitExtensionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/persistenceunitextension/InvalidTypeForPersistenceUnitExtensionTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.inject.spi.DeploymentException; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.hibernate.Interceptor; import org.hibernate.boot.model.naming.Identifier; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/Group.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/Group.java index 6cabd8351cf84..ea871f59232ee 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/Group.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/Group.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.quoting_strategies; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * Table with reserved name and containing one column with reserved name and column definition. diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/QuotedResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/QuotedResource.java index 35a0be4dc2cfe..ade8e88bc1f8d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/QuotedResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/quoting_strategies/QuotedResource.java @@ -1,14 +1,14 @@ package io.quarkus.hibernate.orm.quoting_strategies; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; /** * Try to fetch entity with reserved name and containing one column with reserved name and column definition. diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/DefaultEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/DefaultEntity.java index 2bf67932d09a7..945b845eab2ee 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/DefaultEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/DefaultEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.singlepersistenceunit; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class DefaultEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiEntityManagerTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiEntityManagerTest.java index f032a4230e5d0..5c68407bcfdb8 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiEntityManagerTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiEntityManagerTest.java @@ -4,12 +4,12 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.TransactionRequiredException; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TransactionRequiredException; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiSessionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiSessionTest.java index e6745a17c01f7..7661cbac0c603 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiSessionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitCdiSessionTest.java @@ -4,11 +4,11 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.persistence.TransactionRequiredException; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.persistence.TransactionRequiredException; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java index 262c1bd3c32a4..5c68053bc63bb 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java @@ -7,9 +7,9 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java index 8a92fbfafe22e..1e9c30a5a1158 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java @@ -7,9 +7,9 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionEntityManagerTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionEntityManagerTest.java index 97b252688ad6c..cdf642ae33c9b 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionEntityManagerTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionEntityManagerTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionSessionTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionSessionTest.java index 4e2e5904cf0f0..6ae62abf3988c 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionSessionTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/SinglePersistenceUnitResourceInjectionSessionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java index c507545290f99..dbcd3b4b18757 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.singlepersistenceunit.entityassignment.excludedpackage; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class ExcludedEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java index fc3bb7c5dac20..b1a43fe0de646 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.singlepersistenceunit.entityassignment.packageincludedthroughannotation; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class EntityIncludedThroughPackageAnnotation { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java index 2be579366ee19..0512822fc4e6a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.singlepersistenceunit.entityassignment.packageincludedthroughconfig; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class EntityIncludedThroughPackageConfig { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/DataIdentity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/DataIdentity.java index c23c886b76fea..d5b7d22f639be 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/DataIdentity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/DataIdentity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.specialmappings; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass @IdClass(IdVersionPK.class) @@ -28,4 +28,4 @@ public Long getVersion() { public void setVersion(Long version) { this.version = version; } -} \ No newline at end of file +} diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/IdVersionPK.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/IdVersionPK.java index df4d95c6c839a..6bf8c4fca059d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/IdVersionPK.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/IdVersionPK.java @@ -3,7 +3,7 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Id; +import jakarta.persistence.Id; public class IdVersionPK implements Serializable { @Id diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/NormalPointEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/NormalPointEntity.java index 803fb7774f029..3891b82fa07a4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/NormalPointEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/NormalPointEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.specialmappings; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class NormalPointEntity extends PointEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/PointEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/PointEntity.java index 52a06a3aac68a..d5fe7df8dbf16 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/PointEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/specialmappings/PointEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.specialmappings; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public abstract class PointEntity extends DataIdentity { @@ -13,4 +13,4 @@ public String getName() { public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/InvalidMultilineSqlLoadScriptTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/InvalidMultilineSqlLoadScriptTestCase.java index dd4a1347ae167..8c78fddf85721 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/InvalidMultilineSqlLoadScriptTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/InvalidMultilineSqlLoadScriptTestCase.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.sql_load_script; -import javax.persistence.PersistenceException; +import jakarta.persistence.PersistenceException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java index 2308e1d2072e2..083a2cc9e20f2 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/sql_load_script/SqlLoadScriptTestResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.sql_load_script; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.MyEntity; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/AbstractTransactionLifecycleTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/AbstractTransactionLifecycleTest.java index d90b43798d551..8b415a322f23d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/AbstractTransactionLifecycleTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/AbstractTransactionLifecycleTest.java @@ -13,9 +13,9 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.persistence.EntityManager; -import javax.persistence.ParameterMode; -import javax.persistence.StoredProcedureQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.StoredProcedureQuery; import org.hibernate.BaseSessionEventListener; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/GetTransactionLifecycleTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/GetTransactionLifecycleTest.java index 125737565ac54..c01e81bd7c7d9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/GetTransactionLifecycleTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/GetTransactionLifecycleTest.java @@ -2,11 +2,11 @@ import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; public class GetTransactionLifecycleTest extends AbstractTransactionLifecycleTest { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/SimpleEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/SimpleEntity.java index 09c1209b553cd..1cf334a5a3ffb 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/SimpleEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/SimpleEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.transaction; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class SimpleEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/TransactionAnnotationLifecycleTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/TransactionAnnotationLifecycleTest.java index c1e1c63b927da..ae5d701d49559 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/TransactionAnnotationLifecycleTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/TransactionAnnotationLifecycleTest.java @@ -2,10 +2,10 @@ import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; /** * Check transaction lifecycle, including session flushes and the closing of the session. diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/UserTransactionLifecycleTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/UserTransactionLifecycleTest.java index 0aa6e612f07a1..0192d290c3fb2 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/UserTransactionLifecycleTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/transaction/UserTransactionLifecycleTest.java @@ -2,15 +2,15 @@ import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; /** * Check transaction lifecycle, including session flushes and the closing of the session. diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPATestValidationResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPATestValidationResource.java index d338b8b3df610..5f9c41149a286 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPATestValidationResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPATestValidationResource.java @@ -2,13 +2,13 @@ import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.ConstraintViolationException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.ConstraintViolationException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.MyEntity; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java index 33759606d7777..767ef0337761a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/validation/JPAValidationDisabledTestCase.java @@ -2,7 +2,7 @@ import static org.hamcrest.Matchers.is; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlComponentTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlComponentTest.java index 236039dcdb4c9..d9d81ec7f1af6 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlComponentTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlComponentTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlFilterDefTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlFilterDefTest.java index 6c6c75a2841df..14e73e30478f0 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlFilterDefTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlFilterDefTest.java @@ -4,8 +4,8 @@ import java.util.Collections; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlHotReloadTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlHotReloadTestResource.java index 7886aa6020817..8eb4d11b015de 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlHotReloadTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlHotReloadTestResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.xml.hbm; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.SchemaUtil; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlQuarkusConfigTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlQuarkusConfigTest.java index 506ce6f0a26c4..6e827e157e651 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlQuarkusConfigTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/hbm/HbmXmlQuarkusConfigTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/AnnotatedEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/AnnotatedEntity.java index d0976b2d339a6..2080709e8e761 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/AnnotatedEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/AnnotatedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.xml.orm; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class AnnotatedEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlAnnotationOverrideTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlAnnotationOverrideTest.java index b4a753e39a8e3..ab04ceb1f775e 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlAnnotationOverrideTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlAnnotationOverrideTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlHotReloadTestResource.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlHotReloadTestResource.java index c3f8914c32b7b..ad8dd727cc76b 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlHotReloadTestResource.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlHotReloadTestResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.xml.orm; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.SchemaUtil; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPackageTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPackageTest.java index 7dc1d9290c678..147793e902033 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPackageTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPackageTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlExplicitFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlExplicitFileTest.java index e4bec7228c7d7..cd239982aa460 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlExplicitFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlExplicitFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlImplicitFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlImplicitFileTest.java index f7e6e79e7fff4..529175b58c75a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlImplicitFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlImplicitFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlNoFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlNoFileTest.java index c51a708728b32..4f579272352a0 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlNoFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlPersistenceXmlNoFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigExplicitFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigExplicitFileTest.java index 24676dd89b24c..92dba67b09a93 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigExplicitFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigExplicitFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigImplicitFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigImplicitFileTest.java index 9cca47240bcd3..45bec1ccdfe7a 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigImplicitFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigImplicitFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigNoFileTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigNoFileTest.java index 2179bd835eaa1..8dd82105a588d 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigNoFileTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/orm/OrmXmlQuarkusConfigNoFileTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingApplicationPropertiesTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingApplicationPropertiesTest.java index 3a78729cbcda7..71d7e2c2d80f5 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingApplicationPropertiesTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingApplicationPropertiesTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingSystemPropertyTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingSystemPropertyTest.java index c227b301ba371..026f2365ef0c9 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingSystemPropertyTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/ExcludePersistenceXmlConfigUsingSystemPropertyTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/MyEntity.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/MyEntity.java index 2eaf0a1421ba7..14ebc626785b4 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/MyEntity.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/MyEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.xml.persistence; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/PersistenceXmlTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/PersistenceXmlTest.java index 5439e4bb98e66..89ec8090d3281 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/PersistenceXmlTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/xml/persistence/PersistenceXmlTest.java @@ -6,9 +6,9 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Assertions; diff --git a/extensions/hibernate-orm/runtime/pom.xml b/extensions/hibernate-orm/runtime/pom.xml index acacdcf4e5c77..6606e900865f6 100644 --- a/extensions/hibernate-orm/runtime/pom.xml +++ b/extensions/hibernate-orm/runtime/pom.xml @@ -58,38 +58,16 @@ org.hibernate - hibernate-core + hibernate-core-jakarta - - javax.persistence - javax.persistence-api - - - org.jboss.spec.javax.transaction - jboss-transaction-api_1.2_spec - - - - - javax.xml.bind - jaxb-api - org.glassfish.jaxb jaxb-runtime - - jakarta.activation jakarta.activation-api - - javax.activation - javax.activation-api - - - io.smallrye jandex @@ -120,8 +98,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api jakarta.persistence @@ -138,7 +116,7 @@ org.hibernate - quarkus-local-cache + quarkus-local-cache-jakarta * diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnit.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnit.java index cba9795086f54..1bdfd2f285b77 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnit.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnit.java @@ -12,10 +12,10 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import io.quarkus.hibernate.orm.PersistenceUnit.List; import io.quarkus.hibernate.orm.runtime.PersistenceUnitUtil; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnitExtension.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnitExtension.java index 91aec51cc66fd..566455799e962 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnitExtension.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/PersistenceUnitExtension.java @@ -11,8 +11,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * CDI qualifier for beans representing an "extension" of a persistence unit, diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java index c26e77171cf2b..bc603cc3c7553 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java @@ -7,12 +7,13 @@ import java.util.Optional; import java.util.Set; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceException; -import javax.persistence.spi.PersistenceProvider; -import javax.persistence.spi.PersistenceUnitInfo; import javax.sql.DataSource; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.spi.PersistenceProvider; +import jakarta.persistence.spi.PersistenceUnitInfo; + import org.hibernate.boot.registry.StandardServiceInitiator; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.internal.StandardServiceRegistryImpl; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRecorder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRecorder.java index 31a74d5dabfad..3eb01167946f9 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRecorder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/HibernateOrmRecorder.java @@ -8,7 +8,7 @@ import java.util.Set; import java.util.function.Supplier; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.ConfigProvider; import org.hibernate.Session; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java index c3814eb7d8436..d8fa16c5b0810 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/JPAConfig.java @@ -10,14 +10,14 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; import org.jboss.logging.Logger; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java index 52e1ff92a0e29..21bedfc8ab7c2 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceProviderSetup.java @@ -12,13 +12,13 @@ private PersistenceProviderSetup() { } public static void registerStaticInitPersistenceProvider() { - javax.persistence.spi.PersistenceProviderResolverHolder + jakarta.persistence.spi.PersistenceProviderResolverHolder .setPersistenceProviderResolver(new StaticInitHibernatePersistenceProviderResolver()); } public static void registerRuntimePersistenceProvider(HibernateOrmRuntimeConfig hibernateOrmRuntimeConfig, Map> integrationRuntimeDescriptors) { - javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver( + jakarta.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver( new SingletonPersistenceProviderResolver( new FastBootHibernatePersistenceProvider(hibernateOrmRuntimeConfig, integrationRuntimeDescriptors))); } diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java index d106f3be75d20..caf85a8de7249 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitUtil.java @@ -3,7 +3,7 @@ import java.util.Comparator; import java.util.Locale; -import javax.enterprise.inject.Default; +import jakarta.enterprise.inject.Default; import org.jboss.logging.Logger; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/ProviderUtil.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/ProviderUtil.java index 7ef88ce9ad1ad..357883ed67fe6 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/ProviderUtil.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/ProviderUtil.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.runtime; -import javax.persistence.spi.LoadState; +import jakarta.persistence.spi.LoadState; import org.hibernate.jpa.internal.util.PersistenceUtilHelper; -public final class ProviderUtil implements javax.persistence.spi.ProviderUtil { +public final class ProviderUtil implements jakarta.persistence.spi.ProviderUtil { private final PersistenceUtilHelper.MetadataCache cache = new PersistenceUtilHelper.MetadataCache(); @@ -22,4 +22,4 @@ public LoadState isLoadedWithReference(Object proxy, String property) { public LoadState isLoaded(Object o) { return PersistenceUtilHelper.isLoaded(o); } -} \ No newline at end of file +} diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedSessionHolder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedSessionHolder.java index 726c8c788830f..2e7ac977e1e4f 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedSessionHolder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/RequestScopedSessionHolder.java @@ -3,8 +3,8 @@ import java.util.HashMap; import java.util.Map; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/SingletonPersistenceProviderResolver.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/SingletonPersistenceProviderResolver.java index 2deb6703713f7..5a88ab472be03 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/SingletonPersistenceProviderResolver.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/SingletonPersistenceProviderResolver.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.List; -import javax.persistence.spi.PersistenceProvider; -import javax.persistence.spi.PersistenceProviderResolver; +import jakarta.persistence.spi.PersistenceProvider; +import jakarta.persistence.spi.PersistenceProviderResolver; public final class SingletonPersistenceProviderResolver implements PersistenceProviderResolver { diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/StaticInitHibernatePersistenceProviderResolver.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/StaticInitHibernatePersistenceProviderResolver.java index 0a584f45d1f2b..18f90807c24aa 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/StaticInitHibernatePersistenceProviderResolver.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/StaticInitHibernatePersistenceProviderResolver.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.persistence.spi.PersistenceProvider; -import javax.persistence.spi.PersistenceProviderResolver; +import jakarta.persistence.spi.PersistenceProvider; +import jakarta.persistence.spi.PersistenceProviderResolver; /** * During the static init phase, we don't access the PersistenceProviderResolver. diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionSessions.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionSessions.java index 621a1c15e88f6..22ae50d19590b 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionSessions.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/TransactionSessions.java @@ -3,11 +3,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java index f634a1f889564..a1542a51ff1d9 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootEntityManagerFactoryBuilder.java @@ -3,11 +3,12 @@ import java.io.Serializable; import java.security.NoSuchAlgorithmException; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityNotFoundException; -import javax.persistence.PersistenceException; import javax.sql.DataSource; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityNotFoundException; +import jakarta.persistence.PersistenceException; + import org.hibernate.HibernateException; import org.hibernate.Interceptor; import org.hibernate.MultiTenancyStrategy; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java index 84b41b4cbb472..6662a3897919a 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/FastBootMetadataBuilder.java @@ -28,8 +28,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; -import javax.persistence.PersistenceException; -import javax.persistence.spi.PersistenceUnitTransactionType; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.spi.PersistenceUnitTransactionType; import org.hibernate.boot.CacheRegionDefinition; import org.hibernate.boot.MetadataBuilder; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/RuntimePersistenceUnitDescriptor.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/RuntimePersistenceUnitDescriptor.java index 39b74a279cf92..d8895698bfe27 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/RuntimePersistenceUnitDescriptor.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/RuntimePersistenceUnitDescriptor.java @@ -6,9 +6,9 @@ import java.util.Objects; import java.util.Properties; -import javax.persistence.SharedCacheMode; -import javax.persistence.ValidationMode; -import javax.persistence.spi.PersistenceUnitTransactionType; +import jakarta.persistence.SharedCacheMode; +import jakarta.persistence.ValidationMode; +import jakarta.persistence.spi.PersistenceUnitTransactionType; import org.hibernate.bytecode.enhance.spi.EnhancementContext; import org.hibernate.jpa.boot.spi.PersistenceUnitDescriptor; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/xml/JAXBElementSubstitution.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/xml/JAXBElementSubstitution.java index 358741260311f..6ce6f7ad4e8f9 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/xml/JAXBElementSubstitution.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/boot/xml/JAXBElementSubstitution.java @@ -1,8 +1,9 @@ package io.quarkus.hibernate.orm.runtime.boot.xml; -import javax.xml.bind.JAXBElement; import javax.xml.namespace.QName; +import jakarta.xml.bind.JAXBElement; + import io.quarkus.runtime.ObjectSubstitution; import io.quarkus.runtime.annotations.RecordableConstructor; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/cdi/QuarkusArcBeanContainer.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/cdi/QuarkusArcBeanContainer.java index 7271dba47d473..258569ddcb93b 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/cdi/QuarkusArcBeanContainer.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/cdi/QuarkusArcBeanContainer.java @@ -6,10 +6,10 @@ */ package io.quarkus.hibernate.orm.runtime.cdi; -import javax.annotation.PreDestroy; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.hibernate.resource.beans.container.spi.AbstractCdiBeanContainer; import org.hibernate.resource.beans.container.spi.BeanLifecycleStrategy; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/customized/QuarkusJtaPlatform.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/customized/QuarkusJtaPlatform.java index bcef7173c4010..0a5a419a8ee34 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/customized/QuarkusJtaPlatform.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/customized/QuarkusJtaPlatform.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.orm.runtime.customized; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.UserTransaction; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.UserTransaction; import org.hibernate.engine.transaction.jta.platform.internal.JtaSynchronizationStrategy; import org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerAccess; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_PersistenceProviderResolverHolder.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_PersistenceProviderResolverHolder.java index 91f8f238f0875..ba3ed149585ef 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_PersistenceProviderResolverHolder.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/graal/Substitute_PersistenceProviderResolverHolder.java @@ -1,13 +1,13 @@ package io.quarkus.hibernate.orm.runtime.graal; -import javax.persistence.spi.PersistenceProviderResolver; +import jakarta.persistence.spi.PersistenceProviderResolver; import com.oracle.svm.core.annotate.Alias; import com.oracle.svm.core.annotate.RecomputeFieldValue; import com.oracle.svm.core.annotate.RecomputeFieldValue.Kind; import com.oracle.svm.core.annotate.TargetClass; -@TargetClass(className = "javax.persistence.spi.PersistenceProviderResolverHolder") +@TargetClass(className = "jakarta.persistence.spi.PersistenceProviderResolverHolder") public final class Substitute_PersistenceProviderResolverHolder { @Alias diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/session/TransactionScopedSession.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/session/TransactionScopedSession.java index 864e12eb37bc7..4bc638be51d37 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/session/TransactionScopedSession.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/session/TransactionScopedSession.java @@ -5,22 +5,22 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.inject.Instance; -import javax.persistence.EntityGraph; -import javax.persistence.EntityManagerFactory; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.StoredProcedureQuery; -import javax.persistence.TransactionRequiredException; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaDelete; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.CriteriaUpdate; -import javax.persistence.metamodel.Metamodel; -import javax.transaction.Status; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.inject.Instance; +import jakarta.persistence.EntityGraph; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.StoredProcedureQuery; +import jakarta.persistence.TransactionRequiredException; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaDelete; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.CriteriaUpdate; +import jakarta.persistence.metamodel.Metamodel; +import jakarta.transaction.Status; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import org.hibernate.CacheMode; import org.hibernate.Criteria; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/DataSourceTenantConnectionResolver.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/DataSourceTenantConnectionResolver.java index 22a9a1149b3cd..29b38ebebadbe 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/DataSourceTenantConnectionResolver.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/DataSourceTenantConnectionResolver.java @@ -5,7 +5,7 @@ import java.util.Locale; import java.util.Optional; -import javax.enterprise.inject.Default; +import jakarta.enterprise.inject.Default; import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider; import org.jboss.logging.Logger; diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/HibernateMultiTenantConnectionProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/HibernateMultiTenantConnectionProvider.java index 1455be9ea3932..f29c007142fd4 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/HibernateMultiTenantConnectionProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/tenant/HibernateMultiTenantConnectionProvider.java @@ -5,8 +5,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.SessionScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.SessionScoped; import org.hibernate.engine.jdbc.connections.spi.AbstractMultiTenantConnectionProvider; import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider; diff --git a/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/HibernateReactiveProcessor.java b/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/HibernateReactiveProcessor.java index 9986eec287693..b1336aa1da174 100644 --- a/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/HibernateReactiveProcessor.java +++ b/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/HibernateReactiveProcessor.java @@ -21,8 +21,8 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.persistence.SharedCacheMode; -import javax.persistence.spi.PersistenceUnitTransactionType; +import jakarta.persistence.SharedCacheMode; +import jakarta.persistence.spi.PersistenceUnitTransactionType; import org.hibernate.cfg.AvailableSettings; import org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor; diff --git a/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/ResteasyReactiveServerIntegrationProcessor.java b/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/ResteasyReactiveServerIntegrationProcessor.java index 18e9233a30be4..8ddc110495d67 100644 --- a/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/ResteasyReactiveServerIntegrationProcessor.java +++ b/extensions/hibernate-reactive/deployment/src/main/java/io/quarkus/hibernate/reactive/deployment/ResteasyReactiveServerIntegrationProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.deployment; -import javax.persistence.PersistenceException; +import jakarta.persistence.PersistenceException; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.BuildSteps; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/MultiLineImportTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/MultiLineImportTest.java index e9b8e801ed350..4abbf2db1e3df 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/MultiLineImportTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/MultiLineImportTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.inject.Inject; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import org.hibernate.reactive.mutiny.Mutiny; import org.junit.jupiter.api.Test; @@ -39,8 +39,8 @@ public void integerIdentifierWithStageAPI(UniAsserter asserter) { @Table(name = "hero") public static class Hero { - @javax.persistence.Id - @javax.persistence.GeneratedValue + @jakarta.persistence.Id + @jakarta.persistence.GeneratedValue public java.lang.Long id; @Column(unique = true) diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/NoJtaTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/NoJtaTest.java index e88ca37be8719..f6767d8194870 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/NoJtaTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/NoJtaTest.java @@ -2,11 +2,11 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.SessionFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaUpdateTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaUpdateTest.java index 2037112e49898..2124343f20b0b 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaUpdateTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaUpdateTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.inject.Inject; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import org.hibernate.reactive.mutiny.Mutiny; import org.junit.jupiter.api.Test; @@ -43,8 +43,8 @@ public static class Hero { public static final String TABLE = "Hero_for_SchemaUpdateTest"; - @javax.persistence.Id - @javax.persistence.GeneratedValue + @jakarta.persistence.Id + @jakarta.persistence.GeneratedValue public java.lang.Long id; @Column(unique = true) diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaValidateTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaValidateTest.java index 050bab88a818b..7e1a9f83e7b6b 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaValidateTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/SchemaValidateTest.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive; -import javax.inject.Inject; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.inject.Inject; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import org.hibernate.reactive.mutiny.Mutiny; import org.hibernate.tool.schema.spi.SchemaManagementException; @@ -47,8 +47,8 @@ public static class Hero { public static final String TABLE = "Hero_for_validation"; - @javax.persistence.Id - @javax.persistence.GeneratedValue + @jakarta.persistence.Id + @jakarta.persistence.GeneratedValue public java.lang.Long id; @Column(unique = true) diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigActiveFalseAndEntityTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigActiveFalseAndEntityTest.java index 443fd3ce1f2c3..9fcf506db5f91 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigActiveFalseAndEntityTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigActiveFalseAndEntityTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.SessionFactory; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigEnabledFalseAndEntityTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigEnabledFalseAndEntityTest.java index 7e037649319d2..6db964a840beb 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigEnabledFalseAndEntityTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/ConfigEnabledFalseAndEntityTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.persistence.EntityManagerFactory; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.SessionFactory; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/MyEntity.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/MyEntity.java index e423c9f82a47b..7a959c08dffb7 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/MyEntity.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/config/MyEntity.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.reactive.config; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/ContextFruitResource.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/ContextFruitResource.java index b22d7f8309d21..60d4c0ac3945c 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/ContextFruitResource.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/ContextFruitResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.reactive.context; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.resteasy.reactive.RestPath; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/Fruit.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/Fruit.java index 8cd7202aaa9a5..04b97243fec68 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/Fruit.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/context/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.context; -import javax.persistence.*; +import jakarta.persistence.*; @Entity @Table(name = "context_fruits") diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/Fruit.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/Fruit.java index f97af4fa431fa..44ec8f06906d8 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/Fruit.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/Fruit.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.reactive.dev; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/FruitMutinyResource.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/FruitMutinyResource.java index e05664860e2f1..3265081c4040e 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/FruitMutinyResource.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/dev/FruitMutinyResource.java @@ -1,24 +1,24 @@ package io.quarkus.hibernate.reactive.dev; -import static javax.ws.rs.core.Response.Status.CREATED; -import static javax.ws.rs.core.Response.Status.NOT_FOUND; -import static javax.ws.rs.core.Response.Status.NO_CONTENT; +import static jakarta.ws.rs.core.Response.Status.CREATED; +import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; +import static jakarta.ws.rs.core.Response.Status.NO_CONTENT; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.logging.Logger; @@ -103,7 +103,7 @@ public Uni delete(@RestPath Integer id) { * { * "code": 422, * "error": "Fruit name was not set on request.", - * "exceptionType": "javax.ws.rs.WebApplicationException" + * "exceptionType": "jakarta.ws.rs.WebApplicationException" * } * */ diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessFieldTypesTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessFieldTypesTest.java index d5eefc6786237..1cfc3b39edfc6 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessFieldTypesTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessFieldTypesTest.java @@ -4,10 +4,10 @@ import java.time.LocalDate; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.reactive.mutiny.Mutiny; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessInheritanceTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessInheritanceTest.java index 83c7bb07cf70e..c68e9e813d9db 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessInheritanceTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/publicfields/PublicFieldAccessInheritanceTest.java @@ -2,11 +2,11 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.inject.Inject; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import org.hibernate.reactive.mutiny.Mutiny; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/DefaultEntity.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/DefaultEntity.java index 063bbf4d71433..95982ea98dc89 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/DefaultEntity.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/DefaultEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive.singlepersistenceunit; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class DefaultEntity { diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitCdiMutinySessionTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitCdiMutinySessionTest.java index 64d72e3ace611..2ddccd391be79 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitCdiMutinySessionTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitCdiMutinySessionTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.SessionFactory; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java index 7af087c248ea8..6e2f826d7836e 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageAnnotationTest.java @@ -5,7 +5,7 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.logmanager.formatters.PatternFormatter; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java index 2592b675b1a13..01887a8cf8a26 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/SinglePersistenceUnitPackageConfigurationTest.java @@ -5,7 +5,7 @@ import java.util.logging.Formatter; import java.util.logging.Level; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.logmanager.formatters.PatternFormatter; diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java index 2fa155f6a19d7..253b68803aa8b 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/excludedpackage/ExcludedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive.singlepersistenceunit.entityassignment.excludedpackage; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class ExcludedEntity { diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java index 7a1072d3cb749..f95f59133767f 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughannotation/EntityIncludedThroughPackageAnnotation.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive.singlepersistenceunit.entityassignment.packageincludedthroughannotation; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class EntityIncludedThroughPackageAnnotation { diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java index 1be8671a89a49..974055dafc117 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/singlepersistenceunit/entityassignment/packageincludedthroughconfig/EntityIncludedThroughPackageConfig.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive.singlepersistenceunit.entityassignment.packageincludedthroughconfig; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class EntityIncludedThroughPackageConfig { diff --git a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/sql_load_script/FileNotFoundSqlLoadScriptTestCase.java b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/sql_load_script/FileNotFoundSqlLoadScriptTestCase.java index f6dae62380205..3aaac91e32e41 100644 --- a/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/sql_load_script/FileNotFoundSqlLoadScriptTestCase.java +++ b/extensions/hibernate-reactive/deployment/src/test/java/io/quarkus/hibernate/reactive/sql_load_script/FileNotFoundSqlLoadScriptTestCase.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/hibernate-reactive/runtime/pom.xml b/extensions/hibernate-reactive/runtime/pom.xml index ebf2d8c5192af..f4f48e52338d0 100644 --- a/extensions/hibernate-reactive/runtime/pom.xml +++ b/extensions/hibernate-reactive/runtime/pom.xml @@ -33,7 +33,7 @@ org.hibernate.reactive - hibernate-reactive-core + hibernate-reactive-core-jakarta diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/FastBootHibernateReactivePersistenceProvider.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/FastBootHibernateReactivePersistenceProvider.java index 6d641de0e7987..9b0bad1e167c6 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/FastBootHibernateReactivePersistenceProvider.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/FastBootHibernateReactivePersistenceProvider.java @@ -8,11 +8,11 @@ import java.util.Optional; import java.util.Set; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceException; -import javax.persistence.spi.PersistenceProvider; -import javax.persistence.spi.PersistenceUnitInfo; -import javax.persistence.spi.ProviderUtil; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.spi.PersistenceProvider; +import jakarta.persistence.spi.PersistenceUnitInfo; +import jakarta.persistence.spi.ProviderUtil; import org.hibernate.boot.registry.StandardServiceInitiator; import org.hibernate.boot.registry.StandardServiceRegistry; diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactivePersistenceProviderSetup.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactivePersistenceProviderSetup.java index 56585250e4a1f..5f0ebd1d30c97 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactivePersistenceProviderSetup.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactivePersistenceProviderSetup.java @@ -14,13 +14,13 @@ private ReactivePersistenceProviderSetup() { } public static void registerStaticInitPersistenceProvider() { - javax.persistence.spi.PersistenceProviderResolverHolder + jakarta.persistence.spi.PersistenceProviderResolverHolder .setPersistenceProviderResolver(new StaticInitHibernateReactivePersistenceProviderResolver()); } public static void registerRuntimePersistenceProvider(HibernateOrmRuntimeConfig hibernateOrmRuntimeConfig, Map> integrationRuntimeDescriptors) { - javax.persistence.spi.PersistenceProviderResolverHolder + jakarta.persistence.spi.PersistenceProviderResolverHolder .setPersistenceProviderResolver( new SingletonPersistenceProviderResolver( new FastBootHibernateReactivePersistenceProvider(hibernateOrmRuntimeConfig, diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java index e2a664cd5a8ec..0b7fecbf95405 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.reactive.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceUnit; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceUnit; import org.hibernate.reactive.common.spi.MutinyImplementor; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionProducer.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionProducer.java index 2dd1639a0d44d..120c7baa6ee95 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionProducer.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionProducer.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletableFuture; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.hibernate.reactive.common.spi.MutinyImplementor; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/StaticInitHibernateReactivePersistenceProviderResolver.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/StaticInitHibernateReactivePersistenceProviderResolver.java index 0b47e1a334762..5256ca75172ab 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/StaticInitHibernateReactivePersistenceProviderResolver.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/StaticInitHibernateReactivePersistenceProviderResolver.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.persistence.spi.PersistenceProvider; -import javax.persistence.spi.PersistenceProviderResolver; +import jakarta.persistence.spi.PersistenceProvider; +import jakarta.persistence.spi.PersistenceProviderResolver; /** * During the static init phase, we don't access the PersistenceProviderResolver. diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/boot/FastBootReactiveEntityManagerFactoryBuilder.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/boot/FastBootReactiveEntityManagerFactoryBuilder.java index cd4bb55903af9..cbe1d56aac1d5 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/boot/FastBootReactiveEntityManagerFactoryBuilder.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/boot/FastBootReactiveEntityManagerFactoryBuilder.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.runtime.boot; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.boot.internal.SessionFactoryOptionsBuilder; import org.hibernate.boot.registry.StandardServiceRegistry; diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/graal/Substitute_FastBootHibernateReactivePersistenceProvider.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/graal/Substitute_FastBootHibernateReactivePersistenceProvider.java index a1c94be01f6bd..817c2f2d77e3d 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/graal/Substitute_FastBootHibernateReactivePersistenceProvider.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/graal/Substitute_FastBootHibernateReactivePersistenceProvider.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.function.BooleanSupplier; -import javax.persistence.EntityManagerFactory; -import javax.persistence.spi.PersistenceUnitInfo; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.spi.PersistenceUnitInfo; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; diff --git a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/ConfigPropertiesTest.java b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/ConfigPropertiesTest.java index 754b3bb146551..69bc445beff93 100644 --- a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/ConfigPropertiesTest.java +++ b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/ConfigPropertiesTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.SessionFactory; import org.hibernate.search.mapper.orm.coordination.outboxpolling.cfg.HibernateOrmMapperOutboxPollingSettings; diff --git a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/defaultpu/IndexedEntity.java b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/defaultpu/IndexedEntity.java index 0d064ed5cf533..12c78cae95b62 100644 --- a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/defaultpu/IndexedEntity.java +++ b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/defaultpu/IndexedEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.coordination.outboxpolling.test.configuration.defaultpu; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/pu1/IndexedEntityForPU1.java b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/pu1/IndexedEntityForPU1.java index cf05a80b137e3..4e0c818bd3e19 100644 --- a/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/pu1/IndexedEntityForPU1.java +++ b/extensions/hibernate-search-orm-coordination-outbox-polling/deployment/src/test/java/io/quarkus/hibernate/search/orm/coordination/outboxpolling/test/configuration/pu1/IndexedEntityForPU1.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.coordination.outboxpolling.test.configuration.pu1; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml b/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml index e1a203892cb1c..a701c04782af4 100644 --- a/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml +++ b/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml @@ -32,14 +32,7 @@ org.hibernate.search - hibernate-search-mapper-orm-coordination-outbox-polling - - - - javax.persistence - javax.persistence-api - - + hibernate-search-mapper-orm-coordination-outbox-polling-jakarta diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/deployment/HibernateSearchElasticsearchCdiProcessor.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/deployment/HibernateSearchElasticsearchCdiProcessor.java index 6a11e32d701f3..5657ddddb40ed 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/deployment/HibernateSearchElasticsearchCdiProcessor.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/deployment/HibernateSearchElasticsearchCdiProcessor.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; import org.hibernate.search.mapper.orm.mapping.SearchMapping; import org.hibernate.search.mapper.orm.session.SearchSession; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigActiveFalseAndIndexedEntityTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigActiveFalseAndIndexedEntityTest.java index caa45dbfd1bf5..2f1b764605daf 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigActiveFalseAndIndexedEntityTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigActiveFalseAndIndexedEntityTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigEnabledFalseAndIndexedEntityTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigEnabledFalseAndIndexedEntityTest.java index bf77dd8fdce1e..da26204dd8120 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigEnabledFalseAndIndexedEntityTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/ConfigEnabledFalseAndIndexedEntityTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/CustomMappingAndSettingsTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/CustomMappingAndSettingsTest.java index 7fc328d4f3391..3aa27b0df3949 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/CustomMappingAndSettingsTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/CustomMappingAndSettingsTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.hibernate.Session; import org.hibernate.search.backend.elasticsearch.ElasticsearchExtension; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntity.java index 5ad1d68033482..49961c2b2e032 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.configuration; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntityInNamedBackend.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntityInNamedBackend.java index be8b1cbc8d060..6d95058d9eff3 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntityInNamedBackend.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/configuration/IndexedEntityInNamedBackend.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.configuration; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/MultiplePersistenceUnitsCdiTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/MultiplePersistenceUnitsCdiTest.java index e18ea3212eeb5..d5d737b838091 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/MultiplePersistenceUnitsCdiTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/MultiplePersistenceUnitsCdiTest.java @@ -3,12 +3,12 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.UserTransaction; import org.hibernate.search.mapper.orm.Search; import org.hibernate.search.mapper.orm.entity.SearchIndexedEntity; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/defaultpu/DefaultPUEntity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/defaultpu/DefaultPUEntity.java index 24293f35c59a8..2d0700b173735 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/defaultpu/DefaultPUEntity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/defaultpu/DefaultPUEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.multiplepersistenceunits.defaultpu; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu1/PU1Entity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu1/PU1Entity.java index 6af36d0e6e04e..8609edeeccf32 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu1/PU1Entity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu1/PU1Entity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.multiplepersistenceunits.pu1; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu2/PU2Entity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu2/PU2Entity.java index 8620a6b10e328..652a6cdd46c38 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu2/PU2Entity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu2/PU2Entity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.multiplepersistenceunits.pu2; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu3/PU3Entity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu3/PU3Entity.java index 20e33f2d8fe03..3f9e668ab34ff 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu3/PU3Entity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/multiplepersistenceunits/pu3/PU3Entity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.multiplepersistenceunits.pu3; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class PU3Entity { diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/IndexedEntity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/IndexedEntity.java index 591c58bc5f892..d4a886383330e 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/IndexedEntity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/IndexedEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.offline; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/StartOfflineTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/StartOfflineTest.java index c8cd81bf58b5a..05d115866d188 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/StartOfflineTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/offline/StartOfflineTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.hibernate.search.mapper.orm.entity.SearchIndexedEntity; import org.hibernate.search.mapper.orm.mapping.SearchMapping; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/DefaultPUEntity.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/DefaultPUEntity.java index f7069c5ca1ccb..2e89b1d6a3277 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/DefaultPUEntity.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/DefaultPUEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.singlepersistenceunit; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/SinglePersistenceUnitsCdiTest.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/SinglePersistenceUnitsCdiTest.java index 33bd03df55e24..b237f29d1e145 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/SinglePersistenceUnitsCdiTest.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/singlepersistenceunit/SinglePersistenceUnitsCdiTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.hibernate.search.mapper.orm.entity.SearchIndexedEntity; import org.hibernate.search.mapper.orm.mapping.SearchMapping; diff --git a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/util/TransactionUtils.java b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/util/TransactionUtils.java index c43d1646b7f5c..9aa6bd3c661b6 100644 --- a/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/util/TransactionUtils.java +++ b/extensions/hibernate-search-orm-elasticsearch/deployment/src/test/java/io/quarkus/hibernate/search/orm/elasticsearch/test/util/TransactionUtils.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.search.orm.elasticsearch.test.util; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; public class TransactionUtils { private TransactionUtils() { diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml index 459f1b5e40116..2f63595535d7c 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml @@ -31,17 +31,8 @@ org.hibernate.search - hibernate-search-mapper-orm + hibernate-search-mapper-orm-jakarta - - - javax.persistence - javax.persistence-api - - jakarta.activation jakarta.activation-api diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/SearchExtension.java b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/SearchExtension.java index 88c4762423b6c..4571edd4af6b3 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/SearchExtension.java +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/SearchExtension.java @@ -11,8 +11,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/HibernateSearchElasticsearchRecorder.java b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/HibernateSearchElasticsearchRecorder.java index 80619b2a2bcba..994e9caa7dc5f 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/HibernateSearchElasticsearchRecorder.java +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/src/main/java/io/quarkus/hibernate/search/orm/elasticsearch/runtime/HibernateSearchElasticsearchRecorder.java @@ -15,7 +15,7 @@ import java.util.function.BiConsumer; import java.util.function.Supplier; -import javax.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.inject.literal.NamedLiteral; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java b/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java index 1893714d8b3a0..5c7e64ae43358 100644 --- a/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java +++ b/extensions/hibernate-validator/deployment/src/main/java/io/quarkus/hibernate/validator/deployment/HibernateValidatorProcessor.java @@ -15,21 +15,21 @@ import java.util.function.Predicate; import java.util.regex.Pattern; -import javax.inject.Singleton; -import javax.validation.ClockProvider; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorFactory; -import javax.validation.MessageInterpolator; -import javax.validation.ParameterNameProvider; -import javax.validation.TraversableResolver; -import javax.validation.Valid; -import javax.validation.Validation; -import javax.validation.ValidationException; -import javax.validation.ValidatorFactory; -import javax.validation.executable.ValidateOnExecution; -import javax.validation.valueextraction.ValueExtractor; -import javax.ws.rs.Priorities; +import jakarta.inject.Singleton; +import jakarta.validation.ClockProvider; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorFactory; +import jakarta.validation.MessageInterpolator; +import jakarta.validation.ParameterNameProvider; +import jakarta.validation.TraversableResolver; +import jakarta.validation.Valid; +import jakarta.validation.Validation; +import jakarta.validation.ValidationException; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.executable.ValidateOnExecution; +import jakarta.validation.valueextraction.ValueExtractor; +import jakarta.ws.rs.Priorities; import org.hibernate.validator.internal.metadata.core.ConstraintHelper; import org.hibernate.validator.messageinterpolation.AbstractMessageInterpolator; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowMultipleCascadedValidationOnReturnValuesTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowMultipleCascadedValidationOnReturnValuesTest.java index 587204da0b53d..729fdbe3cf01e 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowMultipleCascadedValidationOnReturnValuesTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowMultipleCascadedValidationOnReturnValuesTest.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test; -import javax.inject.Inject; -import javax.validation.Valid; -import javax.validation.Validator; +import jakarta.inject.Inject; +import jakarta.validation.Valid; +import jakarta.validation.Validator; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowOverridingParameterConstraintsTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowOverridingParameterConstraintsTest.java index 09340bb2aa993..85bae6c20febf 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowOverridingParameterConstraintsTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowOverridingParameterConstraintsTest.java @@ -4,11 +4,11 @@ import java.util.Set; -import javax.inject.Inject; -import javax.validation.ConstraintViolation; -import javax.validation.Validator; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Validator; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowParameterConstraintsOnParallelMethodsTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowParameterConstraintsOnParallelMethodsTest.java index 54250c8bbb64f..a7515b371848d 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowParameterConstraintsOnParallelMethodsTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/AllowParameterConstraintsOnParallelMethodsTest.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test; -import javax.inject.Inject; -import javax.validation.Validator; -import javax.validation.constraints.NotNull; +import jakarta.inject.Inject; +import jakarta.validation.Validator; +import jakarta.validation.constraints.NotNull; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintExpressionLanguageFeatureLevelTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintExpressionLanguageFeatureLevelTest.java index f513348a2bdfb..d10db1cbd7a77 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintExpressionLanguageFeatureLevelTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintExpressionLanguageFeatureLevelTest.java @@ -12,13 +12,13 @@ import java.lang.annotation.Target; import java.util.Set; -import javax.inject.Inject; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.ConstraintViolation; -import javax.validation.Payload; -import javax.validation.Validator; +import jakarta.inject.Inject; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Payload; +import jakarta.validation.Validator; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintOnStaticMethodTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintOnStaticMethodTest.java index c33a85e5ed75a..ad5a04f7bf564 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintOnStaticMethodTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintOnStaticMethodTest.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Pattern; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintValidatorLocalesTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintValidatorLocalesTest.java index 8b657216926f5..c6b61391559fc 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintValidatorLocalesTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ConstraintValidatorLocalesTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Pattern; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ContainerElementConstraintsTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ContainerElementConstraintsTest.java index cc043deda8fcb..195e0f6cc2742 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ContainerElementConstraintsTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ContainerElementConstraintsTest.java @@ -7,9 +7,9 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.NotBlank; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.NotBlank; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/CustomConfigurationViaBeansTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/CustomConfigurationViaBeansTest.java index 4fff54f2b928b..6a1f079f4aaa7 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/CustomConfigurationViaBeansTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/CustomConfigurationViaBeansTest.java @@ -10,18 +10,18 @@ import java.util.List; import java.util.Locale; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.validation.ClockProvider; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorFactory; -import javax.validation.MessageInterpolator; -import javax.validation.ParameterNameProvider; -import javax.validation.Path; -import javax.validation.Path.Node; -import javax.validation.TraversableResolver; -import javax.validation.ValidationException; -import javax.validation.ValidatorFactory; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.validation.ClockProvider; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorFactory; +import jakarta.validation.MessageInterpolator; +import jakarta.validation.ParameterNameProvider; +import jakarta.validation.Path; +import jakarta.validation.Path.Node; +import jakarta.validation.TraversableResolver; +import jakarta.validation.ValidationException; +import jakarta.validation.ValidatorFactory; import org.hibernate.validator.HibernateValidatorFactory; import org.hibernate.validator.internal.properties.DefaultGetterPropertySelectionStrategy; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/FailFastTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/FailFastTest.java index b9ee9e116172b..305b6a1413ec4 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/FailFastTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/FailFastTest.java @@ -5,15 +5,15 @@ import java.util.HashSet; import java.util.Set; -import javax.inject.Inject; -import javax.validation.ConstraintViolation; -import javax.validation.Valid; -import javax.validation.Validator; -import javax.validation.constraints.Email; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Valid; +import jakarta.validation.Validator; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/RepeatedConstraintsTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/RepeatedConstraintsTest.java index babbbf70d7309..aaeac56e6a67c 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/RepeatedConstraintsTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/RepeatedConstraintsTest.java @@ -14,14 +14,14 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.Payload; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Pattern; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.Payload; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java index 7eead10336d8b..1a05101cd5254 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/UserCountryNotSetValidatorLocaleTest.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Pattern; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Pattern; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorBeanInjectionTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorBeanInjectionTest.java index 0abec442499b2..846e9ae292863 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorBeanInjectionTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorBeanInjectionTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.inject.Inject; -import javax.validation.ConstraintViolation; -import javax.validation.Validator; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Validator; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorForEarlyInitializedBeanTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorForEarlyInitializedBeanTest.java index 68e0c3313f27b..102c8d6bfe1c1 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorForEarlyInitializedBeanTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorForEarlyInitializedBeanTest.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.validator.test; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.validation.ConstraintViolationException; -import javax.validation.constraints.NotNull; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolationException; +import jakarta.validation.constraints.NotNull; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorFromValidationTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorFromValidationTest.java index d6617531a398b..af40da04c053a 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorFromValidationTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/ValidatorFromValidationTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.validation.ConstraintViolation; -import javax.validation.Validation; -import javax.validation.Validator; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Validation; +import jakarta.validation.Validator; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingInvalidTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingInvalidTest.java index 60ca4f68024ab..f2c3680b8cf72 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingInvalidTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingInvalidTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; -import javax.validation.constraints.Max; +import jakarta.inject.Inject; +import jakarta.validation.constraints.Max; import org.eclipse.microprofile.config.Config; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingValidatorTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingValidatorTest.java index d5c38bdf59683..3b6370fd948ac 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingValidatorTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/config/ConfigMappingValidatorTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.validation.Valid; -import javax.validation.constraints.Size; +import jakarta.inject.Inject; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelConstraint.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelConstraint.java index d2a626c8c7e79..eb5617185270d 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelConstraint.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelConstraint.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; @Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelValidator.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelValidator.java index 60bee5bd083ee..160bffc27491c 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelValidator.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/ClassLevelValidator.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.devmode; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; public class ClassLevelValidator implements ConstraintValidator { @Override diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DependentTestBean.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DependentTestBean.java index 2557dcada50f0..0e17cc241399e 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DependentTestBean.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DependentTestBean.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.validator.test.devmode; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class DependentTestBean { diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeConstraintValidationTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeConstraintValidationTest.java index d787dcd246f67..3392c61f2f740 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeConstraintValidationTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeConstraintValidationTest.java @@ -48,7 +48,7 @@ public void testPropertyConstraintHotReplacement() { .body(containsString("ok")); TEST.modifySourceFile("TestBean.java", s -> s.replace("// ", - "@javax.validation.constraints.NotNull(message=\"My property message\")")); + "@jakarta.validation.constraints.NotNull(message=\"My property message\")")); RestAssured.given() .header("Content-Type", "application/json") @@ -69,7 +69,7 @@ public void testMethodConstraintHotReplacement() { .body(containsString("mymessage")); TEST.modifySourceFile("DependentTestBean.java", s -> s.replace("/* */", - "@javax.validation.constraints.Size(max=1, message=\"My method message\")")); + "@jakarta.validation.constraints.Size(max=1, message=\"My method message\")")); RestAssured.given() .header("Content-Type", "application/json") diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeTestResource.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeTestResource.java index 3b2377ee66239..9f17a8aecf6e8 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeTestResource.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/DevModeTestResource.java @@ -1,14 +1,14 @@ package io.quarkus.hibernate.validator.test.devmode; -import javax.inject.Inject; -import javax.validation.Valid; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.validation.Valid; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/test") public class DevModeTestResource { diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewConstraint.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewConstraint.java index 1f5b8c815ecc0..31f0cfc07d149 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewConstraint.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewConstraint.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; @Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewTestBean.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewTestBean.java index fed21ad884cd4..6a43ff08b0df0 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewTestBean.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewTestBean.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.validator.test.devmode; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; public class NewTestBean { @NotNull(message = "My new bean message") diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewValidator.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewValidator.java index 118ab4ce0cd40..0c72b2e039f8d 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewValidator.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/devmode/NewValidator.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.devmode; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; public class NewValidator implements ConstraintValidator { @Override diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestConstraint.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestConstraint.java index a60a0d7dd803d..a62bf9c7c856e 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestConstraint.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestConstraint.java @@ -10,9 +10,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.Payload; -import javax.validation.constraints.NotNull; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; +import jakarta.validation.constraints.NotNull; @Retention(RUNTIME) @Target({ FIELD, METHOD, ANNOTATION_TYPE, PARAMETER }) diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectedBean.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectedBean.java index e2b62c73eef6d..c1249c670e6c4 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectedBean.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectedBean.java @@ -3,7 +3,7 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class TestInjectedBean { diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectionValidator.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectionValidator.java index 208111599efb5..2c0c619318a57 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectionValidator.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/injection/TestInjectionValidator.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test.injection; -import javax.inject.Inject; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; public class TestInjectionValidator implements ConstraintValidator { diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/HibernateValidatorFactoryCustomizerTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/HibernateValidatorFactoryCustomizerTest.java index 0b6c9e81e6f82..c11b728be12a0 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/HibernateValidatorFactoryCustomizerTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/HibernateValidatorFactoryCustomizerTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleHibernateValidatorFactoryCustomizersTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleHibernateValidatorFactoryCustomizersTest.java index 36800e24ba143..7f40dbd67ed28 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleHibernateValidatorFactoryCustomizersTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleHibernateValidatorFactoryCustomizersTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleValidatorFactoryCustomizersTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleValidatorFactoryCustomizersTest.java index d19b5ec0a18e1..1a66ca25552e1 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleValidatorFactoryCustomizersTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MultipleValidatorFactoryCustomizersTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailHibernateValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailHibernateValidatorFactoryCustomizer.java index 8ab073dfaa13f..5ffa4026115b4 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailHibernateValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailHibernateValidatorFactoryCustomizer.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Email; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Email; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidator.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidator.java index 5764a48df9435..91e0d5feb2737 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidator.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidator.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.constraints.Email; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.constraints.Email; public class MyEmailValidator implements ConstraintValidator { @Override public boolean isValid(CharSequence value, ConstraintValidatorContext context) { return "test1234@acme.com".contentEquals(value); } -} \ No newline at end of file +} diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidatorFactoryCustomizer.java index eedac6a219d0f..63783703022fe 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyEmailValidatorFactoryCustomizer.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Email; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Email; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleHibernateValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleHibernateValidatorFactoryCustomizer.java index 89c3e156dc48a..2571fe8285b6d 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleHibernateValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleHibernateValidatorFactoryCustomizer.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleValidatorFactoryCustomizer.java index ef1149fb28cb0..4f840f72e8189 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyMultipleValidatorFactoryCustomizer.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumValidator.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumValidator.java index 8f661cbebb06f..57c8f2bfe1e7f 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumValidator.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumValidator.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.constraints.Min; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.constraints.Min; public class MyNumValidator implements ConstraintValidator { @Override public boolean isValid(Integer value, ConstraintValidatorContext context) { return value >= 0; } -} \ No newline at end of file +} diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberHibernateValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberHibernateValidatorFactoryCustomizer.java index 0ef9fa4989b73..a25a72282ef4f 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberHibernateValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberHibernateValidatorFactoryCustomizer.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Min; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Min; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberValidatorFactoryCustomizer.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberValidatorFactoryCustomizer.java index c8a0ecd0aeac6..9cd093f6402e1 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/MyNumberValidatorFactoryCustomizer.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.test.validatorfactory; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.Min; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.Min; import org.hibernate.validator.BaseHibernateValidatorConfiguration; import org.hibernate.validator.cfg.ConstraintMapping; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryCustomizerTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryCustomizerTest.java index 9b6904326f11b..f919726875c26 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryCustomizerTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryCustomizerTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationCustomizerTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationCustomizerTest.java index fbf7974ff0509..9785e63086cbf 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationCustomizerTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationCustomizerTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.validation.Validation; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.Email; -import javax.validation.constraints.Min; +import jakarta.validation.Validation; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Min; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationTest.java index 224379c236e97..8c819454dced6 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/validatorfactory/ValidatorFactoryFromValidationTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.validation.Validation; -import javax.validation.ValidatorFactory; +import jakarta.inject.Inject; +import jakarta.validation.Validation; +import jakarta.validation.ValidatorFactory; import org.hibernate.validator.HibernateValidatorFactory; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/ApplicationScopedCustomValueExtractorTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/ApplicationScopedCustomValueExtractorTest.java index 3065ac937e16e..079d501438116 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/ApplicationScopedCustomValueExtractorTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/ApplicationScopedCustomValueExtractorTest.java @@ -2,12 +2,12 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.NotBlank; -import javax.validation.valueextraction.ExtractedValue; -import javax.validation.valueextraction.ValueExtractor; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.valueextraction.ExtractedValue; +import jakarta.validation.valueextraction.ValueExtractor; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/NestedContainerTypeCustomValueExtractorTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/NestedContainerTypeCustomValueExtractorTest.java index 43c1507d5b46b..7b6e672ea4786 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/NestedContainerTypeCustomValueExtractorTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/NestedContainerTypeCustomValueExtractorTest.java @@ -2,12 +2,12 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.NotBlank; -import javax.validation.valueextraction.ExtractedValue; -import javax.validation.valueextraction.ValueExtractor; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.valueextraction.ExtractedValue; +import jakarta.validation.valueextraction.ValueExtractor; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/SingletonCustomValueExtractorTest.java b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/SingletonCustomValueExtractorTest.java index 0c71782b5bd3e..91ce999aaa1e4 100644 --- a/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/SingletonCustomValueExtractorTest.java +++ b/extensions/hibernate-validator/deployment/src/test/java/io/quarkus/hibernate/validator/test/valueextractor/SingletonCustomValueExtractorTest.java @@ -2,12 +2,12 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.validation.ValidatorFactory; -import javax.validation.constraints.NotBlank; -import javax.validation.valueextraction.ExtractedValue; -import javax.validation.valueextraction.ValueExtractor; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.valueextraction.ExtractedValue; +import jakarta.validation.valueextraction.ValueExtractor; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/hibernate-validator/runtime/pom.xml b/extensions/hibernate-validator/runtime/pom.xml index df18cf60093ef..e0cdc46659e27 100644 --- a/extensions/hibernate-validator/runtime/pom.xml +++ b/extensions/hibernate-validator/runtime/pom.xml @@ -27,8 +27,8 @@ - org.glassfish - jakarta.el + org.glassfish.expressly + expressly io.smallrye.config @@ -88,8 +88,8 @@ true - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api org.graalvm.nativeimage diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/HibernateValidatorFactoryCustomizer.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/HibernateValidatorFactoryCustomizer.java index 2e09c793751bb..7855349c384e2 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/HibernateValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/HibernateValidatorFactoryCustomizer.java @@ -4,12 +4,12 @@ /** * Meant to be implemented by a CDI bean that provides arbitrary customization for the default - * {@link javax.validation.ValidatorFactory}. + * {@link jakarta.validation.ValidatorFactory}. *

* All implementations that are registered as CDI beans are taken into account when producing the default - * {@link javax.validation.ValidatorFactory}. + * {@link jakarta.validation.ValidatorFactory}. *

- * Customizers are applied in the order of {@link javax.annotation.Priority}. + * Customizers are applied in the order of {@link jakarta.annotation.Priority}. * * @deprecated Implement {@link ValidatorFactoryCustomizer} instead. */ diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/ValidatorFactoryCustomizer.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/ValidatorFactoryCustomizer.java index 81a0d04777616..03b3fd2027323 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/ValidatorFactoryCustomizer.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/ValidatorFactoryCustomizer.java @@ -4,12 +4,12 @@ /** * Meant to be implemented by a CDI bean that provides arbitrary customization for the default - * {@link javax.validation.ValidatorFactory}. + * {@link jakarta.validation.ValidatorFactory}. *

* All implementations that are registered as CDI beans are taken into account when producing the default - * {@link javax.validation.ValidatorFactory}. + * {@link jakarta.validation.ValidatorFactory}. *

- * Customizers are applied in the order of {@link javax.annotation.Priority}. + * Customizers are applied in the order of {@link jakarta.annotation.Priority}. */ public interface ValidatorFactoryCustomizer { diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ArcConstraintValidatorFactoryImpl.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ArcConstraintValidatorFactoryImpl.java index 719d597cf4159..6662d05dfb3f7 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ArcConstraintValidatorFactoryImpl.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ArcConstraintValidatorFactoryImpl.java @@ -5,9 +5,9 @@ import java.util.IdentityHashMap; import java.util.Map; -import javax.enterprise.context.Dependent; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorFactory; +import jakarta.enterprise.context.Dependent; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorFactory; import org.hibernate.validator.internal.util.privilegedactions.NewInstance; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/CloseAsNoopValidatorFactoryWrapper.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/CloseAsNoopValidatorFactoryWrapper.java index 600fb72a6dcd1..5763f259d66bd 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/CloseAsNoopValidatorFactoryWrapper.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/CloseAsNoopValidatorFactoryWrapper.java @@ -2,12 +2,12 @@ import java.time.Duration; -import javax.validation.ClockProvider; -import javax.validation.ConstraintValidatorFactory; -import javax.validation.MessageInterpolator; -import javax.validation.ParameterNameProvider; -import javax.validation.TraversableResolver; -import javax.validation.Validator; +import jakarta.validation.ClockProvider; +import jakarta.validation.ConstraintValidatorFactory; +import jakarta.validation.MessageInterpolator; +import jakarta.validation.ParameterNameProvider; +import jakarta.validation.TraversableResolver; +import jakarta.validation.Validator; import org.hibernate.validator.HibernateValidatorContext; import org.hibernate.validator.HibernateValidatorFactory; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateBeanValidationConfigValidator.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateBeanValidationConfigValidator.java index 13aafb261b8c6..774e7a5e3c7e9 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateBeanValidationConfigValidator.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateBeanValidationConfigValidator.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.validator.runtime; -import javax.validation.Validator; +import jakarta.validation.Validator; import io.smallrye.config.validator.BeanValidationConfigValidator; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorRecorder.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorRecorder.java index 635dbaf3be022..fd24d663fda7e 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorRecorder.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/HibernateValidatorRecorder.java @@ -6,14 +6,14 @@ import java.util.Set; import java.util.function.Supplier; -import javax.validation.ClockProvider; -import javax.validation.ConstraintValidatorFactory; -import javax.validation.MessageInterpolator; -import javax.validation.ParameterNameProvider; -import javax.validation.TraversableResolver; -import javax.validation.Validation; -import javax.validation.ValidatorFactory; -import javax.validation.valueextraction.ValueExtractor; +import jakarta.validation.ClockProvider; +import jakarta.validation.ConstraintValidatorFactory; +import jakarta.validation.MessageInterpolator; +import jakarta.validation.ParameterNameProvider; +import jakarta.validation.TraversableResolver; +import jakarta.validation.Validation; +import jakarta.validation.ValidatorFactory; +import jakarta.validation.valueextraction.ValueExtractor; import org.hibernate.validator.HibernateValidatorFactory; import org.hibernate.validator.PredefinedScopeHibernateValidator; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/TraverseAllTraversableResolver.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/TraverseAllTraversableResolver.java index ab49b703fb391..56c9ac0fbe4a9 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/TraverseAllTraversableResolver.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/TraverseAllTraversableResolver.java @@ -2,9 +2,9 @@ import java.lang.annotation.ElementType; -import javax.validation.Path; -import javax.validation.Path.Node; -import javax.validation.TraversableResolver; +import jakarta.validation.Path; +import jakarta.validation.Path.Node; +import jakarta.validation.TraversableResolver; class TraverseAllTraversableResolver implements TraversableResolver { diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidationSupport.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidationSupport.java index 444defaf83fd9..ff3e32843e53e 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidationSupport.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidationSupport.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.validator.runtime; -import javax.validation.Validation; -import javax.validation.ValidatorFactory; +import jakarta.validation.Validation; +import jakarta.validation.ValidatorFactory; import org.hibernate.validator.HibernateValidatorFactory; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java index e039659986499..d6651d8354503 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorHolder.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.validator.runtime; -import javax.validation.Validator; +import jakarta.validation.Validator; import org.hibernate.validator.HibernateValidatorFactory; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java index 06af13698972e..40490548aef99 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/ValidatorProvider.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.validator.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Named; -import javax.inject.Singleton; -import javax.validation.Validator; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; +import jakarta.inject.Singleton; +import jakarta.validation.Validator; import org.hibernate.validator.HibernateValidatorFactory; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/AbstractMethodValidationInterceptor.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/AbstractMethodValidationInterceptor.java index a261230842a9f..b7304743d1e2d 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/AbstractMethodValidationInterceptor.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/AbstractMethodValidationInterceptor.java @@ -6,15 +6,15 @@ import java.util.Iterator; import java.util.Set; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.interceptor.InvocationContext; -import javax.validation.ConstraintViolation; -import javax.validation.ConstraintViolationException; -import javax.validation.ElementKind; -import javax.validation.Path; -import javax.validation.Validator; -import javax.validation.executable.ExecutableValidator; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.interceptor.InvocationContext; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ConstraintViolationException; +import jakarta.validation.ElementKind; +import jakarta.validation.Path; +import jakarta.validation.Validator; +import jakarta.validation.executable.ExecutableValidator; /** * NOTE: this is a copy of the interceptor present in hibernate-validator-cdi. diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidated.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidated.java index 70694c89efd74..2aa155a2328cc 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidated.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidated.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * Marker class to indicate a method should be validated. diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidationInterceptor.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidationInterceptor.java index 3033666274f01..330bed7692ae1 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidationInterceptor.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/interceptor/MethodValidationInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.hibernate.validator.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @MethodValidated @Interceptor diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ConstraintTypeUtil20.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ConstraintTypeUtil20.java index da207f41624c6..0ae7e3769718f 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ConstraintTypeUtil20.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ConstraintTypeUtil20.java @@ -2,9 +2,9 @@ import java.util.Iterator; -import javax.validation.ConstraintViolation; -import javax.validation.ElementKind; -import javax.validation.Path.Node; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ElementKind; +import jakarta.validation.Path.Node; import org.jboss.resteasy.api.validation.ConstraintType; import org.jboss.resteasy.resteasy_jaxrs.i18n.Messages; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidated.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidated.java index 4bfb3d358d832..7805f7684ea75 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidated.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidated.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * Marker class to indicate a JAX-RS end point should be validated. diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidationInterceptor.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidationInterceptor.java index 0d891dc9109d8..f844dc545a6af 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidationInterceptor.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/JaxrsEndPointValidationInterceptor.java @@ -7,15 +7,15 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.validation.ConstraintViolationException; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.validation.ConstraintViolationException; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.validator.runtime.interceptor.AbstractMethodValidationInterceptor; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveEndPointValidationInterceptor.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveEndPointValidationInterceptor.java index fe4db63f03cf3..714f0237d4d76 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveEndPointValidationInterceptor.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveEndPointValidationInterceptor.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.validator.runtime.jaxrs; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.validation.ConstraintViolationException; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.validation.ConstraintViolationException; import io.quarkus.hibernate.validator.runtime.interceptor.AbstractMethodValidationInterceptor; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationException.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationException.java index abcdda7f9b7f5..f8f0921bb4ddd 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationException.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationException.java @@ -2,11 +2,11 @@ import java.util.Set; -import javax.validation.ConstraintViolation; -import javax.validation.ConstraintViolationException; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ConstraintViolationException; /** - * Wrapper around a {@link javax.validation.ConstraintViolationException}, + * Wrapper around a {@link jakarta.validation.ConstraintViolationException}, * used to mark a constraint violation as relative to a REST endpoint call. *

* Those violations are handled differently than violations from other, internal components: diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java index f8277aee7c77b..1ac209802307d 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyReactiveViolationExceptionMapper.java @@ -8,16 +8,16 @@ import java.util.List; import java.util.Set; -import javax.validation.ConstraintViolation; -import javax.validation.ConstraintViolationException; -import javax.validation.ElementKind; -import javax.validation.Path; -import javax.validation.ValidationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ConstraintViolationException; +import jakarta.validation.ElementKind; +import jakarta.validation.Path; +import jakarta.validation.ValidationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.common.util.ServerMediaType; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionImpl.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionImpl.java index 802ea9d9f5b67..e79579f5818ff 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionImpl.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionImpl.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.Set; -import javax.validation.ConstraintViolation; -import javax.ws.rs.core.MediaType; +import jakarta.validation.ConstraintViolation; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.api.validation.ResteasyViolationException; import org.jboss.resteasy.core.ResteasyContext; @@ -12,7 +12,7 @@ import org.jboss.resteasy.spi.validation.ConstraintTypeUtil; /** - * Wrapper around a {@link javax.validation.ConstraintViolationException}, + * Wrapper around a {@link jakarta.validation.ConstraintViolationException}, * used to mark a constraint violation as relative to a REST endpoint call. *

* Those violations are handled differently than violations from other, internal components: diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionMapper.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionMapper.java index baafa604b30e3..62344f17bbeed 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionMapper.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ResteasyViolationExceptionMapper.java @@ -1,14 +1,14 @@ package io.quarkus.hibernate.validator.runtime.jaxrs; -import javax.validation.ValidationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.validation.ValidationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.api.validation.ResteasyViolationException; import org.jboss.resteasy.api.validation.Validation; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ValidatorMediaTypeUtil.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ValidatorMediaTypeUtil.java index 90e5ac4f82323..600a7d70df480 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ValidatorMediaTypeUtil.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ValidatorMediaTypeUtil.java @@ -3,7 +3,7 @@ import java.util.Arrays; import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; /** * Utility class to deal with MediaTypes in JAX-RS endpoints. diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ViolationReport.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ViolationReport.java index ab3955ddcac0c..5edd54e4d5f79 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ViolationReport.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/jaxrs/ViolationReport.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; /** * As spec doesn't say anything about the report format, diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/LocaleResolversWrapper.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/LocaleResolversWrapper.java index 53b5d41217a0a..0378d469cca31 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/LocaleResolversWrapper.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/LocaleResolversWrapper.java @@ -2,10 +2,10 @@ import java.util.Locale; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.hibernate.validator.spi.messageinterpolation.LocaleResolver; import org.hibernate.validator.spi.messageinterpolation.LocaleResolverContext; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyClassicLocaleResolver.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyClassicLocaleResolver.java index 237df733e51b2..36c3e1bb1477c 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyClassicLocaleResolver.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyClassicLocaleResolver.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.Map; -import javax.inject.Singleton; -import javax.ws.rs.core.HttpHeaders; +import jakarta.inject.Singleton; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.core.ResteasyContext; diff --git a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyReactiveLocaleResolver.java b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyReactiveLocaleResolver.java index e40a354c3e221..dcaea0a941828 100644 --- a/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyReactiveLocaleResolver.java +++ b/extensions/hibernate-validator/runtime/src/main/java/io/quarkus/hibernate/validator/runtime/locale/ResteasyReactiveLocaleResolver.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; import io.vertx.core.MultiMap; diff --git a/extensions/hibernate-validator/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers b/extensions/hibernate-validator/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers similarity index 100% rename from extensions/hibernate-validator/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers rename to extensions/hibernate-validator/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers diff --git a/extensions/infinispan-client/runtime/pom.xml b/extensions/infinispan-client/runtime/pom.xml index d938542910d32..6ed6bde6be56d 100644 --- a/extensions/infinispan-client/runtime/pom.xml +++ b/extensions/infinispan-client/runtime/pom.xml @@ -63,7 +63,7 @@ org.infinispan - infinispan-client-hotrod + infinispan-client-hotrod-jakarta org.infinispan diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidate.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidate.java index 865e8e79019ef..d3056b4ef2c6b 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidate.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidate.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.infinispan.client.CacheInvalidate.List; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidateAll.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidateAll.java index e93a9258f67b5..e25b9311ccd36 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidateAll.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheInvalidateAll.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.infinispan.client.CacheInvalidateAll.List; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheResult.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheResult.java index 02a77312d76cb..6c1ac7a1e5c8e 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheResult.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/CacheResult.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; /** * When a method annotated with {@link CacheResult} is invoked, Quarkus will use the method argument as key and use it to check diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/Remote.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/Remote.java index 66890ca41f351..08b023d32b889 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/Remote.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/Remote.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.inject.Qualifier; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Qualifier; /** * Qualifier used to specify which remote cache will be injected. diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java index 15ea700883c3a..f87311b1efdcb 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java @@ -8,15 +8,15 @@ import java.util.Scanner; import java.util.Set; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.client.hotrod.RemoteCacheManager; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInterceptor.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInterceptor.java index 1e5cc904f1d74..3b4d5826c63ad 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInterceptor.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInterceptor.java @@ -8,9 +8,9 @@ import java.util.concurrent.CompletionStage; import java.util.function.Supplier; -import javax.inject.Inject; -import javax.interceptor.Interceptor.Priority; -import javax.interceptor.InvocationContext; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor.Priority; +import jakarta.interceptor.InvocationContext; import org.infinispan.client.hotrod.RemoteCacheManager; import org.infinispan.commons.CacheException; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateAllInterceptor.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateAllInterceptor.java index 711da1d49d7f5..32d53f7aa2af0 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateAllInterceptor.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateAllInterceptor.java @@ -4,10 +4,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.commons.CacheException; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateInterceptor.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateInterceptor.java index f533c16ca2942..a6325346ebd8c 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateInterceptor.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheInvalidateInterceptor.java @@ -5,10 +5,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.commons.CacheException; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheResultInterceptor.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheResultInterceptor.java index 2fc4507f83f1e..a420b2684ad26 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheResultInterceptor.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/CacheResultInterceptor.java @@ -4,11 +4,11 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.commons.CacheException; diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/SynchronousInfinispanGet.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/SynchronousInfinispanGet.java index 540fa909f8886..caa706102e39d 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/SynchronousInfinispanGet.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/cache/SynchronousInfinispanGet.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SynchronousInfinispanGet { diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/health/InfinispanHealthCheck.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/health/InfinispanHealthCheck.java index 1c77a269bb44b..5f9772dea4497 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/health/InfinispanHealthCheck.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/health/InfinispanHealthCheck.java @@ -3,8 +3,8 @@ import java.util.Arrays; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/jackson/deployment/src/main/java/io/quarkus/jackson/deployment/JacksonProcessor.java b/extensions/jackson/deployment/src/main/java/io/quarkus/jackson/deployment/JacksonProcessor.java index 065b5e6efcc5b..092395e76e026 100644 --- a/extensions/jackson/deployment/src/main/java/io/quarkus/jackson/deployment/JacksonProcessor.java +++ b/extensions/jackson/deployment/src/main/java/io/quarkus/jackson/deployment/JacksonProcessor.java @@ -13,8 +13,8 @@ import java.util.Optional; import java.util.Set; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonAcceptCaseInsensitiveEnumsTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonAcceptCaseInsensitiveEnumsTest.java index 4f924ca5f476b..f3432569ebe60 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonAcceptCaseInsensitiveEnumsTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonAcceptCaseInsensitiveEnumsTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonClassNamePropertyNameStrategyTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonClassNamePropertyNameStrategyTest.java index 88b6960da59ea..fdc02b708a427 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonClassNamePropertyNameStrategyTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonClassNamePropertyNameStrategyTest.java @@ -1,6 +1,6 @@ package io.quarkus.jackson.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonDontWriteDatesAsTimestampsTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonDontWriteDatesAsTimestampsTest.java index 2ec4130b7f05c..d7f120ae71d7a 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonDontWriteDatesAsTimestampsTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonDontWriteDatesAsTimestampsTest.java @@ -5,7 +5,7 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonErroneousTimeZonePropertiesTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonErroneousTimeZonePropertiesTest.java index f13a896c2f8c8..db53d96ddedd8 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonErroneousTimeZonePropertiesTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonErroneousTimeZonePropertiesTest.java @@ -5,8 +5,8 @@ import java.time.zone.ZoneRulesException; import java.util.Date; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansNotSetTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansNotSetTest.java index f87e648435f82..630c17a992750 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansNotSetTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansNotSetTest.java @@ -1,6 +1,6 @@ package io.quarkus.jackson.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansSetTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansSetTest.java index d437165e25733..c27403fc737b5 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansSetTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnEmptyBeansSetTest.java @@ -1,6 +1,6 @@ package io.quarkus.jackson.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnUnknownPropertiesTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnUnknownPropertiesTest.java index 039fbb0d9dcd9..c8ad9d282682a 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnUnknownPropertiesTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFailOnUnknownPropertiesTest.java @@ -1,6 +1,6 @@ package io.quarkus.jackson.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFieldNamePropertyNameStrategyTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFieldNamePropertyNameStrategyTest.java index c3f13399b0b27..8f78da5d96ab6 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFieldNamePropertyNameStrategyTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonFieldNamePropertyNameStrategyTest.java @@ -1,6 +1,6 @@ package io.quarkus.jackson.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonIgnoreUnknownPropertiesTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonIgnoreUnknownPropertiesTest.java index b99971101e37f..2c00985e02659 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonIgnoreUnknownPropertiesTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonIgnoreUnknownPropertiesTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithCustomizerTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithCustomizerTest.java index 98aceaa3b0be9..630fa65a65890 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithCustomizerTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithCustomizerTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThat; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithoutCustomizerTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithoutCustomizerTest.java index 0dd321f6afbf9..93eecd11ca560 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithoutCustomizerTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonMixinsWithoutCustomizerTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java index c2a424acd85d1..5a243e03723e5 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonTimeZonePropertiesTest.java @@ -6,7 +6,7 @@ import java.time.ZonedDateTime; import java.util.Date; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDatesAsTimestampsTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDatesAsTimestampsTest.java index c31a62a3bffec..e14da1cb4f528 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDatesAsTimestampsTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDatesAsTimestampsTest.java @@ -5,7 +5,7 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsDisabledTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsDisabledTest.java index 96fd82f3c892d..b5d646a014340 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsDisabledTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsDisabledTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsEnabledTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsEnabledTest.java index 307144d6d2d98..7983edc0f9fe6 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsEnabledTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/JacksonWriteDurationsAsTimestampsEnabledTest.java @@ -4,7 +4,7 @@ import java.time.Duration; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/OverrideZonedDateTimeSerializerTest.java b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/OverrideZonedDateTimeSerializerTest.java index 7ad94301b52cd..20ea1a89a2eb1 100644 --- a/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/OverrideZonedDateTimeSerializerTest.java +++ b/extensions/jackson/deployment/src/test/java/io/quarkus/jackson/deployment/OverrideZonedDateTimeSerializerTest.java @@ -6,8 +6,8 @@ import java.time.ZonedDateTime; import java.util.ArrayList; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jackson/runtime/src/main/java/io/quarkus/jackson/runtime/ObjectMapperProducer.java b/extensions/jackson/runtime/src/main/java/io/quarkus/jackson/runtime/ObjectMapperProducer.java index 1ab6e7ceca49c..0675633a7e99e 100644 --- a/extensions/jackson/runtime/src/main/java/io/quarkus/jackson/runtime/ObjectMapperProducer.java +++ b/extensions/jackson/runtime/src/main/java/io/quarkus/jackson/runtime/ObjectMapperProducer.java @@ -6,9 +6,9 @@ import java.util.List; import java.util.TimeZone; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java index 95e764f818b01..a6400b1e1db24 100644 --- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java +++ b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java @@ -5,7 +5,7 @@ import java.text.NumberFormat; import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java index d96e95470b6e8..3e0c864aeee0a 100644 --- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java +++ b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java @@ -5,7 +5,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java index c6b21f731723e..1302b401001b8 100644 --- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java +++ b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; diff --git a/extensions/jaeger/runtime/pom.xml b/extensions/jaeger/runtime/pom.xml index e89669de47d9c..3f02d002fe8ac 100644 --- a/extensions/jaeger/runtime/pom.xml +++ b/extensions/jaeger/runtime/pom.xml @@ -36,8 +36,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation jakarta.annotation diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java index 1e9ef522778e0..e912d406b49e2 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/QuarkusJaegerTracer.java @@ -1,8 +1,8 @@ package io.quarkus.jaeger.runtime; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/ZipkinReporterProvider.java b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/ZipkinReporterProvider.java index 5f94d47fa4e33..0ece5c46cb821 100644 --- a/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/ZipkinReporterProvider.java +++ b/extensions/jaeger/runtime/src/main/java/io/quarkus/jaeger/runtime/ZipkinReporterProvider.java @@ -1,7 +1,7 @@ package io.quarkus.jaeger.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; @Singleton public class ZipkinReporterProvider { diff --git a/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java b/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java index a8b8a8a9f4e81..fb1857bc3c2a5 100644 --- a/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java +++ b/extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java @@ -9,39 +9,39 @@ import java.util.List; import java.util.stream.Stream; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.annotation.XmlAccessOrder; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyAttribute; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttachmentRef; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlID; -import javax.xml.bind.annotation.XmlIDREF; -import javax.xml.bind.annotation.XmlInlineBinaryData; -import javax.xml.bind.annotation.XmlList; -import javax.xml.bind.annotation.XmlMimeType; -import javax.xml.bind.annotation.XmlMixed; -import javax.xml.bind.annotation.XmlNs; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchema; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlSchemaTypes; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlTransient; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.annotation.XmlAccessOrder; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAnyAttribute; +import jakarta.xml.bind.annotation.XmlAnyElement; +import jakarta.xml.bind.annotation.XmlAttachmentRef; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementDecl; +import jakarta.xml.bind.annotation.XmlElementRef; +import jakarta.xml.bind.annotation.XmlElementRefs; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlEnum; +import jakarta.xml.bind.annotation.XmlEnumValue; +import jakarta.xml.bind.annotation.XmlID; +import jakarta.xml.bind.annotation.XmlIDREF; +import jakarta.xml.bind.annotation.XmlInlineBinaryData; +import jakarta.xml.bind.annotation.XmlList; +import jakarta.xml.bind.annotation.XmlMimeType; +import jakarta.xml.bind.annotation.XmlMixed; +import jakarta.xml.bind.annotation.XmlNs; +import jakarta.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchema; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlSchemaTypes; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlValue; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapters; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; @@ -119,54 +119,54 @@ class JaxbProcessor { private static final List IGNORE_TYPES = List.of(DotName.createSimple("javax.xml.datatype.XMLGregorianCalendar")); private static final List NATIVE_PROXY_DEFINITIONS = List.of( - "com.sun.xml.bind.marshaller.CharacterEscapeHandler", + "org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler", "com.sun.xml.txw2.output.CharacterEscapeHandler", - "com.sun.xml.bind.v2.schemagen.episode.Bindings", - "com.sun.xml.bind.v2.schemagen.episode.SchemaBindings", - "com.sun.xml.bind.v2.schemagen.episode.Klass", - "com.sun.xml.bind.v2.schemagen.episode.Package", - "com.sun.xml.bind.v2.schemagen.xmlschema.Annotated", - "com.sun.xml.bind.v2.schemagen.xmlschema.Annotation", - "com.sun.xml.bind.v2.schemagen.xmlschema.Any", - "com.sun.xml.bind.v2.schemagen.xmlschema.Appinfo", - "com.sun.xml.bind.v2.schemagen.xmlschema.AttrDecls", - "com.sun.xml.bind.v2.schemagen.xmlschema.AttributeType", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexContent", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexExtension", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexRestriction", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexType", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexTypeHost", - "com.sun.xml.bind.v2.schemagen.xmlschema.ComplexTypeModel", - "com.sun.xml.bind.v2.schemagen.xmlschema.ContentModelContainer", - "com.sun.xml.bind.v2.schemagen.xmlschema.Documentation", - "com.sun.xml.bind.v2.schemagen.xmlschema.Element", - "com.sun.xml.bind.v2.schemagen.xmlschema.ExplicitGroup", - "com.sun.xml.bind.v2.schemagen.xmlschema.ExtensionType", - "com.sun.xml.bind.v2.schemagen.xmlschema.FixedOrDefault", - "com.sun.xml.bind.v2.schemagen.xmlschema.Import", - "com.sun.xml.bind.v2.schemagen.xmlschema.List", - "com.sun.xml.bind.v2.schemagen.xmlschema.LocalAttribute", - "com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement", - "com.sun.xml.bind.v2.schemagen.xmlschema.NestedParticle", - "com.sun.xml.bind.v2.schemagen.xmlschema.NoFixedFacet", - "com.sun.xml.bind.v2.schemagen.xmlschema.Occurs", - "com.sun.xml.bind.v2.schemagen.xmlschema.Particle", - "com.sun.xml.bind.v2.schemagen.xmlschema.Redefinable", - "com.sun.xml.bind.v2.schemagen.xmlschema.Schema", - "com.sun.xml.bind.v2.schemagen.xmlschema.SchemaTop", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleContent", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleDerivation", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleExtension", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleRestriction", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleRestrictionModel", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleType", - "com.sun.xml.bind.v2.schemagen.xmlschema.SimpleTypeHost", - "com.sun.xml.bind.v2.schemagen.xmlschema.TopLevelAttribute", - "com.sun.xml.bind.v2.schemagen.xmlschema.TopLevelElement", - "com.sun.xml.bind.v2.schemagen.xmlschema.TypeDefParticle", - "com.sun.xml.bind.v2.schemagen.xmlschema.TypeHost", - "com.sun.xml.bind.v2.schemagen.xmlschema.Union", - "com.sun.xml.bind.v2.schemagen.xmlschema.Wildcard", + "org.glassfish.jaxb.core.v2.schemagen.episode.Bindings", + "org.glassfish.jaxb.core.v2.schemagen.episode.SchemaBindings", + "org.glassfish.jaxb.core.v2.schemagen.episode.Klass", + "org.glassfish.jaxb.core.v2.schemagen.episode.Package", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Annotated", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Annotation", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Any", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Appinfo", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.AttrDecls", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.AttributeType", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexContent", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexExtension", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexRestriction", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexType", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexTypeHost", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ComplexTypeModel", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ContentModelContainer", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Documentation", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Element", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ExplicitGroup", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.ExtensionType", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.FixedOrDefault", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Import", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.List", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.LocalAttribute", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.LocalElement", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.NestedParticle", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.NoFixedFacet", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Occurs", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Particle", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Redefinable", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Schema", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SchemaTop", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleContent", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleDerivation", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleExtension", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleRestriction", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleRestrictionModel", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleType", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.SimpleTypeHost", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.TopLevelAttribute", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.TopLevelElement", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.TypeDefParticle", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.TypeHost", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Union", + "org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.Wildcard", "com.sun.xml.txw2.TypedXmlWriter"); @BuildStep @@ -221,7 +221,7 @@ void processAnnotationsAndIndexFiles( } if (!index.getAnnotations(XML_ANY_ELEMENT).isEmpty()) { - addReflectiveClass(reflectiveClass, false, false, "javax.xml.bind.annotation.W3CDomHandler"); + addReflectiveClass(reflectiveClass, false, false, "jakarta.xml.bind.annotation.W3CDomHandler"); } JAXB_ANNOTATIONS.stream() @@ -232,7 +232,7 @@ void processAnnotationsAndIndexFiles( // Register @XmlSeeAlso proxyDefinitions.produce(new NativeImageProxyDefinitionBuildItem(XmlSeeAlso.class.getName(), - "com.sun.xml.bind.v2.model.annotation.Locatable")); + "org.glassfish.jaxb.core.v2.model.annotation.Locatable")); for (AnnotationInstance xmlSeeAlsoAnn : index.getAnnotations(XML_SEE_ALSO)) { AnnotationValue value = xmlSeeAlsoAnn.value(); Type[] types = value.asClassArray(); @@ -265,14 +265,14 @@ void registerClasses( BuildProducer providerItem, BuildProducer reflectiveClass, BuildProducer resourceBundle) { - addReflectiveClass(reflectiveClass, true, false, "com.sun.xml.bind.v2.ContextFactory"); + addReflectiveClass(reflectiveClass, true, false, "org.glassfish.jaxb.runtime.v2.ContextFactory"); addReflectiveClass(reflectiveClass, true, false, "com.sun.xml.internal.stream.XMLInputFactoryImpl"); addReflectiveClass(reflectiveClass, true, false, "com.sun.xml.internal.stream.XMLOutputFactoryImpl"); addReflectiveClass(reflectiveClass, true, false, "com.sun.org.apache.xpath.internal.functions.FuncNot"); addReflectiveClass(reflectiveClass, true, false, "com.sun.org.apache.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl"); - addResourceBundle(resourceBundle, "javax.xml.bind.Messages"); - addResourceBundle(resourceBundle, "javax.xml.bind.helpers.Messages"); + addResourceBundle(resourceBundle, "jakarta.xml.bind.Messages"); + addResourceBundle(resourceBundle, "jakarta.xml.bind.helpers.Messages"); nativeImageProps .produce(new NativeImageSystemPropertyBuildItem("com.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize", "true")); @@ -282,7 +282,8 @@ void registerClasses( .forEach(className -> addReflectiveClass(reflectiveClass, true, false, className)); providerItem - .produce(new ServiceProviderBuildItem(JAXBContext.class.getName(), "com.sun.xml.bind.v2.ContextFactory")); + .produce(new ServiceProviderBuildItem(JAXBContext.class.getName(), + "org.glassfish.jaxb.runtime.v2.ContextFactory")); } @BuildStep diff --git a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/CustomJaxbContextCustomizer.java b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/CustomJaxbContextCustomizer.java index dd9213cadc501..2e9797c01f610 100644 --- a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/CustomJaxbContextCustomizer.java +++ b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/CustomJaxbContextCustomizer.java @@ -1,8 +1,8 @@ package io.quarkus.jaxb.deployment; -import javax.inject.Singleton; -import javax.xml.bind.Marshaller; -import javax.xml.bind.PropertyException; +import jakarta.inject.Singleton; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.PropertyException; import io.quarkus.jaxb.runtime.JaxbContextCustomizer; diff --git a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/InjectJaxbContextTest.java b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/InjectJaxbContextTest.java index 308ffe5a4d2fa..44041e1533fef 100644 --- a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/InjectJaxbContextTest.java +++ b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/InjectJaxbContextTest.java @@ -5,11 +5,11 @@ import java.io.StringWriter; -import javax.inject.Inject; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.Unmarshaller; +import jakarta.inject.Inject; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.Unmarshaller; import org.junit.jupiter.api.Test; diff --git a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/Person.java b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/Person.java index c038dce2d5348..d577429e6b547 100644 --- a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/Person.java +++ b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/Person.java @@ -1,8 +1,8 @@ package io.quarkus.jaxb.deployment; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) diff --git a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java index f771bed3da497..d4f987a44af81 100644 --- a/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java +++ b/extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java @@ -6,5 +6,5 @@ }) package io.quarkus.jaxb.deployment.info; -import javax.xml.bind.annotation.XmlNs; -import javax.xml.bind.annotation.XmlSchema; +import jakarta.xml.bind.annotation.XmlNs; +import jakarta.xml.bind.annotation.XmlSchema; diff --git a/extensions/jaxb/runtime/pom.xml b/extensions/jaxb/runtime/pom.xml index 44f49a71aeb53..253895f4381bc 100644 --- a/extensions/jaxb/runtime/pom.xml +++ b/extensions/jaxb/runtime/pom.xml @@ -38,8 +38,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api @@ -51,7 +51,7 @@ javax.xml.bind:jaxb-api - jakarta.xml.bind:jakarta.xml.bind-api + org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec diff --git a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextCustomizer.java b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextCustomizer.java index fd354b24261da..8f1909d1e45a1 100644 --- a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextCustomizer.java +++ b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextCustomizer.java @@ -2,10 +2,10 @@ import java.util.Map; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.Marshaller; -import javax.xml.bind.PropertyException; -import javax.xml.bind.Unmarshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.PropertyException; +import jakarta.xml.bind.Unmarshaller; /** * Meant to be implemented by a CDI bean that provides arbitrary customization for the default {@link JAXBContext}. diff --git a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextProducer.java b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextProducer.java index 0d1217fca9e6c..7e42e1ba226f4 100644 --- a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextProducer.java +++ b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/JaxbContextProducer.java @@ -6,15 +6,15 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.Unmarshaller; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.Unmarshaller; import io.quarkus.arc.DefaultBean; diff --git a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/graal/JAXBSubstitutions.java b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/graal/JAXBSubstitutions.java index d1c236671057e..36d2abb05f48c 100644 --- a/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/graal/JAXBSubstitutions.java +++ b/extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/graal/JAXBSubstitutions.java @@ -6,17 +6,18 @@ import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlSeeAlso; + +import org.glassfish.jaxb.core.v2.model.annotation.Locatable; +import org.glassfish.jaxb.runtime.v2.model.annotation.LocatableAnnotation; import com.oracle.svm.core.annotate.Alias; import com.oracle.svm.core.annotate.RecomputeFieldValue; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; -import com.sun.xml.bind.v2.model.annotation.Locatable; -import com.sun.xml.bind.v2.model.annotation.LocatableAnnotation; -@TargetClass(className = "com.sun.xml.bind.v2.model.nav.ReflectionNavigator") -final class Target_com_sun_xml_bind_v2_model_nav_ReflectionNavigator { +@TargetClass(className = "org.glassfish.jaxb.core.v2.model.nav.ReflectionNavigator") +final class Target_org_glassfish_jaxb_core_v2_model_nav_ReflectionNavigator { @Substitute public Field[] getEnumConstants(Class clazz) { @@ -35,26 +36,8 @@ public Field[] getEnumConstants(Class clazz) { } -@TargetClass(className = "com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector") -@Substitute -final class Target_com_sun_xml_bind_v2_runtime_reflect_opt_AccessorInjector { - - /** - * Loads the optimized class and returns it. - * - * @return null - * if it fails for some reason. - */ - @Substitute() - public static Class prepare( - Class beanClass, String templateClassName, String newClassName, String... replacements) { - return null; - } - -} - -@TargetClass(className = "com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader") -final class Target_com_sun_xml_bind_v2_model_annotation_RuntimeInlineAnnotationReader { +@TargetClass(className = "org.glassfish.jaxb.runtime.v2.model.annotation.RuntimeInlineAnnotationReader") +final class Target_org_glassfish_jaxb_runtime_v2_model_annotation_RuntimeInlineAnnotationReader { @Alias @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.NewInstance, declClass = HashMap.class) diff --git a/extensions/jdbc/jdbc-db2/deployment/src/main/java/io/quarkus/jdbc/db2/deployment/JakartaEnablement.java b/extensions/jdbc/jdbc-db2/deployment/src/main/java/io/quarkus/jdbc/db2/deployment/JakartaEnablement.java index 777fa15c04650..ce8ec45c8ad26 100644 --- a/extensions/jdbc/jdbc-db2/deployment/src/main/java/io/quarkus/jdbc/db2/deployment/JakartaEnablement.java +++ b/extensions/jdbc/jdbc-db2/deployment/src/main/java/io/quarkus/jdbc/db2/deployment/JakartaEnablement.java @@ -23,7 +23,7 @@ import io.quarkus.deployment.builditem.BytecodeTransformerBuildItem; /** - * The DB2 driver is compiled using references to classes in the javax.transaction + * The DB2 driver is compiled using references to classes in the jakarta.transaction * package; we need to transform these to fix compatibility with jakarta.transaction. * We do this by leveraging the Eclipse Transformer project during Augmentation, so * that end users don't need to bother. diff --git a/extensions/jdbc/jdbc-db2/deployment/src/test/java/io/quarkus/jdbc/db2/deployment/DevServicesDB2DatasourceTestCase.java b/extensions/jdbc/jdbc-db2/deployment/src/test/java/io/quarkus/jdbc/db2/deployment/DevServicesDB2DatasourceTestCase.java index a285aa1e53773..c18a342d15aaa 100644 --- a/extensions/jdbc/jdbc-db2/deployment/src/test/java/io/quarkus/jdbc/db2/deployment/DevServicesDB2DatasourceTestCase.java +++ b/extensions/jdbc/jdbc-db2/deployment/src/test/java/io/quarkus/jdbc/db2/deployment/DevServicesDB2DatasourceTestCase.java @@ -8,7 +8,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-derby/deployment/src/test/java/io/quarkus/jdbc/derby/deployment/DevServicesDerbyDatasourceTestCase.java b/extensions/jdbc/jdbc-derby/deployment/src/test/java/io/quarkus/jdbc/derby/deployment/DevServicesDerbyDatasourceTestCase.java index c9848ae168f78..fb7bf3cba779e 100644 --- a/extensions/jdbc/jdbc-derby/deployment/src/test/java/io/quarkus/jdbc/derby/deployment/DevServicesDerbyDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-derby/deployment/src/test/java/io/quarkus/jdbc/derby/deployment/DevServicesDerbyDatasourceTestCase.java @@ -9,7 +9,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-mariadb/deployment/src/test/java/io/quarkus/jdbc/mariadb/deployment/DevServicesMariaDBDatasourceTestCase.java b/extensions/jdbc/jdbc-mariadb/deployment/src/test/java/io/quarkus/jdbc/mariadb/deployment/DevServicesMariaDBDatasourceTestCase.java index 7dc1d6265b979..8afe226f9fc49 100644 --- a/extensions/jdbc/jdbc-mariadb/deployment/src/test/java/io/quarkus/jdbc/mariadb/deployment/DevServicesMariaDBDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-mariadb/deployment/src/test/java/io/quarkus/jdbc/mariadb/deployment/DevServicesMariaDBDatasourceTestCase.java @@ -9,7 +9,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-mssql/deployment/src/test/java/io/quarkus/jdbc/mssql/deployment/DevServicesMsSQLDatasourceTestCase.java b/extensions/jdbc/jdbc-mssql/deployment/src/test/java/io/quarkus/jdbc/mssql/deployment/DevServicesMsSQLDatasourceTestCase.java index 77718dc7ac54b..397da3a1e828a 100644 --- a/extensions/jdbc/jdbc-mssql/deployment/src/test/java/io/quarkus/jdbc/mssql/deployment/DevServicesMsSQLDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-mssql/deployment/src/test/java/io/quarkus/jdbc/mssql/deployment/DevServicesMsSQLDatasourceTestCase.java @@ -8,7 +8,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-mysql/deployment/src/test/java/io/quarkus/jdbc/mysql/deployment/DevServicesMySQLDatasourceTestCase.java b/extensions/jdbc/jdbc-mysql/deployment/src/test/java/io/quarkus/jdbc/mysql/deployment/DevServicesMySQLDatasourceTestCase.java index d3e3cd9834e72..20dff2d606dd6 100644 --- a/extensions/jdbc/jdbc-mysql/deployment/src/test/java/io/quarkus/jdbc/mysql/deployment/DevServicesMySQLDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-mysql/deployment/src/test/java/io/quarkus/jdbc/mysql/deployment/DevServicesMySQLDatasourceTestCase.java @@ -9,7 +9,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-oracle/deployment/src/test/java/io/quarkus/jdbc/oracle/deployment/DevServicesOracleDatasourceTestCase.java b/extensions/jdbc/jdbc-oracle/deployment/src/test/java/io/quarkus/jdbc/oracle/deployment/DevServicesOracleDatasourceTestCase.java index e2c59af38e454..23d68d7577e63 100644 --- a/extensions/jdbc/jdbc-oracle/deployment/src/test/java/io/quarkus/jdbc/oracle/deployment/DevServicesOracleDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-oracle/deployment/src/test/java/io/quarkus/jdbc/oracle/deployment/DevServicesOracleDatasourceTestCase.java @@ -9,7 +9,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceDevModeTestCase.java b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceDevModeTestCase.java index 6c0271e5f651d..ebea43c5d9a9f 100644 --- a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceDevModeTestCase.java +++ b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceDevModeTestCase.java @@ -2,7 +2,7 @@ import java.util.logging.Level; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceNamedWithUsernameTestCase.java b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceNamedWithUsernameTestCase.java index e888609d19b6c..b8d902a6228b7 100644 --- a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceNamedWithUsernameTestCase.java +++ b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceNamedWithUsernameTestCase.java @@ -6,8 +6,8 @@ import java.sql.Connection; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceTestCase.java b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceTestCase.java index a013ea3714e3d..d4e03d3a65ed6 100644 --- a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceTestCase.java +++ b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceTestCase.java @@ -9,7 +9,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceWithInitScriptTestCase.java b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceWithInitScriptTestCase.java index 7e1bab5f32c10..f6d34e4d84e3e 100644 --- a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceWithInitScriptTestCase.java +++ b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/DevServicesPostgresqlDatasourceWithInitScriptTestCase.java @@ -6,9 +6,10 @@ import java.sql.Connection; import java.sql.ResultSet; -import javax.inject.Inject; import javax.sql.DataSource; +import jakarta.inject.Inject; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/PgResource.java b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/PgResource.java index 52a412899eeb4..335d5670d8478 100644 --- a/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/PgResource.java +++ b/extensions/jdbc/jdbc-postgresql/deployment/src/test/java/io/quarkus/jdbc/postgresql/deployment/PgResource.java @@ -1,12 +1,12 @@ package io.quarkus.jdbc.postgresql.deployment; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.agroal.api.AgroalDataSource; import io.smallrye.common.annotation.Blocking; diff --git a/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java b/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java index ca3e73bf65f8c..d7087f3fcdc8e 100644 --- a/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java +++ b/extensions/jsonb/deployment/src/main/java/io/quarkus/jsonb/deployment/JsonbProcessor.java @@ -8,13 +8,13 @@ import java.util.Set; import java.util.function.Predicate; -import javax.inject.Singleton; -import javax.json.bind.JsonbConfig; -import javax.json.bind.adapter.JsonbAdapter; -import javax.json.bind.annotation.JsonbTypeDeserializer; -import javax.json.bind.annotation.JsonbTypeSerializer; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.bind.serializer.JsonbSerializer; +import jakarta.inject.Singleton; +import jakarta.json.bind.JsonbConfig; +import jakarta.json.bind.adapter.JsonbAdapter; +import jakarta.json.bind.annotation.JsonbTypeDeserializer; +import jakarta.json.bind.annotation.JsonbTypeSerializer; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.bind.serializer.JsonbSerializer; import org.eclipse.yasson.JsonBindingProvider; import org.eclipse.yasson.spi.JsonbComponentInstanceCreator; diff --git a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Alpha.java b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Alpha.java index b33b2c99dd67e..67e6a5e6f1691 100644 --- a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Alpha.java +++ b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Alpha.java @@ -1,6 +1,6 @@ package io.quarkus.jsonb.deployment; -import javax.json.bind.annotation.JsonbTypeAdapter; +import jakarta.json.bind.annotation.JsonbTypeAdapter; @JsonbTypeAdapter(AlphaAdapter.class) public class Alpha { diff --git a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/AlphaAdapter.java b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/AlphaAdapter.java index f76518f977e29..f0360beae6993 100644 --- a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/AlphaAdapter.java +++ b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/AlphaAdapter.java @@ -1,7 +1,7 @@ package io.quarkus.jsonb.deployment; -import javax.inject.Inject; -import javax.json.bind.adapter.JsonbAdapter; +import jakarta.inject.Inject; +import jakarta.json.bind.adapter.JsonbAdapter; // scope annotation is added automatically public class AlphaAdapter implements JsonbAdapter { diff --git a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Bravo.java b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Bravo.java index 57b7f47278d24..d8df8e7bd0b47 100644 --- a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Bravo.java +++ b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/Bravo.java @@ -1,6 +1,6 @@ package io.quarkus.jsonb.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bravo { diff --git a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/JsonbAdapterTest.java b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/JsonbAdapterTest.java index 5133812d176a5..799b5a33912b7 100644 --- a/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/JsonbAdapterTest.java +++ b/extensions/jsonb/deployment/src/test/java/io/quarkus/jsonb/deployment/JsonbAdapterTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.json.bind.Jsonb; -import javax.json.bind.adapter.JsonbAdapter; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.adapter.JsonbAdapter; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/jsonb/runtime/pom.xml b/extensions/jsonb/runtime/pom.xml index f6be233164027..93749d61689a8 100644 --- a/extensions/jsonb/runtime/pom.xml +++ b/extensions/jsonb/runtime/pom.xml @@ -16,13 +16,6 @@ org.eclipse yasson - - - - org.glassfish - jakarta.json - - io.quarkus diff --git a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbConfigCustomizer.java b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbConfigCustomizer.java index 26678b214adf0..8f1bf5cd58fd6 100644 --- a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbConfigCustomizer.java +++ b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbConfigCustomizer.java @@ -1,12 +1,12 @@ package io.quarkus.jsonb; -import javax.json.bind.JsonbConfig; +import jakarta.json.bind.JsonbConfig; /** * Meant to be implemented by a CDI bean that provided arbitrary customization for the default {@link JsonbConfig}. *

* All implementations (that are registered as CDI beans) are taken into account when producing the default {@link JsonbConfig}. - * The {@link JsonbConfig} is in turn used to produce the default {@link javax.json.bind.Jsonb} + * The {@link JsonbConfig} is in turn used to produce the default {@link jakarta.json.bind.Jsonb} *

* See also {@link JsonbProducer#jsonbConfig}. */ diff --git a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java index ff39b5f1a8e77..c8f7941b2adf0 100644 --- a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java +++ b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; -import javax.json.bind.JsonbConfig; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; +import jakarta.json.bind.JsonbConfig; import io.quarkus.arc.All; import io.quarkus.arc.DefaultBean; diff --git a/extensions/jsonb/runtime/src/test/java/io/quarkus/jsonb/JsonbUnitTest.java b/extensions/jsonb/runtime/src/test/java/io/quarkus/jsonb/JsonbUnitTest.java index 2054da437b9a5..0301b7af4df8f 100644 --- a/extensions/jsonb/runtime/src/test/java/io/quarkus/jsonb/JsonbUnitTest.java +++ b/extensions/jsonb/runtime/src/test/java/io/quarkus/jsonb/JsonbUnitTest.java @@ -4,10 +4,10 @@ import java.time.Instant; -import javax.json.bind.JsonbBuilder; -import javax.json.bind.adapter.JsonbAdapter; -import javax.json.bind.annotation.JsonbProperty; -import javax.json.bind.annotation.JsonbTypeAdapter; +import jakarta.json.bind.JsonbBuilder; +import jakarta.json.bind.adapter.JsonbAdapter; +import jakarta.json.bind.annotation.JsonbProperty; +import jakarta.json.bind.annotation.JsonbTypeAdapter; import org.junit.jupiter.api.Test; diff --git a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java index 290ada77f5113..4211b39006d91 100644 --- a/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java +++ b/extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.jsonp.deployment; -import org.glassfish.json.JsonProviderImpl; +import org.eclipse.parsson.JsonProviderImpl; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; diff --git a/extensions/jsonp/runtime/pom.xml b/extensions/jsonp/runtime/pom.xml index 9236a4d3fb0e5..898f6c578b3bd 100644 --- a/extensions/jsonp/runtime/pom.xml +++ b/extensions/jsonp/runtime/pom.xml @@ -18,8 +18,8 @@ quarkus-core - org.glassfish - jakarta.json + org.eclipse.parsson + parsson @@ -32,9 +32,11 @@ javax.json:javax.json-api org.glassfish:javax.json + org.glassfish:jakarta.json + org.eclipse.parsson:jakarta.json - org.glassfish:jakarta.json + org.eclipse.parsson:parsson jakarta.json:jakarta.json-api diff --git a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java index fa3ae509b1181..feab7b0c5fc54 100644 --- a/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java +++ b/extensions/kafka-client/deployment/src/main/java/io/quarkus/kafka/client/deployment/KafkaProcessor.java @@ -494,7 +494,7 @@ UnremovableBeanBuildItem ensureJsonParserAvailable() { "io.quarkus.jackson.ObjectMapperProducer", "com.fasterxml.jackson.databind.ObjectMapper", "io.quarkus.jsonb.JsonbProducer", - "javax.json.bind.Jsonb"); + "jakarta.json.bind.Jsonb"); } @BuildStep diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/health/KafkaHealthCheck.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/health/KafkaHealthCheck.java index e9b9a24bd265d..63bcb019b2953 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/health/KafkaHealthCheck.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/health/KafkaHealthCheck.java @@ -1,6 +1,6 @@ package io.quarkus.kafka.client.health; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.apache.kafka.common.Node; import org.eclipse.microprofile.health.HealthCheck; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java index d9901b7bb12b5..7ccef1322f7ee 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaAdminClient.java @@ -4,10 +4,10 @@ import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.kafka.clients.admin.*; import org.apache.kafka.common.acl.AccessControlEntryFilter; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java index 93e2ca309ab99..504bc66168f4e 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java @@ -3,8 +3,8 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.Config; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaTopicClient.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaTopicClient.java index 8a2340fd475de..eac860d8e1692 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaTopicClient.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaTopicClient.java @@ -9,8 +9,8 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerRecord; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaUiUtils.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaUiUtils.java index 6cca91a20f37e..55d562a4023ac 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaUiUtils.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/ui/KafkaUiUtils.java @@ -13,7 +13,7 @@ import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.apache.kafka.clients.admin.ConsumerGroupDescription; import org.apache.kafka.clients.admin.DescribeClusterResult; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbDeserializer.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbDeserializer.java index cff85c1860f20..49f223deafd31 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbDeserializer.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbDeserializer.java @@ -6,7 +6,7 @@ import java.lang.reflect.Type; import java.util.Map; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.apache.kafka.common.serialization.Deserializer; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbProducer.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbProducer.java index 8b7af34221982..7ab06edc33f11 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbProducer.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbProducer.java @@ -1,7 +1,7 @@ package io.quarkus.kafka.client.serialization; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerde.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerde.java index 53a6aa36d94ae..c842148fe8c24 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerde.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerde.java @@ -2,7 +2,7 @@ import java.util.Map; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.apache.kafka.common.serialization.Deserializer; import org.apache.kafka.common.serialization.Serde; diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerializer.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerializer.java index 17ba60dcdcd4a..fde1f9eaf263b 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerializer.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/serialization/JsonbSerializer.java @@ -4,7 +4,7 @@ import java.io.IOException; import java.util.Map; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.apache.kafka.common.serialization.Serializer; diff --git a/extensions/kafka-client/runtime/src/test/java/io/quarkus/kafka/client/serde/JsonbSerdeTest.java b/extensions/kafka-client/runtime/src/test/java/io/quarkus/kafka/client/serde/JsonbSerdeTest.java index a3e74b92710c0..181f27893cf43 100644 --- a/extensions/kafka-client/runtime/src/test/java/io/quarkus/kafka/client/serde/JsonbSerdeTest.java +++ b/extensions/kafka-client/runtime/src/test/java/io/quarkus/kafka/client/serde/JsonbSerdeTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java index 401a08a509d74..f9c87cf9b0ddc 100644 --- a/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java +++ b/extensions/kafka-streams/deployment/src/main/java/io/quarkus/kafka/streams/deployment/KafkaStreamsProcessor.java @@ -5,7 +5,7 @@ import java.io.IOException; import java.util.Properties; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.apache.kafka.common.serialization.Serdes.ByteArraySerde; import org.apache.kafka.streams.StreamsConfig; diff --git a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsProducer.java b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsProducer.java index 152cd45bbed1f..4318cc16c35d2 100644 --- a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsProducer.java +++ b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/KafkaStreamsProducer.java @@ -21,12 +21,12 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.annotation.PostConstruct; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.apache.kafka.clients.CommonClientConfigs; import org.apache.kafka.clients.admin.Admin; diff --git a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsStateHealthCheck.java b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsStateHealthCheck.java index 6737d43b4864e..d7ff0fb7bed36 100644 --- a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsStateHealthCheck.java +++ b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsStateHealthCheck.java @@ -1,7 +1,7 @@ package io.quarkus.kafka.streams.runtime.health; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.kafka.streams.KafkaStreams; import org.eclipse.microprofile.health.HealthCheck; diff --git a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsTopicsHealthCheck.java b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsTopicsHealthCheck.java index c96540fb63b58..84c23f440df87 100644 --- a/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsTopicsHealthCheck.java +++ b/extensions/kafka-streams/runtime/src/main/java/io/quarkus/kafka/streams/runtime/health/KafkaStreamsTopicsHealthCheck.java @@ -6,9 +6,9 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/keycloak-admin-client-common/runtime/src/main/java/io/quarkus/keycloak/admin/client/common/AutoCloseableDestroyer.java b/extensions/keycloak-admin-client-common/runtime/src/main/java/io/quarkus/keycloak/admin/client/common/AutoCloseableDestroyer.java index b4f5973e8ff7a..b06c19ba86f6d 100644 --- a/extensions/keycloak-admin-client-common/runtime/src/main/java/io/quarkus/keycloak/admin/client/common/AutoCloseableDestroyer.java +++ b/extensions/keycloak-admin-client-common/runtime/src/main/java/io/quarkus/keycloak/admin/client/common/AutoCloseableDestroyer.java @@ -2,7 +2,7 @@ import java.util.Map; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.BeanDestroyer; diff --git a/extensions/keycloak-admin-client-reactive/deployment/src/main/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientReactiveProcessor.java b/extensions/keycloak-admin-client-reactive/deployment/src/main/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientReactiveProcessor.java index 275523af52608..36a45a5311265 100644 --- a/extensions/keycloak-admin-client-reactive/deployment/src/main/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientReactiveProcessor.java +++ b/extensions/keycloak-admin-client-reactive/deployment/src/main/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientReactiveProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.keycloak.admin.client.reactive; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import org.jboss.jandex.DotName; import org.keycloak.admin.client.Keycloak; diff --git a/extensions/keycloak-admin-client-reactive/deployment/src/test/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientInjectionDevServicesTest.java b/extensions/keycloak-admin-client-reactive/deployment/src/test/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientInjectionDevServicesTest.java index 2067997178b8e..b2c20096410c6 100644 --- a/extensions/keycloak-admin-client-reactive/deployment/src/test/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientInjectionDevServicesTest.java +++ b/extensions/keycloak-admin-client-reactive/deployment/src/test/java/io/quarkus/keycloak/admin/client/reactive/KeycloakAdminClientInjectionDevServicesTest.java @@ -6,9 +6,9 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -52,4 +52,4 @@ public List getRoles() { } } -} \ No newline at end of file +} diff --git a/extensions/keycloak-admin-client-reactive/runtime/pom.xml b/extensions/keycloak-admin-client-reactive/runtime/pom.xml index 8660b35d01ab7..71044ae353d3f 100644 --- a/extensions/keycloak-admin-client-reactive/runtime/pom.xml +++ b/extensions/keycloak-admin-client-reactive/runtime/pom.xml @@ -29,12 +29,12 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation org.keycloak - keycloak-admin-client + keycloak-admin-client-jakarta org.jboss.resteasy diff --git a/extensions/keycloak-admin-client-reactive/runtime/src/main/java/io/quarkus/keycloak/admin/client/reactive/runtime/ResteasyReactiveClientProvider.java b/extensions/keycloak-admin-client-reactive/runtime/src/main/java/io/quarkus/keycloak/admin/client/reactive/runtime/ResteasyReactiveClientProvider.java index 09cdac5a52d79..275fc580fb2c8 100644 --- a/extensions/keycloak-admin-client-reactive/runtime/src/main/java/io/quarkus/keycloak/admin/client/reactive/runtime/ResteasyReactiveClientProvider.java +++ b/extensions/keycloak-admin-client-reactive/runtime/src/main/java/io/quarkus/keycloak/admin/client/reactive/runtime/ResteasyReactiveClientProvider.java @@ -2,12 +2,13 @@ import java.util.List; -import javax.enterprise.inject.Instance; import javax.net.ssl.SSLContext; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; + +import jakarta.enterprise.inject.Instance; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.resteasy.reactive.client.impl.ClientBuilderImpl; diff --git a/extensions/keycloak-admin-client/deployment/src/main/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientProcessor.java b/extensions/keycloak-admin-client/deployment/src/main/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientProcessor.java index 05a8820f0bb74..cffedc987662d 100644 --- a/extensions/keycloak-admin-client/deployment/src/main/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientProcessor.java +++ b/extensions/keycloak-admin-client/deployment/src/main/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.keycloak.adminclient.deployment; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import org.jboss.jandex.DotName; import org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl; diff --git a/extensions/keycloak-admin-client/deployment/src/test/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientInjectionDevServicesTest.java b/extensions/keycloak-admin-client/deployment/src/test/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientInjectionDevServicesTest.java index 93777fd846af0..023213d4b211b 100644 --- a/extensions/keycloak-admin-client/deployment/src/test/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientInjectionDevServicesTest.java +++ b/extensions/keycloak-admin-client/deployment/src/test/java/io/quarkus/keycloak/adminclient/deployment/KeycloakAdminClientInjectionDevServicesTest.java @@ -6,9 +6,9 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/keycloak-admin-client/runtime/pom.xml b/extensions/keycloak-admin-client/runtime/pom.xml index c7b588295199d..0df3021cf55b8 100644 --- a/extensions/keycloak-admin-client/runtime/pom.xml +++ b/extensions/keycloak-admin-client/runtime/pom.xml @@ -41,12 +41,12 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation org.keycloak - keycloak-admin-client + keycloak-admin-client-jakarta org.jboss.resteasy diff --git a/extensions/keycloak-admin-client/runtime/src/main/java/io/quarkus/keycloak/adminclient/ResteasyKeycloakAdminClientRecorder.java b/extensions/keycloak-admin-client/runtime/src/main/java/io/quarkus/keycloak/adminclient/ResteasyKeycloakAdminClientRecorder.java index ece1316308464..9dda7e9c3c475 100644 --- a/extensions/keycloak-admin-client/runtime/src/main/java/io/quarkus/keycloak/adminclient/ResteasyKeycloakAdminClientRecorder.java +++ b/extensions/keycloak-admin-client/runtime/src/main/java/io/quarkus/keycloak/adminclient/ResteasyKeycloakAdminClientRecorder.java @@ -5,7 +5,8 @@ import java.util.function.Supplier; import javax.net.ssl.SSLContext; -import javax.ws.rs.client.Client; + +import jakarta.ws.rs.client.Client; import org.keycloak.admin.client.ClientBuilderWrapper; import org.keycloak.admin.client.Keycloak; diff --git a/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakPolicyEnforcerBuildStep.java b/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakPolicyEnforcerBuildStep.java index d9c660e5bbc1d..6707c41021fd7 100644 --- a/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakPolicyEnforcerBuildStep.java +++ b/extensions/keycloak-authorization/deployment/src/main/java/io/quarkus/keycloak/pep/deployment/KeycloakPolicyEnforcerBuildStep.java @@ -3,7 +3,7 @@ import java.util.Map; import java.util.function.BooleanSupplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem; diff --git a/extensions/keycloak-authorization/runtime/pom.xml b/extensions/keycloak-authorization/runtime/pom.xml index 20382323f7e58..6b5a2dea22a3f 100644 --- a/extensions/keycloak-authorization/runtime/pom.xml +++ b/extensions/keycloak-authorization/runtime/pom.xml @@ -33,8 +33,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation org.keycloak diff --git a/extensions/keycloak-authorization/runtime/src/main/java/io/quarkus/keycloak/pep/runtime/KeycloakPolicyEnforcerAuthorizer.java b/extensions/keycloak-authorization/runtime/src/main/java/io/quarkus/keycloak/pep/runtime/KeycloakPolicyEnforcerAuthorizer.java index 2f7f51c25ded5..20db1a13e572b 100644 --- a/extensions/keycloak-authorization/runtime/src/main/java/io/quarkus/keycloak/pep/runtime/KeycloakPolicyEnforcerAuthorizer.java +++ b/extensions/keycloak-authorization/runtime/src/main/java/io/quarkus/keycloak/pep/runtime/KeycloakPolicyEnforcerAuthorizer.java @@ -6,10 +6,10 @@ import java.util.function.BiFunction; import java.util.function.Function; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.keycloak.AuthorizationContext; import org.keycloak.adapters.authorization.KeycloakAdapterPolicyEnforcer; diff --git a/extensions/kubernetes-client/runtime/pom.xml b/extensions/kubernetes-client/runtime/pom.xml index 1d6a02ef24a3b..83f098136304d 100644 --- a/extensions/kubernetes-client/runtime/pom.xml +++ b/extensions/kubernetes-client/runtime/pom.xml @@ -58,8 +58,8 @@ jakarta.annotation-api - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api io.smallrye.config diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java index b87ce32197945..1915254bb3ce1 100644 --- a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientProducer.java @@ -1,8 +1,8 @@ package io.quarkus.kubernetes.client.runtime; -import javax.annotation.PreDestroy; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.KubernetesClient; diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesConfigProducer.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesConfigProducer.java index c188734bf1b9e..8c9bf33a70da1 100644 --- a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesConfigProducer.java +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesConfigProducer.java @@ -1,7 +1,7 @@ package io.quarkus.kubernetes.client.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.fabric8.kubernetes.client.Config; import io.quarkus.arc.DefaultBean; diff --git a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java index 31c5c53d2618c..383a736a0d417 100644 --- a/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java +++ b/extensions/kubernetes-client/runtime/src/main/java/io/quarkus/kubernetes/client/runtime/QuarkusHttpClientFactory.java @@ -1,6 +1,6 @@ package io.quarkus.kubernetes.client.runtime; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes.client.http.HttpClient; diff --git a/extensions/liquibase-mongodb/deployment/src/main/java/io/quarkus/liquibase/mongodb/deployment/LiquibaseMongodbProcessor.java b/extensions/liquibase-mongodb/deployment/src/main/java/io/quarkus/liquibase/mongodb/deployment/LiquibaseMongodbProcessor.java index e2b8a2de04134..f9832fb2ed2fc 100644 --- a/extensions/liquibase-mongodb/deployment/src/main/java/io/quarkus/liquibase/mongodb/deployment/LiquibaseMongodbProcessor.java +++ b/extensions/liquibase-mongodb/deployment/src/main/java/io/quarkus/liquibase/mongodb/deployment/LiquibaseMongodbProcessor.java @@ -15,7 +15,7 @@ import java.util.Set; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java b/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java index 7b6315c66961c..226c068640d49 100644 --- a/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java +++ b/extensions/liquibase-mongodb/runtime/src/main/java/io/quarkus/liquibase/mongodb/runtime/LiquibaseMongodbRecorder.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableInstance; diff --git a/extensions/liquibase/deployment/src/main/java/io/quarkus/liquibase/deployment/LiquibaseProcessor.java b/extensions/liquibase/deployment/src/main/java/io/quarkus/liquibase/deployment/LiquibaseProcessor.java index bffe1bf9a3614..7b0b6f71fad39 100644 --- a/extensions/liquibase/deployment/src/main/java/io/quarkus/liquibase/deployment/LiquibaseProcessor.java +++ b/extensions/liquibase/deployment/src/main/java/io/quarkus/liquibase/deployment/LiquibaseProcessor.java @@ -18,8 +18,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateNamedDataSourceTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateNamedDataSourceTest.java index adf9e3b176ab7..60eae38a77abc 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateNamedDataSourceTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateNamedDataSourceTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateTest.java index 1cab343710530..5b73296fc0112 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionBaselineOnMigrateTest.java @@ -5,9 +5,10 @@ import java.sql.ResultSet; import java.util.List; -import javax.inject.Inject; import javax.sql.DataSource; +import jakarta.inject.Inject; + import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAndMigrateAtStartTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAndMigrateAtStartTest.java index a2e0250486f9b..368f0f18bd97a 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAndMigrateAtStartTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAndMigrateAtStartTest.java @@ -10,7 +10,7 @@ import java.sql.Statement; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.h2.jdbc.JdbcSQLSyntaxErrorException; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAtStartTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAtStartTest.java index f6a867188406a..9510d990ac721 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAtStartTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionCleanAtStartTest.java @@ -10,7 +10,7 @@ import java.sql.Statement; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.h2.jdbc.JdbcSQLSyntaxErrorException; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceTest.java index 8950fc586337a..11c91e9eee3a7 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceWithoutLiquibaseTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceWithoutLiquibaseTest.java index eb649cce807fb..510a552804b4d 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceWithoutLiquibaseTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigDefaultDataSourceWithoutLiquibaseTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigEmptyTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigEmptyTest.java index 9afa24374be04..d051c5fe33ad4 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigEmptyTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigEmptyTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigFixture.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigFixture.java index 0ba07915816af..258c33815d843 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigFixture.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigFixture.java @@ -8,8 +8,8 @@ import java.util.function.Consumer; import java.util.stream.StreamSupport; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMissingNamedDataSourceTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMissingNamedDataSourceTest.java index fbd63777cbc34..9f215776eb804 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMissingNamedDataSourceTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMissingNamedDataSourceTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesTest.java index c2e3ebb464a65..eb72962a3002e 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesWithoutDefaultTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesWithoutDefaultTest.java index 4012a6ef9d489..aa3e8f0209bbf 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesWithoutDefaultTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigMultiDataSourcesWithoutDefaultTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutDefaultTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutDefaultTest.java index 4d83ede901019..f03777b2bec83 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutDefaultTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutDefaultTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutLiquibaseTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutLiquibaseTest.java index 9564df32d120c..f97632b6025b1 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutLiquibaseTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionConfigNamedDataSourceWithoutLiquibaseTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionLoadChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionLoadChangeLogTest.java index e05d378e16f0d..e810f90b3e146 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionLoadChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionLoadChangeLogTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.*; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartDirectoryChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartDirectoryChangeLogTest.java index e83d766ca051e..6ad88f47c2870 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartDirectoryChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartDirectoryChangeLogTest.java @@ -6,7 +6,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartJsonChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartJsonChangeLogTest.java index 6806df8db87d4..d1472050c6053 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartJsonChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartJsonChangeLogTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartNamedDataSourceTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartNamedDataSourceTest.java index a1d65fe9326a3..8e0ca2ec49a0b 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartNamedDataSourceTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartNamedDataSourceTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartSqlChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartSqlChangeLogTest.java index 1d46348443dcb..3047b5e339bec 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartSqlChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartSqlChangeLogTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartTest.java index 5a5e3887525c6..0181ad9eb67bd 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartXmlChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartXmlChangeLogTest.java index 9967a0a570f4a..bcff142ec3e32 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartXmlChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartXmlChangeLogTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartYamlChangeLogTest.java b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartYamlChangeLogTest.java index b4999cbe2e3b6..7b0fd0418fd2e 100644 --- a/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartYamlChangeLogTest.java +++ b/extensions/liquibase/deployment/src/test/java/io/quarkus/liquibase/test/LiquibaseExtensionMigrateAtStartYamlChangeLogTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/LiquibaseDataSource.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/LiquibaseDataSource.java index 255b2d6daf0fe..8c30a1eff7e1e 100644 --- a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/LiquibaseDataSource.java +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/LiquibaseDataSource.java @@ -10,9 +10,9 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Named; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Named; +import jakarta.inject.Qualifier; /** * Qualifier used to specify which datasource will be used and therefore which Liquibase instance will be injected. @@ -58,4 +58,4 @@ public String toString() { return "LiquibaseDataSourceLiteral [value=" + value + "]"; } } -} \ No newline at end of file +} diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseRecorder.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseRecorder.java index 2bc02b460ea0f..f2250add827c3 100644 --- a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseRecorder.java +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseRecorder.java @@ -2,10 +2,11 @@ import java.util.function.Supplier; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.UnsatisfiedResolutionException; import javax.sql.DataSource; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; + import org.jboss.logging.Logger; import io.quarkus.agroal.runtime.DataSources; diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseSchemaProvider.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseSchemaProvider.java index f58433983327f..d3bc30ca0ed90 100644 --- a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseSchemaProvider.java +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/LiquibaseSchemaProvider.java @@ -1,7 +1,7 @@ package io.quarkus.liquibase.runtime; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableInstance; diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseDevConsoleRecorder.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseDevConsoleRecorder.java index 3b7d916c21fc0..aa6eca0c8b97d 100644 --- a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseDevConsoleRecorder.java +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseDevConsoleRecorder.java @@ -2,7 +2,7 @@ import java.lang.annotation.Annotation; -import javax.enterprise.inject.Default; +import jakarta.enterprise.inject.Default; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableInstance; diff --git a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseFactoriesSupplier.java b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseFactoriesSupplier.java index aad2291d5c213..0ec1d9285ef54 100644 --- a/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseFactoriesSupplier.java +++ b/extensions/liquibase/runtime/src/main/java/io/quarkus/liquibase/runtime/devconsole/LiquibaseFactoriesSupplier.java @@ -7,7 +7,7 @@ import java.util.TreeSet; import java.util.function.Supplier; -import javax.enterprise.inject.Any; +import jakarta.enterprise.inject.Any; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableInstance; diff --git a/extensions/logging-json/runtime/pom.xml b/extensions/logging-json/runtime/pom.xml index 6ec04c4e5ed0f..eb0a195958a2a 100644 --- a/extensions/logging-json/runtime/pom.xml +++ b/extensions/logging-json/runtime/pom.xml @@ -40,7 +40,8 @@ - org.glassfish:jakarta.json + org.eclipse.parsson:parsson + jakarta.json:jakarta.json-api diff --git a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/InjectionTest.java b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/InjectionTest.java index 196cb3b4c772d..5073b2022a8e2 100644 --- a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/InjectionTest.java +++ b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/InjectionTest.java @@ -4,9 +4,9 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/MailTemplateValidationTest.java b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/MailTemplateValidationTest.java index 1a9ca7e3266e2..90ba66710a81c 100644 --- a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/MailTemplateValidationTest.java +++ b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/MailTemplateValidationTest.java @@ -1,8 +1,8 @@ package io.quarkus.mailer; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/i18n/MailMessageBundleTest.java b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/i18n/MailMessageBundleTest.java index 188ce54f64d2b..48096fd2785d2 100644 --- a/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/i18n/MailMessageBundleTest.java +++ b/extensions/mailer/deployment/src/test/java/io/quarkus/mailer/i18n/MailMessageBundleTest.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/mailer/runtime/pom.xml b/extensions/mailer/runtime/pom.xml index 1410d16c94311..58b54d7a95fda 100644 --- a/extensions/mailer/runtime/pom.xml +++ b/extensions/mailer/runtime/pom.xml @@ -51,8 +51,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation test diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/BlockingMailerImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/BlockingMailerImpl.java index 180408da59106..2fcfb59e559b8 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/BlockingMailerImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/BlockingMailerImpl.java @@ -1,7 +1,7 @@ package io.quarkus.mailer.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.mailer.Mail; import io.quarkus.mailer.Mailer; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailClientProducer.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailClientProducer.java index f91d76a000ef4..836bf0741ad4d 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailClientProducer.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailClientProducer.java @@ -4,10 +4,10 @@ import java.util.Optional; import java.util.concurrent.TimeUnit; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateProducer.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateProducer.java index c8c5d2e9c3942..9df0dba9ccdd2 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateProducer.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailTemplateProducer.java @@ -3,13 +3,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Field; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailerSupportProducer.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailerSupportProducer.java index 762ce87eba327..39239d07e2add 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailerSupportProducer.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MailerSupportProducer.java @@ -1,7 +1,7 @@ package io.quarkus.mailer.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.quarkus.runtime.LaunchMode; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MockMailboxImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MockMailboxImpl.java index c391eb6b783e5..cc0c79d1e308e 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MockMailboxImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MockMailboxImpl.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mailer.Mail; import io.quarkus.mailer.MockMailbox; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java index e1942a1e7364a..e69674e7adcf5 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java @@ -9,8 +9,8 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.reactivestreams.Publisher; diff --git a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerImplTest.java b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerImplTest.java index 09f791aa587e5..50d0dbef5ff7f 100644 --- a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerImplTest.java +++ b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerImplTest.java @@ -7,11 +7,11 @@ import java.nio.charset.StandardCharsets; import java.util.*; -import javax.mail.BodyPart; -import javax.mail.MessagingException; -import javax.mail.internet.InternetAddress; -import javax.mail.internet.MimeMessage; -import javax.mail.internet.MimeMultipart; +import jakarta.mail.BodyPart; +import jakarta.mail.MessagingException; +import jakarta.mail.internet.InternetAddress; +import jakarta.mail.internet.MimeMessage; +import jakarta.mail.internet.MimeMultipart; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerWithMultipartImplTest.java b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerWithMultipartImplTest.java index 09c675c8fd9a3..a8854bb13faa8 100644 --- a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerWithMultipartImplTest.java +++ b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/runtime/MailerWithMultipartImplTest.java @@ -12,11 +12,11 @@ import java.util.Scanner; import java.util.UUID; -import javax.mail.BodyPart; -import javax.mail.MessagingException; -import javax.mail.internet.InternetAddress; -import javax.mail.internet.MimeMessage; -import javax.mail.internet.MimeMultipart; +import jakarta.mail.BodyPart; +import jakarta.mail.MessagingException; +import jakarta.mail.internet.InternetAddress; +import jakarta.mail.internet.MimeMessage; +import jakarta.mail.internet.MimeMultipart; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/HttpBinderProcessor.java b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/HttpBinderProcessor.java index c812d3c97b4bb..1e48b656481b0 100644 --- a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/HttpBinderProcessor.java +++ b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/HttpBinderProcessor.java @@ -2,8 +2,8 @@ import java.util.function.BooleanSupplier; -import javax.inject.Singleton; -import javax.servlet.DispatcherType; +import jakarta.inject.Singleton; +import jakarta.servlet.DispatcherType; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem; @@ -35,7 +35,7 @@ public class HttpBinderProcessor { static final String RESTEASY_REACTIVE_CONTAINER_FILTER_CLASS_NAME = "io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderRestEasyReactiveContainerFilter"; static final String UNDERTOW_SERVLET_FILTER_CLASS_NAME = "io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderUndertowServletFilter"; - private static final String REST_CLIENT_REQUEST_FILTER = "javax.ws.rs.client.ClientRequestFilter"; + private static final String REST_CLIENT_REQUEST_FILTER = "jakarta.ws.rs.client.ClientRequestFilter"; private static final String REST_CLIENT_METRICS_FILTER = "io.quarkus.micrometer.runtime.binder.RestClientMetricsFilter"; static class HttpServerBinderEnabled implements BooleanSupplier { diff --git a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/VertxBinderProcessor.java b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/VertxBinderProcessor.java index de444e02b53aa..30a863c73fa00 100644 --- a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/VertxBinderProcessor.java +++ b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/VertxBinderProcessor.java @@ -2,7 +2,7 @@ import java.util.function.BooleanSupplier; -import javax.interceptor.Interceptor; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.deployment.SyntheticBeansRuntimeInitBuildItem; import io.quarkus.deployment.annotations.BuildStep; diff --git a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/GaugeAnnotationHandler.java b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/GaugeAnnotationHandler.java index 6f760c6e98069..9f17fb2a1663d 100644 --- a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/GaugeAnnotationHandler.java +++ b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/GaugeAnnotationHandler.java @@ -4,10 +4,10 @@ import java.util.HashSet; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MetricDotNames.java b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MetricDotNames.java index 1f7aac98f481d..9fc9c2dc87e3b 100644 --- a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MetricDotNames.java +++ b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MetricDotNames.java @@ -51,7 +51,7 @@ public class MetricDotNames { .createSimple("org.eclipse.microprofile.metrics.Metric"); // these are needed for determining whether a class is a REST endpoint or JAX-RS provider - static final DotName JAXRS_PATH = DotName.createSimple("javax.ws.rs.Path"); + static final DotName JAXRS_PATH = DotName.createSimple("jakarta.ws.rs.Path"); static final DotName REST_CONTROLLER = DotName .createSimple("org.springframework.web.bind.annotation.RestController"); diff --git a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MicroprofileMetricsProcessor.java b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MicroprofileMetricsProcessor.java index 417c36313e36b..f31d1377b8f1b 100644 --- a/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MicroprofileMetricsProcessor.java +++ b/extensions/micrometer/deployment/src/main/java/io/quarkus/micrometer/deployment/binder/mpmetrics/MicroprofileMetricsProcessor.java @@ -3,7 +3,7 @@ import java.util.function.BooleanSupplier; import java.util.function.Predicate; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.ClassInfo; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/GlobalDefaultDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/GlobalDefaultDisabledTest.java index 6dface5b65a43..8b9c1962381c7 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/GlobalDefaultDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/GlobalDefaultDisabledTest.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricFiltersTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricFiltersTest.java index 33aef40de5d4c..ed7e5f057580b 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricFiltersTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricFiltersTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Singleton; -import javax.ws.rs.Produces; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricsFromMetricsFactoryTestCase.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricsFromMetricsFactoryTestCase.java index 3714a7f0c59a5..756268640e5d2 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricsFromMetricsFactoryTestCase.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MetricsFromMetricsFactoryTestCase.java @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MicrometerDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MicrometerDisabledTest.java index 7a95655bedc1e..418ada578c834 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MicrometerDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/MicrometerDisabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.deployment; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/GrpcMetricsDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/GrpcMetricsDisabledTest.java index 2652ada4e6adf..8f7cd1526a9b6 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/GrpcMetricsDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/GrpcMetricsDisabledTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaClientMetricsDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaClientMetricsDisabledTest.java index 5083a70d7adcd..4acd879bc02a3 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaClientMetricsDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaClientMetricsDisabledTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaStreamsMetricsDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaStreamsMetricsDisabledTest.java index d4cfd8379828d..bbeae2c8432d6 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaStreamsMetricsDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/KafkaStreamsMetricsDisabledTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsDisabledTest.java index d4b0f669da5a5..b8569a75f52f4 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsDisabledTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsTest.java index d23f588364fe9..15b79e3bd1873 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/RedisClientMetricsTest.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpApplicationRootTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpApplicationRootTest.java index 02212c073dc14..3f100420c9eeb 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpApplicationRootTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpApplicationRootTest.java @@ -4,13 +4,13 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Application; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Application; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpRootTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpRootTest.java index 072334f56c4f8..d153fdb65fc5b 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpRootTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriTagWithHttpRootTest.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriWithMaxTagMeterFilterTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriWithMaxTagMeterFilterTest.java index b386a2d1efc63..48cddb4fea857 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriWithMaxTagMeterFilterTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/UriWithMaxTagMeterFilterTest.java @@ -2,7 +2,7 @@ import static io.restassured.RestAssured.when; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxEventBusMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxEventBusMetricsTest.java index 1640c0c68723b..750b8db347b63 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxEventBusMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxEventBusMetricsTest.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.deployment.binder; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxHttpClientMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxHttpClientMetricsTest.java index ddfd81d8725af..1267e99dad045 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxHttpClientMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxHttpClientMetricsTest.java @@ -5,10 +5,10 @@ import java.time.Duration; import java.util.concurrent.TimeUnit; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsNoClientMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsNoClientMetricsTest.java index 067926489ec30..1c0f8bfc500e9 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsNoClientMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsNoClientMetricsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsTest.java index 40fbc28745e5a..1cf7e35c8865e 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxTcpMetricsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxUdpMetricsTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxUdpMetricsTest.java index 91de75c4d94db..a341a23bb3ec4 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxUdpMetricsTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxUdpMetricsTest.java @@ -2,8 +2,8 @@ import static org.awaitility.Awaitility.await; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpDisabledTest.java index 8fcc4a47cbee6..f3c1b47d2bcec 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpDisabledTest.java @@ -2,7 +2,7 @@ import static io.restassured.RestAssured.when; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpEnabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpEnabledTest.java index c5a3158712364..211d47664ea94 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpEnabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/binder/VertxWithHttpEnabledTest.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.regex.Pattern; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/AllRegistriesDisabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/AllRegistriesDisabledTest.java index f4fb610482d27..fecb7716b04b4 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/AllRegistriesDisabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/AllRegistriesDisabledTest.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.deployment.export; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonAndPrometheusRegistryEnabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonAndPrometheusRegistryEnabledTest.java index a3f716ade50f2..c9dd08d4e2cf9 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonAndPrometheusRegistryEnabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonAndPrometheusRegistryEnabledTest.java @@ -4,7 +4,7 @@ import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonRegistryEnabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonRegistryEnabledTest.java index 1f58655ced5dd..9a36389f00c96 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonRegistryEnabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/JsonRegistryEnabledTest.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/NoDefaultPrometheusTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/NoDefaultPrometheusTest.java index 94aeba83e992a..1c8043f661a78 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/NoDefaultPrometheusTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/NoDefaultPrometheusTest.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/PrometheusEnabledTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/PrometheusEnabledTest.java index 4803b43d78226..dfb70c42e81cd 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/PrometheusEnabledTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/PrometheusEnabledTest.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusProvider.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusProvider.java index a48f8323f3d7d..be680a909710a 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusProvider.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusProvider.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.deployment.export; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.Clock; import io.micrometer.prometheus.PrometheusConfig; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusTest.java index ff8dc0dbba69b..d79a1689bb1a7 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/deployment/export/SecondPrometheusTest.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerCounterInterceptorTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerCounterInterceptorTest.java index f1afd9f6d3654..7364893851673 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerCounterInterceptorTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerCounterInterceptorTest.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletableFuture; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptorTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptorTest.java index 0267ccd6aa938..dc3c43410c76a 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptorTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptorTest.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletableFuture; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricNamingTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricNamingTest.java index daa39d4f42b5a..5390b124ecc7f 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricNamingTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricNamingTest.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricRegistrationTest.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricRegistrationTest.java index f3604477f7770..277752e279e2f 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricRegistrationTest.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricRegistrationTest.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.*; import org.junit.jupiter.api.Assertions; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/CountedResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/CountedResource.java index a96cc72abd373..add85789e2b3b 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/CountedResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/CountedResource.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletableFuture; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.micrometer.core.annotation.Counted; import io.smallrye.mutiny.Uni; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/HelloResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/HelloResource.java index a0796c028733b..4956eda5ca3cf 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/HelloResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/HelloResource.java @@ -1,10 +1,10 @@ package io.quarkus.micrometer.test; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/hello") @Singleton diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MeterResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MeterResource.java index 35d8f293d8701..a38e7c5ad425f 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MeterResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MeterResource.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Metrics; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MpColorResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MpColorResource.java index 784ca78f3fdf0..2f92919ad4da3 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MpColorResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/MpColorResource.java @@ -1,6 +1,6 @@ package io.quarkus.micrometer.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.metrics.annotation.Counted; import org.eclipse.microprofile.metrics.annotation.Gauge; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/PingPongResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/PingPongResource.java index d0f1560fd5d0c..4d800fb2d5565 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/PingPongResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/PingPongResource.java @@ -2,12 +2,12 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/ServletEndpoint.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/ServletEndpoint.java index 41a50cb5e8f86..ab0fd361c31ec 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/ServletEndpoint.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/ServletEndpoint.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletEndpoint", urlPatterns = "/servlet/*") public class ServletEndpoint extends HttpServlet { diff --git a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/TimedResource.java b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/TimedResource.java index e355359f7b193..8c209c89d33c5 100644 --- a/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/TimedResource.java +++ b/extensions/micrometer/deployment/src/test/java/io/quarkus/micrometer/test/TimedResource.java @@ -6,7 +6,7 @@ import java.time.temporal.ChronoUnit; import java.util.concurrent.CompletableFuture; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.micrometer.core.annotation.Timed; import io.smallrye.mutiny.Uni; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/ClockProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/ClockProvider.java index 354d21235b089..c1c0799ac4fc8 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/ClockProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/ClockProvider.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.Clock; import io.quarkus.arc.DefaultBean; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/CompositeRegistryCreator.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/CompositeRegistryCreator.java index ae33b75cb6754..7cdfef7a67fe6 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/CompositeRegistryCreator.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/CompositeRegistryCreator.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime; -import static javax.interceptor.Interceptor.Priority.PLATFORM_AFTER; +import static jakarta.interceptor.Interceptor.Priority.PLATFORM_AFTER; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Metrics; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MeterFilterConstraint.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MeterFilterConstraint.java index f8780dc87ecdc..aef5eee0f5958 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MeterFilterConstraint.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MeterFilterConstraint.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Qualifier @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCounted.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCounted.java index 985410fc6d3fc..5a86880c01fd9 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCounted.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCounted.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; import io.micrometer.core.annotation.Counted; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCountedInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCountedInterceptor.java index 97e01d6b649a3..152a36486b456 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCountedInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerCountedInterceptor.java @@ -4,9 +4,9 @@ import java.util.concurrent.CompletionStage; import java.util.function.BiConsumer; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import io.micrometer.core.annotation.Counted; import io.micrometer.core.instrument.Counter; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerRecorder.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerRecorder.java index aaab2f94a3283..feaaa3047ffb7 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerRecorder.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerRecorder.java @@ -8,11 +8,11 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.jboss.logging.Logger; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptor.java index fcf3aadfbdf2d..7d6ff73b77260 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/MicrometerTimedInterceptor.java @@ -6,9 +6,9 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import org.jboss.logging.Logger; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/HttpMeterFilterProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/HttpMeterFilterProvider.java index 52005c4e40320..ee2c3ef86b7ab 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/HttpMeterFilterProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/HttpMeterFilterProvider.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.runtime.binder; -import javax.inject.Singleton; -import javax.ws.rs.Produces; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Produces; import io.micrometer.core.instrument.config.MeterFilter; import io.micrometer.core.instrument.internal.OnlyOnceLoggingDenyMeterFilter; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/RestClientMetricsFilter.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/RestClientMetricsFilter.java index 5a38f9a94c7f2..004aa63e2d162 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/RestClientMetricsFilter.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/RestClientMetricsFilter.java @@ -1,11 +1,11 @@ package io.quarkus.micrometer.runtime.binder; -import javax.inject.Inject; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.ext.Provider; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Metrics; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsClientInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsClientInterceptor.java index 3d7acfe1dbfb3..9e596f1050d58 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsClientInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsClientInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime.binder.grpc; -import javax.enterprise.inject.spi.Prioritized; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.Interceptor.Priority; +import jakarta.enterprise.inject.spi.Prioritized; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor.Priority; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.binder.grpc.MetricCollectingClientInterceptor; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsServerInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsServerInterceptor.java index 68137fc59e4d6..aec817f324a7f 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsServerInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/grpc/GrpcMetricsServerInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime.binder.grpc; -import javax.enterprise.inject.spi.Prioritized; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.Interceptor.Priority; +import jakarta.enterprise.inject.spi.Prioritized; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor.Priority; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaEventObserver.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaEventObserver.java index 767b31cc7047b..5a27e30c3f68d 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaEventObserver.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaEventObserver.java @@ -3,8 +3,8 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.producer.Producer; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaStreamsEventObserver.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaStreamsEventObserver.java index 70c23054d26cc..6dae8774e42c4 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaStreamsEventObserver.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/kafka/KafkaStreamsEventObserver.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.runtime.binder.kafka; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.apache.kafka.streams.KafkaStreams; import org.jboss.logging.Logger; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/ConcurrentGaugeInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/ConcurrentGaugeInterceptor.java index 1155e3aea6925..77a8adb331e92 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/ConcurrentGaugeInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/ConcurrentGaugeInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import org.eclipse.microprofile.metrics.MetricType; import org.eclipse.microprofile.metrics.annotation.ConcurrentGauge; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/CountedInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/CountedInterceptor.java index 9d331037fd381..0c6411101e806 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/CountedInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/CountedInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import org.eclipse.microprofile.metrics.MetricType; import org.eclipse.microprofile.metrics.annotation.Counted; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/InjectedMetricProducer.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/InjectedMetricProducer.java index ee9bd89432026..d1ef92405649a 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/InjectedMetricProducer.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/InjectedMetricProducer.java @@ -1,8 +1,8 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Singleton; import org.eclipse.microprofile.metrics.*; import org.eclipse.microprofile.metrics.annotation.Metric; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsBinder.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsBinder.java index a497ff50ad612..85ca22bf81165 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsBinder.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsBinder.java @@ -2,8 +2,8 @@ import java.util.Iterator; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.binder.MeterBinder; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsRegistryProducer.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsRegistryProducer.java index c508e6317cb84..45ec60a218aa8 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsRegistryProducer.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/MpMetricsRegistryProducer.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.eclipse.microprofile.metrics.*; import org.eclipse.microprofile.metrics.annotation.RegistryType; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/TimedInterceptor.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/TimedInterceptor.java index 6124c087c4018..17f21bffbbe68 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/TimedInterceptor.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/mpmetrics/TimedInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.micrometer.runtime.binder.mpmetrics; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import org.eclipse.microprofile.metrics.MetricType; import org.eclipse.microprofile.metrics.annotation.Timed; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/redis/RedisMetricsBean.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/redis/RedisMetricsBean.java index e01edccb949a1..755eec949cc2b 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/redis/RedisMetricsBean.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/redis/RedisMetricsBean.java @@ -4,8 +4,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Typed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Typed; import io.micrometer.core.instrument.Counter; import io.micrometer.core.instrument.MeterRegistry; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/vertx/VertxMeterBinderUndertowServletFilter.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/vertx/VertxMeterBinderUndertowServletFilter.java index 0de4166af3992..26f0cadb12765 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/vertx/VertxMeterBinderUndertowServletFilter.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/binder/vertx/VertxMeterBinderUndertowServletFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.http.HttpFilter; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpFilter; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.vertx.ext.web.RoutingContext; @@ -32,4 +32,4 @@ protected void doFilter(HttpServletRequest req, HttpServletResponse res, FilterC metric.setTemplatePath(req.getServletPath()); } } -} \ No newline at end of file +} diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/EmptyExemplarSamplerProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/EmptyExemplarSamplerProvider.java index 1430e23aa115a..46dc7a94978d4 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/EmptyExemplarSamplerProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/EmptyExemplarSamplerProvider.java @@ -2,7 +2,7 @@ import java.util.Optional; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; import io.prometheus.client.exemplars.ExemplarSampler; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/JsonMeterRegistryProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/JsonMeterRegistryProvider.java index 012958f7d10cd..1c0d662130d98 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/JsonMeterRegistryProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/JsonMeterRegistryProvider.java @@ -1,7 +1,7 @@ package io.quarkus.micrometer.runtime.export; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.Clock; import io.quarkus.micrometer.runtime.registry.json.JsonMeterRegistry; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/OpentelemetryExemplarSamplerProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/OpentelemetryExemplarSamplerProvider.java index c86d836603b90..d99131fb7831b 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/OpentelemetryExemplarSamplerProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/OpentelemetryExemplarSamplerProvider.java @@ -3,7 +3,7 @@ import java.util.Optional; import java.util.function.Function; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.SpanContext; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProducer.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProducer.java index 048987d7d451f..7fba83e2e3217 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProducer.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProducer.java @@ -2,10 +2,10 @@ import java.util.Optional; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import io.micrometer.core.instrument.Clock; import io.micrometer.prometheus.PrometheusConfig; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProvider.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProvider.java index 09d264afef822..b1cef90873d27 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProvider.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/PrometheusMeterRegistryProvider.java @@ -2,8 +2,8 @@ import java.util.Map; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.prometheus.PrometheusConfig; import io.micrometer.prometheus.PrometheusDurationNamingConvention; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/JsonHandler.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/JsonHandler.java index b73e792c8a4a8..6ef7bc62f32eb 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/JsonHandler.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/JsonHandler.java @@ -1,8 +1,8 @@ package io.quarkus.micrometer.runtime.export.handlers; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/PrometheusHandler.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/PrometheusHandler.java index 71409f51d82d7..1b4ab7517339c 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/PrometheusHandler.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/export/handlers/PrometheusHandler.java @@ -1,8 +1,8 @@ package io.quarkus.micrometer.runtime.export.handlers; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/registry/json/JsonExporter.java b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/registry/json/JsonExporter.java index 3d4148eda2aed..1ba39486c0b52 100644 --- a/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/registry/json/JsonExporter.java +++ b/extensions/micrometer/runtime/src/main/java/io/quarkus/micrometer/runtime/registry/json/JsonExporter.java @@ -26,12 +26,12 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; -import javax.json.JsonWriter; -import javax.json.spi.JsonProvider; -import javax.json.stream.JsonGenerator; +import jakarta.json.JsonObject; +import jakarta.json.JsonObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.JsonWriter; +import jakarta.json.spi.JsonProvider; +import jakarta.json.stream.JsonGenerator; import io.micrometer.core.instrument.Counter; import io.micrometer.core.instrument.DistributionSummary; diff --git a/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java index bfa847e1541b0..add4b85f039b0 100644 --- a/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java +++ b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java @@ -12,9 +12,9 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; +import jakarta.inject.Singleton; import org.bson.codecs.configuration.CodecProvider; import org.bson.codecs.pojo.PropertyCodecProvider; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultAndNamedMongoClientConfigTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultAndNamedMongoClientConfigTest.java index 504f581e09832..9cc7fc2d834ad 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultAndNamedMongoClientConfigTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultAndNamedMongoClientConfigTest.java @@ -3,10 +3,10 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.entry; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.literal.NamedLiteral; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.literal.NamedLiteral; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheckResponse; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultMongoClientConfigTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultMongoClientConfigTest.java index c48a9a7e1623e..45f9e74bb0a6b 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultMongoClientConfigTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/DefaultMongoClientConfigTest.java @@ -5,8 +5,8 @@ import java.util.function.BiConsumer; -import javax.enterprise.inject.Any; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheckResponse; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoClientConfigTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoClientConfigTest.java index 06573e39963ea..b4f546107c2af 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoClientConfigTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoClientConfigTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoCommandListenerTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoCommandListenerTest.java index cd0edff5a0a3f..4c9981c1d529b 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoCommandListenerTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoCommandListenerTest.java @@ -6,7 +6,7 @@ import static org.hamcrest.Matchers.hasItems; import static org.hamcrest.Matchers.hasSize; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoLazyTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoLazyTest.java index 4da0e47f66552..c8c1d01716668 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoLazyTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoLazyTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.Metric; import org.eclipse.microprofile.metrics.MetricID; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoMetricsTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoMetricsTest.java index 10792e0392a2a..dab2253817afe 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoMetricsTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoMetricsTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.Metric; import org.eclipse.microprofile.metrics.MetricID; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoNamedClientClientBuildItemConsumerTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoNamedClientClientBuildItemConsumerTest.java index 58fa1a9c5a2d6..cc8ba3fff7a08 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoNamedClientClientBuildItemConsumerTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoNamedClientClientBuildItemConsumerTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.function.Consumer; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.literal.NamedLiteral; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java index a846c4b7fbaee..48fe208fdce7a 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedMongoClientConfigTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedMongoClientConfigTest.java index f832a61d377b4..6dae624333538 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedMongoClientConfigTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedMongoClientConfigTest.java @@ -5,9 +5,9 @@ import java.lang.annotation.Annotation; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheckResponse; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedReactiveMongoClientConfigTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedReactiveMongoClientConfigTest.java index 0b02cb2e98b85..9b4cb46ed77a7 100644 --- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedReactiveMongoClientConfigTest.java +++ b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/NamedReactiveMongoClientConfigTest.java @@ -6,9 +6,9 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Field; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheckResponse; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/MongoClientName.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/MongoClientName.java index 0e28fa5e33581..306e94275e71c 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/MongoClientName.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/MongoClientName.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; /** * Marker annotation to select mongo connection of cluster configuration diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/health/MongoHealthCheck.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/health/MongoHealthCheck.java index 103f78e75f420..953971bcf3455 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/health/MongoHealthCheck.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/health/MongoHealthCheck.java @@ -8,9 +8,9 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.Bean; import org.bson.Document; import org.eclipse.microprofile.health.HealthCheck; diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientBeanUtil.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientBeanUtil.java index c65b6e2d4b34e..72b07c884dd2c 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientBeanUtil.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientBeanUtil.java @@ -1,8 +1,8 @@ package io.quarkus.mongodb.runtime; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.literal.NamedLiteral; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.util.AnnotationLiteral; public final class MongoClientBeanUtil { diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientRecorder.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientRecorder.java index d5a6b29c418a1..01fa1bf4caebd 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientRecorder.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClientRecorder.java @@ -5,9 +5,9 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.literal.NamedLiteral; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import com.mongodb.ConnectionString; import com.mongodb.client.MongoClient; diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClients.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClients.java index f305be460d319..c89ff3c2d7327 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClients.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/runtime/MongoClients.java @@ -20,10 +20,10 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.annotation.PreDestroy; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; import org.bson.codecs.configuration.CodecProvider; import org.bson.codecs.configuration.CodecRegistry; diff --git a/extensions/mutiny/deployment/src/test/java/io/quarkus/mutiny/deployment/test/MutinyTest.java b/extensions/mutiny/deployment/src/test/java/io/quarkus/mutiny/deployment/test/MutinyTest.java index 04571dcd56f55..c73a1b92c0c88 100644 --- a/extensions/mutiny/deployment/src/test/java/io/quarkus/mutiny/deployment/test/MutinyTest.java +++ b/extensions/mutiny/deployment/src/test/java/io/quarkus/mutiny/deployment/test/MutinyTest.java @@ -11,8 +11,8 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java index 70ffcff8f4772..e4798b56400d5 100644 --- a/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java +++ b/extensions/narayana-jta/deployment/src/main/java/io/quarkus/narayana/jta/deployment/NarayanaJtaProcessor.java @@ -4,10 +4,10 @@ import java.util.Properties; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionScoped; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionScoped; import com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean; import com.arjuna.ats.arjuna.recovery.TransactionStatusConnectionManager; diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TransactionalTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TransactionalTest.java index a8d8608aef2a4..fb40b7b8e8ebc 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TransactionalTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TransactionalTest.java @@ -1,13 +1,13 @@ package io.quarkus.narayana.interceptor; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TxAssertionData.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TxAssertionData.java index 2ed5fc1e621f1..689cac39a4437 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TxAssertionData.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/interceptor/TxAssertionData.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class TxAssertionData { diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversErrorHandlingTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversErrorHandlingTest.java index bd486052b3d21..bf551ab7aa926 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversErrorHandlingTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversErrorHandlingTest.java @@ -1,11 +1,11 @@ package io.quarkus.narayana.observers; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.TransactionPhase; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversTest.java index d02fbcb1ee1fd..dfd8208474949 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/observers/TransactionalObserversTest.java @@ -3,13 +3,13 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.TransactionPhase; -import javax.inject.Inject; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/QuarkusTransactionTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/QuarkusTransactionTest.java index b25237f4b2baf..f895d26c31fe3 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/QuarkusTransactionTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/QuarkusTransactionTest.java @@ -8,17 +8,17 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionScoped; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionScoped; import org.eclipse.microprofile.context.ThreadContext; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionRunnerTest.java b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionRunnerTest.java index 39311a6fd6901..09a3c336162af 100644 --- a/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionRunnerTest.java +++ b/extensions/narayana-jta/deployment/src/test/java/io/quarkus/narayana/quarkus/TransactionRunnerTest.java @@ -7,13 +7,13 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransaction.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransaction.java index 33eadb815e644..0301cb6cd8049 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransaction.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransaction.java @@ -3,16 +3,16 @@ import java.util.concurrent.Callable; import java.util.function.Function; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transactional; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transactional; import com.arjuna.ats.jta.UserTransaction; import io.quarkus.arc.Arc; /** - * A simplified transaction interface. While broadly covering the same use cases as {@link javax.transaction.UserTransaction}, + * A simplified transaction interface. While broadly covering the same use cases as {@link jakarta.transaction.UserTransaction}, * this class is designed to be easier to use. The main features it offers over {@code UserTransaction} are: * *

    diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransactionImpl.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransactionImpl.java index 955621392e8b5..ebc8e5718dd49 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransactionImpl.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/QuarkusTransactionImpl.java @@ -2,15 +2,15 @@ import java.util.concurrent.Callable; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.UserTransaction; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.UserTransaction; import org.jboss.logging.Logger; @@ -242,7 +242,7 @@ static void setRollbackOnly() { } } - private static javax.transaction.UserTransaction getUserTransaction() { + private static jakarta.transaction.UserTransaction getUserTransaction() { if (cachedUserTransaction == null) { return cachedUserTransaction = com.arjuna.ats.jta.UserTransaction.userTransaction(); } diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/RequestScopedTransaction.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/RequestScopedTransaction.java index 5d0ddfff4c54e..9421b0c964ea7 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/RequestScopedTransaction.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/RequestScopedTransaction.java @@ -2,15 +2,15 @@ import java.util.function.Function; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.transaction.NotSupportedException; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.UserTransaction; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.UserTransaction; import org.jboss.logging.Logger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java index f2172253c1358..ea456aad98cda 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NarayanaJtaProducers.java @@ -1,11 +1,11 @@ package io.quarkus.narayana.jta.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.transaction.TransactionSynchronizationRegistry; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.UserTransaction; import org.jboss.tm.JBossXATerminator; import org.jboss.tm.XAResourceRecoveryRegistry; @@ -35,7 +35,7 @@ public UserTransaction userTransaction() { @Produces @Unremovable @Singleton - public javax.transaction.TransactionManager transactionManager() { + public jakarta.transaction.TransactionManager transactionManager() { return new NotifyingTransactionManager(); } diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingTransactionManager.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingTransactionManager.java index fbe14fa03ac89..5eb6516145e55 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingTransactionManager.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingTransactionManager.java @@ -2,19 +2,19 @@ import java.io.Serializable; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Event; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.InvalidTransactionException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Event; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.InvalidTransactionException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionScoped; import org.jboss.logging.Logger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingUserTransaction.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingUserTransaction.java index d38765a8d7f01..787733a12b3a1 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingUserTransaction.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/NotifyingUserTransaction.java @@ -1,11 +1,11 @@ package io.quarkus.narayana.jta.runtime; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.jboss.logging.Logger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/TransactionScopedNotifier.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/TransactionScopedNotifier.java index e851c85b905b4..55238493448c3 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/TransactionScopedNotifier.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/TransactionScopedNotifier.java @@ -2,12 +2,12 @@ import java.util.Objects; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Event; -import javax.transaction.SystemException; -import javax.transaction.TransactionScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Event; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionScoped; import com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/context/TransactionContext.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/context/TransactionContext.java index f8fe96f29ffd3..faf5c53d5cb0d 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/context/TransactionContext.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/context/TransactionContext.java @@ -9,17 +9,17 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.transaction.RollbackException; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionScoped; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionScoped; +import jakarta.transaction.TransactionSynchronizationRegistry; import com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple; @@ -30,7 +30,7 @@ import io.quarkus.arc.impl.LazyValue; /** - * {@link javax.enterprise.context.spi.Context} class which defines the {@link TransactionScoped} context. + * {@link jakarta.enterprise.context.spi.Context} class which defines the {@link TransactionScoped} context. */ public class TransactionContext implements InjectableContext { // marker object to be put as a key for SynchronizationRegistry to gather all beans created in the scope diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TestTransactionInterceptor.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TestTransactionInterceptor.java index 6b52c3df48da7..d177e396a6041 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TestTransactionInterceptor.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TestTransactionInterceptor.java @@ -4,11 +4,11 @@ import java.util.List; import java.util.ServiceLoader; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.InvocationContext; -import javax.transaction.Status; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Status; +import jakarta.transaction.UserTransaction; import io.quarkus.narayana.jta.runtime.test.TestTransactionCallback; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java index 5bc31cbb0cd8c..c281e78eae50b 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java @@ -11,13 +11,13 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import javax.inject.Inject; -import javax.interceptor.InvocationContext; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.logging.Logger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java index 59a1be7d77619..86cae40675547 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorMandatory.java @@ -1,14 +1,14 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionRequiredException; -import javax.transaction.Transactional; -import javax.transaction.TransactionalException; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionRequiredException; +import jakarta.transaction.Transactional; +import jakarta.transaction.TransactionalException; import com.arjuna.ats.jta.logging.jtaLogger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java index adfe240cc9762..a850dccc760d2 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNever.java @@ -1,14 +1,14 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.InvalidTransactionException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.transaction.TransactionalException; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.InvalidTransactionException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.TransactionalException; import com.arjuna.ats.jta.logging.jtaLogger; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java index 83da6f1158f52..9b0371ca3f3b2 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorNotSupported.java @@ -1,12 +1,12 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; /** * @author paul.robinson@redhat.com 25/05/2013 diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java index d6127af241290..0fb2dd78db9e4 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequired.java @@ -1,12 +1,12 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; import io.quarkus.runtime.BlockingOperationControl; import io.quarkus.runtime.BlockingOperationNotAllowedException; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java index c27fe4ccd4171..049fef8133bd1 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorRequiresNew.java @@ -1,12 +1,12 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; import io.quarkus.runtime.BlockingOperationControl; import io.quarkus.runtime.BlockingOperationNotAllowedException; diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java index da4686c579cff..06ad183ef80a0 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorSupports.java @@ -1,12 +1,12 @@ package io.quarkus.narayana.jta.runtime.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; /** * @author paul.robinson@redhat.com 25/05/2013 diff --git a/extensions/narayana-lra/deployment/src/main/java/io/quarkus/narayana/lra/deployment/NarayanaLRAProcessor.java b/extensions/narayana-lra/deployment/src/main/java/io/quarkus/narayana/lra/deployment/NarayanaLRAProcessor.java index 24948418b2cd2..c3df9a306825b 100644 --- a/extensions/narayana-lra/deployment/src/main/java/io/quarkus/narayana/lra/deployment/NarayanaLRAProcessor.java +++ b/extensions/narayana-lra/deployment/src/main/java/io/quarkus/narayana/lra/deployment/NarayanaLRAProcessor.java @@ -33,7 +33,7 @@ class NarayanaLRAProcessor { - private static final DotName PATH = DotName.createSimple("javax.ws.rs.Path"); + private static final DotName PATH = DotName.createSimple("jakarta.ws.rs.Path"); @BuildStep void registerFeature(BuildProducer feature, Capabilities capabilities) { diff --git a/extensions/narayana-lra/runtime/pom.xml b/extensions/narayana-lra/runtime/pom.xml index 110fe0f9ba3fb..e850b4c6e592c 100644 --- a/extensions/narayana-lra/runtime/pom.xml +++ b/extensions/narayana-lra/runtime/pom.xml @@ -42,16 +42,16 @@ lra-client - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api org.eclipse.microprofile.lra microprofile-lra-api - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation @@ -63,12 +63,12 @@ - org.jboss.narayana.rts:narayana-lra - META-INF/services/javax.ws.rs.client.ClientBuilder + org.jboss.narayana.rts:narayana-lra-jakarta + META-INF/services/jakarta.ws.rs.client.ClientBuilder - org.jboss.narayana.rts:lra-client - META-INF/services/javax.ws.rs.client.ClientBuilder + org.jboss.narayana.rts:lra-client-jakarta + META-INF/services/jakarta.ws.rs.client.ClientBuilder diff --git a/extensions/narayana-lra/runtime/src/main/java/io/quarkus/narayana/lra/runtime/NarayanaLRAProducers.java b/extensions/narayana-lra/runtime/src/main/java/io/quarkus/narayana/lra/runtime/NarayanaLRAProducers.java index d57dafc3abeb9..8be883d58437d 100644 --- a/extensions/narayana-lra/runtime/src/main/java/io/quarkus/narayana/lra/runtime/NarayanaLRAProducers.java +++ b/extensions/narayana-lra/runtime/src/main/java/io/quarkus/narayana/lra/runtime/NarayanaLRAProducers.java @@ -1,7 +1,7 @@ package io.quarkus.narayana.lra.runtime; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.narayana.lra.client.internal.proxy.nonjaxrs.LRAParticipantRegistry; diff --git a/extensions/narayana-stm/deployment/src/main/java/io/quarkus/narayana/stm/deployment/NarayanaSTMProcessor.java b/extensions/narayana-stm/deployment/src/main/java/io/quarkus/narayana/stm/deployment/NarayanaSTMProcessor.java index bb2082d8e3bcf..2f4fd1a6f3d8e 100644 --- a/extensions/narayana-stm/deployment/src/main/java/io/quarkus/narayana/stm/deployment/NarayanaSTMProcessor.java +++ b/extensions/narayana-stm/deployment/src/main/java/io/quarkus/narayana/stm/deployment/NarayanaSTMProcessor.java @@ -5,7 +5,7 @@ import java.util.ArrayList; import java.util.Collection; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java index 5d5f7626e2b36..069fb756162a2 100644 --- a/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java +++ b/extensions/netty/deployment/src/main/java/io/quarkus/netty/deployment/NettyProcessor.java @@ -7,7 +7,7 @@ import java.util.Random; import java.util.function.Supplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; import org.jboss.logmanager.Level; diff --git a/extensions/netty/runtime/src/main/java/io/quarkus/netty/BossEventLoopGroup.java b/extensions/netty/runtime/src/main/java/io/quarkus/netty/BossEventLoopGroup.java index 91b9940123d5b..22992e7a2366d 100644 --- a/extensions/netty/runtime/src/main/java/io/quarkus/netty/BossEventLoopGroup.java +++ b/extensions/netty/runtime/src/main/java/io/quarkus/netty/BossEventLoopGroup.java @@ -3,8 +3,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Qualifier @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/netty/runtime/src/main/java/io/quarkus/netty/MainEventLoopGroup.java b/extensions/netty/runtime/src/main/java/io/quarkus/netty/MainEventLoopGroup.java index 3457f2402235c..fbc266280a666 100644 --- a/extensions/netty/runtime/src/main/java/io/quarkus/netty/MainEventLoopGroup.java +++ b/extensions/netty/runtime/src/main/java/io/quarkus/netty/MainEventLoopGroup.java @@ -3,8 +3,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Qualifier @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ConfigPropertyOidcClientResource.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ConfigPropertyOidcClientResource.java index 659168be30c6e..7cb2fb2aab84e 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ConfigPropertyOidcClientResource.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ConfigPropertyOidcClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client.filter; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/FrontendResource.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/FrontendResource.java index 36fc4cb8af1fd..de14aff670378 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/FrontendResource.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/FrontendResource.java @@ -1,12 +1,12 @@ package io.quarkus.oidc.client.filter; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/NamedOidcClientResource.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/NamedOidcClientResource.java index 5419cddb7598c..14bc445504e7c 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/NamedOidcClientResource.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/NamedOidcClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client.filter; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResource.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResource.java index c30b039aec3be..f8f64d0ba3e38 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResource.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResource.java @@ -2,10 +2,10 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceService.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceService.java index bb305bece578b..ae27a0ef6ce4b 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceService.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceService.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceConfigPropertyOidcClient.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceConfigPropertyOidcClient.java index 929f35e34e3d4..3374907ee4f11 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceConfigPropertyOidcClient.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceConfigPropertyOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java index 2d1eeda97ab58..8aeaa85434fda 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceNamedOidcClient.java b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceNamedOidcClient.java index efb484c0630d8..80367d8f8588e 100644 --- a/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceNamedOidcClient.java +++ b/extensions/oidc-client-filter/deployment/src/test/java/io/quarkus/oidc/client/filter/ProtectedResourceServiceNamedOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/OidcClientRequestFilter.java b/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/OidcClientRequestFilter.java index e1a3fa9708094..ff3396371393b 100644 --- a/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/OidcClientRequestFilter.java +++ b/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/OidcClientRequestFilter.java @@ -2,11 +2,11 @@ import java.util.Optional; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.Provider; import io.quarkus.oidc.client.filter.runtime.AbstractOidcClientRequestFilter; import io.quarkus.oidc.client.filter.runtime.OidcClientFilterConfig; diff --git a/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/runtime/AbstractOidcClientRequestFilter.java b/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/runtime/AbstractOidcClientRequestFilter.java index 35de8080216d0..37657d832698c 100644 --- a/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/runtime/AbstractOidcClientRequestFilter.java +++ b/extensions/oidc-client-filter/runtime/src/main/java/io/quarkus/oidc/client/filter/runtime/AbstractOidcClientRequestFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/main/java/io/quarkus/oidc/client/reactive/filter/deployment/OidcClientReactiveFilterBuildStep.java b/extensions/oidc-client-reactive-filter/deployment/src/main/java/io/quarkus/oidc/client/reactive/filter/deployment/OidcClientReactiveFilterBuildStep.java index f3bebe1e72b87..5c332a2558e1b 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/main/java/io/quarkus/oidc/client/reactive/filter/deployment/OidcClientReactiveFilterBuildStep.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/main/java/io/quarkus/oidc/client/reactive/filter/deployment/OidcClientReactiveFilterBuildStep.java @@ -3,7 +3,7 @@ import java.util.Collection; import java.util.List; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/OidcClientResource.java b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/OidcClientResource.java index 4e36adab6ae26..559047ef13dea 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/OidcClientResource.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/OidcClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client.reactive.filter; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResource.java b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResource.java index af91c7906f4bb..23ddd9ef09764 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResource.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResource.java @@ -2,10 +2,10 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceAnnotationOidcClient.java b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceAnnotationOidcClient.java index d765aa3b7ebb2..eda0b6c579174 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceAnnotationOidcClient.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceAnnotationOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.reactive.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceConfigPropertyOidcClient.java b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceConfigPropertyOidcClient.java index 98ef7a2ce58c3..ee77cac550886 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceConfigPropertyOidcClient.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceConfigPropertyOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.reactive.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java index d07bcc2c0a26c..1e1a82b75042c 100644 --- a/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java +++ b/extensions/oidc-client-reactive-filter/deployment/src/test/java/io/quarkus/oidc/client/reactive/filter/ProtectedResourceServiceCustomProviderConfigPropOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client.reactive.filter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/OidcClientRequestReactiveFilter.java b/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/OidcClientRequestReactiveFilter.java index ca61a0b88576e..1561f9be512cb 100644 --- a/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/OidcClientRequestReactiveFilter.java +++ b/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/OidcClientRequestReactiveFilter.java @@ -2,9 +2,9 @@ import java.util.Optional; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.ws.rs.Priorities; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; import io.quarkus.oidc.client.reactive.filter.runtime.AbstractOidcClientRequestReactiveFilter; import io.quarkus.oidc.client.reactive.filter.runtime.OidcClientReactiveFilterConfig; diff --git a/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/runtime/AbstractOidcClientRequestReactiveFilter.java b/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/runtime/AbstractOidcClientRequestReactiveFilter.java index 641606308915f..777a10ee31142 100644 --- a/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/runtime/AbstractOidcClientRequestReactiveFilter.java +++ b/extensions/oidc-client-reactive-filter/runtime/src/main/java/io/quarkus/oidc/client/reactive/filter/runtime/AbstractOidcClientRequestReactiveFilter.java @@ -2,8 +2,8 @@ import java.util.function.Consumer; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; diff --git a/extensions/oidc-client/deployment/pom.xml b/extensions/oidc-client/deployment/pom.xml index a457daeb34f4b..f543483f1fc23 100644 --- a/extensions/oidc-client/deployment/pom.xml +++ b/extensions/oidc-client/deployment/pom.xml @@ -66,8 +66,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation test diff --git a/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java b/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java index 40f9b529f4c4b..04ffea66bf3b8 100644 --- a/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java +++ b/extensions/oidc-client/deployment/src/main/java/io/quarkus/oidc/client/deployment/OidcClientBuildStep.java @@ -9,8 +9,8 @@ import java.util.function.BooleanSupplier; import java.util.stream.Collectors; -import javax.enterprise.context.RequestScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/FrontendResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/FrontendResource.java index 575ff7d0125c1..6364d03117d18 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/FrontendResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/FrontendResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/NamedOidcClientResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/NamedOidcClientResource.java index 78001554762fb..7782e56abff2f 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/NamedOidcClientResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/NamedOidcClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.mutiny.Uni; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientRequestCustomFilter.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientRequestCustomFilter.java index 32d7309895149..0276e3b534b96 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientRequestCustomFilter.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientRequestCustomFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.core.HttpHeaders; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; @Priority(Priorities.AUTHENTICATION) public class OidcClientRequestCustomFilter implements ClientRequestFilter { diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientResource.java index 359aab2b6716e..75c38a064d0ec 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientResource.java @@ -1,10 +1,10 @@ package io.quarkus.oidc.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.smallrye.mutiny.Uni; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientsResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientsResource.java index 1e7432342fde8..e575a1e45fa92 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientsResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcClientsResource.java @@ -2,11 +2,11 @@ import java.util.function.Function; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcPublicClientResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcPublicClientResource.java index 4e0d144ef23f8..99ecfe35e7918 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcPublicClientResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/OidcPublicClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.mutiny.Uni; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResource.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResource.java index 64d109877d48e..6c469726cdd0a 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResource.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResource.java @@ -2,10 +2,10 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResourceService.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResourceService.java index 12e6f9eb12f81..31efb8699f209 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResourceService.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/ProtectedResourceService.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/SecretProvider.java b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/SecretProvider.java index 2823d93b5d5bc..bc90dfcb2f4b3 100644 --- a/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/SecretProvider.java +++ b/extensions/oidc-client/deployment/src/test/java/io/quarkus/oidc/client/SecretProvider.java @@ -3,8 +3,8 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import io.quarkus.credentials.CredentialsProvider; diff --git a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/NamedOidcClient.java b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/NamedOidcClient.java index 66d3e9db7b419..8d7438f8c2465 100644 --- a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/NamedOidcClient.java +++ b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/NamedOidcClient.java @@ -10,7 +10,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; /** * Specification of OIDC client to be injected. diff --git a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/AbstractTokensProducer.java b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/AbstractTokensProducer.java index f8c942e5d3070..a8eb0806ad95c 100644 --- a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/AbstractTokensProducer.java +++ b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/AbstractTokensProducer.java @@ -3,8 +3,8 @@ import java.util.Objects; import java.util.Optional; -import javax.annotation.PostConstruct; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; import io.quarkus.arc.Arc; import io.quarkus.oidc.client.OidcClient; diff --git a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/TokensProducer.java b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/TokensProducer.java index a897b4b3358ee..ada2d72c18cba 100644 --- a/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/TokensProducer.java +++ b/extensions/oidc-client/runtime/src/main/java/io/quarkus/oidc/client/runtime/TokensProducer.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.client.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.quarkus.oidc.client.Tokens; diff --git a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenPropagationService.java b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenPropagationService.java index 8a65064390978..ee7bb89991a66 100644 --- a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenPropagationService.java +++ b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenPropagationService.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.token.propagation.reactive; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/FrontendResource.java b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/FrontendResource.java index 44e2f651cc43b..c0b32fbd7bfb6 100644 --- a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/FrontendResource.java +++ b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/FrontendResource.java @@ -1,9 +1,9 @@ package io.quarkus.oidc.token.propagation.reactive; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/ProtectedResource.java b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/ProtectedResource.java index e790aa37fe9a5..436c3adb99f02 100644 --- a/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/ProtectedResource.java +++ b/extensions/oidc-token-propagation-reactive/deployment/src/test/java/io/quarkus/oidc/token/propagation/reactive/ProtectedResource.java @@ -1,9 +1,9 @@ package io.quarkus.oidc.token.propagation.reactive; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/oidc-token-propagation-reactive/runtime/src/main/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenRequestReactiveFilter.java b/extensions/oidc-token-propagation-reactive/runtime/src/main/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenRequestReactiveFilter.java index 6977a08708bf2..ed7c1e4981b17 100644 --- a/extensions/oidc-token-propagation-reactive/runtime/src/main/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenRequestReactiveFilter.java +++ b/extensions/oidc-token-propagation-reactive/runtime/src/main/java/io/quarkus/oidc/token/propagation/reactive/AccessTokenRequestReactiveFilter.java @@ -4,13 +4,13 @@ import java.util.Optional; import java.util.function.Consumer; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/AccessTokenPropagationService.java b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/AccessTokenPropagationService.java index bb19f6a55b633..7a6273c9124aa 100644 --- a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/AccessTokenPropagationService.java +++ b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/AccessTokenPropagationService.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.token.propagation; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/FrontendResource.java b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/FrontendResource.java index a88077a3a89f4..1a4ee31674097 100644 --- a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/FrontendResource.java +++ b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/FrontendResource.java @@ -1,9 +1,9 @@ package io.quarkus.oidc.token.propagation; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/ProtectedResource.java b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/ProtectedResource.java index 369dca4ed35f8..ea3ae35bb1371 100644 --- a/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/ProtectedResource.java +++ b/extensions/oidc-token-propagation/deployment/src/test/java/io/quarkus/oidc/token/propagation/ProtectedResource.java @@ -1,9 +1,9 @@ package io.quarkus.oidc.token.propagation; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/AccessTokenRequestFilter.java b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/AccessTokenRequestFilter.java index d7774a1034462..6f08d7a51d887 100644 --- a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/AccessTokenRequestFilter.java +++ b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/AccessTokenRequestFilter.java @@ -4,10 +4,10 @@ import java.util.Collections; import java.util.Optional; -import javax.annotation.PostConstruct; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.client.ClientRequestContext; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientRequestContext; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/JsonWebTokenRequestFilter.java b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/JsonWebTokenRequestFilter.java index 1be3a3795359c..348afd6d2afb5 100644 --- a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/JsonWebTokenRequestFilter.java +++ b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/JsonWebTokenRequestFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.client.ClientRequestContext; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientRequestContext; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/runtime/AbstractTokenRequestFilter.java b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/runtime/AbstractTokenRequestFilter.java index 262ca3089b2d5..78026c2ef3856 100644 --- a/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/runtime/AbstractTokenRequestFilter.java +++ b/extensions/oidc-token-propagation/runtime/src/main/java/io/quarkus/oidc/token/propagation/runtime/AbstractTokenRequestFilter.java @@ -2,15 +2,15 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/oidc/deployment/pom.xml b/extensions/oidc/deployment/pom.xml index 75c1d9329c65b..63df4b39d5ef3 100644 --- a/extensions/oidc/deployment/pom.xml +++ b/extensions/oidc/deployment/pom.xml @@ -56,8 +56,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation org.testcontainers diff --git a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java index 040f2c0ddbe4c..05c3f20801f34 100644 --- a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java +++ b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/OidcBuildStep.java @@ -2,7 +2,7 @@ import java.util.function.BooleanSupplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.jwt.Claim; import org.jboss.jandex.DotName; diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTenantConfigResolver.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTenantConfigResolver.java index 343cce68a8b84..9bba5cbd1c82a 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTenantConfigResolver.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTenantConfigResolver.java @@ -1,6 +1,6 @@ package io.quarkus.oidc.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.OidcRequestContext; import io.quarkus.oidc.OidcTenantConfig; diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTokenStateManager.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTokenStateManager.java index 29ace56a21f85..97a487e18dfd4 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTokenStateManager.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/CustomTokenStateManager.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.arc.AlternativePriority; import io.quarkus.oidc.AuthorizationCodeTokens; diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/ProtectedResource.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/ProtectedResource.java index 9c1c73e03987b..fb6a48c08750f 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/ProtectedResource.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/ProtectedResource.java @@ -1,9 +1,9 @@ package io.quarkus.oidc.test; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecretProvider.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecretProvider.java index 42c8fb1e15428..54c04f4eb32f3 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecretProvider.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/SecretProvider.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import io.quarkus.credentials.CredentialsProvider; diff --git a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/UnprotectedResource.java b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/UnprotectedResource.java index 9a00dba696b97..1b4613f767569 100644 --- a/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/UnprotectedResource.java +++ b/extensions/oidc/deployment/src/test/java/io/quarkus/oidc/test/UnprotectedResource.java @@ -1,7 +1,7 @@ package io.quarkus.oidc.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/unprotected") public class UnprotectedResource { diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/IdToken.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/IdToken.java index ec2c04f9859af..d544196aedb1b 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/IdToken.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/IdToken.java @@ -8,7 +8,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; @Qualifier @Target({ FIELD, CONSTRUCTOR, METHOD }) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/TokenIntrospection.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/TokenIntrospection.java index 11a606fefc88c..137f139f06423 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/TokenIntrospection.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/TokenIntrospection.java @@ -1,6 +1,6 @@ package io.quarkus.oidc; -import javax.json.JsonObject; +import jakarta.json.JsonObject; import io.quarkus.oidc.runtime.AbstractJsonObjectResponse; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/UserInfo.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/UserInfo.java index d510c81f76082..3b8fc89fd8166 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/UserInfo.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/UserInfo.java @@ -1,6 +1,6 @@ package io.quarkus.oidc; -import javax.json.JsonObject; +import jakarta.json.JsonObject; import io.quarkus.oidc.runtime.AbstractJsonObjectResponse; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/AbstractJsonObjectResponse.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/AbstractJsonObjectResponse.java index 070a39b683fe5..d8e7361970eb7 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/AbstractJsonObjectResponse.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/AbstractJsonObjectResponse.java @@ -5,12 +5,12 @@ import java.util.Map; import java.util.Set; -import javax.json.Json; -import javax.json.JsonArray; -import javax.json.JsonNumber; -import javax.json.JsonObject; -import javax.json.JsonReader; -import javax.json.JsonValue; +import jakarta.json.Json; +import jakarta.json.JsonArray; +import jakarta.json.JsonNumber; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; +import jakarta.json.JsonValue; public class AbstractJsonObjectResponse { private String jsonString; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/BackChannelLogoutHandler.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/BackChannelLogoutHandler.java index 77057a83f3118..c7651a357a8c4 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/BackChannelLogoutHandler.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/BackChannelLogoutHandler.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.Claims; import org.jboss.logging.Logger; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTenantConfigResolver.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTenantConfigResolver.java index b092b3eaed83f..721ab284016ae 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTenantConfigResolver.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTenantConfigResolver.java @@ -4,11 +4,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.logging.Logger; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTokenStateManager.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTokenStateManager.java index 4e51635c34d53..0b8bc172cc2bb 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTokenStateManager.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/DefaultTokenStateManager.java @@ -1,6 +1,6 @@ package io.quarkus.oidc.runtime; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.AuthorizationCodeTokens; import io.quarkus.oidc.OidcRequestContext; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcAuthenticationMechanism.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcAuthenticationMechanism.java index 23aada5a97aa7..56b8233e3631d 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcAuthenticationMechanism.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcAuthenticationMechanism.java @@ -4,7 +4,7 @@ import java.util.Set; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.OIDCException; import io.quarkus.oidc.OidcTenantConfig; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcConfigurationMetadataProducer.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcConfigurationMetadataProducer.java index f86e88a11bdea..c3f7f3b22f1b9 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcConfigurationMetadataProducer.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcConfigurationMetadataProducer.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import io.quarkus.oidc.OIDCException; import io.quarkus.oidc.OidcConfigurationMetadata; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcIdentityProvider.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcIdentityProvider.java index 98a8ed130b067..9eafd4a0336c1 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcIdentityProvider.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcIdentityProvider.java @@ -7,8 +7,8 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.Claims; import org.jboss.logging.Logger; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java index 2bff1c56b660a..7c4c540ebeb6f 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java @@ -1,10 +1,10 @@ package io.quarkus.oidc.runtime; -import javax.annotation.Priority; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.Claims; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcSessionImpl.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcSessionImpl.java index af5e1e6b9a488..1d9ca56847639 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcSessionImpl.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcSessionImpl.java @@ -4,8 +4,8 @@ import java.time.Instant; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcTokenCredentialProducer.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcTokenCredentialProducer.java index ee88ac297ab3f..c317fced2fc76 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcTokenCredentialProducer.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcTokenCredentialProducer.java @@ -1,8 +1,8 @@ package io.quarkus.oidc.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/TenantConfigBean.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/TenantConfigBean.java index 37c7246079ed1..c4e401b83dfa7 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/TenantConfigBean.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/TenantConfigBean.java @@ -4,7 +4,7 @@ import java.util.concurrent.Executor; import java.util.function.Function; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.BeanDestroyer; import io.quarkus.oidc.OidcTenantConfig; diff --git a/extensions/openshift-client/runtime/src/main/java/io/quarkus/it/openshift/client/runtime/OpenShiftClientProducer.java b/extensions/openshift-client/runtime/src/main/java/io/quarkus/it/openshift/client/runtime/OpenShiftClientProducer.java index 1f6ee8918c8f1..5c83f9dbca32b 100644 --- a/extensions/openshift-client/runtime/src/main/java/io/quarkus/it/openshift/client/runtime/OpenShiftClientProducer.java +++ b/extensions/openshift-client/runtime/src/main/java/io/quarkus/it/openshift/client/runtime/OpenShiftClientProducer.java @@ -1,8 +1,8 @@ package io.quarkus.it.openshift.client.runtime; -import javax.annotation.PreDestroy; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/instrumentation/InstrumentationProcessor.java b/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/instrumentation/InstrumentationProcessor.java index 7757673b13866..555a3e2e31d72 100644 --- a/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/instrumentation/InstrumentationProcessor.java +++ b/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/instrumentation/InstrumentationProcessor.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.deployment.tracing.instrumentation; import static io.quarkus.bootstrap.classloading.QuarkusClassLoader.isClassPresentAtRuntime; -import static javax.interceptor.Interceptor.Priority.LIBRARY_AFTER; +import static jakarta.interceptor.Interceptor.Priority.LIBRARY_AFTER; import java.util.Optional; import java.util.function.BooleanSupplier; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledTest.java index fd5c0b8c46e58..336cc92d6f37e 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledTest.java @@ -3,7 +3,7 @@ import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledWithRootPathTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledWithRootPathTest.java index 5ee89b61dcdaa..f623d67b71fe9 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledWithRootPathTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsDisabledWithRootPathTest.java @@ -3,7 +3,7 @@ import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEnabledTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEnabledTest.java index fe75191f032f4..5822aea03ca18 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEnabledTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEnabledTest.java @@ -3,7 +3,7 @@ import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEqualRootPath.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEqualRootPath.java index e1d78154ee789..cd0eba96a7260 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEqualRootPath.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/NonAppEndpointsEqualRootPath.java @@ -3,7 +3,7 @@ import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.is; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryCustomSamplerBeanTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryCustomSamplerBeanTest.java index 68e6269a42b99..4faa40dba4170 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryCustomSamplerBeanTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryCustomSamplerBeanTest.java @@ -8,9 +8,9 @@ import java.lang.reflect.InvocationTargetException; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDevServicesDatasourcesTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDevServicesDatasourcesTest.java index 65ecadb6fffe1..3d9ade017fcd4 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDevServicesDatasourcesTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDevServicesDatasourcesTest.java @@ -1,11 +1,12 @@ package io.quarkus.opentelemetry.deployment; -import javax.inject.Inject; import javax.sql.DataSource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDisabledTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDisabledTest.java index 2f5ad1d21646d..7de4748425d34 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDisabledTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryDisabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.deployment; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDILegacyTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDILegacyTest.java index 00107904f049f..19d118f7f7625 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDILegacyTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDILegacyTest.java @@ -10,10 +10,10 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDITest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDITest.java index addd1335ef8c3..b1cc666d2f2d2 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDITest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryHttpCDITest.java @@ -10,10 +10,10 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryIdGeneratorTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryIdGeneratorTest.java index 7df50931b3551..6eb9098bcdcf5 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryIdGeneratorTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryIdGeneratorTest.java @@ -5,9 +5,9 @@ import java.lang.reflect.InvocationTargetException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryMDCTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryMDCTest.java index 7bb891c94c662..59961d68ceda0 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryMDCTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryMDCTest.java @@ -12,10 +12,10 @@ import java.util.Objects; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.logging.MDC; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryPropagatorsTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryPropagatorsTest.java index 471a31d280260..e9d1c4e9d575c 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryPropagatorsTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryPropagatorsTest.java @@ -3,7 +3,7 @@ import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.collection.ArrayMatching.arrayContainingInAnyOrder; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryResourceTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryResourceTest.java index 979eb1503a575..9a125d705d779 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryResourceTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetryResourceTest.java @@ -7,9 +7,9 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerBeanTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerBeanTest.java index 86fd2aab10d4e..51eb73e2c0045 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerBeanTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerBeanTest.java @@ -5,9 +5,9 @@ import java.lang.reflect.InvocationTargetException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerConfigTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerConfigTest.java index d243160671bc1..10f04530ff3eb 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerConfigTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/OpenTelemetrySamplerConfigTest.java @@ -4,7 +4,7 @@ import java.lang.reflect.InvocationTargetException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerDisabledTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerDisabledTest.java index cc97d6e89340b..2cbf597bcb6dc 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerDisabledTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerDisabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.deployment; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanInterceptorTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanInterceptorTest.java index a89837a29b91f..be15a684515f1 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanInterceptorTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanInterceptorTest.java @@ -9,13 +9,13 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanLegacyInterceptorTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanLegacyInterceptorTest.java index 08337c257210d..122d49d0b8362 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanLegacyInterceptorTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanLegacyInterceptorTest.java @@ -9,13 +9,13 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/HelloResource.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/HelloResource.java index 094311fe98fd2..86e08847f94f8 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/HelloResource.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/HelloResource.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.deployment.common; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.opentelemetry.api.trace.Span; import io.opentelemetry.sdk.trace.ReadableSpan; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TestSpanExporter.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TestSpanExporter.java index 5e3629ec6353c..5f934bac68810 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TestSpanExporter.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TestSpanExporter.java @@ -9,7 +9,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.opentelemetry.api.trace.SpanKind; import io.opentelemetry.sdk.common.CompletableResultCode; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TracerRouter.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TracerRouter.java index d634f125d3bdf..688d1f3a1d976 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TracerRouter.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/common/TracerRouter.java @@ -1,8 +1,8 @@ package io.quarkus.opentelemetry.deployment.common; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.opentelemetry.api.trace.Tracer; import io.quarkus.runtime.StartupEvent; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterBadEndpointTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterBadEndpointTest.java index b4434a7aaada7..47f39b975b42a 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterBadEndpointTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterBadEndpointTest.java @@ -1,6 +1,6 @@ package io.quarkus.opentelemetry.deployment.exporter.otlp; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterConfigTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterConfigTest.java index 8073c3771574a..d881b0e46d7c6 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterConfigTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterConfigTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterDisabledTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterDisabledTest.java index c1870c72c861e..21737a5446489 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterDisabledTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/exporter/otlp/OtlpExporterDisabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.deployment.exporter.otlp; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java index 0ebed9dad8ec3..bdeba99192653 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/GrpcOpenTelemetryTest.java @@ -19,8 +19,8 @@ import java.time.Duration; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/RestClientOpenTelemetryTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/RestClientOpenTelemetryTest.java index 3101dce40aff6..f50a7838ec43e 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/RestClientOpenTelemetryTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/RestClientOpenTelemetryTest.java @@ -16,16 +16,16 @@ import java.net.URI; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.HttpMethod; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxClientOpenTelemetryTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxClientOpenTelemetryTest.java index 9bde48df0bf6d..f5d60a2a3ff9e 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxClientOpenTelemetryTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxClientOpenTelemetryTest.java @@ -17,10 +17,10 @@ import java.net.URI; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.ws.rs.HttpMethod; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.ws.rs.HttpMethod; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryForwardedTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryForwardedTest.java index 2c4399d1e2495..2e54487dd3884 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryForwardedTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryForwardedTest.java @@ -8,7 +8,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryTest.java index 8db421699a0a7..c33858a084bf1 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryTest.java @@ -30,7 +30,7 @@ import java.lang.reflect.InvocationTargetException; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryXForwardedTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryXForwardedTest.java index 16b3714a54fdf..42c5f2b0c36e9 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryXForwardedTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/instrumentation/VertxOpenTelemetryXForwardedTest.java @@ -8,7 +8,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java index f556d8bfea6fd..15eab26a170ce 100644 --- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java +++ b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/propagation/OpenTelemetryMpContextPropagationTest.java @@ -8,10 +8,10 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.context.ThreadContext; import org.junit.jupiter.api.Test; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/OpenTelemetryProducer.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/OpenTelemetryProducer.java index 5069ddbb0c9ad..791f698022e22 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/OpenTelemetryProducer.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/OpenTelemetryProducer.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.runtime; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.opentelemetry.api.GlobalOpenTelemetry; import io.opentelemetry.api.OpenTelemetry; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpExporterProvider.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpExporterProvider.java index 62d19a3112d13..4a48cff4071f1 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpExporterProvider.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpExporterProvider.java @@ -1,7 +1,7 @@ package io.quarkus.opentelemetry.runtime.exporter.otlp; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.quarkus.arc.DefaultBean; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpRecorder.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpRecorder.java index 26d53fcefa562..6f775ca1f7097 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpRecorder.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/exporter/otlp/OtlpRecorder.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.CDI; import io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter; import io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporterBuilder; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerRecorder.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerRecorder.java index 1066280c6baf4..fc32e063dc3d3 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerRecorder.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerRecorder.java @@ -3,10 +3,10 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; import io.opentelemetry.api.common.Attributes; import io.opentelemetry.sdk.resources.Resource; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerUtil.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerUtil.java index 9c5709d8b5306..7d781fdbde16b 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerUtil.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerUtil.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.Optional; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import io.opentelemetry.api.common.Attributes; import io.opentelemetry.api.common.AttributesBuilder; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/TracerProducer.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/TracerProducer.java index c370546986cd9..fe4305f156292 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/TracerProducer.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/TracerProducer.java @@ -2,9 +2,9 @@ import static io.quarkus.opentelemetry.runtime.config.OpenTelemetryConfig.INSTRUMENTATION_NAME; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.opentelemetry.api.GlobalOpenTelemetry; import io.opentelemetry.api.baggage.Baggage; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/WithSpanInterceptor.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/WithSpanInterceptor.java index 2b016071a58a5..dcc0123797675 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/WithSpanInterceptor.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/cdi/WithSpanInterceptor.java @@ -7,9 +7,9 @@ import java.lang.reflect.Parameter; import java.util.Set; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.api.trace.SpanKind; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingClientInterceptor.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingClientInterceptor.java index b5c07e3dd08dd..1c8a7b5cf32fd 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingClientInterceptor.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingClientInterceptor.java @@ -2,7 +2,7 @@ import static io.quarkus.opentelemetry.runtime.config.OpenTelemetryConfig.INSTRUMENTATION_NAME; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingServerInterceptor.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingServerInterceptor.java index 550b6d650d158..584589a31cc49 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingServerInterceptor.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/grpc/GrpcTracingServerInterceptor.java @@ -6,7 +6,7 @@ import java.net.SocketAddress; import java.util.Collections; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.grpc.ForwardingServerCall.SimpleForwardingServerCall; import io.grpc.ForwardingServerCallListener.SimpleForwardingServerCallListener; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/reactivemessaging/ReactiveMessagingTracingDecorator.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/reactivemessaging/ReactiveMessagingTracingDecorator.java index 35e2956d3e82c..cba4e77aba404 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/reactivemessaging/ReactiveMessagingTracingDecorator.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/reactivemessaging/ReactiveMessagingTracingDecorator.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/restclient/OpenTelemetryClientFilter.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/restclient/OpenTelemetryClientFilter.java index 04a1ee35efc33..c470f5a5d9cf0 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/restclient/OpenTelemetryClientFilter.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/restclient/OpenTelemetryClientFilter.java @@ -7,13 +7,13 @@ import java.net.URI; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.ext.Provider; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.ext.Provider; import io.opentelemetry.api.GlobalOpenTelemetry; import io.opentelemetry.api.OpenTelemetry; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryClassicServerFilter.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryClassicServerFilter.java index 1f09c75ff9533..1b57e66e17345 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryClassicServerFilter.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryClassicServerFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import io.opentelemetry.api.trace.Span; import io.opentelemetry.instrumentation.api.instrumenter.LocalRootSpan; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryReactiveServerFilter.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryReactiveServerFilter.java index e60747a321edc..e21cd90ded953 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryReactiveServerFilter.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/resteasy/OpenTelemetryReactiveServerFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/vertx/HttpInstrumenterVertxTracer.java b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/vertx/HttpInstrumenterVertxTracer.java index f06ded3420f07..0b4c65c1cba13 100644 --- a/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/vertx/HttpInstrumenterVertxTracer.java +++ b/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/intrumentation/vertx/HttpInstrumenterVertxTracer.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.function.BiConsumer; -import javax.annotation.Nullable; +import jakarta.annotation.Nullable; import io.netty.handler.codec.http.HttpResponseStatus; import io.opentelemetry.api.OpenTelemetry; diff --git a/extensions/panache/hibernate-orm-panache-common/deployment/src/main/java/io/quarkus/hibernate/orm/panache/common/deployment/PanacheJpaCommonResourceProcessor.java b/extensions/panache/hibernate-orm-panache-common/deployment/src/main/java/io/quarkus/hibernate/orm/panache/common/deployment/PanacheJpaCommonResourceProcessor.java index e32cefc3f6ea9..9e554993ab961 100644 --- a/extensions/panache/hibernate-orm-panache-common/deployment/src/main/java/io/quarkus/hibernate/orm/panache/common/deployment/PanacheJpaCommonResourceProcessor.java +++ b/extensions/panache/hibernate-orm-panache-common/deployment/src/main/java/io/quarkus/hibernate/orm/panache/common/deployment/PanacheJpaCommonResourceProcessor.java @@ -6,8 +6,8 @@ import java.util.Map; import java.util.Set; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/AbstractJpaOperations.java b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/AbstractJpaOperations.java index 0cfcf4be76508..f2abf844e335b 100644 --- a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/AbstractJpaOperations.java +++ b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/AbstractJpaOperations.java @@ -9,11 +9,11 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.EntityManager; -import javax.persistence.LockModeType; -import javax.persistence.Query; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; +import jakarta.persistence.EntityManager; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Query; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; import org.hibernate.Session; diff --git a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java index 1f4dbad0e363f..aa5ea471987ee 100644 --- a/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java +++ b/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/CommonPanacheQueryImpl.java @@ -10,10 +10,10 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.EntityManager; -import javax.persistence.LockModeType; -import javax.persistence.NonUniqueResultException; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NonUniqueResultException; +import jakarta.persistence.Query; import org.hibernate.Filter; import org.hibernate.Session; diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/orm/panache/kotlin/deployment/KotlinPanacheResourceProcessor.java b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/orm/panache/kotlin/deployment/KotlinPanacheResourceProcessor.java index d807d90372880..63bc12500bb7c 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/orm/panache/kotlin/deployment/KotlinPanacheResourceProcessor.java +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/orm/panache/kotlin/deployment/KotlinPanacheResourceProcessor.java @@ -15,8 +15,8 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.persistence.EntityManager; -import javax.persistence.Id; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/DuplicateIdEntity.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/DuplicateIdEntity.kt index c6842dae37244..19672d65310b9 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/DuplicateIdEntity.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/DuplicateIdEntity.kt @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.panache.kotlin.deployment.test import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Id +import jakarta.persistence.Id class DuplicateIdEntity : PanacheEntity() { @Id diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/MyEntity.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/MyEntity.kt index 14a5e306ae467..a3f88d987aaad 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/MyEntity.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/MyEntity.kt @@ -2,7 +2,7 @@ package io.quarkus.hibernate.orm.panache.kotlin.deployment.test import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class MyEntity : PanacheEntity() { diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/config/ConfigEnabledFalseTest.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/config/ConfigEnabledFalseTest.kt index b292b767d9b9a..38bd7a486eaea 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/config/ConfigEnabledFalseTest.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/config/ConfigEnabledFalseTest.kt @@ -7,7 +7,7 @@ import org.jboss.shrinkwrap.api.spec.JavaArchive import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.persistence.EntityManagerFactory +import jakarta.persistence.EntityManagerFactory class ConfigEnabledFalseTest { companion object { diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/PanacheTestResource.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/PanacheTestResource.kt index aa751ceb6b010..69109a758ba44 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/PanacheTestResource.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/PanacheTestResource.kt @@ -2,12 +2,12 @@ package io.quarkus.hibernate.orm.panache.kotlin.deployment.test.multiple_pu import io.quarkus.hibernate.orm.panache.kotlin.deployment.test.multiple_pu.first.FirstEntity import io.quarkus.hibernate.orm.panache.kotlin.deployment.test.multiple_pu.second.SecondEntity -import javax.transaction.Transactional -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType +import jakarta.transaction.Transactional +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType @Path("/persistence-unit") class PanacheTestResource { diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/first/FirstEntity.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/first/FirstEntity.kt index 729071a903a50..11b9bf1ee4921 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/first/FirstEntity.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/first/FirstEntity.kt @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.panache.kotlin.deployment.test.multiple_pu.first import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class FirstEntity : PanacheEntity() { diff --git a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/second/SecondEntity.kt b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/second/SecondEntity.kt index 85e2ec600b2bd..615a70dbc1a38 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/second/SecondEntity.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/orm/panache/kotlin/deployment/test/multiple_pu/second/SecondEntity.kt @@ -2,7 +2,7 @@ package io.quarkus.hibernate.orm.panache.kotlin.deployment.test.multiple_pu.seco import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class SecondEntity : PanacheEntity() { diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml b/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml index 3b30214d930ac..a9fe8b3c162ba 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml @@ -76,7 +76,7 @@ org.hibernate - hibernate-jpamodelgen + hibernate-jpamodelgen-jakarta provided diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheCompanion.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheCompanion.kt index e5a497036fe4b..2c088c7f24411 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheCompanion.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheCompanion.kt @@ -5,9 +5,9 @@ import io.quarkus.hibernate.orm.panache.kotlin.runtime.KotlinJpaOperations.Compa import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.quarkus.panache.common.impl.GenerateBridge +import jakarta.persistence.EntityManager +import jakarta.persistence.LockModeType import java.util.stream.Stream -import javax.persistence.EntityManager -import javax.persistence.LockModeType /** * Defines methods to be used via the companion objects of entities. diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntity.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntity.kt index 2912a34b6d58a..630f5bde6360a 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntity.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntity.kt @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.panache.kotlin -import javax.persistence.GeneratedValue -import javax.persistence.Id -import javax.persistence.MappedSuperclass +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id +import jakarta.persistence.MappedSuperclass /** * Represents an entity with a generated ID field [id] of type [Long]. If your diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntityBase.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntityBase.kt index 923c89783634c..9f08347d9c00b 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntityBase.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheEntityBase.kt @@ -2,7 +2,7 @@ package io.quarkus.hibernate.orm.panache.kotlin import com.fasterxml.jackson.annotation.JsonIgnore import io.quarkus.hibernate.orm.panache.kotlin.runtime.KotlinJpaOperations.Companion.INSTANCE -import javax.json.bind.annotation.JsonbTransient +import jakarta.json.bind.annotation.JsonbTransient /** * Represents an entity. If your Hibernate entities extend this class they gain auto-generated accessors diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheQuery.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheQuery.kt index 0939f4339048b..7df1e8be32c74 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheQuery.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheQuery.kt @@ -2,12 +2,12 @@ package io.quarkus.hibernate.orm.panache.kotlin import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters +import jakarta.persistence.LockModeType +import jakarta.persistence.NonUniqueResultException import org.hibernate.Session import org.hibernate.annotations.Filter import org.hibernate.annotations.FilterDef import java.util.stream.Stream -import javax.persistence.LockModeType -import javax.persistence.NonUniqueResultException /** * Interface representing an entity query, which abstracts the use of paging, getting the number of results, and diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheRepositoryBase.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheRepositoryBase.kt index 04ec4d74bc33c..6a392252f418e 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheRepositoryBase.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/PanacheRepositoryBase.kt @@ -5,9 +5,9 @@ import io.quarkus.hibernate.orm.panache.kotlin.runtime.KotlinJpaOperations.Compa import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.quarkus.panache.common.impl.GenerateBridge +import jakarta.persistence.EntityManager +import jakarta.persistence.LockModeType import java.util.stream.Stream -import javax.persistence.EntityManager -import javax.persistence.LockModeType /** * Represents a Repository for a specific type of entity `Entity`, with an ID type of `Id`. Implementing this interface diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/KotlinJpaOperations.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/KotlinJpaOperations.kt index 5b88cd4eeb753..b42f67309336e 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/KotlinJpaOperations.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/KotlinJpaOperations.kt @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.panache.kotlin.runtime import io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations -import javax.persistence.EntityManager +import jakarta.persistence.EntityManager class KotlinJpaOperations : AbstractJpaOperations>() { override fun createPanacheQuery(em: EntityManager, query: String, orderBy: String?, paramsArrayOrMap: Any?) = diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/PanacheQueryImpl.kt b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/PanacheQueryImpl.kt index 778467b361e8e..98753cd746cdc 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/PanacheQueryImpl.kt +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/orm/panache/kotlin/runtime/PanacheQueryImpl.kt @@ -4,9 +4,9 @@ import io.quarkus.hibernate.orm.panache.common.runtime.CommonPanacheQueryImpl import io.quarkus.hibernate.orm.panache.kotlin.PanacheQuery import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters +import jakarta.persistence.EntityManager +import jakarta.persistence.LockModeType import java.util.stream.Stream -import javax.persistence.EntityManager -import javax.persistence.LockModeType class PanacheQueryImpl : PanacheQuery { private var delegate: CommonPanacheQueryImpl diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheHibernateResourceProcessor.java b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheHibernateResourceProcessor.java index 0f2409bb954ec..08381fdc3eaa5 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheHibernateResourceProcessor.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/main/java/io/quarkus/hibernate/orm/panache/deployment/PanacheHibernateResourceProcessor.java @@ -13,8 +13,8 @@ import java.util.TreeMap; import java.util.stream.Collectors; -import javax.persistence.EntityManager; -import javax.persistence.Id; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdEntity.java index 51323dd11dbb9..65267554e0e93 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.persistence.Id; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdWithParentEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdWithParentEntity.java index d1bc52ffca989..e16d41e8da322 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdWithParentEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/DuplicateIdWithParentEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.persistence.Id; +import jakarta.persistence.Id; public class DuplicateIdWithParentEntity extends DuplicateIdParentEntity { @Id diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/InheritanceResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/InheritanceResource.java index 062ae4d671ecb..adb591922a2fe 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/InheritanceResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/InheritanceResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBEntity.java index d1df28297e696..3e1a045342edd 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBEntity.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.persistence.Entity; -import javax.persistence.Transient; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Entity; +import jakarta.persistence.Transient; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBTestResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBTestResource.java index 6fb84c7c1bb0f..f1fc8c0fffc76 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBTestResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/JAXBTestResource.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -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; import org.junit.jupiter.api.Assertions; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyEntity.java index ae831eb3c6f63..bb44175185b14 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherEntity.java index 10b054bd289fd..f4e2733196219 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherTestResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherTestResource.java index 8c71dd76d1199..4564036c42316 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherTestResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyOtherTestResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyTestResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyTestResource.java index a5ee66fa499bb..6893b6eed15f8 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyTestResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/MyTestResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.panache.deployment.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/PanacheJAXBTest.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/PanacheJAXBTest.java index 51cca2fd6176f..9015d163d57d8 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/PanacheJAXBTest.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/PanacheJAXBTest.java @@ -9,12 +9,12 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlTransient; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntity.java index 480ed807ae461..5041af0e01ef9 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntity.java @@ -2,7 +2,7 @@ import io.quarkus.hibernate.orm.panache.PanacheEntity; -//import javax.persistence.Entity; +//import jakarta.persistence.Entity; //@Entity public class UnAnnotatedEntity extends PanacheEntity { diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntityResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntityResource.java index 6e41d211ad8b1..d4da54c868941 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntityResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/UnAnnotatedEntityResource.java @@ -2,10 +2,10 @@ import java.util.List; -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("unannotatedEntity") public class UnAnnotatedEntityResource { diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/config/ConfigEnabledFalseTest.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/config/ConfigEnabledFalseTest.java index 300740555e537..1d01762b21a38 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/config/ConfigEnabledFalseTest.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/config/ConfigEnabledFalseTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/ChildEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/ChildEntity.java index a1f6797d3c488..dce07fb9c8c91 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/ChildEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/ChildEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test.inheritance; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class ChildEntity extends MappedParent { diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/MappedParent.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/MappedParent.java index 156c5206bb1f6..3283b055435a3 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/MappedParent.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/inheritance/MappedParent.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test.inheritance; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/MultiplePersistenceUnitConfigTest.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/MultiplePersistenceUnitConfigTest.java index b2d86aa1b975e..8cacbb4cd8484 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/MultiplePersistenceUnitConfigTest.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/MultiplePersistenceUnitConfigTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/PanacheTestResource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/PanacheTestResource.java index d9af0e9c9ab2a..af5ffb67419e2 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/PanacheTestResource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/PanacheTestResource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.first.FirstEntity; import io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.second.SecondEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/first/FirstEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/first/FirstEntity.java index 355ef65eb46f3..79b6d5be24771 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/first/FirstEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/first/FirstEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.first; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Entity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Entity.java index 11cd178f54220..d3c6a0c37cff7 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Entity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Entity.java @@ -2,11 +2,11 @@ import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class Issue11842Entity implements Serializable { diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Repository.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Repository.java index 1d5718c9c85c4..a5536ebc76f81 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Repository.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Repository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Resource.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Resource.java index bad3765e95066..79ed336fe3bfe 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Resource.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/repository/Issue11842Resource.java @@ -1,11 +1,11 @@ package io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.repository; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/second/SecondEntity.java b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/second/SecondEntity.java index 41d2ade66a0fa..29c88d0f9afc7 100644 --- a/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/second/SecondEntity.java +++ b/extensions/panache/hibernate-orm-panache/deployment/src/test/java/io/quarkus/hibernate/orm/panache/deployment/test/multiple_pu/second/SecondEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.panache.deployment.test.multiple_pu.second; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-orm-panache/runtime/pom.xml b/extensions/panache/hibernate-orm-panache/runtime/pom.xml index 79101f6144cc6..4a708c4966046 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache/runtime/pom.xml @@ -51,7 +51,7 @@ org.hibernate - hibernate-jpamodelgen + hibernate-jpamodelgen-jakarta provided @@ -68,14 +68,14 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api provided - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation provided diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/Panache.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/Panache.java index 395da1cfadf53..5d93af879699d 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/Panache.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/Panache.java @@ -2,8 +2,8 @@ import java.util.Map; -import javax.persistence.EntityManager; -import javax.transaction.TransactionManager; +import jakarta.persistence.EntityManager; +import jakarta.transaction.TransactionManager; import io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations; import io.quarkus.hibernate.orm.panache.runtime.JpaOperations; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntity.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntity.java index 78e42e18d1059..f7e986154c827 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntity.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.panache; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; -import javax.persistence.Transient; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.Transient; /** *

    diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java index db135950c91cb..e3d297812f9a2 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheEntityBase.java @@ -7,10 +7,10 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.EntityManager; -import javax.persistence.LockModeType; -import javax.persistence.Transient; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.EntityManager; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Transient; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java index a9979a8f3e05a..d7a07e580dd96 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheQuery.java @@ -5,9 +5,9 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.LockModeType; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; import org.hibernate.Session; import org.hibernate.annotations.FilterDef; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java index 2f4ecf301b23c..7a69d6604d325 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java @@ -8,8 +8,8 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.EntityManager; -import javax.persistence.LockModeType; +import jakarta.persistence.EntityManager; +import jakarta.persistence.LockModeType; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/AdditionalJpaOperations.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/AdditionalJpaOperations.java index f09ba6149feda..f136bf2ec6cf4 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/AdditionalJpaOperations.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/AdditionalJpaOperations.java @@ -8,11 +8,11 @@ import java.util.Map; import java.util.Set; -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.Metamodel; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.Metamodel; import org.hibernate.engine.spi.CascadeStyle; import org.hibernate.engine.spi.CascadingActions; @@ -70,8 +70,8 @@ public static long deleteAllWithCascade(AbstractJpaOperations jpaOperations, /** * Detects if cascading delete is needed. The delete-cascading is needed when associations with cascade delete enabled - * {@link javax.persistence.OneToMany#cascade()} and also on entities containing a collection of elements - * {@link javax.persistence.ElementCollection} + * {@link jakarta.persistence.OneToMany#cascade()} and also on entities containing a collection of elements + * {@link jakarta.persistence.ElementCollection} * * @param entityClass * @return true if cascading delete is needed. False otherwise diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/CustomCountPanacheQuery.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/CustomCountPanacheQuery.java index 07a68ed4a617e..479a2f5d50501 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/CustomCountPanacheQuery.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/CustomCountPanacheQuery.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.panache.runtime; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.hibernate.query.internal.QueryImpl; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/JpaOperations.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/JpaOperations.java index 783385a053e96..380f66dd0f1f1 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/JpaOperations.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/JpaOperations.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.stream.Stream; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import io.quarkus.hibernate.orm.panache.common.runtime.AbstractJpaOperations; diff --git a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/PanacheQueryImpl.java b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/PanacheQueryImpl.java index f2d7d8b129d6b..00bd2bf6f3ba1 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/PanacheQueryImpl.java +++ b/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/PanacheQueryImpl.java @@ -6,8 +6,8 @@ import java.util.Optional; import java.util.stream.Stream; -import javax.persistence.EntityManager; -import javax.persistence.LockModeType; +import jakarta.persistence.EntityManager; +import jakarta.persistence.LockModeType; import io.quarkus.hibernate.orm.panache.PanacheQuery; import io.quarkus.hibernate.orm.panache.common.runtime.CommonPanacheQueryImpl; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityClassHelper.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityClassHelper.java index cf070760c5e3f..9e6920c5ef3b8 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityClassHelper.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityClassHelper.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment; -import javax.persistence.Id; +import jakarta.persistence.Id; import org.hibernate.bytecode.enhance.spi.EnhancerConstants; import org.jboss.jandex.ClassInfo; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityDataAccessImplementor.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityDataAccessImplementor.java index ef1e2375ba6e8..e4bf84b53aaf7 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityDataAccessImplementor.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/EntityDataAccessImplementor.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import io.quarkus.gizmo.BytecodeCreator; import io.quarkus.gizmo.ResultHandle; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/HibernateOrmPanacheRestProcessor.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/HibernateOrmPanacheRestProcessor.java index 188e436f4e775..135872bc97aec 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/HibernateOrmPanacheRestProcessor.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/HibernateOrmPanacheRestProcessor.java @@ -7,7 +7,7 @@ import java.lang.reflect.Modifier; import java.util.List; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/RepositoryDataAccessImplementor.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/RepositoryDataAccessImplementor.java index d8ff8b7bf81f3..66b8ef916ecd7 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/RepositoryDataAccessImplementor.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/RepositoryDataAccessImplementor.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.Map; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/ResourceImplementor.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/ResourceImplementor.java index c7dbaaa8835ea..055ce63d6b4e7 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/ResourceImplementor.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/ResourceImplementor.java @@ -5,10 +5,10 @@ import java.util.List; import java.util.Map; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.transaction.Transactional; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.transaction.Transactional; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.FieldInfo; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java index ebc00cdf55fe5..e50a90dd79848 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/AbstractGetMethodTest.java @@ -11,7 +11,7 @@ import java.util.LinkedList; import java.util.List; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; import org.junit.jupiter.api.Test; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractEntity.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractEntity.java index f30a5456bf391..4112ee26eef7e 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractEntity.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractItem.java index e70756b8e8900..6d78bc99ac843 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/AbstractItem.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.entity; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java index 138b10db9b5f3..24206ade0306e 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Collection.java @@ -3,11 +3,11 @@ import java.util.LinkedList; import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/CollectionsResource.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/CollectionsResource.java index b269f7deaf64a..714b6c1c88c59 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/CollectionsResource.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/CollectionsResource.java @@ -3,9 +3,9 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.hibernate.orm.rest.data.panache.PanacheEntityResource; import io.quarkus.rest.data.panache.ResourceProperties; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/EmptyListItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/EmptyListItem.java index 705ccf26e555a..292bf4c615096 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/EmptyListItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/EmptyListItem.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.entity; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/InjectionResource.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/InjectionResource.java index 19f2e6e1e90fb..1bf79d171d6a6 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/InjectionResource.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/InjectionResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Sort; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Item.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Item.java index 1b69b84afb9d2..41ada2bfde65b 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Item.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/Item.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.entity; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "Item.containsInName", query = "from Item where name like CONCAT('%', CONCAT(:name, '%'))") diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java index 23c2eddaa2eb8..43f3cb48cd06b 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java @@ -7,7 +7,7 @@ import static io.quarkus.hibernate.orm.rest.data.panache.deployment.entity.PanacheEntityResourceMethodListenerTest.ON_BEFORE_SAVE_COUNTER; import static io.quarkus.hibernate.orm.rest.data.panache.deployment.entity.PanacheEntityResourceMethodListenerTest.ON_BEFORE_UPDATE_COUNTER; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.rest.data.panache.RestDataResourceMethodListener; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractEntity.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractEntity.java index 12164b9b77b98..78b3eb84bbdec 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractEntity.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractEntity { diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractItem.java index 9cc7828fa24d4..8d1df1cde450c 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/AbstractItem.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Collection.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Collection.java index 0722edf007579..6a1ed46ca7c5e 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Collection.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Collection.java @@ -3,10 +3,10 @@ import java.util.LinkedList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Collection { diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsRepository.java index 2423c9b6ce78c..a969cd016eff3 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsResource.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsResource.java index 323e85f727b4b..daf02a94541d7 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsResource.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/CollectionsResource.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; import io.quarkus.hibernate.orm.rest.data.panache.PanacheRepositoryResource; import io.quarkus.rest.data.panache.MethodProperties; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItem.java index b233ea1166bec..549334ff172e0 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItem.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class EmptyListItem extends AbstractItem { diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItemsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItemsRepository.java index 134faddb349e7..8e55951ef8b63 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItemsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/EmptyListItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Item.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Item.java index e448245ee8509..de2721737d4b3 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Item.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/Item.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Item extends AbstractItem { diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/ItemsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/ItemsRepository.java index 6367d59d99d30..ac865d0fb9886 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/ItemsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/openapi/ItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.openapi; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractEntity.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractEntity.java index 8a74a60acf166..c6cdce79ef66b 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractEntity.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractItem.java index 94848097e02df..1b8500cc8d6f2 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/AbstractItem.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java index 57399f50dca42..3875dcf5aa605 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Collection.java @@ -3,11 +3,11 @@ import java.util.LinkedList; import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/CollectionsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/CollectionsRepository.java index 5978ae8aa7900..fe8a55f3644d7 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/CollectionsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/CollectionsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItem.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItem.java index 3ceb8369263f6..5452a8b839e7c 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItem.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItem.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItemsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItemsRepository.java index 5434365e0574f..f821307daaa0c 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItemsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/EmptyListItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Item.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Item.java index da0e9cb0d59eb..e9dde0f05908d 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Item.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/Item.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "Item.containsInName", query = "from Item where name like CONCAT('%', CONCAT(:name, '%'))") diff --git a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/ItemsRepository.java b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/ItemsRepository.java index 3770b6ea9ea2c..be69f77a87570 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/ItemsRepository.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/orm/rest/data/panache/deployment/repository/ItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.orm.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java b/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java index d15a8d358ecfc..2483faa98282c 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.orm.rest.data.panache.runtime; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.logging.Logger; @@ -21,7 +21,7 @@ private Response throwableToResponse(Throwable throwable, String message) { return Response.status(Response.Status.CONFLICT.getStatusCode(), message).build(); } - if (throwable instanceof javax.validation.ConstraintViolationException) { + if (throwable instanceof jakarta.validation.ConstraintViolationException) { return Response.status(Response.Status.BAD_REQUEST.getStatusCode(), message).build(); } diff --git a/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/jta/TransactionalUpdateExecutor.java b/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/jta/TransactionalUpdateExecutor.java index b96e98ce4fc18..a36c97325e7f5 100644 --- a/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/jta/TransactionalUpdateExecutor.java +++ b/extensions/panache/hibernate-orm-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/orm/rest/data/panache/runtime/jta/TransactionalUpdateExecutor.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.inject.Singleton; -import javax.transaction.Transactional; +import jakarta.inject.Singleton; +import jakarta.transaction.Transactional; import io.quarkus.rest.data.panache.runtime.UpdateExecutor; diff --git a/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java b/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java index 338213dcf98a6..cd9f5a983c1b3 100644 --- a/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java +++ b/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java @@ -6,10 +6,10 @@ import java.util.Map; import java.util.Set; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java index feedef2dc2b1d..5fdf02d6d39de 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java @@ -13,8 +13,8 @@ import java.util.concurrent.TimeoutException; import java.util.stream.Stream; -import javax.enterprise.inject.spi.Bean; -import javax.persistence.LockModeType; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.persistence.LockModeType; import org.hibernate.internal.util.LockModeConverter; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/CommonPanacheQueryImpl.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/CommonPanacheQueryImpl.java index 96896088c52b0..a0b92d30bacb1 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/CommonPanacheQueryImpl.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/CommonPanacheQueryImpl.java @@ -9,7 +9,7 @@ import java.util.concurrent.CompletionException; import java.util.function.Supplier; -import javax.persistence.LockModeType; +import jakarta.persistence.LockModeType; import org.hibernate.Filter; import org.hibernate.internal.util.LockModeConverter; diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java index 42b44f0901912..83afdbcd48230 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java index 5272fc6cfd01d..74e11668f926f 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.reactive.panache.common.runtime; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; @Interceptor @ReactiveTransactional diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java index 47b92817d0911..3e51fcc1aad5f 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java @@ -6,8 +6,8 @@ import java.time.Duration; import java.util.function.Function; -import javax.interceptor.AroundInvoke; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.InvocationContext; import org.hibernate.reactive.mutiny.Mutiny.Transaction; diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/kotlin/deployment/HibernateReactivePanacheKotlinProcessor.java b/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/kotlin/deployment/HibernateReactivePanacheKotlinProcessor.java index 4a5ae64951609..b799791560c67 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/kotlin/deployment/HibernateReactivePanacheKotlinProcessor.java +++ b/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/kotlin/deployment/HibernateReactivePanacheKotlinProcessor.java @@ -8,7 +8,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.persistence.Id; +import jakarta.persistence.Id; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.jandex.AnnotationInstance; diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/deployment/test/MyEntity.kt b/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/deployment/test/MyEntity.kt index 07f3c1ee26b73..e22eb58a2b786 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/deployment/test/MyEntity.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/deployment/src/test/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/deployment/test/MyEntity.kt @@ -2,7 +2,7 @@ package io.quarkus.hibernate.reactive.panache.kotlin.deployment.test import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class MyEntity : PanacheEntity() { diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml index 0e753a91852c4..c1b27a5186537 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml @@ -71,7 +71,7 @@ org.hibernate - hibernate-jpamodelgen + hibernate-jpamodelgen-jakarta provided @@ -97,14 +97,14 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api provided - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation provided diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt index b1dc5be70416c..6695a175fd064 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt @@ -8,9 +8,9 @@ import io.quarkus.panache.common.impl.GenerateBridge import io.smallrye.common.annotation.CheckReturnValue import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni +import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny import java.util.stream.Stream -import javax.persistence.LockModeType /** * Defines methods to be used via the companion objects of entities. diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntity.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntity.kt index 8ae0437c6a8c1..ba88bc0bc2511 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntity.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntity.kt @@ -1,8 +1,8 @@ package io.quarkus.hibernate.reactive.panache.kotlin -import javax.persistence.GeneratedValue -import javax.persistence.Id -import javax.persistence.MappedSuperclass +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id +import jakarta.persistence.MappedSuperclass @MappedSuperclass open class PanacheEntity : PanacheEntityBase { diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntityBase.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntityBase.kt index 589897d271815..1801dcb4c3320 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntityBase.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheEntityBase.kt @@ -4,7 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore import io.quarkus.hibernate.reactive.panache.kotlin.runtime.KotlinJpaOperations.Companion.INSTANCE import io.smallrye.common.annotation.CheckReturnValue import io.smallrye.mutiny.Uni -import javax.json.bind.annotation.JsonbTransient +import jakarta.json.bind.annotation.JsonbTransient interface PanacheEntityBase { /** diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt index aa45ea28955a9..9db3027c9394d 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt @@ -5,11 +5,11 @@ import io.quarkus.panache.common.Parameters import io.smallrye.common.annotation.CheckReturnValue import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni +import jakarta.persistence.LockModeType +import jakarta.persistence.NonUniqueResultException import org.hibernate.Session import org.hibernate.annotations.Filter import org.hibernate.annotations.FilterDef -import javax.persistence.LockModeType -import javax.persistence.NonUniqueResultException interface PanacheQuery { diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt index d524399540633..3937b2b79a99b 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt @@ -8,9 +8,9 @@ import io.quarkus.panache.common.impl.GenerateBridge import io.smallrye.common.annotation.CheckReturnValue import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni +import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny import java.util.stream.Stream -import javax.persistence.LockModeType /** * Represents a Repository for a specific type of entity `Entity`, with an ID type diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt index b6786528c226e..1d3ea5269d02c 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt @@ -6,8 +6,8 @@ import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni +import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny -import javax.persistence.LockModeType class PanacheQueryImpl : PanacheQuery { private var delegate: CommonPanacheQueryImpl diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java b/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java index 7769dcb138e6a..635fde1265f35 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java @@ -6,8 +6,8 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.persistence.Id; -import javax.persistence.Transient; +import jakarta.persistence.Id; +import jakarta.persistence.Transient; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.jandex.AnnotationInstance; diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdEntity.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdEntity.java index 95f29dc187c17..56b704531bb18 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdEntity.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.persistence.Id; +import jakarta.persistence.Id; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdWithParentEntity.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdWithParentEntity.java index 87922c53fea5b..5da2b285fb88e 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdWithParentEntity.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/DuplicateIdWithParentEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.persistence.Id; +import jakarta.persistence.Id; public class DuplicateIdWithParentEntity extends DuplicateIdParentEntity { @Id diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyEntity.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyEntity.java index 3f6705e99befe..b2ce1984a0ed9 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyEntity.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherEntity.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherEntity.java index 08e3b8712d072..4d7bfafb816c2 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherEntity.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherEntity.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherTestResource.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherTestResource.java index 0e5201f691ed3..da2a06a821a05 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherTestResource.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyOtherTestResource.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.smallrye.mutiny.Uni; diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyTestResource.java b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyTestResource.java index bcb6dce00b120..fecc2b9b54547 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyTestResource.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/panache/test/MyTestResource.java @@ -1,12 +1,12 @@ package io.quarkus.hibernate.reactive.panache.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.smallrye.mutiny.Uni; diff --git a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml index f3021f1329f25..ca85b7e664c57 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml @@ -55,7 +55,7 @@ org.hibernate - hibernate-jpamodelgen + hibernate-jpamodelgen-jakarta provided @@ -76,14 +76,14 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api provided - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation provided diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntity.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntity.java index 2f19d06fe8ffe..ebe56735c353a 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntity.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntity.java @@ -1,9 +1,9 @@ package io.quarkus.hibernate.reactive.panache; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; -import javax.persistence.Transient; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.Transient; /** *

    diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java index d083dd4d4d1c2..54ae5299fd740 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java @@ -6,9 +6,9 @@ import java.util.Map; import java.util.stream.Stream; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.LockModeType; -import javax.persistence.Transient; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Transient; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java index bd5d91bc89525..515e26fcd3675 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java @@ -4,9 +4,9 @@ import java.util.Map; import java.util.stream.Stream; -import javax.persistence.LockModeType; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; import org.hibernate.Session; import org.hibernate.annotations.FilterDef; diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java index e2a36aa1e1740..46a696fcbcb31 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.stream.Stream; -import javax.persistence.LockModeType; +import jakarta.persistence.LockModeType; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java index 17a4d27d5a40e..8f69bbb1a2f7f 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Map; -import javax.persistence.LockModeType; +import jakarta.persistence.LockModeType; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/EntityClassHelper.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/EntityClassHelper.java index 95ad345c2d2f6..2f48f53b0bf8e 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/EntityClassHelper.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/EntityClassHelper.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment; -import javax.persistence.Id; +import jakarta.persistence.Id; import org.hibernate.bytecode.enhance.spi.EnhancerConstants; import org.jboss.jandex.ClassInfo; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java index 157a570140815..d55a8a35d0495 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Map; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.FieldInfo; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/AbstractGetMethodTest.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/AbstractGetMethodTest.java index ca6ebebabacd4..77671de648648 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/AbstractGetMethodTest.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/AbstractGetMethodTest.java @@ -11,7 +11,7 @@ import java.util.LinkedList; import java.util.List; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; import org.junit.jupiter.api.Test; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractEntity.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractEntity.java index 7d2d4413a04ca..170759a1ded24 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractEntity.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractItem.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractItem.java index c7554c4244db4..36aa8928bd199 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractItem.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/AbstractItem.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractItem extends AbstractEntity { diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Collection.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Collection.java index 12b55a425502d..9cb859f2d92eb 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Collection.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Collection.java @@ -3,10 +3,10 @@ import java.util.LinkedList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/EmptyListItem.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/EmptyListItem.java index ebf55c43b771c..61c40c144dd02 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/EmptyListItem.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/EmptyListItem.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class EmptyListItem extends AbstractItem { diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/InjectionResource.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/InjectionResource.java index 19596484519c3..ef961bbd2922f 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/InjectionResource.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/InjectionResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Sort; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Item.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Item.java index 1dafc18413e99..3646f8e0342bb 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Item.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/Item.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "Item.containsInName", query = "from Item where name like CONCAT('%', CONCAT(:name, '%'))") diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java index 52e71b264e8aa..7c2668921af43 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/entity/ItemRestDataResourceMethodListener.java @@ -7,7 +7,7 @@ import static io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity.PanacheEntityResourceMethodListenerTest.ON_BEFORE_SAVE_COUNTER; import static io.quarkus.hibernate.reactive.rest.data.panache.deployment.entity.PanacheEntityResourceMethodListenerTest.ON_BEFORE_UPDATE_COUNTER; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.rest.data.panache.RestDataResourceMethodListener; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractEntity.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractEntity.java index 3d6e824b5fb52..f08aeaf0e598e 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractEntity.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractEntity.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractItem.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractItem.java index 89512df4abd4e..db4512f19f3ee 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractItem.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/AbstractItem.java @@ -1,8 +1,8 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractItem extends AbstractEntity { diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Collection.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Collection.java index c5c8f0c674af8..966c6bedf2419 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Collection.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Collection.java @@ -3,10 +3,10 @@ import java.util.LinkedList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsRepository.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsRepository.java index c76d66d00cc77..c17eb5d64db25 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsRepository.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/CollectionsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepositoryBase; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItem.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItem.java index ebb225f70e947..1e1622f8692ed 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItem.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItem.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class EmptyListItem extends AbstractItem { diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItemsRepository.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItemsRepository.java index a3ccfcf60a241..36c3900f3e78a 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItemsRepository.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/EmptyListItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Item.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Item.java index c380ccc0406e1..9a236d260ee92 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Item.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/Item.java @@ -1,7 +1,7 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "Item.containsInName", query = "from Item where name like CONCAT('%', CONCAT(:name, '%'))") diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/ItemsRepository.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/ItemsRepository.java index 7f87a5a8aaf85..29c2de9375e34 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/ItemsRepository.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/test/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/repository/ItemsRepository.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.deployment.repository; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java b/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java index bfc2dbe61b2db..24b983da04c29 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java @@ -1,6 +1,6 @@ package io.quarkus.hibernate.reactive.rest.data.panache.runtime; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.hibernate.HibernateException; import org.jboss.logging.Logger; @@ -31,7 +31,7 @@ private RestResponse throwableToResponse(Throwable throwable, String m return RestResponse.status(Response.Status.CONFLICT.getStatusCode(), message); } - if (throwable instanceof javax.validation.ConstraintViolationException) { + if (throwable instanceof jakarta.validation.ConstraintViolationException) { return RestResponse.status(Response.Status.BAD_REQUEST.getStatusCode(), message); } diff --git a/extensions/panache/mongodb-panache-common/deployment/src/test/java/io/quarkus/mongodb/panache/common/MongoDatabaseResolverTest.java b/extensions/panache/mongodb-panache-common/deployment/src/test/java/io/quarkus/mongodb/panache/common/MongoDatabaseResolverTest.java index a4cda3df64902..ef3f4c2892a0a 100644 --- a/extensions/panache/mongodb-panache-common/deployment/src/test/java/io/quarkus/mongodb/panache/common/MongoDatabaseResolverTest.java +++ b/extensions/panache/mongodb-panache-common/deployment/src/test/java/io/quarkus/mongodb/panache/common/MongoDatabaseResolverTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.bson.Document; import org.bson.codecs.pojo.annotations.BsonId; diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdDeserializer.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdDeserializer.java index dac98b47fed20..da5f09cd034f8 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdDeserializer.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdDeserializer.java @@ -2,9 +2,9 @@ import java.lang.reflect.Type; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.stream.JsonParser; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.stream.JsonParser; import org.bson.types.ObjectId; diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdSerializer.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdSerializer.java index 4ef231fd18241..97b64a7520020 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdSerializer.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/jsonb/ObjectIdSerializer.java @@ -1,8 +1,8 @@ package io.quarkus.mongodb.panache.common.jsonb; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; import org.bson.types.ObjectId; diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/BeanUtils.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/BeanUtils.java index 5e6f4d7a71f17..7443ef8801767 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/BeanUtils.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/BeanUtils.java @@ -4,7 +4,7 @@ import java.util.Optional; import java.util.function.Predicate; -import javax.inject.Named; +import jakarta.inject.Named; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableBean; diff --git a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java index 6f6343c591484..c2285c29c4356 100644 --- a/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java +++ b/extensions/panache/mongodb-panache-common/runtime/src/main/java/io/quarkus/mongodb/panache/common/runtime/MongoOperations.java @@ -10,11 +10,11 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import org.bson.BsonDocument; import org.bson.BsonDocumentWriter; diff --git a/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityRepository.java b/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityRepository.java index af593bb63096f..d7928748978c3 100644 --- a/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityRepository.java +++ b/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.mongodb.panache.mongoentity; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepository; diff --git a/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityTest.java b/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityTest.java index f353e7b2db9f9..43daf2c95a519 100644 --- a/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityTest.java +++ b/extensions/panache/mongodb-panache/deployment/src/test/java/io/quarkus/mongodb/panache/mongoentity/MongoEntityTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/MongoPanacheRestProcessor.java b/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/MongoPanacheRestProcessor.java index 0215894cb7a87..37551efedcfea 100644 --- a/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/MongoPanacheRestProcessor.java +++ b/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/MongoPanacheRestProcessor.java @@ -6,7 +6,7 @@ import java.lang.reflect.Modifier; import java.util.List; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/ResourceImplementor.java b/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/ResourceImplementor.java index a02f85c26ce96..57782d23f21b2 100644 --- a/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/ResourceImplementor.java +++ b/extensions/panache/mongodb-rest-data-panache/deployment/src/main/java/io/quarkus/mongodb/rest/data/panache/deployment/ResourceImplementor.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.FieldInfo; import org.jboss.logging.Logger; diff --git a/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/NoopUpdateExecutor.java b/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/NoopUpdateExecutor.java index d3023410eff75..6c55ba446c636 100644 --- a/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/NoopUpdateExecutor.java +++ b/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/NoopUpdateExecutor.java @@ -2,7 +2,7 @@ import java.util.function.Supplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.rest.data.panache.runtime.UpdateExecutor; diff --git a/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java b/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java index 03c803882dd41..064fe92c76945 100644 --- a/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java +++ b/extensions/panache/mongodb-rest-data-panache/runtime/src/main/java/io/quarkus/mongodb/rest/data/panache/runtime/RestDataPanacheExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.mongodb.rest.data.panache.runtime; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.logging.Logger; diff --git a/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheConstants.java b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheConstants.java index 7df0d343d60ac..7b96b464baacb 100644 --- a/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheConstants.java +++ b/extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheConstants.java @@ -11,9 +11,9 @@ private PanacheConstants() { public static final DotName DOTNAME_GENERATE_BRIDGE = DotName.createSimple(GenerateBridge.class.getName()); - public static final String JAXB_ANNOTATION_PREFIX = "Ljavax/xml/bind/annotation/"; + public static final String JAXB_ANNOTATION_PREFIX = "Ljakarta/xml/bind/annotation/"; public static final String META_INF_PANACHE_ARCHIVE_MARKER = "META-INF/panache-archive.marker"; - private static final String JAXB_TRANSIENT_BINARY_NAME = "javax/xml/bind/annotation/XmlTransient"; + private static final String JAXB_TRANSIENT_BINARY_NAME = "jakarta/xml/bind/annotation/XmlTransient"; public static final String JAXB_TRANSIENT_SIGNATURE = "L" + JAXB_TRANSIENT_BINARY_NAME + ";"; private static final String JSON_PROPERTY_BINARY_NAME = "com/fasterxml/jackson/annotation/JsonProperty"; diff --git a/extensions/panache/panache-hibernate-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheHibernateCommonResourceProcessor.java b/extensions/panache/panache-hibernate-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheHibernateCommonResourceProcessor.java index ab4bf1ef76209..82cf77985d58c 100644 --- a/extensions/panache/panache-hibernate-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheHibernateCommonResourceProcessor.java +++ b/extensions/panache/panache-hibernate-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheHibernateCommonResourceProcessor.java @@ -8,7 +8,7 @@ import java.util.Optional; import java.util.Set; -import javax.persistence.Transient; +import jakarta.persistence.Transient; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/JaxRsResourceImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/JaxRsResourceImplementor.java index 26662b646e1c2..2a94eb832dabb 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/JaxRsResourceImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/JaxRsResourceImplementor.java @@ -4,10 +4,10 @@ import java.util.Arrays; import java.util.List; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; -import javax.ws.rs.Path; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; import org.apache.commons.lang3.StringUtils; import org.jboss.jandex.AnnotationInstance; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/ResourceMethodListenerImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/ResourceMethodListenerImplementor.java index 18284c35f3ade..957c2ac4f9bad 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/ResourceMethodListenerImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/ResourceMethodListenerImplementor.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.function.BiConsumer; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.MethodInfo; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/AddMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/AddMethodImplementor.java index fc24f80f9b3f6..f3f719f766948 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/AddMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/AddMethodImplementor.java @@ -5,9 +5,9 @@ import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.responseType; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.uniType; -import javax.validation.Valid; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.validation.Valid; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.deployment.Capabilities; import io.quarkus.gizmo.ClassCreator; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/CountMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/CountMethodImplementor.java index a7406f0118fb7..334875ce9f402 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/CountMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/CountMethodImplementor.java @@ -4,7 +4,7 @@ import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.responseType; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.uniType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import io.quarkus.deployment.Capabilities; import io.quarkus.gizmo.ClassCreator; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/DeleteMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/DeleteMethodImplementor.java index 5585cdc0876f5..6cb73e874a5b9 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/DeleteMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/DeleteMethodImplementor.java @@ -5,7 +5,7 @@ import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.responseType; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.uniType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import io.quarkus.deployment.Capabilities; import io.quarkus.gizmo.BranchResult; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/GetMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/GetMethodImplementor.java index 94c330a5dda06..5f59df6fe30a0 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/GetMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/GetMethodImplementor.java @@ -5,7 +5,7 @@ import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.responseType; import static io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator.uniType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import io.quarkus.deployment.Capabilities; import io.quarkus.gizmo.BranchResult; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java index 066b82c66c855..178987a73fa72 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/ListMethodImplementor.java @@ -26,8 +26,8 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.jandex.Type; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java index 1af632b140993..c46aadc3c26b1 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java @@ -2,18 +2,18 @@ import java.util.Collection; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.AnnotationInstance; import org.jboss.logging.Logger; @@ -42,7 +42,7 @@ public abstract class StandardMethodImplementor implements MethodImplementor { private static final String OPENAPI_CONTENT_ANNOTATION = OPENAPI_PACKAGE + ".media.Content"; private static final String OPENAPI_SCHEMA_ANNOTATION = OPENAPI_PACKAGE + ".media.Schema"; private static final String SCHEMA_TYPE_ARRAY = "ARRAY"; - private static final String ROLES_ALLOWED_ANNOTATION = "javax.annotation.security.RolesAllowed"; + private static final String ROLES_ALLOWED_ANNOTATION = "jakarta.annotation.security.RolesAllowed"; private static final Logger LOGGER = Logger.getLogger(StandardMethodImplementor.class); protected final ResponseImplementor responseImplementor; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/UpdateMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/UpdateMethodImplementor.java index 70bf8ec63efef..baa8f7fa0a87b 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/UpdateMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/UpdateMethodImplementor.java @@ -8,9 +8,9 @@ import java.lang.annotation.Annotation; import java.util.function.Supplier; -import javax.validation.Valid; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.validation.Valid; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/hal/ListHalMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/hal/ListHalMethodImplementor.java index 2c048a0e6f817..933478e01c022 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/hal/ListHalMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/hal/ListHalMethodImplementor.java @@ -5,7 +5,7 @@ import java.lang.annotation.Annotation; import java.util.Collection; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/properties/ResourcePropertiesProvider.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/properties/ResourcePropertiesProvider.java index 7925f16932eb4..b788844076289 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/properties/ResourcePropertiesProvider.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/properties/ResourcePropertiesProvider.java @@ -7,7 +7,7 @@ import java.util.Map; import java.util.Set; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/PaginationImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/PaginationImplementor.java index 336e8996aa31c..08723f99ebe59 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/PaginationImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/PaginationImplementor.java @@ -7,9 +7,9 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.gizmo.AssignableResultHandle; import io.quarkus.gizmo.BranchResult; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/ResponseImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/ResponseImplementor.java index 2b0f049d8cce4..e2db59b6b95fd 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/ResponseImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/ResponseImplementor.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.net.URI; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java index b2531ab20cd22..20dddea276b35 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/utils/SignatureMethodCreator.java @@ -7,7 +7,7 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import io.quarkus.gizmo.ClassCreator; import io.quarkus.gizmo.MethodCreator; diff --git a/extensions/panache/rest-data-panache/runtime/pom.xml b/extensions/panache/rest-data-panache/runtime/pom.xml index ea2429be4cbb4..c905319dfba34 100644 --- a/extensions/panache/rest-data-panache/runtime/pom.xml +++ b/extensions/panache/rest-data-panache/runtime/pom.xml @@ -22,8 +22,8 @@ quarkus-hal - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.validation diff --git a/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilter.java b/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilter.java index ac61239ed1538..bbdaf4383bf57 100644 --- a/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilter.java +++ b/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilter.java @@ -1,14 +1,14 @@ package io.quarkus.rest.data.panache.runtime.sort; -import static javax.ws.rs.core.Response.Status.BAD_REQUEST; +import static jakarta.ws.rs.core.Response.Status.BAD_REQUEST; import java.util.Collections; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; @Provider @SortQueryParamValidator diff --git a/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamValidator.java b/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamValidator.java index 58a33e834290f..5a3b1cf6d8dfb 100644 --- a/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamValidator.java +++ b/extensions/panache/rest-data-panache/runtime/src/main/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamValidator.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Retention(RetentionPolicy.RUNTIME) diff --git a/extensions/panache/rest-data-panache/runtime/src/test/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilterTest.java b/extensions/panache/rest-data-panache/runtime/src/test/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilterTest.java index 5b463fae49ead..7f10d70642dc2 100644 --- a/extensions/panache/rest-data-panache/runtime/src/test/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilterTest.java +++ b/extensions/panache/rest-data-panache/runtime/src/test/java/io/quarkus/rest/data/panache/runtime/sort/SortQueryParamFilterTest.java @@ -1,17 +1,17 @@ package io.quarkus.rest.data.panache.runtime.sort; -import static javax.ws.rs.core.Response.Status.BAD_REQUEST; +import static jakarta.ws.rs.core.Response.Status.BAD_REQUEST; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.argThat; import static org.mockito.BDDMockito.given; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/extensions/picocli/deployment/src/test/java/io/quarkus/picocli/deployment/AvailableConfigSourcesTest.java b/extensions/picocli/deployment/src/test/java/io/quarkus/picocli/deployment/AvailableConfigSourcesTest.java index 74a96343417c1..eafb136eb7512 100644 --- a/extensions/picocli/deployment/src/test/java/io/quarkus/picocli/deployment/AvailableConfigSourcesTest.java +++ b/extensions/picocli/deployment/src/test/java/io/quarkus/picocli/deployment/AvailableConfigSourcesTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/DefaultPicocliCommandLineFactory.java b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/DefaultPicocliCommandLineFactory.java index 08160a271738e..f87f7b27c6664 100644 --- a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/DefaultPicocliCommandLineFactory.java +++ b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/DefaultPicocliCommandLineFactory.java @@ -1,8 +1,8 @@ package io.quarkus.picocli.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.literal.NamedLiteral; import io.quarkus.picocli.runtime.annotations.TopCommand; import picocli.CommandLine; diff --git a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliCommandLineProducer.java b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliCommandLineProducer.java index 9f3e626975435..777d6119dc6be 100644 --- a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliCommandLineProducer.java +++ b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliCommandLineProducer.java @@ -1,8 +1,8 @@ package io.quarkus.picocli.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.quarkus.arc.DefaultBean; import io.quarkus.runtime.annotations.CommandLineArguments; diff --git a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliRunner.java b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliRunner.java index 33393a9dd5bce..00a2f606b642a 100644 --- a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliRunner.java +++ b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/PicocliRunner.java @@ -1,7 +1,7 @@ package io.quarkus.picocli.runtime; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; import io.quarkus.runtime.QuarkusApplication; import picocli.CommandLine; diff --git a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/annotations/TopCommand.java b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/annotations/TopCommand.java index bc6b3a0b8b393..44106c7f16e95 100644 --- a/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/annotations/TopCommand.java +++ b/extensions/picocli/runtime/src/main/java/io/quarkus/picocli/runtime/annotations/TopCommand.java @@ -9,10 +9,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; /** - * Top-level command for Picocli CommandLine instance. This qualifier can be used together with {@link javax.inject.Named}. + * Top-level command for Picocli CommandLine instance. This qualifier can be used together with {@link jakarta.inject.Named}. * Runtime property quarkus.picocli.top-command should be used to specify which Named TopCommand will be used. */ @Qualifier diff --git a/extensions/quartz/deployment/src/main/java/io/quarkus/quartz/deployment/QuartzProcessor.java b/extensions/quartz/deployment/src/main/java/io/quarkus/quartz/deployment/QuartzProcessor.java index 7fd44349f6266..f1b8dc888bbd4 100644 --- a/extensions/quartz/deployment/src/main/java/io/quarkus/quartz/deployment/QuartzProcessor.java +++ b/extensions/quartz/deployment/src/main/java/io/quarkus/quartz/deployment/QuartzProcessor.java @@ -9,7 +9,7 @@ import java.util.Optional; import java.util.logging.Level; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.quartz.Job; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionSkipTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionSkipTest.java index e69aad26f965c..7e58c0c63a3d3 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionSkipTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConcurrentExecutionSkipTest.java @@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConditionalExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConditionalExecutionTest.java index 919ccbfe3de38..495db7d7c82b4 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConditionalExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConditionalExecutionTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConfigureInstanceIdTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConfigureInstanceIdTest.java index 6e59224833bfc..5a0f87a4426c6 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConfigureInstanceIdTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ConfigureInstanceIdTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DisabledSchedulerTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DisabledSchedulerTest.java index 44560bf75a1c4..725479588688a 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DisabledSchedulerTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DisabledSchedulerTest.java @@ -4,8 +4,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextTest.java index f87d96e918dbb..311cff7b083a3 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextTest.java @@ -5,7 +5,7 @@ import java.time.Duration; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextWithRunOnQuartzThreadTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextWithRunOnQuartzThreadTest.java index 3f8a8623b04f4..b34a4e504ac90 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextWithRunOnQuartzThreadTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/DuplicatedContextWithRunOnQuartzThreadTest.java @@ -5,7 +5,7 @@ import java.time.Duration; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FailedExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FailedExecutionTest.java index 2b2dbc93d9122..8b77a62e52be2 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FailedExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FailedExecutionTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FireTimeTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FireTimeTest.java index feeb87984538d..046a6890a4440 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FireTimeTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/FireTimeTest.java @@ -8,7 +8,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.data.TemporalUnitWithinOffset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/GlobalMisfirePolicyTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/GlobalMisfirePolicyTest.java index 35066a6cad100..9ce9937ca3923 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/GlobalMisfirePolicyTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/GlobalMisfirePolicyTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/HaltedSchedulerTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/HaltedSchedulerTest.java index 37133050c0d8b..ce85befcdc817 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/HaltedSchedulerTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/HaltedSchedulerTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectJobTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectJobTest.java index 1534809671dcb..50c8aaef275a7 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectJobTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectJobTest.java @@ -5,11 +5,11 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectQuartzSchedulerTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectQuartzSchedulerTest.java index 94d7ce3d86baf..5099ff68e5167 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectQuartzSchedulerTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InjectQuartzSchedulerTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidCronExpressionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidCronExpressionTest.java index 4fa5329e6e51d..085fca5b45d78 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidCronExpressionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidCronExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.quartz.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidDelayedExpressionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidDelayedExpressionTest.java index 45f5f10247435..8f0fe0add9877 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidDelayedExpressionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidDelayedExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.quartz.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidEveryExpressionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidEveryExpressionTest.java index 3cdb17219505e..64897cfecad07 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidEveryExpressionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/InvalidEveryExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.quartz.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ListSchedulerJobsTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ListSchedulerJobsTest.java index d342a3c0dfa62..6ded8fa815604 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ListSchedulerJobsTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/ListSchedulerJobsTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/MisfirePolicyTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/MisfirePolicyTest.java index 84dcae32cc0db..e3cf700e22d59 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/MisfirePolicyTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/MisfirePolicyTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/NoExpressionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/NoExpressionTest.java index ccbe7505656f3..2400304e1aaf6 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/NoExpressionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/NoExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.quartz.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueCronExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueCronExecutionTest.java index d06f384f4a6b9..455190483bbfa 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueCronExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueCronExecutionTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueExecutionTest.java index 09c8f3f4ec501..a4e9938204db3 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/OverdueExecutionTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodExpressionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodExpressionTest.java index 86f75f5808900..1b0ee16cc533a 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodExpressionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodExpressionTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.interceptor.Interceptor; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodTest.java index 7192caf70358d..1b5ca70040564 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedMethodTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedResumedMethodTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedResumedMethodTest.java index b2b883774891f..f0259d5a92111 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedResumedMethodTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/PausedResumedMethodTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterJobListenerTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterJobListenerTest.java index 219011dac67ca..aa399c12eddbb 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterJobListenerTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterJobListenerTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterLoggingJobHistoryPluginTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterLoggingJobHistoryPluginTest.java index d4161a2ff89cd..de625ad8705a0 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterLoggingJobHistoryPluginTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RegisterLoggingJobHistoryPluginTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RequestContextJobs.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RequestContextJobs.java index 1512c1a1afdb9..9bc2c103e35db 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RequestContextJobs.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/RequestContextJobs.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import io.quarkus.scheduler.Scheduled; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/SuccessfulExecutionTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/SuccessfulExecutionTest.java index 9fcbb56f70d85..c093675e2ee9d 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/SuccessfulExecutionTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/SuccessfulExecutionTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/metrics/MpTimedTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/metrics/MpTimedTest.java index 6f49aa59ddb41..6edbb5a450e83 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/metrics/MpTimedTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/metrics/MpTimedTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/nonblocking/NonBlockingScheduledMethodTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/nonblocking/NonBlockingScheduledMethodTest.java index e25d268c69547..9de042427c96d 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/nonblocking/NonBlockingScheduledMethodTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/nonblocking/NonBlockingScheduledMethodTest.java @@ -11,8 +11,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ForcedStartModeJobsTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ForcedStartModeJobsTest.java index 3934ab8b275a4..34e05bc2c04f6 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ForcedStartModeJobsTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ForcedStartModeJobsTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/HaltedStartModeJobsTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/HaltedStartModeJobsTest.java index 7c5f789d04fb0..a7ef7675aef53 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/HaltedStartModeJobsTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/HaltedStartModeJobsTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ProgrammaticJobsTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ProgrammaticJobsTest.java index e444f3c51b8aa..ed92d24c15ed9 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ProgrammaticJobsTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/programmatic/ProgrammaticJobsTest.java @@ -9,8 +9,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/subclass/InterceptedJobClassTest.java b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/subclass/InterceptedJobClassTest.java index ed35e541c7d27..7d917e437b4a1 100644 --- a/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/subclass/InterceptedJobClassTest.java +++ b/extensions/quartz/deployment/src/test/java/io/quarkus/quartz/test/subclass/InterceptedJobClassTest.java @@ -5,11 +5,11 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java index c74972398d34d..610385c369d8a 100644 --- a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java +++ b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java @@ -19,19 +19,19 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.jboss.logging.Logger; import org.quartz.CronScheduleBuilder; diff --git a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/MessageBundleProcessor.java b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/MessageBundleProcessor.java index e4bcdd4a47df8..1ce27920d440c 100644 --- a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/MessageBundleProcessor.java +++ b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/MessageBundleProcessor.java @@ -30,7 +30,7 @@ import java.util.stream.IntStream; import java.util.stream.Stream; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/AsyncTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/AsyncTest.java index b09d510666421..9e672905c2764 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/AsyncTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/AsyncTest.java @@ -6,7 +6,7 @@ import java.math.RoundingMode; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java index c3770401554bb..a9d4564479892 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/EscapingTest.java @@ -4,7 +4,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/Hello.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/Hello.java index 7ea645cf0da04..1bbacb8be4ad8 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/Hello.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/Hello.java @@ -1,7 +1,7 @@ package io.quarkus.qute.deployment; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; @ApplicationScoped @Named @@ -11,4 +11,4 @@ public String ping() { return "pong"; } -} \ No newline at end of file +} diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/MultiTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/MultiTest.java index 5312c248903a4..2e68a57500d07 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/MultiTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/MultiTest.java @@ -5,7 +5,7 @@ import java.math.BigDecimal; import java.math.RoundingMode; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/PropertyNotFoundDevModeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/PropertyNotFoundDevModeTest.java index 4c55e93394d45..3e32d1500e078 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/PropertyNotFoundDevModeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/PropertyNotFoundDevModeTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/ReflectionResolverTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/ReflectionResolverTest.java index e17f52a8ce134..955452e563303 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/ReflectionResolverTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/ReflectionResolverTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TemplateDataTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TemplateDataTest.java index e05594bcbb7ac..45733d45f303c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TemplateDataTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TemplateDataTest.java @@ -5,7 +5,7 @@ import java.math.BigDecimal; import java.math.RoundingMode; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TreeMapDataTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TreeMapDataTest.java index ffd4cd9aff3ea..e0ce40da0bc4c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TreeMapDataTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/TreeMapDataTest.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.TreeMap; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/VariantTemplateTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/VariantTemplateTest.java index e412034798ea6..f809cecedcc98 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/VariantTemplateTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/VariantTemplateTest.java @@ -3,8 +3,8 @@ import static io.quarkus.qute.TemplateInstance.SELECTED_VARIANT; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/asyncdata/AsyncDataTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/asyncdata/AsyncDataTest.java index 9b137ed7509ee..6a341edce2807 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/asyncdata/AsyncDataTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/asyncdata/AsyncDataTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletableFuture; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/cache/CacheTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/cache/CacheTest.java index 869e2dca1b6d4..accb560af0443 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/cache/CacheTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/cache/CacheTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/contenttypes/AdditionalContentTypeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/contenttypes/AdditionalContentTypeTest.java index a1160b5f8b7df..a8bfe9021dfd3 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/contenttypes/AdditionalContentTypeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/contenttypes/AdditionalContentTypeTest.java @@ -3,7 +3,7 @@ import static io.quarkus.qute.TemplateInstance.SELECTED_VARIANT; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/currentrequest/CurrentRequestTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/currentrequest/CurrentRequestTest.java index 35601003987b0..bc9cbbd0b0082 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/currentrequest/CurrentRequestTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/currentrequest/CurrentRequestTest.java @@ -2,7 +2,7 @@ import static io.restassured.RestAssured.when; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/encoding/CustomEncodingTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/encoding/CustomEncodingTest.java index 958cbe3ca57bf..9b25f3e29f574 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/encoding/CustomEncodingTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/encoding/CustomEncodingTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/resolver/CustomResolversTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/resolver/CustomResolversTest.java index 6df90b50bab46..d6bf336e3d3d1 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/resolver/CustomResolversTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/resolver/CustomResolversTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java index 8ea7b30b56d62..356931ff103a5 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionFactory.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.qute.EngineConfiguration; import io.quarkus.qute.ResultNode; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionHelperTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionHelperTest.java index f884a5b6ba541..78e048aadbbbe 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionHelperTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/CustomSectionHelperTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/StringProducer.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/StringProducer.java index 3c42c7e84cabf..7a429ba3295d5 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/StringProducer.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/engineconfigurations/section/StringProducer.java @@ -1,6 +1,6 @@ package io.quarkus.qute.deployment.engineconfigurations.section; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; public class StringProducer { diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumIgnoredTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumIgnoredTest.java index 7b582d1267580..baba4508718a9 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumIgnoredTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumIgnoredTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumInvalidTargetTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumInvalidTargetTest.java index 1e11e9b3c9598..ed26973784e65 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumInvalidTargetTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumInvalidTargetTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumTest.java index fb27a1da4fea2..382444f8fb76f 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumTest.java @@ -4,7 +4,7 @@ import java.util.Map; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumValidationSuccessTest.java index 382ae1cfca9d1..822048b3a4229 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/enums/TemplateEnumValidationSuccessTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/AdditionalTemplatePathExcludeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/AdditionalTemplatePathExcludeTest.java index b46b2229231c4..fd39baf547a10 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/AdditionalTemplatePathExcludeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/AdditionalTemplatePathExcludeTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/TemplatePathExcludeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/TemplatePathExcludeTest.java index 98731b95b8b75..24bae130b7755 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/TemplatePathExcludeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/exclude/TemplatePathExcludeTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/AssignabilityTemplateExtensionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/AssignabilityTemplateExtensionTest.java index e89cfc801099b..8f936e047f2e1 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/AssignabilityTemplateExtensionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/AssignabilityTemplateExtensionTest.java @@ -6,7 +6,7 @@ import java.time.format.DateTimeFormatter; import java.time.temporal.TemporalAccessor; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/CollectionTemplateExtensionsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/CollectionTemplateExtensionsTest.java index 25deb510fab1a..976fe291bc338 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/CollectionTemplateExtensionsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/CollectionTemplateExtensionsTest.java @@ -5,7 +5,7 @@ import java.util.Collections; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ConfigTemplateExtensionsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ConfigTemplateExtensionsTest.java index 9f0ffcb3b67ed..6d553d6bf97d2 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ConfigTemplateExtensionsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ConfigTemplateExtensionsTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ExtensionMethodCompletionStageTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ExtensionMethodCompletionStageTest.java index 946257f9c64d0..59970d6ec4dbe 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ExtensionMethodCompletionStageTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/ExtensionMethodCompletionStageTest.java @@ -6,9 +6,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NamespaceTemplateExtensionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NamespaceTemplateExtensionTest.java index f1776becba68f..6d325f78ceda1 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NamespaceTemplateExtensionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NamespaceTemplateExtensionTest.java @@ -7,8 +7,8 @@ import java.util.EnumSet; import java.util.Set; -import javax.enterprise.event.TransactionPhase; -import javax.inject.Inject; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NumberTemplateExtensionsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NumberTemplateExtensionsTest.java index 51d2a954df41d..8819a9f6e9bfd 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NumberTemplateExtensionsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/NumberTemplateExtensionsTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/StringTemplateExtensionsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/StringTemplateExtensionsTest.java index 9833dba9eff2b..dfae6097eb53f 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/StringTemplateExtensionsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/StringTemplateExtensionsTest.java @@ -5,7 +5,7 @@ import java.time.LocalDateTime; import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionAttributeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionAttributeTest.java index b5b6873dc6308..45e01b5417bb4 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionAttributeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionAttributeTest.java @@ -4,7 +4,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionMethodsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionMethodsTest.java index 727850552854f..593b1872de8e2 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionMethodsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TemplateExtensionMethodsTest.java @@ -8,7 +8,7 @@ import java.util.HashMap; import java.util.Map; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TimeTemplateExtensionsTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TimeTemplateExtensionsTest.java index e4f758fd094d9..ec758c43a46f3 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TimeTemplateExtensionsTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/extensions/TimeTemplateExtensionsTest.java @@ -11,7 +11,7 @@ import java.util.Locale; import java.util.Map; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java index a8288591c856d..3a51aa84c425d 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/generatedresolvers/HierarchyTest.java @@ -6,7 +6,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalOverrideTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalOverrideTest.java index 0302e82202e5b..d78689d7d071c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalOverrideTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalOverrideTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalTest.java index 8c4c898bcf9aa..de372ee5c691a 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/globals/TemplateGlobalTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/LocalizedFileResourceBundleNameTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/LocalizedFileResourceBundleNameTest.java index 32368f50be0c7..569e160909d4c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/LocalizedFileResourceBundleNameTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/LocalizedFileResourceBundleNameTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleCustomDefaultLocaleTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleCustomDefaultLocaleTest.java index 3f7967fb8e949..65fefeb84c207 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleCustomDefaultLocaleTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleCustomDefaultLocaleTest.java @@ -4,7 +4,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLocaleTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLocaleTest.java index 68e31138f651f..5a4ae10a48160 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLocaleTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLocaleTest.java @@ -4,7 +4,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLogicalLineTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLogicalLineTest.java index 8b41a3facf89d..f94a3a2b1e5f4 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLogicalLineTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleLogicalLineTest.java @@ -4,7 +4,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleTest.java index 29991924da327..3b998b0a02af6 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/MessageBundleTest.java @@ -5,7 +5,7 @@ import java.util.Locale; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/NestedMessageBundleDevModeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/NestedMessageBundleDevModeTest.java index bf008d0aad546..54f45654c9924 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/NestedMessageBundleDevModeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/i18n/NestedMessageBundleDevModeTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/include/IncludeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/include/IncludeTest.java index a71212b6c6834..2bfd4bf074e4a 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/include/IncludeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/include/IncludeTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectNamespaceResolverTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectNamespaceResolverTest.java index 5e7ca7bb96d2c..e3bca7a111002 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectNamespaceResolverTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectNamespaceResolverTest.java @@ -5,10 +5,10 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.LongAdder; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java index 49e44a7077d2b..3cb2b28440fe8 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionFailedTest.java @@ -4,8 +4,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionTest.java index f0b271d3f9b22..36daed32a840f 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/InjectionTest.java @@ -5,8 +5,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanIterableReturnTypeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanIterableReturnTypeTest.java index 1314c6e301d19..32ff849ef855b 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanIterableReturnTypeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanIterableReturnTypeTest.java @@ -4,9 +4,9 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanPropertyNotFoundTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanPropertyNotFoundTest.java index 04937fcd9d1d0..61eb4f804d105 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanPropertyNotFoundTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanPropertyNotFoundTest.java @@ -4,8 +4,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationFailureTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationFailureTest.java index d87e511059210..097886c4273a2 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationFailureTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationFailureTest.java @@ -6,8 +6,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationSuccessTest.java index 24f02a260572f..63302862bee89 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/inject/NamedBeanValidationSuccessTest.java @@ -5,9 +5,9 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/IterationMetadataPrefixTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/IterationMetadataPrefixTest.java index 712d6ae8a37b4..a7b8826c1f75b 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/IterationMetadataPrefixTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/IterationMetadataPrefixTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/LoopTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/LoopTest.java index ca3ffa7eefe2c..7df9033e1f718 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/LoopTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/loop/LoopTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundNoopTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundNoopTest.java index 29a45520e4061..0a6f690239333 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundNoopTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundNoopTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundOutputOriginalTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundOutputOriginalTest.java index c08674edb0a4e..7f839c8810864 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundOutputOriginalTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundOutputOriginalTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundThrowExceptionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundThrowExceptionTest.java index 812bb1ffee26b..789b4edb4b351 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundThrowExceptionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/propertynotfound/PropertyNotFoundThrowExceptionTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/removestandalonelines/DoNotRemoveStandaloneLinesTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/removestandalonelines/DoNotRemoveStandaloneLinesTest.java index b7265d7377a46..7ccb4b841be77 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/removestandalonelines/DoNotRemoveStandaloneLinesTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/removestandalonelines/DoNotRemoveStandaloneLinesTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/MultipleTemplatesDirectoryTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/MultipleTemplatesDirectoryTest.java index 59588f0470a65..7d07be7c8731c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/MultipleTemplatesDirectoryTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/MultipleTemplatesDirectoryTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/WrongTemplatesDirectoryTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/WrongTemplatesDirectoryTest.java index 357d6377c8162..4e5452e0d7b3c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/WrongTemplatesDirectoryTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/scanning/WrongTemplatesDirectoryTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagIncludeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagIncludeTest.java index 8e5418cf3e648..506128af02faa 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagIncludeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagIncludeTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagNameCollisionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagNameCollisionTest.java index b84169e658311..c650796fd9e10 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagNameCollisionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagNameCollisionTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagTest.java index b018d5fa88038..8f72e6753be53 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagWithQuteExtensionIncludeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagWithQuteExtensionIncludeTest.java index cc699fd1c71c8..4b876ad823b4c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagWithQuteExtensionIncludeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/tag/UserTagWithQuteExtensionIncludeTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/templatelocator/CustomTemplateLocatorTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/templatelocator/CustomTemplateLocatorTest.java index 99ebfd786cf80..26ee729793825 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/templatelocator/CustomTemplateLocatorTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/templatelocator/CustomTemplateLocatorTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.Optional; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/CheckedTemplateRequireTypeSafeTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/CheckedTemplateRequireTypeSafeTest.java index 9de2a781f37b3..7ee4db915ecb7 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/CheckedTemplateRequireTypeSafeTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/CheckedTemplateRequireTypeSafeTest.java @@ -4,8 +4,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DataNamespaceValidationTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DataNamespaceValidationTest.java index 958bf831ee09f..94fabc3d23f99 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DataNamespaceValidationTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DataNamespaceValidationTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DefaultMethodValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DefaultMethodValidationSuccessTest.java index ecfef3167b262..dc564a6e1eefb 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DefaultMethodValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/DefaultMethodValidationSuccessTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/InterfaceValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/InterfaceValidationSuccessTest.java index 2488ba7ff9928..34591416620c3 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/InterfaceValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/InterfaceValidationSuccessTest.java @@ -4,7 +4,7 @@ import java.util.Collections; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/LoopValidationTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/LoopValidationTest.java index 6fad66fbd1355..8f69e91e4cb40 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/LoopValidationTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/LoopValidationTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/NestedVirtualMethodSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/NestedVirtualMethodSuccessTest.java index 4626412a40190..9b8d25dc24a89 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/NestedVirtualMethodSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/NestedVirtualMethodSuccessTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ObjectValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ObjectValidationSuccessTest.java index 1443726a01d8b..c7ac99c3c299e 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ObjectValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ObjectValidationSuccessTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/OrOperatorTemplateExtensionTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/OrOperatorTemplateExtensionTest.java index 76280ac44ff6d..a9e05f2abcff8 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/OrOperatorTemplateExtensionTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/OrOperatorTemplateExtensionTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationDefaultValueTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationDefaultValueTest.java index 15f225d81feed..357f638e92437 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationDefaultValueTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationDefaultValueTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationTest.java index de223ed9e013d..7d31173bc0d63 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ParamDeclarationTest.java @@ -1,6 +1,6 @@ package io.quarkus.qute.deployment.typesafe; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeCheckExcludesTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeCheckExcludesTest.java index d2086e28976df..739ed7939d785 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeCheckExcludesTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeCheckExcludesTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeJavaLangTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeJavaLangTest.java index df8ca71ecd23d..659b3b40b9e73 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeJavaLangTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeJavaLangTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLetTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLetTest.java index a616a95a6933d..6e1f08f68fcb6 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLetTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLetTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLoopTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLoopTest.java index f9b0eb66115f9..3a09b09cca50c 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLoopTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/TypeSafeLoopTest.java @@ -6,7 +6,7 @@ import java.util.Collections; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ValidationSuccessTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ValidationSuccessTest.java index 2f1c792b59246..7495e239eea5a 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ValidationSuccessTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/ValidationSuccessTest.java @@ -4,7 +4,7 @@ import java.util.Collections; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/WhenValidationTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/WhenValidationTest.java index 559395bff163e..c760f5a61b200 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/WhenValidationTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/typesafe/WhenValidationTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/varargs/VarargsMethodTest.java b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/varargs/VarargsMethodTest.java index 4b3b1deeff97e..0cf8f640c6601 100644 --- a/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/varargs/VarargsMethodTest.java +++ b/extensions/qute/deployment/src/test/java/io/quarkus/qute/deployment/varargs/VarargsMethodTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/Localized.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/Localized.java index 2da4b48f3e170..1e3ef83f9d0e1 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/Localized.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/Localized.java @@ -10,8 +10,8 @@ import java.lang.annotation.Target; import java.util.Locale; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Marks a localized message bundle interface. diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/MessageBundles.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/MessageBundles.java index 11abb54d4da73..976506300ecb6 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/MessageBundles.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/i18n/MessageBundles.java @@ -6,9 +6,9 @@ import java.util.Map.Entry; import java.util.concurrent.CompletionStage; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/ContentTypes.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/ContentTypes.java index d82acd262c595..cb62d34d281f0 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/ContentTypes.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/ContentTypes.java @@ -2,8 +2,8 @@ import java.net.URLConnection; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/EngineProducer.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/EngineProducer.java index 5246fb27b87de..c4633c9028a56 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/EngineProducer.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/EngineProducer.java @@ -18,13 +18,13 @@ import java.util.concurrent.ConcurrentMap; import java.util.regex.Pattern; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import org.jboss.logging.Logger; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/LocationLiteral.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/LocationLiteral.java index 66724f59172bc..36df02eac2e29 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/LocationLiteral.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/LocationLiteral.java @@ -1,6 +1,6 @@ package io.quarkus.qute.runtime; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import io.quarkus.qute.Location; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/TemplateProducer.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/TemplateProducer.java index 763d6b59da9f0..d9af1f75c1b69 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/TemplateProducer.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/TemplateProducer.java @@ -14,10 +14,10 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/cache/CacheConfigurator.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/cache/CacheConfigurator.java index cfe84d1b81b99..983b5c739af2e 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/cache/CacheConfigurator.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/cache/CacheConfigurator.java @@ -3,7 +3,7 @@ import java.util.concurrent.CompletionStage; import java.util.function.Function; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.quarkus.cache.Cache; import io.quarkus.cache.CacheName; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/CollectionTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/CollectionTemplateExtensions.java index 9d3992ce1dd4e..70852f76d575f 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/CollectionTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/CollectionTemplateExtensions.java @@ -7,7 +7,7 @@ import java.util.ListIterator; import java.util.NoSuchElementException; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.TemplateExtension; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/ConfigTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/ConfigTemplateExtensions.java index a2cb2958cbb5e..745cb5d1e138c 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/ConfigTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/ConfigTemplateExtensions.java @@ -5,7 +5,7 @@ import java.util.Optional; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import org.eclipse.microprofile.config.ConfigProvider; @@ -43,4 +43,4 @@ static Object integerProperty(String propertyName) { Optional val = ConfigProvider.getConfig().getOptionalValue(propertyName, Integer.class); return val.isPresent() ? val.get() : Results.NotFound.from(propertyName); } -} \ No newline at end of file +} diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/MapTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/MapTemplateExtensions.java index 68c08442a85c0..e988e48216856 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/MapTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/MapTemplateExtensions.java @@ -4,7 +4,7 @@ import java.util.Map; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.Results; import io.quarkus.qute.TemplateExtension; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/NumberTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/NumberTemplateExtensions.java index 20f2d2a56906c..b42ca90ed8ec8 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/NumberTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/NumberTemplateExtensions.java @@ -1,6 +1,6 @@ package io.quarkus.qute.runtime.extensions; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.TemplateExtension; @@ -56,4 +56,4 @@ static Long subtractFromLong(Long number, String name, Long other) { return number - other; } -} \ No newline at end of file +} diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/OrOperatorTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/OrOperatorTemplateExtensions.java index 685a2d2ed9ec3..59e3456cf6e5c 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/OrOperatorTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/OrOperatorTemplateExtensions.java @@ -2,7 +2,7 @@ import java.util.Optional; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.Results; import io.quarkus.qute.TemplateExtension; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/StringTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/StringTemplateExtensions.java index 01c4f305d8f26..0d2866196da3c 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/StringTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/StringTemplateExtensions.java @@ -2,7 +2,7 @@ import java.util.Locale; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.TemplateExtension; diff --git a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/TimeTemplateExtensions.java b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/TimeTemplateExtensions.java index b8a10e73b5ca8..8ff8a2e347d9f 100644 --- a/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/TimeTemplateExtensions.java +++ b/extensions/qute/runtime/src/main/java/io/quarkus/qute/runtime/extensions/TimeTemplateExtensions.java @@ -13,7 +13,7 @@ import java.util.Objects; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import io.quarkus.qute.TemplateExtension; diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/ReactiveDataSource.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/ReactiveDataSource.java index bc429c78993f7..c86b92ce5058a 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/ReactiveDataSource.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/ReactiveDataSource.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Qualifier used to specify which reactive datasource will be injected. diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/ReactiveDatasourceHealthCheck.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/ReactiveDatasourceHealthCheck.java index 91616c943f779..b0d804266c96b 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/ReactiveDatasourceHealthCheck.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/ReactiveDatasourceHealthCheck.java @@ -7,7 +7,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.Bean; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java b/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java index 10e5ddb2cf151..62d1e4691166d 100644 --- a/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java +++ b/extensions/reactive-db2-client/deployment/src/main/java/io/quarkus/reactive/db2/client/deployment/ReactiveDB2ClientProcessor.java @@ -9,7 +9,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java index 7dc4b2276402a..299821dd49d23 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/health/ReactiveDB2DataSourcesHealthCheck.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/health/ReactiveDB2DataSourcesHealthCheck.java index 17d18fb5c8a26..72c046f4c33cb 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/health/ReactiveDB2DataSourcesHealthCheck.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/health/ReactiveDB2DataSourcesHealthCheck.java @@ -6,10 +6,10 @@ import java.util.Map.Entry; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.Bean; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.Bean; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java b/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java index 15d22dc1a515d..b9a865020d1a1 100644 --- a/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java +++ b/extensions/reactive-mssql-client/deployment/src/main/java/io/quarkus/reactive/mssql/client/deployment/ReactiveMSSQLClientProcessor.java @@ -9,7 +9,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CredentialsTestResource.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CredentialsTestResource.java index 19b27d85611c9..a9865a08ac288 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CredentialsTestResource.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CredentialsTestResource.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.mutiny.mssqlclient.MSSQLPool; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CustomCredentialsProvider.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CustomCredentialsProvider.java index fe9237fcec09f..e7df2237791cb 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CustomCredentialsProvider.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/CustomCredentialsProvider.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java index 32de811a4c67c..ba7877c9cd42e 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java @@ -5,12 +5,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.vertx.mssqlclient.MSSQLPool; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevServicesMsSQLDatasourceTestCase.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevServicesMsSQLDatasourceTestCase.java index 13d9012c7e235..2def78c419838 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevServicesMsSQLDatasourceTestCase.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevServicesMsSQLDatasourceTestCase.java @@ -7,7 +7,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java index b4a045f6255de..fbfd5891b076b 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/LocalhostMSSQLPoolCreator.java @@ -1,6 +1,6 @@ package io.quarkus.reactive.mssql.client; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.vertx.mssqlclient.MSSQLPool; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolProducerTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolProducerTest.java index 90d2b1ba5d055..c07a671754e14 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolProducerTest.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MSSQLPoolProducerTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java index f89109ab4c95f..d601cb27be725 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesAndMSSQLPoolCreatorsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesTest.java index 44f38157f406c..ead0685bae68a 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesTest.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleDataSourcesTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java index 1fb1e478b4f99..68dbd119a3634 100644 --- a/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java +++ b/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/MultipleMSSQLPoolCreatorsForSameDatasourceTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java index 788320fc3fea3..ac34f3bc6e60d 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/health/ReactiveMSSQLDataSourcesHealthCheck.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/health/ReactiveMSSQLDataSourcesHealthCheck.java index e1c981075a1d0..35537917a3399 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/health/ReactiveMSSQLDataSourcesHealthCheck.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/health/ReactiveMSSQLDataSourcesHealthCheck.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; import org.eclipse.microprofile.health.Readiness; diff --git a/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java b/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java index 42266feac61df..0912aa814ef25 100644 --- a/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java +++ b/extensions/reactive-mysql-client/deployment/src/main/java/io/quarkus/reactive/mysql/client/deployment/ReactiveMySQLClientProcessor.java @@ -9,7 +9,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CredentialsTestResource.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CredentialsTestResource.java index 125d118362ab5..82d55b5fd9cbd 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CredentialsTestResource.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CredentialsTestResource.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.mutiny.mysqlclient.MySQLPool; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CustomCredentialsProvider.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CustomCredentialsProvider.java index a55663e9e44e5..bc345a17c0d37 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CustomCredentialsProvider.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/CustomCredentialsProvider.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevModeResource.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevModeResource.java index 6adb24dcedf51..1061b7459bd50 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevModeResource.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevModeResource.java @@ -5,12 +5,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.vertx.mysqlclient.MySQLPool; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevServicesMySQLDatasourceTestCase.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevServicesMySQLDatasourceTestCase.java index 7d55f33663932..316524a5b2c47 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevServicesMySQLDatasourceTestCase.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/DevServicesMySQLDatasourceTestCase.java @@ -7,7 +7,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java index ec8c7a798d0a2..71324a7b6d3b1 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/LocalhostMySQLPoolCreator.java @@ -1,6 +1,6 @@ package io.quarkus.reactive.mysql.client; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.vertx.mysqlclient.MySQLPool; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java index e0b5a88258f4f..1ce79acd7e128 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesAndMySQLPoolCreatorsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesTest.java index f6c8162b33b86..cf613920812e0 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesTest.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleDataSourcesTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java index 6fd00cf2d7748..5016026dae1ea 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MultipleMySQLPoolCreatorsForSameDatasourceTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolProducerTest.java b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolProducerTest.java index 47ec1121c0df7..6e20a49ce676d 100644 --- a/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolProducerTest.java +++ b/extensions/reactive-mysql-client/deployment/src/test/java/io/quarkus/reactive/mysql/client/MySQLPoolProducerTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java index 28e9f8a3440e5..d5f58d0fb7d16 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/health/ReactiveMySQLDataSourcesHealthCheck.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/health/ReactiveMySQLDataSourcesHealthCheck.java index b7875f7e25cfc..81470e5d9d0e6 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/health/ReactiveMySQLDataSourcesHealthCheck.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/health/ReactiveMySQLDataSourcesHealthCheck.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; import org.eclipse.microprofile.health.Readiness; diff --git a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java index 1385081e1d037..039542c118298 100644 --- a/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java +++ b/extensions/reactive-oracle-client/deployment/src/main/java/io/quarkus/reactive/oracle/client/deployment/ReactiveOracleClientProcessor.java @@ -9,7 +9,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CredentialsTestResource.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CredentialsTestResource.java index 4ae4988ab1aae..6ccb5e5460e31 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CredentialsTestResource.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CredentialsTestResource.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.mutiny.oracleclient.OraclePool; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CustomCredentialsProvider.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CustomCredentialsProvider.java index 935ed6880aac7..e08084c2e17a7 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CustomCredentialsProvider.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/CustomCredentialsProvider.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevModeResource.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevModeResource.java index c92be25a8e629..2dd4221f96c86 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevModeResource.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevModeResource.java @@ -4,12 +4,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.vertx.oracleclient.OraclePool; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevServicesOracleDatasourceTestCase.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevServicesOracleDatasourceTestCase.java index 10ccb9b422676..b9834968136cd 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevServicesOracleDatasourceTestCase.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/DevServicesOracleDatasourceTestCase.java @@ -7,7 +7,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java index ab4b483255b6a..7415546a0e165 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/LocalhostOraclePoolCreator.java @@ -1,6 +1,6 @@ package io.quarkus.reactive.oracle.client; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.vertx.oracleclient.OraclePool; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java index fd0cae86bc907..4aa595bb8a422 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesAndOraclePoolCreatorsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesTest.java index 909ba5bf7fd5f..d8ed5f097ccf8 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleDataSourcesTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java index 8e0987f9ba5fa..9605837f343e1 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/MultipleOraclePoolCreatorsForSameDatasourceTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolProducerTest.java b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolProducerTest.java index 15a236c5cf2e9..217882d82593b 100644 --- a/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolProducerTest.java +++ b/extensions/reactive-oracle-client/deployment/src/test/java/io/quarkus/reactive/oracle/client/OraclePoolProducerTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index e28834c0dbc09..a32dfcf4bcb5b 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -7,7 +7,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/health/ReactiveOracleDataSourcesHealthCheck.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/health/ReactiveOracleDataSourcesHealthCheck.java index c11b918b802bb..fa462c96ac2b5 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/health/ReactiveOracleDataSourcesHealthCheck.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/health/ReactiveOracleDataSourcesHealthCheck.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; import org.eclipse.microprofile.health.Readiness; diff --git a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java index 1eff23617ecfd..b0f38c3411bb0 100644 --- a/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java +++ b/extensions/reactive-pg-client/deployment/src/main/java/io/quarkus/reactive/pg/client/deployment/ReactivePgClientProcessor.java @@ -9,7 +9,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CredentialsTestResource.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CredentialsTestResource.java index 1640102676f91..dff7149adb1ee 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CredentialsTestResource.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CredentialsTestResource.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.mutiny.pgclient.PgPool; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CustomCredentialsProvider.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CustomCredentialsProvider.java index a97bb1da94885..0094b3bea01b3 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CustomCredentialsProvider.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/CustomCredentialsProvider.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevModeResource.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevModeResource.java index 5f803cb1a19a6..20a03208cbb85 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevModeResource.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevModeResource.java @@ -4,12 +4,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.vertx.pgclient.PgPool; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevServicesPostgresqlDatasourceTestCase.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevServicesPostgresqlDatasourceTestCase.java index 7866181f5fba7..9c678d0cb2d94 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevServicesPostgresqlDatasourceTestCase.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/DevServicesPostgresqlDatasourceTestCase.java @@ -7,7 +7,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java index 4df42b98dde69..79ec7eb2890b1 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/LocalhostPgPoolCreator.java @@ -1,6 +1,6 @@ package io.quarkus.reactive.pg.client; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.vertx.pgclient.PgPool; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java index bc5b7bfbcb5c8..ccd0e4ff09be7 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesAndPgPoolCreatorsTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesTest.java index cfac91e8dfccb..1cd8c0e4f3b37 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesTest.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultipleDataSourcesTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java index 325e6865a84ca..ea8b3a5e5b30e 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/MultiplePgPoolCreatorsForSameDatasourceTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java index d234cfa5d7855..ba903f7bc6d91 100644 --- a/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java +++ b/extensions/reactive-pg-client/deployment/src/test/java/io/quarkus/reactive/pg/client/PgPoolProducerTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java index 9760ee690d645..853f4e7dba23a 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.jboss.logging.Logger; diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/health/ReactivePgDataSourcesHealthCheck.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/health/ReactivePgDataSourcesHealthCheck.java index 0fd0aacfa022e..c0228a3c99869 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/health/ReactivePgDataSourcesHealthCheck.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/health/ReactivePgDataSourcesHealthCheck.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; import org.eclipse.microprofile.health.Readiness; diff --git a/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/Methods.java b/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/Methods.java index 7e9d70bc5fd4a..3d5cc43da663d 100644 --- a/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/Methods.java +++ b/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/Methods.java @@ -9,9 +9,9 @@ import java.util.function.BiConsumer; import java.util.function.Consumer; -import javax.enterprise.context.spi.Context; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Context; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; import org.jboss.jandex.DotName; @@ -181,11 +181,11 @@ class Methods { static final MethodDescriptor OPTIONAL_OF_NULLABLE = MethodDescriptor .ofMethod(Optional.class, "ofNullable", Optional.class, Object.class); - static final String VALIDATION_VALIDATOR = "javax.validation.Validator"; - static final String VALIDATION_CONSTRAINT_VIOLATION_EXCEPTION = "javax.validation.ConstraintViolationException"; + static final String VALIDATION_VALIDATOR = "jakarta.validation.Validator"; + static final String VALIDATION_CONSTRAINT_VIOLATION_EXCEPTION = "jakarta.validation.ConstraintViolationException"; static final MethodDescriptor VALIDATION_GET_VALIDATOR = MethodDescriptor.ofMethod(ValidationSupport.class, "getValidator", - "javax.validation.Validator", ArcContainer.class); + "jakarta.validation.Validator", ArcContainer.class); static final MethodDescriptor VALIDATION_MAP_VIOLATIONS_TO_JSON = MethodDescriptor .ofMethod(ValidationSupport.class, "mapViolationsToJson", String.class, Set.class, HttpServerResponse.class); @@ -195,7 +195,7 @@ class Methods { RoutingContext.class.getName(), Boolean.TYPE.getName()); static final MethodDescriptor VALIDATOR_VALIDATE = MethodDescriptor - .ofMethod("javax.validation.Validator", "validate", "java.util.Set", + .ofMethod("jakarta.validation.Validator", "validate", "java.util.Set", Object.class, Class[].class); static final MethodDescriptor SET_IS_EMPTY = MethodDescriptor.ofMethod(Set.class, "isEmpty", Boolean.TYPE); diff --git a/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java b/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java index 92a81c633f4be..56787171c3742 100644 --- a/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java +++ b/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java @@ -32,10 +32,10 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.spi.Contextual; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.spi.Contextual; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/ConflictingRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/ConflictingRouteTest.java index bc85f76c62c87..37977b25baeff 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/ConflictingRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/ConflictingRouteTest.java @@ -2,7 +2,7 @@ import static io.restassured.RestAssured.get; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/DependentRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/DependentRouteTest.java index c7dab49919b1e..dfa393676cbc5 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/DependentRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/DependentRouteTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/LazyAuthRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/LazyAuthRouteTest.java index 6d261ad225c96..44bc25cbafef6 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/LazyAuthRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/LazyAuthRouteTest.java @@ -3,9 +3,9 @@ import static io.restassured.RestAssured.given; import static org.hamcrest.Matchers.is; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/SimpleRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/SimpleRouteTest.java index 5ae3a5cd56108..b6bd6cbad75dc 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/SimpleRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/SimpleRouteTest.java @@ -10,10 +10,10 @@ import java.util.Objects; import java.util.stream.Collectors; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/blocking/BlockingRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/blocking/BlockingRouteTest.java index 0631a1e899ad7..12e877a7cd604 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/blocking/BlockingRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/blocking/BlockingRouteTest.java @@ -3,7 +3,7 @@ import static io.restassured.RestAssured.get; import static org.hamcrest.Matchers.containsString; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/compress/CompressionTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/compress/CompressionTest.java index 105ed6598c499..ddc1249b202b7 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/compress/CompressionTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/compress/CompressionTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/context/DuplicatedContextTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/context/DuplicatedContextTest.java index a7ef899529589..71545b5912778 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/context/DuplicatedContextTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/context/DuplicatedContextTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Disabled; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/failure/AuthCompletionExceptionHandlerTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/failure/AuthCompletionExceptionHandlerTest.java index 69cf3f634098f..c056236b07682 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/failure/AuthCompletionExceptionHandlerTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/failure/AuthCompletionExceptionHandlerTest.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.web.failure; -import static javax.ws.rs.core.Response.Status.UNAUTHORIZED; +import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; import java.util.function.Supplier; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterRequestContextPropagationTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterRequestContextPropagationTest.java index 233731b1a9f35..32f4851957c3f 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterRequestContextPropagationTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterRequestContextPropagationTest.java @@ -4,8 +4,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterTest.java index bc8baeac2f577..493e52f4961b7 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/filter/UserFilterTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.Matchers.is; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/mutiny/SyncRouteTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/mutiny/SyncRouteTest.java index 1f93be9ee97b7..82d66e4abb4e9 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/mutiny/SyncRouteTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/mutiny/SyncRouteTest.java @@ -5,9 +5,9 @@ import java.net.URL; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.stream.JsonParser; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.stream.JsonParser; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/reactive/RequestContextPropagationTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/reactive/RequestContextPropagationTest.java index ff91979871583..0a7e6a523413d 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/reactive/RequestContextPropagationTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/reactive/RequestContextPropagationTest.java @@ -10,10 +10,10 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/MultiValidationTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/MultiValidationTest.java index 67a019d31280b..5a29bc5a147ff 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/MultiValidationTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/MultiValidationTest.java @@ -4,9 +4,9 @@ import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.Matchers.emptyString; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; import org.hibernate.validator.constraints.Length; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/SyncValidationTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/SyncValidationTest.java index 7db7591dee42f..7d49f31d1c631 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/SyncValidationTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/SyncValidationTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.Matchers.emptyString; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; import org.hibernate.validator.constraints.Length; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/UniValidationTest.java b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/UniValidationTest.java index 97d7949a4942c..7ca22f2527ada 100644 --- a/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/UniValidationTest.java +++ b/extensions/reactive-routes/deployment/src/test/java/io/quarkus/vertx/web/validation/UniValidationTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.Matchers.emptyString; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.Valid; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Pattern; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; import org.hibernate.validator.constraints.Length; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouteHandler.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouteHandler.java index 5f37c77cfe019..205897d336795 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouteHandler.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/RouteHandler.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.web.runtime; -import javax.enterprise.event.Event; +import jakarta.enterprise.event.Event; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableContext.ContextState; diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/ValidationSupport.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/ValidationSupport.java index c989604313cd0..25755f5595113 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/ValidationSupport.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/ValidationSupport.java @@ -3,11 +3,11 @@ import java.util.Iterator; import java.util.Set; -import javax.validation.ConstraintViolation; -import javax.validation.ConstraintViolationException; -import javax.validation.ElementKind; -import javax.validation.Path.Node; -import javax.validation.Validator; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ConstraintViolationException; +import jakarta.validation.ElementKind; +import jakarta.validation.Path.Node; +import jakarta.validation.Validator; import io.quarkus.arc.ArcContainer; import io.vertx.core.http.HttpServerResponse; diff --git a/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/MyTestResource.java b/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/MyTestResource.java index b45614cf0b347..318b842ebc6f4 100644 --- a/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/MyTestResource.java +++ b/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/MyTestResource.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; diff --git a/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/ReactiveStreamsOperatorsUsageTest.java b/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/ReactiveStreamsOperatorsUsageTest.java index 8b92b641b0209..77d5900d1e9d7 100644 --- a/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/ReactiveStreamsOperatorsUsageTest.java +++ b/extensions/reactive-streams-operators/mutiny-reactive-streams-operators/deployment/src/test/java/io/quarkus/mutiny/reactive/operators/deployment/ReactiveStreamsOperatorsUsageTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; import org.junit.jupiter.api.Test; diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/MyTestResource.java b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/MyTestResource.java index 57469a0315ed6..0458b7afdccbc 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/MyTestResource.java +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/MyTestResource.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; diff --git a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/ReactiveStreamsOperatorsUsageTest.java b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/ReactiveStreamsOperatorsUsageTest.java index ae942ebf21e30..b1f12defaa9ba 100644 --- a/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/ReactiveStreamsOperatorsUsageTest.java +++ b/extensions/reactive-streams-operators/smallrye-reactive-streams-operators/deployment/src/test/java/io/quarkus/smallrye/reactivestreamoperators/deployment/ReactiveStreamsOperatorsUsageTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; import org.junit.jupiter.api.Test; diff --git a/extensions/redis-client/deployment/src/main/java/io/quarkus/redis/client/deployment/RedisClientProcessor.java b/extensions/redis-client/deployment/src/main/java/io/quarkus/redis/client/deployment/RedisClientProcessor.java index 338fe81be1dfe..f745b7079eb88 100644 --- a/extensions/redis-client/deployment/src/main/java/io/quarkus/redis/client/deployment/RedisClientProcessor.java +++ b/extensions/redis-client/deployment/src/main/java/io/quarkus/redis/client/deployment/RedisClientProcessor.java @@ -16,8 +16,8 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/ClientInjectionTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/ClientInjectionTest.java index f6f1abf40fd43..8c535793a23b8 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/ClientInjectionTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/ClientInjectionTest.java @@ -1,6 +1,6 @@ package io.quarkus.redis.client.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/CustomizerTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/CustomizerTest.java index 7b972edba2d92..36cc8fd857573 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/CustomizerTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/CustomizerTest.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.eclipse.microprofile.config.spi.ConfigProviderResolver; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/RedisNoConfTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/RedisNoConfTest.java index 210513b5e1264..82f6461e25939 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/RedisNoConfTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/RedisNoConfTest.java @@ -1,8 +1,8 @@ package io.quarkus.redis.client.deployment; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceInjectionTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceInjectionTest.java index 5836d90e79140..621fb5f254ee1 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceInjectionTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceInjectionTest.java @@ -2,8 +2,8 @@ import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceTest.java index 9e287e844a07e..ec58e9b304fa5 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/datasource/DataSourceTest.java @@ -1,6 +1,6 @@ package io.quarkus.redis.client.deployment.datasource; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/devmode/IncrementResource.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/devmode/IncrementResource.java index 29b8dd7701486..20727dd2d95eb 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/devmode/IncrementResource.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/devmode/IncrementResource.java @@ -1,7 +1,7 @@ package io.quarkus.redis.client.deployment.devmode; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.redis.datasource.RedisDataSource; import io.quarkus.redis.datasource.keys.KeyCommands; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/BinaryTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/BinaryTest.java index 9d61ed060c9bf..af6e25caa4c92 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/BinaryTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/BinaryTest.java @@ -3,8 +3,8 @@ import java.util.NoSuchElementException; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CacheTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CacheTest.java index 45df0bb42fd93..3e116d118feeb 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CacheTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CacheTest.java @@ -2,8 +2,8 @@ import static org.awaitility.Awaitility.await; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CounterTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CounterTest.java index a5b8332d98810..0757a70b00b2b 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CounterTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/CounterTest.java @@ -1,7 +1,7 @@ package io.quarkus.redis.client.deployment.patterns; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubOnStartupTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubOnStartupTest.java index 5402b3ebee389..f4ce1faf44868 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubOnStartupTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubOnStartupTest.java @@ -6,9 +6,9 @@ import java.util.List; import java.util.function.Consumer; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubTest.java index 2fd74d7e7d427..37dc206e81b78 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/patterns/PubSubTest.java @@ -6,9 +6,9 @@ import java.util.List; import java.util.function.Consumer; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/DefaultFileForDefaultClientPreloadingTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/DefaultFileForDefaultClientPreloadingTest.java index fa1af0e10f7c3..87c1f523303ae 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/DefaultFileForDefaultClientPreloadingTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/DefaultFileForDefaultClientPreloadingTest.java @@ -5,7 +5,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MissingFilePreloadTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MissingFilePreloadTest.java index 027c28f9ffa07..3bcc40a11feae 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MissingFilePreloadTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MissingFilePreloadTest.java @@ -4,7 +4,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingTest.java index 951945a866cd4..5124edfe61bcb 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingTest.java @@ -5,7 +5,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithFlushAllTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithFlushAllTest.java index f9e3277d59c38..cb50a71dbe7df 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithFlushAllTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithFlushAllTest.java @@ -4,7 +4,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithOnlyIfEmptyTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithOnlyIfEmptyTest.java index 4994e82603c45..313a6d6b087c7 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithOnlyIfEmptyTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultiClientImportPreloadingWithOnlyIfEmptyTest.java @@ -4,7 +4,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultipleFilesForDefaultClientImportPreloadingTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultipleFilesForDefaultClientImportPreloadingTest.java index 0cb0388fafc3b..15e6247fe1474 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultipleFilesForDefaultClientImportPreloadingTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/MultipleFilesForDefaultClientImportPreloadingTest.java @@ -5,7 +5,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/NonDefaultFileForDefaultClientImportPreloadingTest.java b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/NonDefaultFileForDefaultClientImportPreloadingTest.java index 50e92df940138..1deebc7ca644c 100644 --- a/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/NonDefaultFileForDefaultClientImportPreloadingTest.java +++ b/extensions/redis-client/deployment/src/test/java/io/quarkus/redis/client/deployment/preloading/NonDefaultFileForDefaultClientImportPreloadingTest.java @@ -5,7 +5,7 @@ import java.io.File; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java b/extensions/redis-client/runtime/src/etc/RedisCommandGenerator.java old mode 100755 new mode 100644 diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/client/RedisClientName.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/client/RedisClientName.java index c6fb47e7a2ce4..45d8f0bcc41b8 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/client/RedisClientName.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/client/RedisClientName.java @@ -7,8 +7,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Marker annotation to select the Redis client. diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/RedisClientRecorder.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/RedisClientRecorder.java index fcb1abfbc654c..a649952c0f322 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/RedisClientRecorder.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/RedisClientRecorder.java @@ -10,8 +10,8 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import io.quarkus.redis.client.RedisClient; import io.quarkus.redis.client.reactive.ReactiveRedisClient; diff --git a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/health/RedisHealthCheck.java b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/health/RedisHealthCheck.java index 5a64eb1d2ffb6..2a986c6aa8a6a 100644 --- a/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/health/RedisHealthCheck.java +++ b/extensions/redis-client/runtime/src/main/java/io/quarkus/redis/runtime/client/health/RedisHealthCheck.java @@ -6,10 +6,10 @@ import java.util.HashMap; import java.util.Map; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.Bean; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.Bean; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientConfig.java b/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientConfig.java index 881a3fd2cef2d..e9d1bf22249fe 100644 --- a/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientConfig.java +++ b/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientConfig.java @@ -64,7 +64,7 @@ public class RestClientConfig { /** * The CDI scope to use for injection. This property can contain either a fully qualified class name of a CDI scope - * annotation (such as "javax.enterprise.context.ApplicationScoped") or its simple name (such as + * annotation (such as "jakarta.enterprise.context.ApplicationScoped") or its simple name (such as * "ApplicationScoped"). */ @ConfigItem diff --git a/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientsConfig.java b/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientsConfig.java index cd400ada1b8cf..59e7646849ffd 100644 --- a/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientsConfig.java +++ b/extensions/resteasy-classic/rest-client-config/runtime/src/main/java/io/quarkus/restclient/config/RestClientsConfig.java @@ -4,7 +4,7 @@ import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.inject.CreationException; +import jakarta.enterprise.inject.CreationException; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; @@ -197,7 +197,8 @@ public class RestClientsConfig { /** * The CDI scope to use for injections of REST client instances. Value can be either a fully qualified class name of a CDI - * scope annotation (such as "javax.enterprise.context.ApplicationScoped") or its simple name (such as"ApplicationScoped"). + * scope annotation (such as "jakarta.enterprise.context.ApplicationScoped") or its simple name (such + * as"ApplicationScoped"). * * Default scope for the rest-client extension is "Dependent" (which is the spec-compliant behavior). * diff --git a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ClientResource.java b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ClientResource.java index f107c8d39c2ce..b9271f33159c3 100644 --- a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ClientResource.java +++ b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ClientResource.java @@ -4,9 +4,9 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/HelloResource.java b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/HelloResource.java index 9cf541b844927..d114386918989 100644 --- a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/HelloResource.java +++ b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/HelloResource.java @@ -3,9 +3,9 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/RestInterface.java b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/RestInterface.java index 7a367ebe3f6ca..263aadaab6349 100644 --- a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/RestInterface.java +++ b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/RestInterface.java @@ -1,7 +1,7 @@ package io.quarkus.restclient.jackson.deployment; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java index 8c0ba48a63e7f..950ecc5c60c96 100644 --- a/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java +++ b/extensions/resteasy-classic/rest-client-jackson/deployment/src/test/java/io/quarkus/restclient/jackson/deployment/ZonedDateTimeObjectMapperCustomizer.java @@ -5,7 +5,7 @@ import java.time.ZonedDateTime; import java.time.format.DateTimeFormatterBuilder; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml b/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml index c8eeb1847d006..9208f6581a8b0 100644 --- a/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml @@ -40,8 +40,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/Book.java b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/Book.java index ac32ad10ed93c..9fb22cd55b296 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/Book.java +++ b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/Book.java @@ -1,6 +1,6 @@ package io.quarkus.restclient.jaxb.deployment; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Book { diff --git a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/ClientResource.java b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/ClientResource.java index 02f20ddb1df7f..7bb568000fc6b 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/ClientResource.java +++ b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/ClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.restclient.jaxb.deployment; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/HelloResource.java b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/HelloResource.java index cd54bc7b65a66..27eb4791a64fb 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/HelloResource.java +++ b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/HelloResource.java @@ -1,9 +1,9 @@ package io.quarkus.restclient.jaxb.deployment; -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; @Produces(MediaType.APPLICATION_XML) @Path("/hello") diff --git a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/RestInterface.java b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/RestInterface.java index f985b39eebe5e..c388efc70648c 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/RestInterface.java +++ b/extensions/resteasy-classic/rest-client-jaxb/deployment/src/test/java/io/quarkus/restclient/jaxb/deployment/RestInterface.java @@ -1,9 +1,9 @@ package io.quarkus.restclient.jaxb.deployment; -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; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml b/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml index 73fb21cdfd546..0cceee986a1aa 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml @@ -32,12 +32,12 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ClientResource.java b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ClientResource.java index 1158b89e0c5f6..6c8c7e99a720a 100644 --- a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ClientResource.java +++ b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ClientResource.java @@ -4,9 +4,9 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/HelloResource.java b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/HelloResource.java index af8a4781a7b8c..f88033da9222b 100644 --- a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/HelloResource.java +++ b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/HelloResource.java @@ -2,10 +2,10 @@ import java.time.ZonedDateTime; -import javax.inject.Inject; -import javax.json.bind.Jsonb; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.json.bind.Jsonb; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello") public class HelloResource { diff --git a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/RestInterface.java b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/RestInterface.java index a20c3fab7d045..ed1abe12fa987 100644 --- a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/RestInterface.java +++ b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/RestInterface.java @@ -1,7 +1,7 @@ package io.quarkus.restclient.jsonb.deployment; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ZonedDateTimeJsonbConfigCustomizer.java b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ZonedDateTimeJsonbConfigCustomizer.java index 12bcd9c99ec52..ecbe7b992b65b 100644 --- a/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ZonedDateTimeJsonbConfigCustomizer.java +++ b/extensions/resteasy-classic/rest-client-jsonb/deployment/src/test/java/io/quarkus/restclient/jsonb/deployment/ZonedDateTimeJsonbConfigCustomizer.java @@ -4,11 +4,11 @@ import java.time.ZoneId; import java.time.ZonedDateTime; -import javax.inject.Singleton; -import javax.json.bind.JsonbConfig; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.stream.JsonParser; +import jakarta.inject.Singleton; +import jakarta.json.bind.JsonbConfig; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.stream.JsonParser; import io.quarkus.jsonb.JsonbConfigCustomizer; diff --git a/extensions/resteasy-classic/rest-client-jsonb/runtime/pom.xml b/extensions/resteasy-classic/rest-client-jsonb/runtime/pom.xml index 200bd4df61062..a8d63905c7729 100644 --- a/extensions/resteasy-classic/rest-client-jsonb/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client-jsonb/runtime/pom.xml @@ -26,7 +26,6 @@ org.jboss.resteasy resteasy-json-binding-provider - org.glassfish jakarta.json diff --git a/extensions/resteasy-classic/rest-client-mutiny/deployment/src/test/java/io/quarkus/restclient/mutiny/deployment/MutinyRestClientTest.java b/extensions/resteasy-classic/rest-client-mutiny/deployment/src/test/java/io/quarkus/restclient/mutiny/deployment/MutinyRestClientTest.java index 97870bc3dda55..1454b19ea33e1 100644 --- a/extensions/resteasy-classic/rest-client-mutiny/deployment/src/test/java/io/quarkus/restclient/mutiny/deployment/MutinyRestClientTest.java +++ b/extensions/resteasy-classic/rest-client-mutiny/deployment/src/test/java/io/quarkus/restclient/mutiny/deployment/MutinyRestClientTest.java @@ -5,8 +5,8 @@ import java.net.URL; import java.util.concurrent.ExecutionException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java b/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java index 42fc7d921fc62..06e7288aa1898 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java @@ -13,12 +13,12 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.spi.InterceptionType; -import javax.ws.rs.Path; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseFilter; -import javax.ws.rs.ext.Providers; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.ext.Providers; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; @@ -117,13 +117,13 @@ class RestClientProcessor { void setupProviders(BuildProducer resources, BuildProducer proxyDefinition) { - proxyDefinition.produce(new NativeImageProxyDefinitionBuildItem("javax.ws.rs.ext.Providers")); + proxyDefinition.produce(new NativeImageProxyDefinitionBuildItem("jakarta.ws.rs.ext.Providers")); resources.produce(new NativeImageResourceBuildItem(PROVIDERS_SERVICE_FILE)); } @BuildStep void setupClientBuilder(BuildProducer resources) { - resources.produce(new NativeImageResourceBuildItem("META-INF/services/javax.ws.rs.client.ClientBuilder")); + resources.produce(new NativeImageResourceBuildItem("META-INF/services/jakarta.ws.rs.client.ClientBuilder")); } @BuildStep @@ -164,7 +164,7 @@ void setup(BuildProducer feature, ProxyBuilderImpl.class.getName(), ClientRequestFilter[].class.getName(), ClientResponseFilter[].class.getName(), - javax.ws.rs.ext.ReaderInterceptor[].class.getName())); + jakarta.ws.rs.ext.ReaderInterceptor[].class.getName())); reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, ResteasyClientBuilder.class.getName(), NoopHostnameVerifier.class.getName())); diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClient.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClient.java index 48e68fdf3ad9e..d643bffe2a3c1 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClient.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClient.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithConfigKey.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithConfigKey.java index 5f970adfc2225..734adbf26e184 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithConfigKey.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithConfigKey.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithoutAnnotation.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithoutAnnotation.java index f27d86054b4f6..bdf5f27d43998 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithoutAnnotation.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoClientWithoutAnnotation.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; @Path("/echo") public interface EchoClientWithoutAnnotation { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoResource.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoResource.java index f67485e7606fe..e3b941d1d6961 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoResource.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/EchoResource.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; @Path("/echo") public class EchoResource { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/GlobalConfigurationTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/GlobalConfigurationTest.java index 6011647928af1..44578ef9538e7 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/GlobalConfigurationTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/GlobalConfigurationTest.java @@ -5,10 +5,10 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MPRestClientsTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MPRestClientsTest.java index ca19c8d2163b5..fd3dc57f49cbb 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MPRestClientsTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MPRestClientsTest.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MyResponseFilter.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MyResponseFilter.java index d465c01d9f783..8a775d826cebb 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MyResponseFilter.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/MyResponseFilter.java @@ -1,8 +1,8 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; public class MyResponseFilter implements ClientResponseFilter { @Override diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusConfigurationTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusConfigurationTest.java index 8295269d7a971..8927496bdc37a 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusConfigurationTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusConfigurationTest.java @@ -4,10 +4,10 @@ import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusRestClientsTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusRestClientsTest.java index 2feece9c9dc3a..676e6d95ed01b 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusRestClientsTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/QuarkusRestClientsTest.java @@ -1,6 +1,6 @@ package io.quarkus.restclient.configuration; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/RestClientOverrideRuntimeConfigTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/RestClientOverrideRuntimeConfigTest.java index 24f9e150914c5..9d6672277432e 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/RestClientOverrideRuntimeConfigTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/RestClientOverrideRuntimeConfigTest.java @@ -7,7 +7,7 @@ import java.util.Optional; import java.util.stream.StreamSupport; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/ShortNameEchoClient.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/ShortNameEchoClient.java index f08b21ec712ec..a3fca41e87c68 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/ShortNameEchoClient.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/ShortNameEchoClient.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/UnknownConfigTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/UnknownConfigTest.java index c9508191bb34c..430b7e713a5ff 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/UnknownConfigTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/UnknownConfigTest.java @@ -7,7 +7,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/VaultScenarioRestClientConfigTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/VaultScenarioRestClientConfigTest.java index 52508979e6560..5a4e7ace7831b 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/VaultScenarioRestClientConfigTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/configuration/VaultScenarioRestClientConfigTest.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.Set; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceClient.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceClient.java index 5130947b02150..1fb6866b26983 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceClient.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceClient.java @@ -1,6 +1,6 @@ package io.quarkus.restclient.exception; -import javax.ws.rs.GET; +import jakarta.ws.rs.GET; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceRedirectEndpoint.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceRedirectEndpoint.java index 9055fe3129356..8bb8f5fe2efea 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceRedirectEndpoint.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceRedirectEndpoint.java @@ -2,10 +2,10 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.RedirectionException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.RedirectionException; +import jakarta.ws.rs.core.Response; @Path("/downstream") public class DownstreamServiceRedirectEndpoint { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceUnavailableEndpoint.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceUnavailableEndpoint.java index e0f532172bf6d..40bafe489a61d 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceUnavailableEndpoint.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/DownstreamServiceUnavailableEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.restclient.exception; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; @Path("/downstream") public class DownstreamServiceUnavailableEndpoint { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/FrontendService.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/FrontendService.java index 2b67e730e55db..6c91fcda20781 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/FrontendService.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/FrontendService.java @@ -1,9 +1,9 @@ package io.quarkus.restclient.exception; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionOriginalBehaviorTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionOriginalBehaviorTest.java index 771424be233bd..50e17bb237089 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionOriginalBehaviorTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionOriginalBehaviorTest.java @@ -7,8 +7,8 @@ import java.net.URL; import java.util.Properties; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionTest.java index 440be6aa8f901..91ba31acf77d3 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/exception/RestClientExceptionTest.java @@ -5,8 +5,8 @@ import java.net.URL; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/AsyncRestClientFallbackTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/AsyncRestClientFallbackTest.java index f5b84e4b53a40..52a8821b935e8 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/AsyncRestClientFallbackTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/AsyncRestClientFallbackTest.java @@ -7,9 +7,9 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.ExecutionException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.ExecutionContext; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/RestClientFallbackTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/RestClientFallbackTest.java index c5deda240356d..bad12de7a04d3 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/RestClientFallbackTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/ft/RestClientFallbackTest.java @@ -4,9 +4,9 @@ import java.net.URL; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.faulttolerance.ExecutionContext; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/interceptor/RestClientInterceptorTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/interceptor/RestClientInterceptorTest.java index 527b26229c2cf..504dcb0f62807 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/interceptor/RestClientInterceptorTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/interceptor/RestClientInterceptorTest.java @@ -10,14 +10,14 @@ import java.lang.annotation.Target; import java.net.URL; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoClient.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoClient.java index 37ace0002b57f..d4a68c43e65ef 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoClient.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoClient.java @@ -1,11 +1,11 @@ package io.quarkus.restclient.registerclientheaders; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoResource.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoResource.java index ec7aa4476789a..4998eaf6e7f70 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoResource.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/EchoResource.java @@ -1,12 +1,12 @@ package io.quarkus.restclient.registerclientheaders; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/MyHeadersFactory.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/MyHeadersFactory.java index 08fce91855ae6..ea18b17495e97 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/MyHeadersFactory.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerclientheaders/MyHeadersFactory.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoClient.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoClient.java index 9fa3bc8921a6f..730ff17034c57 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoClient.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoClient.java @@ -2,12 +2,12 @@ import java.util.concurrent.CompletionStage; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoResource.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoResource.java index 3ea11e1563826..7b810558f0cc4 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoResource.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/EchoResource.java @@ -3,13 +3,13 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.core.ResteasyContext; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MethodsCollector.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MethodsCollector.java index f56d1a1b5fe90..1dfacfbce8779 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MethodsCollector.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MethodsCollector.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class MethodsCollector { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyFilter.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyFilter.java index 37d086b170b50..2d3248d7ca965 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyFilter.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.inject.Inject; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; import org.jboss.resteasy.core.ResteasyContext; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyRequestBean.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyRequestBean.java index 2f7a66cc42898..2406bda4859c2 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyRequestBean.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/MyRequestBean.java @@ -1,6 +1,6 @@ package io.quarkus.restclient.registerprovider; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class MyRequestBean { diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/ProviderClientRegistrationTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/ProviderClientRegistrationTest.java index fa65edd513e12..9e972de2d593d 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/ProviderClientRegistrationTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/ProviderClientRegistrationTest.java @@ -4,20 +4,20 @@ import java.net.InetSocketAddress; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.specimpl.ResteasyUriInfo; import org.junit.jupiter.api.AfterAll; diff --git a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/RegisterProviderTest.java b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/RegisterProviderTest.java index 3e00dbd3da8e1..8bdf7b1fd1131 100644 --- a/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/RegisterProviderTest.java +++ b/extensions/resteasy-classic/rest-client/deployment/src/test/java/io/quarkus/restclient/registerprovider/RegisterProviderTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.ExecutionException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/rest-client/runtime/pom.xml b/extensions/resteasy-classic/rest-client/runtime/pom.xml index 5ce4a733fe953..2fbf536881bc5 100644 --- a/extensions/resteasy-classic/rest-client/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client/runtime/pom.xml @@ -35,8 +35,8 @@ quarkus-rest-client-config - org.jboss.resteasy - resteasy-client-microprofile + org.jboss.resteasy.microprofile + microprofile-rest-client org.jboss.spec.javax.interceptor @@ -62,6 +62,10 @@ jakarta.interceptor jakarta.interceptor-api + + jakarta.ws.rs + jakarta.ws.rs-api + org.apache.httpcomponents httpasyncclient diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathFeatureHandler.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathFeatureHandler.java index e9df28a93dbee..f2ff32537b8a4 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathFeatureHandler.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathFeatureHandler.java @@ -3,12 +3,12 @@ import java.lang.reflect.Method; import java.util.regex.Pattern; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.Path; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; /** * feature that set's the URLConfig diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathTemplateInjectionFilter.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathTemplateInjectionFilter.java index 9c98c2a5ca08e..d3881117141af 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathTemplateInjectionFilter.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/PathTemplateInjectionFilter.java @@ -1,8 +1,8 @@ package io.quarkus.restclient.runtime; -import javax.annotation.Priority; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; @Priority(Integer.MIN_VALUE) public class PathTemplateInjectionFilter implements ClientRequestFilter { diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java index d96ca2680894c..f8cbe8ee6bcb5 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java @@ -23,7 +23,9 @@ import java.security.NoSuchAlgorithmException; import java.security.PrivilegedAction; import java.security.SecureRandom; +import java.util.ArrayList; import java.util.Arrays; +import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -31,22 +33,22 @@ import java.util.Optional; import java.util.Set; import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; -import javax.ws.rs.BeanParam; -import javax.ws.rs.HttpMethod; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ParamConverterProvider; + +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; @@ -58,11 +60,14 @@ import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.logging.Logger; +import org.jboss.resteasy.client.jaxrs.ClientHttpEngine; import org.jboss.resteasy.client.jaxrs.ResteasyClient; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.jboss.resteasy.client.jaxrs.engines.PassthroughTrustManager; import org.jboss.resteasy.client.jaxrs.engines.URLConnectionClientEngineBuilder; import org.jboss.resteasy.client.jaxrs.internal.LocalResteasyProviderFactory; +import org.jboss.resteasy.concurrent.ContextualExecutorService; +import org.jboss.resteasy.concurrent.ContextualExecutors; import org.jboss.resteasy.microprofile.client.ConfigurationWrapper; import org.jboss.resteasy.microprofile.client.DefaultMediaTypeFilter; import org.jboss.resteasy.microprofile.client.DefaultResponseExceptionMapper; @@ -72,6 +77,7 @@ import org.jboss.resteasy.microprofile.client.RestClientListeners; import org.jboss.resteasy.microprofile.client.RestClientProxy; import org.jboss.resteasy.microprofile.client.async.AsyncInterceptorRxInvokerProvider; +import org.jboss.resteasy.microprofile.client.async.AsyncInvocationInterceptorThreadContext; import org.jboss.resteasy.microprofile.client.header.ClientHeaderProviders; import org.jboss.resteasy.microprofile.client.header.ClientHeadersRequestFilter; import org.jboss.resteasy.microprofile.client.impl.MpClient; @@ -87,11 +93,8 @@ import io.quarkus.runtime.graal.DisabledSSLContext; import io.quarkus.runtime.ssl.SslContextConfiguration; -/** - * This is mostly a copy from {@link org.jboss.resteasy.microprofile.client.RestClientBuilderImpl}. It is required to - * remove the reference to org.jboss.resteasy.cdi.CdiInjectorFactory so we don't require the RESTEasy CDI dependency. - */ public class QuarkusRestClientBuilder implements RestClientBuilder { + private static final String RESTEASY_PROPERTY_PREFIX = "resteasy."; private static final String DEFAULT_MAPPER_PROP = "microprofile.rest.client.disable.default.mapper"; @@ -225,13 +228,12 @@ public RestClientBuilder executorService(ExecutorService executor) { if (executor == null) { throw new IllegalArgumentException("ExecutorService must not be null"); } - executorService = executor; + executorService = ContextualExecutors.wrap(executor); return this; } - @SuppressWarnings("unchecked") - @Override - public T build(Class aClass) throws IllegalStateException, RestClientDefinitionException { + public T build(Class aClass, ClientHttpEngine httpEngine) + throws IllegalStateException, RestClientDefinitionException { RestClientListeners.get().forEach(listener -> listener.onNewClient(aClass, this)); @@ -288,10 +290,9 @@ public T build(Class aClass) throws IllegalStateException, RestClientDefi if (this.executorService != null) { resteasyClientBuilder.executorService(this.executorService); } else { - this.executorService = Executors.newCachedThreadPool(); - resteasyClientBuilder.executorService(executorService, true); + this.executorService = ContextualExecutors.threadPool(); + resteasyClientBuilder.executorService(executorService, !executorService.isManaged()); } - resteasyClientBuilder.register(DEFAULT_MEDIA_TYPE_FILTER); resteasyClientBuilder.register(METHOD_INJECTION_FILTER); resteasyClientBuilder.register(HEADERS_REQUEST_FILTER); @@ -313,12 +314,25 @@ public T build(Class aClass) throws IllegalStateException, RestClientDefi resteasyClientBuilder.connectTimeout(connectTimeout, connectTimeoutUnit); } - if (useURLConnection()) { - resteasyClientBuilder - .httpEngine(new URLConnectionClientEngineBuilder().resteasyClientBuilder(resteasyClientBuilder).build()); - resteasyClientBuilder.sslContext(null); - resteasyClientBuilder.trustStore(null); - resteasyClientBuilder.keyStore(null, ""); + if (httpEngine != null) { + resteasyClientBuilder.httpEngine(httpEngine); + } else { + boolean registerEngine = false; + for (Object p : getBuilderDelegate().getProviderFactory().getProviderInstances()) { + if (p instanceof ClientHttpEngine) { + resteasyClientBuilder.httpEngine((ClientHttpEngine) p); + registerEngine = true; + break; + } + } + if (!registerEngine && useURLConnection()) { + resteasyClientBuilder + .httpEngine(new URLConnectionClientEngineBuilder().resteasyClientBuilder(resteasyClientBuilder) + .build()); + resteasyClientBuilder.sslContext(null); + resteasyClientBuilder.trustStore(null); + resteasyClientBuilder.keyStore(null, ""); + } } configureTrustAll(resteasyClientBuilder); @@ -328,6 +342,10 @@ public T build(Class aClass) throws IllegalStateException, RestClientDefi resteasyClientBuilder.sslContext(new DisabledSSLContext()); } + if (!invocationInterceptorFactories.isEmpty()) { + resteasyClientBuilder.register(new AsyncInvocationInterceptorThreadContext(invocationInterceptorFactories)); + } + client = resteasyClientBuilder .build(); ((MpClient) client).setQueryParamStyle(queryParamStyle); @@ -343,9 +361,10 @@ public T build(Class aClass) throws IllegalStateException, RestClientDefi interfaces[1] = RestClientProxy.class; interfaces[2] = Closeable.class; + final BeanManager beanManager = getBeanManager(); T proxy = (T) Proxy.newProxyInstance(classLoader, interfaces, - new ProxyInvocationHandler(aClass, actualClient, getLocalProviderInstances(), client, getBeanManager())); - ClientHeaderProviders.registerForClass(aClass, proxy, getBeanManager()); + new ProxyInvocationHandler(aClass, actualClient, getLocalProviderInstances(), client, beanManager)); + ClientHeaderProviders.registerForClass(aClass, proxy, beanManager); return proxy; } @@ -367,8 +386,30 @@ private void configureTrustAll(ResteasyClientBuilder clientBuilder) { } } + @SuppressWarnings("unchecked") + @Override + public T build(Class aClass) throws IllegalStateException, RestClientDefinitionException { + return build(aClass, null); + } + + /** + * Get the users list of proxy hosts. Translate list to regex format + * + * @return list of proxy hosts + */ + private List getProxyHostsAsRegex() { + String noProxyHostsSysProps = getSystemProperty("http.nonProxyHosts", null); + if (noProxyHostsSysProps == null) { + noProxyHostsSysProps = "localhost|127.*|[::1]"; + } else { + String src2 = noProxyHostsSysProps.replace(".", "\\."); + noProxyHostsSysProps = src2.replace("*", "[A-Za-z0-9-]*"); + } + return Arrays.asList(noProxyHostsSysProps.split("\\|")); + } + /** - * Determines whether to default to using the URLConnection instead of the Apache HTTP Client. + * Determines whether or not to default to using the URLConnection instead of the Apache HTTP Client. * If the {@code org.jboss.resteasy.microprofile.defaultToURLConnectionHttpClient} system property is {@code true}, * then this method returns {@code true}. In all other cases it returns {@code false} */ @@ -376,7 +417,7 @@ private boolean useURLConnection() { if (useURLConnection == null) { String defaultToURLConnection = getSystemProperty( "org.jboss.resteasy.microprofile.defaultToURLConnectionHttpClient", "false"); - useURLConnection = defaultToURLConnection.toLowerCase().equals("true"); + useURLConnection = defaultToURLConnection.equalsIgnoreCase("true"); } return useURLConnection; } @@ -389,7 +430,7 @@ private Optional selectHttpProxy() { .findFirst(); } - private void checkQueryParamStyleProperty(Class aClass) { + private void checkQueryParamStyleProperty(Class aClass) { // User's programmatic setting takes precedence over // microprofile-config.properties. if (queryParamStyle == null) { @@ -402,7 +443,7 @@ private void checkQueryParamStyleProperty(Class aClass) { prop.get().trim().toUpperCase())); } else { - RegisterRestClient registerRestClient = (RegisterRestClient) aClass.getAnnotation(RegisterRestClient.class); + RegisterRestClient registerRestClient = aClass.getAnnotation(RegisterRestClient.class); if (registerRestClient != null && registerRestClient.configKey() != null && !registerRestClient.configKey().isEmpty()) { @@ -423,7 +464,7 @@ private void checkQueryParamStyleProperty(Class aClass) { } } - private void checkFollowRedirectProperty(Class aClass) { + private void checkFollowRedirectProperty(Class aClass) { // User's programmatic setting takes precedence over // microprofile-config.properties. if (!followRedirect) { @@ -436,7 +477,7 @@ private void checkFollowRedirectProperty(Class aClass) { followRedirects(prop.get()); } } else { - RegisterRestClient registerRestClient = (RegisterRestClient) aClass.getAnnotation(RegisterRestClient.class); + RegisterRestClient registerRestClient = aClass.getAnnotation(RegisterRestClient.class); if (registerRestClient != null && registerRestClient.configKey() != null && !registerRestClient.configKey().isEmpty()) { @@ -552,6 +593,8 @@ private void verifyInterface(Class typeDef) { .uri(classPathAnno.value() + "/" + methodPathAnno.value()); } else if (classPathAnno != null) { template = (ResteasyUriBuilder) new ResteasyUriBuilderImpl().uri(classPathAnno.value()); + } else { + template = null; } if (template == null) { @@ -570,8 +613,8 @@ private void verifyInterface(Class typeDef) { } else if (p.isAnnotationPresent(org.jboss.resteasy.annotations.jaxrs.PathParam.class)) { org.jboss.resteasy.annotations.jaxrs.PathParam rePathParam = p .getAnnotation(org.jboss.resteasy.annotations.jaxrs.PathParam.class); - String name = rePathParam.value() == null || rePathParam.value().length() == 0 ? p.getName() - : rePathParam.value(); + String name = rePathParam.value() == null || rePathParam.value() + .length() == 0 ? p.getName() : rePathParam.value(); paramMap.put(name, "foobar"); } else if (p.isAnnotationPresent(BeanParam.class)) { verifyBeanPathParam(p.getType(), paramMap); @@ -672,7 +715,7 @@ public RestClientBuilder register(Object o) { } else if (o instanceof ParamConverterProvider) { register(o, Priorities.USER); } else if (o instanceof AsyncInvocationInterceptorFactory) { - builderDelegate.asyncInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); + invocationInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); } else { builderDelegate.register(o); } @@ -704,7 +747,7 @@ public RestClientBuilder register(Object o, int i) { builderDelegate.register(converter, i); } else if (o instanceof AsyncInvocationInterceptorFactory) { - builderDelegate.asyncInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); + invocationInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); } else { builderDelegate.register(o, i); } @@ -790,7 +833,7 @@ private String getSystemProperty(String key, String def) { private Config config; - private ExecutorService executorService; + private ContextualExecutorService executorService; private URI baseURI; @@ -812,5 +855,6 @@ private String getSystemProperty(String key, String def) { private boolean followRedirect; private QueryParamStyle queryParamStyle = null; - private Set localProviderInstances = new HashSet<>(); + private final Set localProviderInstances = new HashSet<>(); + private final Collection invocationInterceptorFactories = new ArrayList<>(); } diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/RestClientRecorder.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/RestClientRecorder.java index da136486a8cad..5340cbed4a158 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/RestClientRecorder.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/RestClientRecorder.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; import org.eclipse.microprofile.rest.client.spi.RestClientBuilderResolver; import org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl; diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/graal/ClientBuilderReplacement.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/graal/ClientBuilderReplacement.java index 51e87f7a61055..4ad2856faa840 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/graal/ClientBuilderReplacement.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/graal/ClientBuilderReplacement.java @@ -1,6 +1,6 @@ package io.quarkus.restclient.runtime.graal; -import javax.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientBuilder; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; import org.jboss.resteasy.client.jaxrs.internal.LocalResteasyProviderFactory; diff --git a/extensions/resteasy-classic/rest-client/runtime/src/test/java/io/quarkus/restclient/runtime/RestClientBaseTest.java b/extensions/resteasy-classic/rest-client/runtime/src/test/java/io/quarkus/restclient/runtime/RestClientBaseTest.java index de21cff73bb86..710c99fdb60fe 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/test/java/io/quarkus/restclient/runtime/RestClientBaseTest.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/test/java/io/quarkus/restclient/runtime/RestClientBaseTest.java @@ -15,9 +15,10 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; + +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.spi.ConfigProviderResolver; diff --git a/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java b/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java index 32575f5823f61..d8b1e60e26edc 100644 --- a/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java +++ b/extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java @@ -12,13 +12,13 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Providers; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; @@ -30,9 +30,9 @@ import org.jboss.jandex.Type; import org.jboss.logging.Logger; import org.jboss.resteasy.core.MediaTypeMap; -import org.jboss.resteasy.microprofile.config.FilterConfigSourceImpl; -import org.jboss.resteasy.microprofile.config.ServletConfigSourceImpl; -import org.jboss.resteasy.microprofile.config.ServletContextConfigSourceImpl; +import org.jboss.resteasy.microprofile.config.FilterConfigSource; +import org.jboss.resteasy.microprofile.config.ServletConfigSource; +import org.jboss.resteasy.microprofile.config.ServletContextConfigSource; import org.jboss.resteasy.plugins.interceptors.AcceptEncodingGZIPFilter; import org.jboss.resteasy.plugins.interceptors.GZIPDecodingInterceptor; import org.jboss.resteasy.plugins.interceptors.GZIPEncodingInterceptor; @@ -92,7 +92,7 @@ public class ResteasyCommonProcessor { private static final DotName QUARKUS_JSONB_CONTEXT_RESOLVER = DotName .createSimple("io.quarkus.resteasy.common.runtime.jsonb.QuarkusJsonbContextResolver"); - private static final DotName JSONB = DotName.createSimple("javax.json.bind.Jsonb"); + private static final DotName JSONB = DotName.createSimple("jakarta.json.bind.Jsonb"); private static final DotName QUARKUS_JSONB_SERIALIZER = DotName .createSimple("io.quarkus.resteasy.common.runtime.jsonb.QuarkusJsonbSerializer"); @@ -140,9 +140,9 @@ void addStaticInitConfigSourceProvider( staticInitConfigBuilder.produce(new StaticInitConfigBuilderBuildItem(ResteasyConfigBuilder.class)); reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, - ServletConfigSourceImpl.class, - ServletContextConfigSourceImpl.class, - FilterConfigSourceImpl.class)); + ServletConfigSource.class, + ServletContextConfigSource.class, + FilterConfigSource.class)); } @BuildStep diff --git a/extensions/resteasy-classic/resteasy-common/runtime/pom.xml b/extensions/resteasy-classic/resteasy-common/runtime/pom.xml index 804ca11a9af0a..3b5fcc8cfd91c 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-common/runtime/pom.xml @@ -41,8 +41,8 @@ quarkus-arc - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation com.fasterxml.jackson.core @@ -77,6 +77,14 @@ jakarta.json.bind-api true + + jakarta.ws.rs + jakarta.ws.rs-api + + + org.jboss.resteasy + resteasy-cdi + org.jboss.resteasy resteasy-json-binding-provider @@ -89,6 +97,10 @@ + + org.jboss.resteasy.microprofile + microprofile-config + @@ -101,7 +113,8 @@ javax.ws.rs:javax.ws.rs-api javax.activation:javax.activation-api javax.activation:activation - jakarta.ws.rs:jakarta.ws.rs-api + org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_3.0_spec + org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec org.jboss.resteasy:resteasy-context-propagation diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusConstructorInjector.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusConstructorInjector.java index df4ac2bf252a9..9728268cb30d6 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusConstructorInjector.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusConstructorInjector.java @@ -3,7 +3,7 @@ import java.lang.reflect.Constructor; import java.util.function.Supplier; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.WebApplicationException; import org.jboss.resteasy.spi.ApplicationException; import org.jboss.resteasy.spi.ConstructorInjector; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusInjectorFactory.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusInjectorFactory.java index 695c001f11b96..67c923e299653 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusInjectorFactory.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/QuarkusInjectorFactory.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; import java.util.function.Function; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.WebApplicationException; import org.jboss.logging.Logger; import org.jboss.resteasy.core.InjectorFactoryImpl; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java index 26f214eb2af0c..cf9674340af16 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteDocumentProvider.java @@ -6,10 +6,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.spi.ResteasyConfiguration; import org.w3c.dom.Document; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java index 208852004c11b..d66de43f6a436 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/DeleteIIOImageProvider.java @@ -9,9 +9,10 @@ import java.util.concurrent.CompletionStage; import javax.imageio.IIOImage; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; + +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.spi.AsyncOutputStream; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/ServletMissing.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/ServletMissing.java deleted file mode 100644 index 78dc0fd549dd2..0000000000000 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/ServletMissing.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.quarkus.resteasy.common.runtime.graal; - -import java.util.function.BooleanSupplier; - -/** - * Checks if servlet classes are available in the classpath and a suitable implementation. This is required because - * ConfigSource's provided by RESTEasy, need the servlet classes to function properly. If these classes are not found, - * we rewrite the sources to remove any references to the servlet classes and the internal RESTEasy sources in native - * mode. - * - * The offending RESTEasy sources are: - * {@link org.jboss.resteasy.microprofile.config.ServletConfigSource} - * {@link org.jboss.resteasy.microprofile.config.ServletContextConfigSource} - * {@link org.jboss.resteasy.microprofile.config.FilterConfigSource} - * - * The main instances sources are still part of the Config instance, but without the backing implementations, the source - * do not return any values. - * - * Ideally, this should be fixed in RESTEasy. - * - * See https://github.com/quarkusio/quarkus/issues/5492 - * See https://github.com/quarkusio/quarkus/issues/9086 - * See https://github.com/quarkusio/quarkus/issues/14876 - */ -public final class ServletMissing implements BooleanSupplier { - @Override - public boolean getAsBoolean() { - try { - Class.forName("javax.servlet.ServletConfig"); - Class.forName("javax.servlet.ServletContext"); - Class.forName("javax.servlet.FilterConfig"); - Class.forName("io.quarkus.undertow.runtime.UndertowDeploymentRecorder"); - return false; - } catch (ClassNotFoundException e) { - return true; - } - } -} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.java deleted file mode 100644 index e148e46d68700..0000000000000 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.quarkus.resteasy.common.runtime.graal; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.RecomputeFieldValue; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(className = "org.jboss.resteasy.microprofile.config.FilterConfigSource", onlyWith = { - ServletMissing.class -}) -final class Target_org_jboss_resteasy_microprofile_config_FilterConfigSource { - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) - private static Class clazz; -} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletConfigSource.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletConfigSource.java deleted file mode 100644 index abc36c27bb6a2..0000000000000 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletConfigSource.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.quarkus.resteasy.common.runtime.graal; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.RecomputeFieldValue; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(className = "org.jboss.resteasy.microprofile.config.ServletConfigSource", onlyWith = { - ServletMissing.class -}) -final class Target_org_jboss_resteasy_microprofile_config_ServletConfigSource { - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) - private static Class clazz; -} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource.java deleted file mode 100644 index 56f58739cb109..0000000000000 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.quarkus.resteasy.common.runtime.graal; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.RecomputeFieldValue; -import com.oracle.svm.core.annotate.TargetClass; - -@TargetClass(className = "org.jboss.resteasy.microprofile.config.ServletContextConfigSource", onlyWith = { - ServletMissing.class -}) -final class Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource { - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) - private static Class clazz; - -} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusJacksonSerializer.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusJacksonSerializer.java index ec4b48899850b..f4667dcea7273 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusJacksonSerializer.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusJacksonSerializer.java @@ -12,17 +12,17 @@ import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.activation.DataSource; -import javax.annotation.Priority; -import javax.ws.rs.Consumes; -import javax.ws.rs.Priorities; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.StreamingOutput; -import javax.ws.rs.ext.Provider; +import jakarta.activation.DataSource; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.StreamingOutput; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.plugins.providers.FileRange; import org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusObjectMapperContextResolver.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusObjectMapperContextResolver.java index 338831749d370..4cae4c3c70865 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusObjectMapperContextResolver.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jackson/QuarkusObjectMapperContextResolver.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.common.runtime.jackson; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbContextResolver.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbContextResolver.java index 16b9412db5853..437f2f09359e1 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbContextResolver.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbContextResolver.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.common.runtime.jsonb; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.json.bind.Jsonb; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.json.bind.Jsonb; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; @Provider @ApplicationScoped diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbSerializer.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbSerializer.java index c554e886eb59c..25a5eaff2ca7b 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbSerializer.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/jsonb/QuarkusJsonbSerializer.java @@ -12,17 +12,17 @@ import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.activation.DataSource; -import javax.annotation.Priority; -import javax.ws.rs.Consumes; -import javax.ws.rs.Priorities; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.StreamingOutput; -import javax.ws.rs.ext.Provider; +import jakarta.activation.DataSource; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.StreamingOutput; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.plugins.providers.FileRange; import org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider; diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/providers/ServerFormUrlEncodedProvider.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/providers/ServerFormUrlEncodedProvider.java index cf5d21195fd6e..00f72281b0908 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/providers/ServerFormUrlEncodedProvider.java +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/providers/ServerFormUrlEncodedProvider.java @@ -5,13 +5,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider; import org.jboss.resteasy.resteasy_jaxrs.i18n.LogMessages; diff --git a/extensions/resteasy-classic/resteasy-common/spi/src/main/java/io/quarkus/resteasy/common/spi/ResteasyDotNames.java b/extensions/resteasy-classic/resteasy-common/spi/src/main/java/io/quarkus/resteasy/common/spi/ResteasyDotNames.java index d1d367cb9d99e..8d0fdaca441cf 100644 --- a/extensions/resteasy-classic/resteasy-common/spi/src/main/java/io/quarkus/resteasy/common/spi/ResteasyDotNames.java +++ b/extensions/resteasy-classic/resteasy-common/spi/src/main/java/io/quarkus/resteasy/common/spi/ResteasyDotNames.java @@ -5,7 +5,7 @@ import java.util.Set; import java.util.function.Predicate; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.jandex.DotName; import org.jboss.jandex.FieldInfo; @@ -15,21 +15,21 @@ public final class ResteasyDotNames { - public static final DotName APPLICATION = DotName.createSimple("javax.ws.rs.core.Application"); - public static final DotName CONSUMES = DotName.createSimple("javax.ws.rs.Consumes"); - public static final DotName PRODUCES = DotName.createSimple("javax.ws.rs.Produces"); - public static final DotName PROVIDER = DotName.createSimple("javax.ws.rs.ext.Provider"); - public static final DotName GET = DotName.createSimple("javax.ws.rs.GET"); - public static final DotName HEAD = DotName.createSimple("javax.ws.rs.HEAD"); - public static final DotName DELETE = DotName.createSimple("javax.ws.rs.DELETE"); - public static final DotName OPTIONS = DotName.createSimple("javax.ws.rs.OPTIONS"); - public static final DotName PATCH = DotName.createSimple("javax.ws.rs.PATCH"); - public static final DotName POST = DotName.createSimple("javax.ws.rs.POST"); - public static final DotName PUT = DotName.createSimple("javax.ws.rs.PUT"); - public static final DotName APPLICATION_PATH = DotName.createSimple("javax.ws.rs.ApplicationPath"); - public static final DotName PATH = DotName.createSimple("javax.ws.rs.Path"); - public static final DotName DYNAMIC_FEATURE = DotName.createSimple("javax.ws.rs.container.DynamicFeature"); - public static final DotName CONTEXT = DotName.createSimple("javax.ws.rs.core.Context"); + public static final DotName APPLICATION = DotName.createSimple("jakarta.ws.rs.core.Application"); + public static final DotName CONSUMES = DotName.createSimple("jakarta.ws.rs.Consumes"); + public static final DotName PRODUCES = DotName.createSimple("jakarta.ws.rs.Produces"); + public static final DotName PROVIDER = DotName.createSimple("jakarta.ws.rs.ext.Provider"); + public static final DotName GET = DotName.createSimple("jakarta.ws.rs.GET"); + public static final DotName HEAD = DotName.createSimple("jakarta.ws.rs.HEAD"); + public static final DotName DELETE = DotName.createSimple("jakarta.ws.rs.DELETE"); + public static final DotName OPTIONS = DotName.createSimple("jakarta.ws.rs.OPTIONS"); + public static final DotName PATCH = DotName.createSimple("jakarta.ws.rs.PATCH"); + public static final DotName POST = DotName.createSimple("jakarta.ws.rs.POST"); + public static final DotName PUT = DotName.createSimple("jakarta.ws.rs.PUT"); + public static final DotName APPLICATION_PATH = DotName.createSimple("jakarta.ws.rs.ApplicationPath"); + public static final DotName PATH = DotName.createSimple("jakarta.ws.rs.Path"); + public static final DotName DYNAMIC_FEATURE = DotName.createSimple("jakarta.ws.rs.container.DynamicFeature"); + public static final DotName CONTEXT = DotName.createSimple("jakarta.ws.rs.core.Context"); public static final DotName RESTEASY_QUERY_PARAM = DotName .createSimple("org.jboss.resteasy.annotations.jaxrs.QueryParam"); public static final DotName RESTEASY_FORM_PARAM = DotName @@ -49,8 +49,8 @@ public final class ResteasyDotNames { public static final DotName CDI_INJECT = DotName .createSimple(Inject.class.getName()); public static final DotName JSON_IGNORE = DotName.createSimple("com.fasterxml.jackson.annotation.JsonIgnore"); - public static final DotName JSONB_TRANSIENT = DotName.createSimple("javax.json.bind.annotation.JsonbTransient"); - public static final DotName XML_TRANSIENT = DotName.createSimple("javax.xml.bind.annotation.XmlTransient"); + public static final DotName JSONB_TRANSIENT = DotName.createSimple("jakarta.json.bind.annotation.JsonbTransient"); + public static final DotName XML_TRANSIENT = DotName.createSimple("jakarta.xml.bind.annotation.XmlTransient"); public static final List JAXRS_METHOD_ANNOTATIONS = List.of(GET, POST, HEAD, DELETE, PUT, PATCH, OPTIONS); @@ -103,12 +103,12 @@ public boolean test(MethodInfo methodInfo) { private static final String[] PACKAGES_IGNORED_FOR_REFLECTION = { // JSON-P - "javax.json.", + "jakarta.json.", "jakarta.json.", // Jackson "com.fasterxml.jackson.databind.", // JAX-RS - "javax.ws.rs.", + "jakarta.ws.rs.", // RESTEasy "org.jboss.resteasy.", // Vert.x JSON layer diff --git a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloNoMediaTypeResource.java b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloNoMediaTypeResource.java index d82a6b1092be2..429b6a1682fe2 100644 --- a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloNoMediaTypeResource.java +++ b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloNoMediaTypeResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.jackson; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello-default") public class HelloNoMediaTypeResource { diff --git a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloResource.java b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloResource.java index 924a6ca639da2..73c354aad634b 100644 --- a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloResource.java +++ b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/HelloResource.java @@ -2,10 +2,10 @@ import java.time.ZonedDateTime; -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; @Produces(MediaType.APPLICATION_JSON) @Path("/hello") diff --git a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/JsonViewResource.java b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/JsonViewResource.java index 512cd210283d9..c4150853f0493 100644 --- a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/JsonViewResource.java +++ b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/JsonViewResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.jackson; -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; import com.fasterxml.jackson.annotation.JsonView; diff --git a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/LargeResource.java b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/LargeResource.java index 7a5849c51c618..c9f8bae22a52c 100644 --- a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/LargeResource.java +++ b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/LargeResource.java @@ -3,10 +3,10 @@ import java.util.HashMap; import java.util.Map; -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; @Produces(MediaType.APPLICATION_JSON) @Path("/large") diff --git a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/TimeCustomizer.java b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/TimeCustomizer.java index f57405f728c30..7efdb9ec1b73d 100644 --- a/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/TimeCustomizer.java +++ b/extensions/resteasy-classic/resteasy-jackson/deployment/src/test/java/io/quarkus/resteasy/jackson/TimeCustomizer.java @@ -4,7 +4,7 @@ import java.time.ZonedDateTime; import java.time.format.DateTimeFormatterBuilder; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; diff --git a/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml b/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml index 958490d823d70..25749f3804871 100644 --- a/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml @@ -44,8 +44,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/main/java/io/quarkus/resteasy/jaxb/deployment/ResteasyJaxbProcessor.java b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/main/java/io/quarkus/resteasy/jaxb/deployment/ResteasyJaxbProcessor.java index 8b3d4f1f40e25..e6d430d099d0e 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/main/java/io/quarkus/resteasy/jaxb/deployment/ResteasyJaxbProcessor.java +++ b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/main/java/io/quarkus/resteasy/jaxb/deployment/ResteasyJaxbProcessor.java @@ -41,7 +41,7 @@ void addReflectiveClasses(BuildProducer reflectiveClas if (!index.getAnnotations(annotation).isEmpty()) { addReflectiveClass(reflectiveClass, true, true, "org.jboss.resteasy.plugins.providers.jaxb.JaxbCollection"); addReflectiveClass(reflectiveClass, true, true, "org.jboss.resteasy.plugins.providers.jaxb.JaxbMap"); - addReflectiveClass(reflectiveClass, true, true, "javax.xml.bind.annotation.W3CDomHandler"); + addReflectiveClass(reflectiveClass, true, true, "jakarta.xml.bind.annotation.W3CDomHandler"); break; } } diff --git a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/Bar.java b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/Bar.java index a43c6183582b2..3bae80e9872d7 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/Bar.java +++ b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/Bar.java @@ -2,7 +2,7 @@ import java.util.Objects; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Bar { diff --git a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ConsumesXMLTestCase.java b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ConsumesXMLTestCase.java index 30830267a2453..7fbb0c7634e2d 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ConsumesXMLTestCase.java +++ b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ConsumesXMLTestCase.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.jaxb.deployment; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ProducesXMLTestCase.java b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ProducesXMLTestCase.java index 29e6a7279a6fa..edc3e25cad32e 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ProducesXMLTestCase.java +++ b/extensions/resteasy-classic/resteasy-jaxb/deployment/src/test/java/io/quarkus/resteasy/jaxb/deployment/ProducesXMLTestCase.java @@ -5,12 +5,12 @@ import java.util.Arrays; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.providers.jaxb.Wrapped; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml b/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml index 93c1b60353d00..cb7fba02c5f17 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml @@ -45,12 +45,12 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/HelloNoMediaTypeResource.java b/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/HelloNoMediaTypeResource.java index 3998b9a6fda08..f7f262b2d215f 100644 --- a/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/HelloNoMediaTypeResource.java +++ b/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/HelloNoMediaTypeResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.jsonb; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello-default") public class HelloNoMediaTypeResource { diff --git a/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/ResourceSendingJsonObjects.java b/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/ResourceSendingJsonObjects.java index 439da024276c8..671576d2c0fa7 100644 --- a/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/ResourceSendingJsonObjects.java +++ b/extensions/resteasy-classic/resteasy-jsonb/deployment/src/test/java/io/quarkus/resteasy/jsonb/ResourceSendingJsonObjects.java @@ -4,10 +4,10 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/resteasy-jsonb/runtime/pom.xml b/extensions/resteasy-classic/resteasy-jsonb/runtime/pom.xml index 21b28f1e06022..fb1ce07c8696a 100644 --- a/extensions/resteasy-classic/resteasy-jsonb/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-jsonb/runtime/pom.xml @@ -26,7 +26,6 @@ org.jboss.resteasy resteasy-json-binding-provider - org.glassfish jakarta.json diff --git a/extensions/resteasy-classic/resteasy-jsonb/runtime/src/main/java/io/quarkus/resteasy/jsonb/vertx/VertxJson.java b/extensions/resteasy-classic/resteasy-jsonb/runtime/src/main/java/io/quarkus/resteasy/jsonb/vertx/VertxJson.java index f5fd3c7822d8c..4854de603bc79 100644 --- a/extensions/resteasy-classic/resteasy-jsonb/runtime/src/main/java/io/quarkus/resteasy/jsonb/vertx/VertxJson.java +++ b/extensions/resteasy-classic/resteasy-jsonb/runtime/src/main/java/io/quarkus/resteasy/jsonb/vertx/VertxJson.java @@ -7,14 +7,14 @@ import java.util.List; import java.util.Map; -import javax.json.JsonNumber; -import javax.json.JsonValue; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; -import javax.json.stream.JsonParser; +import jakarta.json.JsonNumber; +import jakarta.json.JsonValue; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; @@ -33,7 +33,7 @@ private VertxJson() { private final static Base64.Encoder BASE64_ENCODER = Base64.getUrlEncoder().withoutPadding(); - public static void copy(JsonObject object, javax.json.JsonObject origin) { + public static void copy(JsonObject object, jakarta.json.JsonObject origin) { origin.keySet().forEach(key -> { JsonValue value = origin.get(key); JsonValue.ValueType kind = value.getValueType(); @@ -75,7 +75,7 @@ public static void copy(JsonObject object, javax.json.JsonObject origin) { }); } - public static void copy(JsonArray array, javax.json.JsonArray origin) { + public static void copy(JsonArray array, jakarta.json.JsonArray origin) { for (int i = 0; i < origin.size(); i++) { JsonValue value = origin.get(i); JsonValue.ValueType kind = value.getValueType(); diff --git a/extensions/resteasy-classic/resteasy-jsonb/runtime/src/test/java/io/quarkus/resteasy/jsonb/vertx/VertxJsonTest.java b/extensions/resteasy-classic/resteasy-jsonb/runtime/src/test/java/io/quarkus/resteasy/jsonb/vertx/VertxJsonTest.java index 47836696f81f2..6267fb112884d 100644 --- a/extensions/resteasy-classic/resteasy-jsonb/runtime/src/test/java/io/quarkus/resteasy/jsonb/vertx/VertxJsonTest.java +++ b/extensions/resteasy-classic/resteasy-jsonb/runtime/src/test/java/io/quarkus/resteasy/jsonb/vertx/VertxJsonTest.java @@ -4,9 +4,9 @@ import java.util.ArrayList; import java.util.List; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; -import javax.json.bind.JsonbConfig; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; +import jakarta.json.bind.JsonbConfig; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-classic/resteasy-links/deployment/pom.xml b/extensions/resteasy-classic/resteasy-links/deployment/pom.xml index ae01f7e53c9d3..ceb9252d73c0c 100644 --- a/extensions/resteasy-classic/resteasy-links/deployment/pom.xml +++ b/extensions/resteasy-classic/resteasy-links/deployment/pom.xml @@ -38,8 +38,8 @@ test - org.glassfish - jakarta.el + org.glassfish.expressly + expressly test diff --git a/extensions/resteasy-classic/resteasy-links/deployment/src/test/java/io/quarkus/resteasy/links/deployment/TestResource.java b/extensions/resteasy-classic/resteasy-links/deployment/src/test/java/io/quarkus/resteasy/links/deployment/TestResource.java index a2b417099ef07..a542709444122 100644 --- a/extensions/resteasy-classic/resteasy-links/deployment/src/test/java/io/quarkus/resteasy/links/deployment/TestResource.java +++ b/extensions/resteasy-classic/resteasy-links/deployment/src/test/java/io/quarkus/resteasy/links/deployment/TestResource.java @@ -5,10 +5,10 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; -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; import org.jboss.resteasy.links.LinkResource; diff --git a/extensions/resteasy-classic/resteasy-links/runtime/pom.xml b/extensions/resteasy-classic/resteasy-links/runtime/pom.xml index a373ceed2a1cc..7757eeb11a623 100644 --- a/extensions/resteasy-classic/resteasy-links/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-links/runtime/pom.xml @@ -42,8 +42,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation io.quarkus diff --git a/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/HalServerResponseFilter.java b/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/HalServerResponseFilter.java index b2711330b5da7..5f8057b86ff56 100644 --- a/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/HalServerResponseFilter.java +++ b/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/HalServerResponseFilter.java @@ -6,12 +6,12 @@ import java.util.List; import java.util.stream.Collectors; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import io.quarkus.arc.Arc; import io.quarkus.hal.HalCollectionWrapper; diff --git a/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/ResteasyHalService.java b/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/ResteasyHalService.java index 6b5161282cb2f..6da3709d42b2f 100644 --- a/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/ResteasyHalService.java +++ b/extensions/resteasy-classic/resteasy-links/runtime/src/main/java/io/quarkus/resteasy/links/runtime/hal/ResteasyHalService.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import org.jboss.resteasy.links.LinksProvider; import org.jboss.resteasy.links.RESTServiceDiscovery; diff --git a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackBody.java b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackBody.java index 4782162069835..a63c9a6fe71f3 100644 --- a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackBody.java +++ b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackBody.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.multipart; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; public class FeedbackBody { diff --git a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackResource.java b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackResource.java index dfe9fb1e3c1c9..84cd957a00615 100644 --- a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackResource.java +++ b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/FeedbackResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.multipart; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.providers.multipart.MultipartForm; diff --git a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeDto.java b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeDto.java index 997d2fdbd34af..0ec4d45edab6e 100644 --- a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeDto.java +++ b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeDto.java @@ -2,8 +2,8 @@ import java.util.Map; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.providers.multipart.PartType; diff --git a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeMultipartTest.java b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeMultipartTest.java index 4386bfc6257e4..7edd69e01ac10 100644 --- a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeMultipartTest.java +++ b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeMultipartTest.java @@ -2,7 +2,7 @@ import java.net.URISyntaxException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeResource.java b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeResource.java index ddd3df0e0379d..8a142a25d494d 100644 --- a/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeResource.java +++ b/extensions/resteasy-classic/resteasy-multipart/deployment/src/test/java/io/quarkus/resteasy/multipart/parttype/PartTypeResource.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.multipart.parttype; -import javax.transaction.Transactional; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.annotations.providers.multipart.MultipartForm; diff --git a/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml b/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml index 2a4a3bb24ef26..60fceb672b5db 100644 --- a/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml @@ -45,8 +45,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation org.jboss.logging diff --git a/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/java/io/quarkus/resteasy/multipart/runtime/MultipartInputPartConfigContainerRequestFilter.java b/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/java/io/quarkus/resteasy/multipart/runtime/MultipartInputPartConfigContainerRequestFilter.java index 783ccb4ff6db6..10af695df5f03 100644 --- a/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/java/io/quarkus/resteasy/multipart/runtime/MultipartInputPartConfigContainerRequestFilter.java +++ b/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/java/io/quarkus/resteasy/multipart/runtime/MultipartInputPartConfigContainerRequestFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.plugins.providers.multipart.InputPart; diff --git a/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers b/extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers similarity index 100% rename from extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers rename to extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiInvokerProvider.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiInvokerProvider.java index 792bfd62a7d7f..c7b0029dfce30 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiInvokerProvider.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiInvokerProvider.java @@ -2,9 +2,9 @@ import java.util.concurrent.ExecutorService; -import javax.ws.rs.client.RxInvokerProvider; -import javax.ws.rs.client.SyncInvoker; -import javax.ws.rs.client.WebTarget; +import jakarta.ws.rs.client.RxInvokerProvider; +import jakarta.ws.rs.client.SyncInvoker; +import jakarta.ws.rs.client.WebTarget; public class MultiInvokerProvider implements RxInvokerProvider { WebTarget target; @@ -27,4 +27,4 @@ public void setTarget(WebTarget target) { this.target = target; } -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvoker.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvoker.java index c0004a06da245..1fe17b15bd76d 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvoker.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvoker.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.mutiny.common.runtime; -import javax.ws.rs.client.RxInvoker; +import jakarta.ws.rs.client.RxInvoker; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.subscription.BackPressureStrategy; @@ -11,4 +11,4 @@ public interface MultiRxInvoker extends RxInvoker> { void setBackPressureStrategy(BackPressureStrategy strategy); -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvokerImpl.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvokerImpl.java index 97ecff37de2c9..3cb1cfeecbefb 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvokerImpl.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiRxInvokerImpl.java @@ -5,13 +5,13 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.function.Function; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.SyncInvoker; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.SyncInvoker; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEventSource; import org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder; import org.jboss.resteasy.plugins.providers.sse.InboundSseEventImpl; diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniInvokerProvider.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniInvokerProvider.java index e67e47d121b1d..9baec7563cf58 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniInvokerProvider.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniInvokerProvider.java @@ -2,10 +2,10 @@ import java.util.concurrent.ExecutorService; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.RxInvokerProvider; -import javax.ws.rs.client.SyncInvoker; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.RxInvokerProvider; +import jakarta.ws.rs.client.SyncInvoker; import org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder; @@ -26,4 +26,4 @@ public UniRxInvoker getRxInvoker(SyncInvoker syncInvoker, ExecutorService execut throw new ProcessingException("Expected a ClientInvocationBuilder"); } } -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvoker.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvoker.java index b265dff7d0e8a..e7a3f8c4a26e8 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvoker.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvoker.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.mutiny.common.runtime; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.RxInvoker; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.RxInvoker; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; import io.smallrye.mutiny.Uni; @@ -84,4 +84,4 @@ public interface UniRxInvoker extends RxInvoker> { @Override Uni method(String name, Entity entity, GenericType responseType); -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvokerImpl.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvokerImpl.java index 36e501816c6db..bdac1cfebf191 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvokerImpl.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/UniRxInvokerImpl.java @@ -3,10 +3,10 @@ import java.util.concurrent.CompletionStage; import java.util.function.Supplier; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; import io.smallrye.mutiny.Uni; diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/UniRxInvokerImplTest.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/UniRxInvokerImplTest.java index 75ed84a93cbf4..333df9c2f2ebd 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/UniRxInvokerImplTest.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/UniRxInvokerImplTest.java @@ -8,10 +8,10 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyInjector.java b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyInjector.java index 48d71116e54a3..bbfd68f2ff192 100644 --- a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyInjector.java +++ b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyInjector.java @@ -3,7 +3,7 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.spi.ContextInjector; diff --git a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyResource.java b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyResource.java index d2e7d3f54a91d..e0424bb05031c 100644 --- a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyResource.java +++ b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/MutinyResource.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.mutiny.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.annotations.Stream; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/RestEasyMutinyTest.java b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/RestEasyMutinyTest.java index c6a531e374a30..d545ae856790d 100644 --- a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/RestEasyMutinyTest.java +++ b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/RestEasyMutinyTest.java @@ -4,8 +4,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.client.jaxrs.ResteasyClient; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; diff --git a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/vertx/ResourceProducingJsonObject.java b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/vertx/ResourceProducingJsonObject.java index 1e7d8cee16cd5..3b1c781f33fc3 100644 --- a/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/vertx/ResourceProducingJsonObject.java +++ b/extensions/resteasy-classic/resteasy-mutiny/deployment/src/test/java/io/quarkus/resteasy/mutiny/test/vertx/ResourceProducingJsonObject.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.mutiny.test.vertx; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; diff --git a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/AppMessageHelloResource.java b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/AppMessageHelloResource.java index 9759857a7c70c..b822ff527d9c8 100644 --- a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/AppMessageHelloResource.java +++ b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/AppMessageHelloResource.java @@ -2,11 +2,11 @@ import java.util.Locale; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/HelloResource.java b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/HelloResource.java index 137b4d9ed82ea..12aae605800a8 100644 --- a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/HelloResource.java +++ b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/HelloResource.java @@ -2,9 +2,9 @@ import java.util.Map; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.annotations.jaxrs.QueryParam; diff --git a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/ItemResource.java b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/ItemResource.java index 4842d2a3ddbc6..772a6c2c96517 100644 --- a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/ItemResource.java +++ b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/ItemResource.java @@ -1,10 +1,10 @@ package io.quarkus.qute.resteasy.deployment; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/MissingTemplateResource.java b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/MissingTemplateResource.java index 4fc06ee5312c1..8a65551536392 100644 --- a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/MissingTemplateResource.java +++ b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/MissingTemplateResource.java @@ -2,7 +2,7 @@ import java.util.Map; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/TypeErrorResource.java b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/TypeErrorResource.java index a0b859d9822ba..1b464bd83254d 100644 --- a/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/TypeErrorResource.java +++ b/extensions/resteasy-classic/resteasy-qute/deployment/src/test/java/io/quarkus/qute/resteasy/deployment/TypeErrorResource.java @@ -1,7 +1,7 @@ package io.quarkus.qute.resteasy.deployment; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/RestTemplate.java b/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/RestTemplate.java index dc8780c303b2e..c8b75e9ff8d54 100644 --- a/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/RestTemplate.java +++ b/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/RestTemplate.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.qute; -import javax.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.ResourceInfo; import org.jboss.resteasy.core.ResteasyContext; diff --git a/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/runtime/TemplateResponseFilter.java b/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/runtime/TemplateResponseFilter.java index 57c95f6505d32..e14979186f312 100644 --- a/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/runtime/TemplateResponseFilter.java +++ b/extensions/resteasy-classic/resteasy-qute/runtime/src/main/java/io/quarkus/resteasy/qute/runtime/TemplateResponseFilter.java @@ -7,11 +7,11 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.TimeUnit; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.core.interception.jaxrs.SuspendableContainerResponseContext; @@ -36,12 +36,12 @@ public void filter(ContainerRequestContext requestContext, ContainerResponseCont TemplateInstance instance = (TemplateInstance) entity; Object variantsAttr = instance.getAttribute(TemplateInstance.VARIANTS); if (variantsAttr != null) { - List variants = new ArrayList<>(); + List variants = new ArrayList<>(); for (Variant variant : (List) variantsAttr) { - variants.add(new javax.ws.rs.core.Variant(MediaType.valueOf(variant.getMediaType()), variant.getLocale(), + variants.add(new jakarta.ws.rs.core.Variant(MediaType.valueOf(variant.getMediaType()), variant.getLocale(), variant.getEncoding())); } - javax.ws.rs.core.Variant selected = requestContext.getRequest() + jakarta.ws.rs.core.Variant selected = requestContext.getRequest() .selectVariant(variants); if (selected != null) { diff --git a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java index 4301addd0562e..cd49b25811585 100644 --- a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java +++ b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java @@ -18,7 +18,7 @@ import java.util.function.BiFunction; import java.util.stream.Collectors; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; @@ -88,10 +88,10 @@ public class ResteasyServerCommonProcessor { private static final Logger log = Logger.getLogger("io.quarkus.resteasy"); - private static final String JAX_RS_APPLICATION_PARAMETER_NAME = "javax.ws.rs.Application"; + private static final String JAX_RS_APPLICATION_PARAMETER_NAME = "jakarta.ws.rs.Application"; private static final String MESSAGES_RESOURCE_BUNDLE = "messages"; - private static final DotName JSONB_ANNOTATION = DotName.createSimple("javax.json.bind.annotation.JsonbAnnotation"); + private static final DotName JSONB_ANNOTATION = DotName.createSimple("jakarta.json.bind.annotation.JsonbAnnotation"); private static final List METHOD_ANNOTATIONS = List.of( ResteasyDotNames.GET, @@ -129,7 +129,7 @@ static final class ResteasyConfig { * this annotation will always be used to control the lifecycle of the resource * class. *

    - * IMPLEMENTATION NOTE: {@code javax.ws.rs.Path} turns into a CDI stereotype + * IMPLEMENTATION NOTE: {@code jakarta.ws.rs.Path} turns into a CDI stereotype * with singleton scope. As a result, if a user annotates a JAX-RS resource with * a stereotype which has a different default scope the deployment fails with * IllegalStateException. @@ -478,10 +478,10 @@ List registerCompatibleAnnotationPrefixes prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("kotlin")); // make sure the annotation that the Kotlin compiler adds don't interfere with creating a default constructor prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("lombok")); // same for lombok prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("io.quarkus.security")); // same for the security annotations - prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("javax.annotation.security")); + prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.annotation.security")); prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.annotation.security")); prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("java.lang")); - prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("javax.inject")); + prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.inject")); return prefixes; } @@ -1000,7 +1000,7 @@ private static Set getAllowedClasses(IndexView index) { selectedAppClass = applicationClassInfo; if (selectedAppClass.annotationsMap().containsKey(ResteasyDotNames.CDI_INJECT)) { throw new RuntimeException( - "Usage of '@Inject' is not allowed in 'javax.ws.rs.core.Application' classes. Offending class is '" + "Usage of '@Inject' is not allowed in 'jakarta.ws.rs.core.Application' classes. Offending class is '" + selectedAppClass.name() + "'"); } diff --git a/extensions/resteasy-classic/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/RESTEasyTestHttpProvider.java b/extensions/resteasy-classic/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/RESTEasyTestHttpProvider.java index 554830b905fb3..a6ecc8ee8e001 100644 --- a/extensions/resteasy-classic/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/RESTEasyTestHttpProvider.java +++ b/extensions/resteasy-classic/resteasy-server-common/runtime/src/main/java/io/quarkus/resteasy/server/common/runtime/RESTEasyTestHttpProvider.java @@ -5,7 +5,7 @@ import java.util.Optional; import java.util.function.Function; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/RestPathAnnotationProcessor.java b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/RestPathAnnotationProcessor.java index a187ebafb220c..a0a1683e465ff 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/RestPathAnnotationProcessor.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/RestPathAnnotationProcessor.java @@ -26,7 +26,7 @@ public class RestPathAnnotationProcessor { - static final DotName REST_PATH = DotName.createSimple("javax.ws.rs.Path"); + static final DotName REST_PATH = DotName.createSimple("jakarta.ws.rs.Path"); static final DotName REGISTER_REST_CLIENT = DotName .createSimple("org.eclipse.microprofile.rest.client.inject.RegisterRestClient"); static final DotName TEMPLATE_PATH = DotName.createSimple(QuarkusRestPathTemplate.class.getName()); diff --git a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyServletProcessor.java b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyServletProcessor.java index 1bac198489765..a1b0040af4bda 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyServletProcessor.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyServletProcessor.java @@ -7,8 +7,8 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.servlet.DispatcherType; -import javax.ws.rs.core.Application; +import jakarta.servlet.DispatcherType; +import jakarta.ws.rs.core.Application; import org.jboss.logging.Logger; import org.jboss.metadata.web.spec.ServletMappingMetaData; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyStandaloneBuildStep.java b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyStandaloneBuildStep.java index a63334d0cbdf1..4dd5a3fd1cd48 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyStandaloneBuildStep.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/main/java/io/quarkus/resteasy/deployment/ResteasyStandaloneBuildStep.java @@ -5,7 +5,7 @@ import java.util.Optional; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.jandex.DotName; import org.jboss.jandex.IndexView; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheControlFeatureTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheControlFeatureTest.java index 7c8591fad9369..137a8160d0ebd 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheControlFeatureTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheControlFeatureTest.java @@ -2,7 +2,7 @@ import static io.restassured.RestAssured.when; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheResource.java index fef3e180dba98..bf1dd961197de 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CacheResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.annotations.cache.Cache; import org.jboss.resteasy.annotations.cache.NoCache; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ConstructorInjectionResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ConstructorInjectionResource.java index 1b78b0b158a0f..cba5bd71c1a47 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ConstructorInjectionResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ConstructorInjectionResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/ctor") public class ConstructorInjectionResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContentLengthResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContentLengthResource.java index 6d33f4e1efd0c..ed5545229dfc2 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContentLengthResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContentLengthResource.java @@ -2,9 +2,9 @@ import java.nio.charset.StandardCharsets; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/length") public class ContentLengthResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContextTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContextTest.java index 2b2a15bf2486d..59489f6559efe 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContextTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ContextTest.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CustomExceptionMapperTestCase.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CustomExceptionMapperTestCase.java index 9529ef06021b1..bdbea7cad6a67 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CustomExceptionMapperTestCase.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/CustomExceptionMapperTestCase.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.test; -import javax.enterprise.context.Dependent; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.Dependent; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ExceptionReturnStatusAndBodyTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ExceptionReturnStatusAndBodyTest.java index a3c314c2d116f..d1829a6e4f2d5 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ExceptionReturnStatusAndBodyTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ExceptionReturnStatusAndBodyTest.java @@ -2,14 +2,14 @@ import static org.hamcrest.Matchers.containsString; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.HEAD; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.PATCH; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HEAD; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.PATCH; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ForwardedEnabledTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ForwardedEnabledTest.java index 73b8e79c45cea..14f634c246e19 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ForwardedEnabledTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ForwardedEnabledTest.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/GreetingResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/GreetingResource.java index 98db8180f973a..dd952dddb92bd 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/GreetingResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/GreetingResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResource.java index c14d23ff9fbbc..44bfa7a7fbc2c 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResource.java @@ -8,10 +8,10 @@ import java.util.TimerTask; import java.util.concurrent.LinkedBlockingDeque; -import javax.annotation.PreDestroy; -import javax.enterprise.event.Observes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import io.vertx.core.Handler; import io.vertx.ext.web.Router; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithRemainderTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithRemainderTest.java index e7d4640d8d24b..d5df11f5fd1b2 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithRemainderTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithRemainderTest.java @@ -5,10 +5,10 @@ import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithoutRemainderTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithoutRemainderTest.java index 13058afdee431..0598bf54a9f52 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithoutRemainderTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseLargePayloadWithoutRemainderTest.java @@ -5,10 +5,10 @@ import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseTest.java index bc40117a793d6..2be97468a5e53 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InputStreamResponseTest.java @@ -5,10 +5,10 @@ import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InterfaceResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InterfaceResource.java index 09325e0a18e03..f0d36cb9a9924 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InterfaceResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/InterfaceResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test; -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("/inter") public interface InterfaceResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/JsonResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/JsonResource.java index 903a2fc79c980..0e993d41d4016 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/JsonResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/JsonResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MalformedURLTestCase.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MalformedURLTestCase.java index b175890e78d68..652feb95993cd 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MalformedURLTestCase.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MalformedURLTestCase.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MaxBodySizeResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MaxBodySizeResource.java index 12b8b35414931..7c566f9f77f74 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MaxBodySizeResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/MaxBodySizeResource.java @@ -2,12 +2,12 @@ import java.nio.charset.StandardCharsets; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; @Path("/max-body-size") public class MaxBodySizeResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NoProducesValueTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NoProducesValueTest.java index b0482bc96a4d2..aa69345a277b5 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NoProducesValueTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NoProducesValueTest.java @@ -2,10 +2,10 @@ import static io.restassured.RestAssured.given; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NullHeaderTestCase.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NullHeaderTestCase.java index 3b98d31d4befe..04fdc2dd0b5f4 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NullHeaderTestCase.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/NullHeaderTestCase.java @@ -4,13 +4,13 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PathInterfaceImplementorTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PathInterfaceImplementorTest.java index c39e881921278..935d56d074cf5 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PathInterfaceImplementorTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PathInterfaceImplementorTest.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.test; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostEndpoint.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostEndpoint.java index 8184796f5620e..003589225cc5f 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostEndpoint.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/post") public class PostEndpoint { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostResource.java index bb0251bb111c2..ba09ace95c3dc 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/PostResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test; -import javax.annotation.PreDestroy; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.PreDestroy; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/post") public class PostResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ProviderConfigInjectionTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ProviderConfigInjectionTest.java index e014d2d9a5d39..7c6a8182ad8c0 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ProviderConfigInjectionTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/ProviderConfigInjectionTest.java @@ -1,15 +1,15 @@ package io.quarkus.resteasy.test; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hamcrest.Matchers; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/QueryParamTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/QueryParamTest.java index 8d4423ed029a9..0afd30933fc54 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/QueryParamTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/QueryParamTest.java @@ -4,9 +4,9 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RootResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RootResource.java index f1375d319dc14..59a7acf951eb1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RootResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/RootResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/") public class RootResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/Service.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/Service.java index b2ed70d0d1417..cd43ace594413 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/Service.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/Service.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.test; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class Service { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SetCookieResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SetCookieResource.java index 47c28230551c3..ac707b77d87c0 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SetCookieResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SetCookieResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.spi.HttpResponse; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SingletonConstructorInjectionResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SingletonConstructorInjectionResource.java index 2bf60255953dc..c7c25cbf91add 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SingletonConstructorInjectionResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/SingletonConstructorInjectionResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Singleton @Path("/ctor-single") diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/asyncio/AsyncIOResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/asyncio/AsyncIOResource.java index 9b3b7471bd9c6..14a3a86327ad8 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/asyncio/AsyncIOResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/asyncio/AsyncIOResource.java @@ -3,9 +3,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.Context; import io.vertx.core.Vertx; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/GreetingEndpoint.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/GreetingEndpoint.java index b901300df3876..96736ca179c73 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/GreetingEndpoint.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/GreetingEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test.cdi; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/MorningGreeting.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/MorningGreeting.java index e7a3a6bde9dc5..da7f5a69029d4 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/MorningGreeting.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/cdi/MorningGreeting.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.test.cdi; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; /** * diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ConfigMappingWithProviderTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ConfigMappingWithProviderTest.java index 420fefbce27a5..e981d95784807 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ConfigMappingWithProviderTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ConfigMappingWithProviderTest.java @@ -4,14 +4,14 @@ import java.io.IOException; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.spi.HttpRequest; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ProviderConfigInjectionWarningsTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ProviderConfigInjectionWarningsTest.java index 0eb3bdd0d6bd0..36bf7d4ae4e76 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ProviderConfigInjectionWarningsTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/config/ProviderConfigInjectionWarningsTest.java @@ -8,15 +8,15 @@ import java.util.logging.LogRecord; import java.util.stream.Collectors; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -39,13 +39,13 @@ public class ProviderConfigInjectionWarningsTest { assertEquals(4, logRecords.size()); Set messages = logRecords.stream().map(LogRecord::getMessage).collect(Collectors.toSet()); assertTrue(messages.contains( - "Directly injecting a org.eclipse.microprofile.config.Config into a javax.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance. Offending field is 'config' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); + "Directly injecting a org.eclipse.microprofile.config.Config into a jakarta.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to jakarta.enterprise.inject.Instance. Offending field is 'config' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); assertTrue(messages.contains( - "Directly injecting a io.smallrye.config.SmallRyeConfig into a javax.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance. Offending field is 'smallRyeConfig' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); + "Directly injecting a io.smallrye.config.SmallRyeConfig into a jakarta.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to jakarta.enterprise.inject.Instance. Offending field is 'smallRyeConfig' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); assertTrue(messages.contains( - "Directly injecting a org.eclipse.microprofile.config.inject.ConfigProperty into a javax.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance. Offending field is 'configProperty' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); + "Directly injecting a org.eclipse.microprofile.config.inject.ConfigProperty into a jakarta.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to jakarta.enterprise.inject.Instance. Offending field is 'configProperty' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); assertTrue(messages.contains( - "Directly injecting a io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$MyConfigMapping into a javax.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to javax.enterprise.inject.Instance. Offending field is 'myConfigMapping' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); + "Directly injecting a io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$MyConfigMapping into a jakarta.ws.rs.ext.Provider may lead to unexpected results. To ensure proper results, please change the type of the field to jakarta.enterprise.inject.Instance. Offending field is 'myConfigMapping' of class 'io.quarkus.resteasy.test.config.ProviderConfigInjectionWarningsTest$FooProvider'")); }); @Test diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/gzip/GZipResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/gzip/GZipResource.java index 129d7a8e86eb5..90f2cfca1fd97 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/gzip/GZipResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/gzip/GZipResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test.gzip; -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; import org.jboss.resteasy.annotations.GZIP; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/multipart/MultipartResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/multipart/MultipartResource.java index 6bd67f5507f4b..e972caea77768 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/multipart/MultipartResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/multipart/MultipartResource.java @@ -2,11 +2,11 @@ import static java.util.stream.Collectors.toList; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; @Path("multipart/") public class MultipartResource { @@ -20,4 +20,4 @@ public String hello(MultivaluedMap formData) { .toString(); } -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathHttpRootTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathHttpRootTest.java index 6830f2ecfb312..7d9bc1e7c85c1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathHttpRootTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathHttpRootTest.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test.root; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathTest.java index fb6372ecd5fb3..3ffb445ac1423 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationPathTest.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test.root; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationTest.java index 9cd3eabd0d14f..eb5c2ad1879d0 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/ApplicationTest.java @@ -9,15 +9,15 @@ import java.util.HashSet; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.*; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.*; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/BuildProfileTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/BuildProfileTest.java index 921f141cc2f7d..b275ab739a2b1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/BuildProfileTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/root/BuildProfileTest.java @@ -6,18 +6,18 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/route/UserRouteTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/route/UserRouteTest.java index beca4c5acdca5..3cf6d40acb46b 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/route/UserRouteTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/route/UserRouteTest.java @@ -2,8 +2,8 @@ import static org.hamcrest.core.Is.is; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationFailedExceptionHeaderTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationFailedExceptionHeaderTest.java index 740494074d9d6..2a6dd9a4b1742 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationFailedExceptionHeaderTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationFailedExceptionHeaderTest.java @@ -5,9 +5,9 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationRedirectExceptionHeaderTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationRedirectExceptionHeaderTest.java index b46efe9d16aef..94b516da9aa3a 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationRedirectExceptionHeaderTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/AuthenticationRedirectExceptionHeaderTest.java @@ -6,9 +6,9 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DefaultRolesAllowedJaxRsTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DefaultRolesAllowedJaxRsTest.java index cc7622615f928..fb13a3d50cbf6 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DefaultRolesAllowedJaxRsTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DefaultRolesAllowedJaxRsTest.java @@ -3,9 +3,9 @@ import static io.restassured.RestAssured.given; import static io.restassured.RestAssured.when; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DenyAllJaxRsTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DenyAllJaxRsTest.java index 5ac0fe79312e6..90cd2a9f77390 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DenyAllJaxRsTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/DenyAllJaxRsTest.java @@ -4,9 +4,9 @@ import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.emptyString; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/HttpPolicyAuthFailureExceptionMapperTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/HttpPolicyAuthFailureExceptionMapperTest.java index d8e3f3ce9dc50..3e1eaab34cffc 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/HttpPolicyAuthFailureExceptionMapperTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/HttpPolicyAuthFailureExceptionMapperTest.java @@ -4,11 +4,11 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/PermitAllResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/PermitAllResource.java index ab9dc1ec18459..a38c5890969b1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/PermitAllResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/PermitAllResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test.security; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionHandlerTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionHandlerTest.java index 44dbffff92614..15ec62f2911b0 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionHandlerTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionHandlerTest.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionMapperTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionMapperTest.java index f5372c7166fb1..a45fae624ca92 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionMapperTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthCompletionExceptionMapperTest.java @@ -1,16 +1,16 @@ package io.quarkus.resteasy.test.security; -import static javax.ws.rs.core.Response.Status.UNAUTHORIZED; +import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExHandlerTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExHandlerTest.java index 34f90cd676b0e..4e063c8e0a0f1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExHandlerTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExHandlerTest.java @@ -1,15 +1,15 @@ package io.quarkus.resteasy.test.security; import static io.quarkus.resteasy.test.security.ProactiveAuthHttpPolicyCustomForbiddenExHandlerTest.CustomForbiddenFailureHandler.CUSTOM_FORBIDDEN_EXCEPTION_HANDLER; -import static javax.ws.rs.core.Response.Status.FORBIDDEN; +import static jakarta.ws.rs.core.Response.Status.FORBIDDEN; import static org.hamcrest.Matchers.equalTo; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExMapperTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExMapperTest.java index 868e3c35a99ce..d42589338bbb1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExMapperTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/ProactiveAuthHttpPolicyCustomForbiddenExMapperTest.java @@ -1,18 +1,18 @@ package io.quarkus.resteasy.test.security; import static io.quarkus.resteasy.test.security.ProactiveAuthHttpPolicyCustomForbiddenExMapperTest.CustomForbiddenExceptionMapper.CUSTOM_FORBIDDEN_EXCEPTION_MAPPER; -import static javax.ws.rs.core.Response.Status.FORBIDDEN; +import static jakarta.ws.rs.core.Response.Status.FORBIDDEN; import static org.hamcrest.Matchers.equalTo; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java index 5c612b4a7cd1e..6a285c54ac91a 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/RolesAllowedResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.test.security; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.identity.CurrentIdentityAssociation; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java index 92ceac105166e..7d50c1e8ec0e2 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityIdentityAugmentorTest.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityOverrideFilter.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityOverrideFilter.java index 4d38509b00946..46cccc13484b1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityOverrideFilter.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/SecurityOverrideFilter.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.security.Principal; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.ext.Provider; @Provider @PreMatching diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredResource.java index 96607e8c88d66..2d4eedc5fcfb5 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.test.security; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredSubResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredSubResource.java index 993f747e7761c..4f48b1fcbe546 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredSubResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UnsecuredSubResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test.security; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UserResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UserResource.java index fea9158e7bbba..7caf17919cd59 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UserResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/security/UserResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.test.security; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/user") public class UserResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseResource.java index b439b204da787..fc218b27819f1 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseResource.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseBroadcaster; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.SseEventSink; @Path("sse") public class SseResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseTestCase.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseTestCase.java index e54f9c8959507..c9159c4c377c2 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseTestCase.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/sse/SseTestCase.java @@ -5,11 +5,11 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEventSource; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/MyService.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/MyService.java index 617228f73231e..431b92ffe294f 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/MyService.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/MyService.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.test.subresource; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyService { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingResource.java index 9fccb55785edd..50402f11d9ed7 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.test.subresource; -import javax.inject.Inject; -import javax.ws.rs.GET; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; public class PingResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingsResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingsResource.java index af2032fa5a638..8b95669473f9a 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingsResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/PingsResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.test.subresource; -import javax.ws.rs.Path; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.core.Context; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.core.Context; @Path("pings") public class PingsResource { diff --git a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/SuperPingResource.java b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/SuperPingResource.java index d882cb283837c..465529458f5c7 100644 --- a/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/SuperPingResource.java +++ b/extensions/resteasy-classic/resteasy/deployment/src/test/java/io/quarkus/resteasy/test/subresource/SuperPingResource.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.test.subresource; -import javax.ws.rs.GET; +import jakarta.ws.rs.GET; public class SuperPingResource extends PingResource { diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationCompletionExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationCompletionExceptionMapper.java index 5d20cf5e312de..4d8e1d83915c4 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationCompletionExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationCompletionExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.runtime; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationFailedExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationFailedExceptionMapper.java index c8f8c57a92ae0..77cd8b809611b 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationFailedExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationFailedExceptionMapper.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.runtime; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java index 91c0f194fffdb..89cb5f317431b 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/AuthenticationRedirectExceptionMapper.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.runtime; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.AuthenticationRedirectException; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/CompositeExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/CompositeExceptionMapper.java index b859c33b9af37..65c26ee14cee8 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/CompositeExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/CompositeExceptionMapper.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.runtime; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; import io.smallrye.mutiny.CompositeException; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ForbiddenExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ForbiddenExceptionMapper.java index 8a4a5c4f29140..e4ce77413cf31 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ForbiddenExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ForbiddenExceptionMapper.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.runtime; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.ForbiddenException; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/NotFoundExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/NotFoundExceptionMapper.java index 68b5c7c1c1573..d85d703202e53 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/NotFoundExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/NotFoundExceptionMapper.java @@ -25,18 +25,18 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.annotation.Priority; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.core.Variant; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Variant; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.core.ResourceMethodInvoker; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplate.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplate.java index 531231ef3df18..28d86707c70dd 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplate.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplate.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; @Inherited @InterceptorBinding diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplateInterceptor.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplateInterceptor.java index 80df6d2aee8fc..9223cd93f9232 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplateInterceptor.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/QuarkusRestPathTemplateInterceptor.java @@ -3,12 +3,12 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.context.ContextNotActiveException; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.ArcInvocationContext; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java index 41415eefebf5b..0d500c492044a 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyFilter.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.enterprise.inject.spi.CDI; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpServletResponseWrapper; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponseWrapper; import org.jboss.resteasy.plugins.server.servlet.Filter30Dispatcher; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyServlet.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyServlet.java index 99a5bbbd2558f..79eaee4b59edc 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyServlet.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/ResteasyServlet.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.enterprise.inject.spi.CDI; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/SecurityContextFilter.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/SecurityContextFilter.java index aae0baca9a677..50b9e743f7c24 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/SecurityContextFilter.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/SecurityContextFilter.java @@ -6,14 +6,14 @@ import java.util.Map; import java.util.Set; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.plugins.server.servlet.ServletSecurityContext; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/UnauthorizedExceptionMapper.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/UnauthorizedExceptionMapper.java index 478aa4ab70f8d..2257721327874 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/UnauthorizedExceptionMapper.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/UnauthorizedExceptionMapper.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.runtime; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/QuarkusResteasySecurityContext.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/QuarkusResteasySecurityContext.java index 3232c69f10698..5fb302ec8c48c 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/QuarkusResteasySecurityContext.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/QuarkusResteasySecurityContext.java @@ -2,7 +2,7 @@ import java.security.Principal; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.SecurityContext; import io.quarkus.security.identity.CurrentIdentityAssociation; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpRequest.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpRequest.java index 8e7b7391b71ce..328adaa5454da 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpRequest.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpRequest.java @@ -13,11 +13,11 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.ServiceUnavailableException; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ServiceUnavailableException; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.core.AbstractAsynchronousResponse; import org.jboss.resteasy.core.AbstractExecutionContext; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java index 5e5440491e2f1..2d7d75d821b1b 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxHttpResponse.java @@ -6,10 +6,10 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.spi.HttpResponse; import org.jboss.resteasy.spi.ResteasyProviderFactory; @@ -75,7 +75,7 @@ public OutputStream getOutputStream() throws IOException { @Override public void addNewCookie(NewCookie cookie) { - outputHeaders.add(javax.ws.rs.core.HttpHeaders.SET_COOKIE, cookie); + outputHeaders.add(jakarta.ws.rs.core.HttpHeaders.SET_COOKIE, cookie); } void checkException() throws IOException { @@ -192,12 +192,13 @@ private void prepareWrite(ByteBuf buffer, boolean finished) throws IOException { boolean explicitChunked = "chunked".equalsIgnoreCase(response.headers().get("transfer-encoding")); if (!explicitChunked) { if (buffer == null) { - getOutputHeaders().putSingle(javax.ws.rs.core.HttpHeaders.CONTENT_LENGTH, "0"); + getOutputHeaders().putSingle(jakarta.ws.rs.core.HttpHeaders.CONTENT_LENGTH, "0"); } else { - getOutputHeaders().putSingle(javax.ws.rs.core.HttpHeaders.CONTENT_LENGTH, "" + buffer.readableBytes()); + getOutputHeaders().putSingle(jakarta.ws.rs.core.HttpHeaders.CONTENT_LENGTH, + "" + buffer.readableBytes()); } } - } else if (!response.headers().contains(javax.ws.rs.core.HttpHeaders.CONTENT_LENGTH)) { + } else if (!response.headers().contains(jakarta.ws.rs.core.HttpHeaders.CONTENT_LENGTH)) { response.setChunked(true); } } diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxOutputStream.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxOutputStream.java index 208d0fc2a274a..9cf440b2a9b6e 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxOutputStream.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxOutputStream.java @@ -5,7 +5,7 @@ import java.util.concurrent.CompletionStage; import java.util.function.BiConsumer; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.spi.AsyncOutputStream; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java index 6ba7df57dcb29..4d918267460a0 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java @@ -10,9 +10,9 @@ import java.util.Map; import java.util.concurrent.Executor; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.core.SecurityContext; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.core.SecurityContext; import org.jboss.logging.Logger; import org.jboss.resteasy.core.ResteasyContext; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxUtil.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxUtil.java index 72b62c7f43f63..bf0d8f73944ba 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxUtil.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxUtil.java @@ -6,9 +6,9 @@ import java.util.Map; import java.util.regex.Pattern; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.core.Headers; import org.jboss.resteasy.specimpl.ResteasyHttpHeaders; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayReader.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayReader.java index 13a88f65d1798..b5c6d14ee56a8 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayReader.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayReader.java @@ -6,13 +6,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NoContentException; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NoContentException; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; import io.vertx.core.buffer.Buffer; import io.vertx.core.json.JsonArray; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayWriter.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayWriter.java index 2d31a25164449..21ecffd68b9f7 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayWriter.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonArrayWriter.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.concurrent.CompletionStage; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.spi.AsyncMessageBodyWriter; import org.jboss.resteasy.spi.AsyncOutputStream; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectReader.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectReader.java index b607a172b8f8d..ece2148e216e8 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectReader.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectReader.java @@ -6,13 +6,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NoContentException; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NoContentException; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; import io.vertx.core.buffer.Buffer; import io.vertx.core.json.JsonObject; diff --git a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectWriter.java b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectWriter.java index 843b787716a01..833002f2e42b2 100644 --- a/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectWriter.java +++ b/extensions/resteasy-classic/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/vertx/JsonObjectWriter.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.concurrent.CompletionStage; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.spi.AsyncMessageBodyWriter; import org.jboss.resteasy.spi.AsyncOutputStream; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveEnricher.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveEnricher.java index bdf9bce29894c..599bc2760762d 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveEnricher.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveEnricher.java @@ -19,7 +19,7 @@ public interface JaxrsClientReactiveEnricher { * Class-level alterations * * Used by MicroProfile Rest Client implementation (quarkus-rest-client-reactive) to support - * {@link javax.ws.rs.ext.Provider}, {@code @ClientHeadersFactory}, etc + * {@link jakarta.ws.rs.ext.Provider}, {@code @ClientHeadersFactory}, etc * * Please note that this won't be invoked for sub-resources * @@ -32,13 +32,13 @@ void forClass(MethodCreator ctor, AssignableResultHandle globalTarget, ClassInfo interfaceClass, IndexView index); /** - * Called when a {@link javax.ws.rs.client.WebTarget} has been populated for a normal Client + * Called when a {@link jakarta.ws.rs.client.WebTarget} has been populated for a normal Client */ void forWebTarget(MethodCreator methodCreator, IndexView index, ClassInfo interfaceClass, MethodInfo method, AssignableResultHandle webTarget, BuildProducer generatedClasses); /** - * Called when a {@link javax.ws.rs.client.WebTarget} has been populated for a sub Client + * Called when a {@link jakarta.ws.rs.client.WebTarget} has been populated for a sub Client */ void forSubResourceWebTarget(MethodCreator methodCreator, IndexView index, ClassInfo rootInterfaceClass, ClassInfo subInterfaceClass, diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java index db778f22b64cb..5d9b42b7faaaf 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java @@ -40,21 +40,21 @@ import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.AsyncInvoker; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.RxInvoker; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.AsyncInvoker; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.RxInvoker; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/AsyncRestClientFilterTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/AsyncRestClientFilterTestCase.java index d4389344a49b0..15e48893a86f2 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/AsyncRestClientFilterTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/AsyncRestClientFilterTestCase.java @@ -8,15 +8,15 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientRequestFilterAbortWithTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientRequestFilterAbortWithTestCase.java index 4802cae29341d..2558309ccc46d 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientRequestFilterAbortWithTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientRequestFilterAbortWithTestCase.java @@ -4,14 +4,14 @@ import java.net.URL; -import javax.enterprise.event.Observes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientResponseFilterTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientResponseFilterTestCase.java index b58c399113030..78c0c8c9ce68c 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientResponseFilterTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/ClientResponseFilterTestCase.java @@ -4,12 +4,12 @@ import java.net.URL; -import javax.enterprise.event.Observes; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientResponseFilter; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/FailureTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/FailureTestCase.java index fbad3411d4303..7d0e83a1fe623 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/FailureTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/FailureTestCase.java @@ -2,13 +2,13 @@ import java.net.URL; -import javax.enterprise.event.Observes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientResponseFilter; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/QueryParamNoTemplateTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/QueryParamNoTemplateTestCase.java index c95eafaa5bcaf..ca398f4d50295 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/QueryParamNoTemplateTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/QueryParamNoTemplateTestCase.java @@ -3,9 +3,9 @@ import java.net.URL; import java.util.stream.Collectors; -import javax.enterprise.event.Observes; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; import org.jboss.resteasy.reactive.client.impl.UniInvoker; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/UniInvokerTestCase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/UniInvokerTestCase.java index 3c9480c670ab9..d5cdc124561e5 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/UniInvokerTestCase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/test/java/io/quarkus/jaxrs/client/reactive/deployment/test/UniInvokerTestCase.java @@ -2,9 +2,9 @@ import java.net.URL; -import javax.enterprise.event.Observes; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; +import jakarta.enterprise.event.Observes; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; import org.jboss.resteasy.reactive.client.impl.UniInvoker; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/ClientResponseBuilderFactory.java b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/ClientResponseBuilderFactory.java index c9d8eb06a5000..00f1e9174c44a 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/ClientResponseBuilderFactory.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/ClientResponseBuilderFactory.java @@ -1,6 +1,6 @@ package io.quarkus.jaxrs.client.reactive.runtime; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse.ResponseBuilder; import org.jboss.resteasy.reactive.client.impl.ClientResponseBuilderImpl; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/JaxrsClientReactiveRecorder.java b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/JaxrsClientReactiveRecorder.java index f67b99b9ce37a..8d5294112fe30 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/JaxrsClientReactiveRecorder.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/JaxrsClientReactiveRecorder.java @@ -6,9 +6,9 @@ import java.util.Map; import java.util.function.BiFunction; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.client.impl.ClientProxies; import org.jboss.resteasy.reactive.client.impl.ClientSerialisers; diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/RestClientBase.java b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/RestClientBase.java index ce86ac8f57897..8f456e298c5f8 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/RestClientBase.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/java/io/quarkus/jaxrs/client/reactive/runtime/RestClientBase.java @@ -8,8 +8,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Supplier; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; public abstract class RestClientBase implements Closeable { private static final ParamConverter BYTE_CONVERTER = new ParamConverter() { diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/services/javax.ws.rs.client.ClientBuilder b/extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.client.ClientBuilder similarity index 100% rename from extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/services/javax.ws.rs.client.ClientBuilder rename to extensions/resteasy-reactive/jaxrs-client-reactive/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.client.ClientBuilder diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/JsonDefaultProducersHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/JsonDefaultProducersHandler.java index ec1636967f1b5..097e5ff894e31 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/JsonDefaultProducersHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/JsonDefaultProducersHandler.java @@ -9,7 +9,7 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.DotName; import org.jboss.jandex.Type; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/QuarkusResteasyReactiveDotNames.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/QuarkusResteasyReactiveDotNames.java index e59b845aa7d67..1a91c19e9b838 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/QuarkusResteasyReactiveDotNames.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/QuarkusResteasyReactiveDotNames.java @@ -17,19 +17,19 @@ public class QuarkusResteasyReactiveDotNames { public static final DotName HTTP_SERVER_RESPONSE = DotName.createSimple(HttpServerResponse.class.getName()); public static final DotName ROUTING_CONTEXT = DotName.createSimple(RoutingContext.class.getName()); public static final DotName JSON_IGNORE = DotName.createSimple("com.fasterxml.jackson.annotation.JsonIgnore"); - public static final DotName JSONB_TRANSIENT = DotName.createSimple("javax.json.bind.annotation.JsonbTransient"); + public static final DotName JSONB_TRANSIENT = DotName.createSimple("jakarta.json.bind.annotation.JsonbTransient"); public static final IgnoreTypeForReflectionPredicate IGNORE_TYPE_FOR_REFLECTION_PREDICATE = new IgnoreTypeForReflectionPredicate(); public static final IgnoreFieldForReflectionPredicate IGNORE_FIELD_FOR_REFLECTION_PREDICATE = new IgnoreFieldForReflectionPredicate(); public static final IgnoreMethodForReflectionPredicate IGNORE_METHOD_FOR_REFLECTION_PREDICATE = new IgnoreMethodForReflectionPredicate(); private static final String[] PACKAGES_IGNORED_FOR_REFLECTION = { // JSON-P - "javax.json.", + "jakarta.json.", "jakarta.json.", // Jackson "com.fasterxml.jackson.databind.", // JAX-RS - "javax.ws.rs.", + "jakarta.ws.rs.", // RESTEasy "org.jboss.resteasy.reactive", // Vert.x JSON layer diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java index fa92296e337b1..85f7df663004b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/ResteasyReactiveCommonProcessor.java @@ -17,8 +17,8 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.ClassInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/SerializersUtil.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/SerializersUtil.java index ed7b85ae91ad0..f552957a7eea1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/SerializersUtil.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/SerializersUtil.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.common.model.ResourceReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/VetoingAnnotationTransformer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/VetoingAnnotationTransformer.java index 95badca93dd83..9e6e796402319 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/VetoingAnnotationTransformer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/deployment/src/main/java/io/quarkus/resteasy/reactive/common/deployment/VetoingAnnotationTransformer.java @@ -12,7 +12,7 @@ * If a JAX-RS resource uses something like @QueryParam, @HeaderParam or the like in a constructor parameter, * then we need to make sure that Arc doesn't create a bean for it automatically (as it will fail validation because * there is no way to pass the parameter). - * For these resources we add {@link javax.enterprise.inject.Vetoed}, and we generate custom CDI producers under the hood + * For these resources we add {@link jakarta.enterprise.inject.Vetoed}, and we generate custom CDI producers under the hood * in {@link CustomResourceProducersGenerator#generate}. */ public class VetoingAnnotationTransformer implements AnnotationsTransformer { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/runtime/src/main/java/io/quarkus/resteasy/reactive/common/runtime/VertxBufferMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/runtime/src/main/java/io/quarkus/resteasy/reactive/common/runtime/VertxBufferMessageBodyWriter.java index e8379dc1cb43f..e8fb72fe0c9c1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/runtime/src/main/java/io/quarkus/resteasy/reactive/common/runtime/VertxBufferMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/runtime/src/main/java/io/quarkus/resteasy/reactive/common/runtime/VertxBufferMessageBodyWriter.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import io.vertx.core.buffer.Buffer; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml index 381878e1d513d..ee5ecf62f34bd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml @@ -18,8 +18,8 @@ quarkus-core-deployment - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyReaderBuildItem.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyReaderBuildItem.java index edd86d2914ffc..1c7c9514c4e29 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyReaderBuildItem.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyReaderBuildItem.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyWriterBuildItem.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyWriterBuildItem.java index cd282b682a472..8761b4d785687 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyWriterBuildItem.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/MessageBodyWriterBuildItem.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; import io.quarkus.builder.item.MultiBuildItem; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/RuntimeTypeItem.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/RuntimeTypeItem.java index e601c795e1700..976f1b3139b5a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/RuntimeTypeItem.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/spi/RuntimeTypeItem.java @@ -3,7 +3,7 @@ import java.util.Collection; import java.util.stream.Collectors; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; public interface RuntimeTypeItem { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyReader.java index 5fa3e73e790d2..69a5a8bf84f66 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyReader.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; import org.jboss.resteasy.reactive.common.providers.serialisers.PrimitiveBodyHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyWriter.java index b8d32dea2dd7a..32e6a485bbdfd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayBasicMessageBodyWriter.java @@ -6,10 +6,10 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import io.vertx.core.json.JsonArray; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyReader.java index 80edf90521481..9b81c360dbf36 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyReader.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; import org.jboss.resteasy.reactive.common.providers.serialisers.PrimitiveBodyHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyWriter.java index 7d79e758ce9ef..e889a8ed22ce5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectBasicMessageBodyWriter.java @@ -6,10 +6,10 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import io.vertx.core.json.JsonObject; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java index 365ae79cd4be8..37db36f11a807 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java @@ -11,9 +11,9 @@ import java.util.Optional; import java.util.Set; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/AbstractPersonResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/AbstractPersonResource.java index af78305f2bae9..00bb0ab2d3d51 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/AbstractPersonResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/AbstractPersonResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; abstract class AbstractPersonResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CheeseEndpoint.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CheeseEndpoint.java index 7cc108929dff1..f8ff594d9bc7a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CheeseEndpoint.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CheeseEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test; -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("cheese") public class CheeseEndpoint { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ContextResolverTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ContextResolverTest.java index e65167a7153c8..079b5c1753056 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ContextResolverTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ContextResolverTest.java @@ -6,10 +6,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CustomJsonProviderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CustomJsonProviderTest.java index ef9fd13b37427..40ad6b4fffb11 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CustomJsonProviderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/CustomJsonProviderTest.java @@ -9,14 +9,14 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/DetailedExceptionInReaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/DetailedExceptionInReaderTest.java index 29855c783f46f..0c5d3cec75169 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/DetailedExceptionInReaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/DetailedExceptionInReaderTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/EmptyInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/EmptyInputTest.java index aeed5ddac769a..d0008d85601bb 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/EmptyInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/EmptyInputTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ExceptionInReaderWithCustomMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ExceptionInReaderWithCustomMapperTest.java index 3cbb995672f63..3f81433845e81 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ExceptionInReaderWithCustomMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/ExceptionInReaderWithCustomMapperTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FormData.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FormData.java index 4c4c183f5923f..71253d5ba82cd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FormData.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FormData.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.Map; -import javax.validation.Valid; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.validation.Valid; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FroMageEndpoint.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FroMageEndpoint.java index 6271bbd4f8e79..3fd6739b6b5d7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FroMageEndpoint.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/FroMageEndpoint.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test; -import javax.ws.rs.Consumes; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("fromage") public class FroMageEndpoint { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MessageBodyReaderTests.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MessageBodyReaderTests.java index eaa5ec0f8bb30..d4e1238aadc60 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MessageBodyReaderTests.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MessageBodyReaderTests.java @@ -12,11 +12,11 @@ import java.util.List; import java.util.Objects; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.container.ConnectionCallback; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.ConnectionCallback; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader; import org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MultipartResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MultipartResource.java index e36389025e9de..6c7ff2a622a6e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MultipartResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/MultipartResource.java @@ -4,14 +4,14 @@ import java.util.List; import java.util.Map; -import javax.validation.Valid; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.validation.Valid; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/NoopReaderInterceptor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/NoopReaderInterceptor.java index 53ecc04fe1b1e..114ddd95f5c62 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/NoopReaderInterceptor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/NoopReaderInterceptor.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.ReaderInterceptorContext; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.ReaderInterceptorContext; @Provider public class NoopReaderInterceptor implements ReaderInterceptor { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/OtherPersonResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/OtherPersonResource.java index 4a2985ba667e8..de19ebbf65f78 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/OtherPersonResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/OtherPersonResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.resteasy.reactive.jackson.DisableSecureSerialization; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/Person.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/Person.java index 2bf5dde005981..7f5abadd4cc69 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/Person.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/Person.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test; -import javax.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotBlank; import com.fasterxml.jackson.annotation.JsonView; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SimpleJsonResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SimpleJsonResource.java index d76704b01e1d5..818810a7047c0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SimpleJsonResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SimpleJsonResource.java @@ -8,17 +8,17 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.function.BiFunction; -import javax.validation.Valid; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.validation.Valid; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/StreamingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/StreamingTest.java index 89428bf21f704..7b5e6a6a7d329 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/StreamingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/StreamingTest.java @@ -2,10 +2,10 @@ import static io.restassured.RestAssured.when; -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; import org.hamcrest.CoreMatchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SuperClass.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SuperClass.java index 01a0afa487b4d..43ed7326f5356 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SuperClass.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/SuperClass.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public class SuperClass { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonEndpoint.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonEndpoint.java index f2341527cd385..c8052f728476a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonEndpoint.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/VertxJsonEndpoint.java @@ -2,11 +2,11 @@ import java.util.Collections; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/ResponseStringNonAsciiTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/ResponseStringNonAsciiTest.java index ae0d65a6bdbee..3b088e7b0b973 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/ResponseStringNonAsciiTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/ResponseStringNonAsciiTest.java @@ -2,11 +2,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/RestResponseResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/RestResponseResource.java index 28e85bde70e12..2471e9daa76f1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/RestResponseResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/response/RestResponseResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.jackson.deployment.test.response; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.RestResponse; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamResource.java index fd5c2b81a72d1..b6a32a40456d0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamResource.java @@ -5,13 +5,13 @@ import java.util.List; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseBroadcaster; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.reactive.RestStreamElementType; import org.jboss.resteasy.reactive.common.util.RestMediaType; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamTestCase.java index 215a4101a087c..7414d57504e3a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/test/java/io/quarkus/resteasy/reactive/jackson/deployment/test/streams/StreamTestCase.java @@ -14,12 +14,12 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEventSource; import org.apache.http.HttpStatus; import org.jboss.resteasy.reactive.client.impl.MultiInvoker; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/SecureField.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/SecureField.java index 47355206c2a33..68da63ad07952 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/SecureField.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/SecureField.java @@ -12,7 +12,7 @@ * then return type when serialized to JSON, * will not include fields whose security requirements match the current user's security scope. * - * Warning: This annotation does not work when placed on a JAX-RS method that returns {@link javax.ws.rs.core.Response}. + * Warning: This annotation does not work when placed on a JAX-RS method that returns {@link jakarta.ws.rs.core.Response}. * Users that wish to use the feature and have the ability to configure the response of the JAX-RS method are advised to * use {@link org.jboss.resteasy.reactive.RestResponse}. */ diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.java index f35e68b7f6605..7496091dace75 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.exc.InvalidFormatException; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/NativeInvalidDefinitionExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/NativeInvalidDefinitionExceptionMapper.java index 7c52170efe3ab..9e7180f52afd2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/NativeInvalidDefinitionExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/mappers/NativeInvalidDefinitionExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.jackson.runtime.mappers; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/BasicServerJacksonMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/BasicServerJacksonMessageBodyWriter.java index c45a76407a6fb..48bfd7cfe7eba 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/BasicServerJacksonMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/BasicServerJacksonMessageBodyWriter.java @@ -9,10 +9,10 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/FullyFeaturedServerJacksonMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/FullyFeaturedServerJacksonMessageBodyWriter.java index 67c59f418b20f..2d9ced7de82a4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/FullyFeaturedServerJacksonMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/FullyFeaturedServerJacksonMessageBodyWriter.java @@ -14,12 +14,12 @@ import java.util.function.BiFunction; import java.util.function.Function; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Providers; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Providers; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/ServerJacksonMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/ServerJacksonMessageBodyReader.java index 755eb1997c913..1064ff509e28e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/ServerJacksonMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/ServerJacksonMessageBodyReader.java @@ -5,11 +5,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.util.StreamUtil; import org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyReader.java index 4de7d14949ad2..e47b3b99f0251 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyReader.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyWriter.java index 7f69733c4591c..956901486da12 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonArrayMessageBodyWriter.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyReader.java index 2f57cdccb00e8..42f6ef06474a2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyReader.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyWriter.java index fab40454691fe..426f5258378bf 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/runtime/src/main/java/io/quarkus/resteasy/reactive/jackson/runtime/serialisers/vertx/VertxJsonObjectMessageBodyWriter.java @@ -6,9 +6,9 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/main/java/io/quarkus/resteasy/reactive/jaxb/deployment/ResteasyReactiveJaxbProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/main/java/io/quarkus/resteasy/reactive/jaxb/deployment/ResteasyReactiveJaxbProcessor.java index 0e723c783f3b3..d70d4e0bf018a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/main/java/io/quarkus/resteasy/reactive/jaxb/deployment/ResteasyReactiveJaxbProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/main/java/io/quarkus/resteasy/reactive/jaxb/deployment/ResteasyReactiveJaxbProcessor.java @@ -8,9 +8,9 @@ import java.util.Locale; import java.util.Set; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/EmptyInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/EmptyInputTest.java index 514c9267b4cbf..5ba9cf5474ea7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/EmptyInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/EmptyInputTest.java @@ -2,10 +2,10 @@ import static org.hamcrest.Matchers.equalTo; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/MultipartTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/MultipartTest.java index 07b180f69827e..9f677096e918f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/MultipartTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/MultipartTest.java @@ -6,14 +6,14 @@ import java.io.IOException; import java.nio.file.Files; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SimpleXmlTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SimpleXmlTest.java index 675b19200347f..032195f80c713 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SimpleXmlTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SimpleXmlTest.java @@ -6,20 +6,20 @@ import java.io.StringWriter; -import javax.validation.Valid; -import javax.validation.constraints.NotBlank; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.MediaType; -import javax.xml.bind.JAXB; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotBlank; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.MediaType; +import jakarta.xml.bind.JAXB; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SseResourceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SseResourceTest.java index a3d966d2e55ab..66a01b44697cd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SseResourceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/test/java/io/quarkus/resteasy/reactive/jaxb/deployment/test/SseResourceTest.java @@ -15,27 +15,27 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseBroadcaster; -import javax.ws.rs.sse.SseEventSink; -import javax.ws.rs.sse.SseEventSource; -import javax.xml.bind.JAXB; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.sse.SseEventSource; +import jakarta.xml.bind.JAXB; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; import org.jboss.resteasy.reactive.RestStreamElementType; import org.jboss.resteasy.reactive.client.impl.MultiInvoker; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyReader.java index bddb11db1c872..0bb63544e8143 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyReader.java @@ -5,15 +5,16 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; import javax.xml.transform.stream.StreamSource; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.xml.bind.JAXBElement; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Unmarshaller; + import org.jboss.resteasy.reactive.common.util.StreamUtil; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyWriter.java index 550c65f1d0528..e96489b077a75 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/runtime/src/main/java/io/quarkus/resteasy/reactive/jaxb/runtime/serialisers/ServerJaxbMessageBodyWriter.java @@ -7,17 +7,18 @@ import java.lang.reflect.Type; import java.util.Map; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.annotation.XmlRootElement; import javax.xml.namespace.QName; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.xml.bind.JAXBElement; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.annotation.XmlRootElement; + import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/deployment/ResteasyReactiveJsonbCommonProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/deployment/ResteasyReactiveJsonbCommonProcessor.java index 1c5c4a70741da..b8a8999c23261 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/deployment/ResteasyReactiveJsonbCommonProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/deployment/ResteasyReactiveJsonbCommonProcessor.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.util.RestMediaType; import org.jboss.resteasy.reactive.server.jsonb.JsonbMessageBodyReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/runtime/serialisers/VertxJson.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/runtime/serialisers/VertxJson.java index b1a8a23f76085..d0068bef616b6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/runtime/serialisers/VertxJson.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb-common/runtime/src/main/java/io/quarkus/resteasy/reactive/jsonb/common/runtime/serialisers/VertxJson.java @@ -2,14 +2,14 @@ import java.lang.reflect.Type; -import javax.json.JsonNumber; -import javax.json.JsonValue; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; -import javax.json.stream.JsonParser; +import jakarta.json.JsonNumber; +import jakarta.json.JsonValue; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; @@ -26,7 +26,7 @@ private VertxJson() { } - public static void copy(JsonObject object, javax.json.JsonObject origin) { + public static void copy(JsonObject object, jakarta.json.JsonObject origin) { origin.keySet().forEach(key -> { JsonValue value = origin.get(key); JsonValue.ValueType kind = value.getValueType(); @@ -68,7 +68,7 @@ public static void copy(JsonObject object, javax.json.JsonObject origin) { }); } - public static void copy(JsonArray array, javax.json.JsonArray origin) { + public static void copy(JsonArray array, jakarta.json.JsonArray origin) { for (int i = 0; i < origin.size(); i++) { JsonValue value = origin.get(i); JsonValue.ValueType kind = value.getValueType(); diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java index 64046a86364c5..fcaed58b07e6c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.jsonb.deployment; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/CheeseEndpoint.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/CheeseEndpoint.java index 6955c935dc53f..ad40ddb125b48 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/CheeseEndpoint.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/CheeseEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.jsonb.deployment.test; -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("cheese") public class CheeseEndpoint { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/EmptyInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/EmptyInputTest.java index 1247f51564139..1355981f4c920 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/EmptyInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/EmptyInputTest.java @@ -4,9 +4,9 @@ import java.util.function.Supplier; -import javax.json.bind.annotation.JsonbCreator; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.json.bind.annotation.JsonbCreator; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/MultipartOutputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/MultipartOutputTest.java index 0a6a7cfcd8f2b..2f4e5f2d5a53b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/MultipartOutputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/MultipartOutputTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThat; -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; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/Person.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/Person.java index 5c02da8ac86e3..663ebe8d5ce07 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/Person.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/Person.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.jsonb.deployment.test; -import javax.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotBlank; public class Person { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SimpleJsonResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SimpleJsonResource.java index 32f74ca365fac..93e3676ab6115 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SimpleJsonResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SimpleJsonResource.java @@ -3,16 +3,16 @@ import java.util.ArrayList; import java.util.List; -import javax.validation.Valid; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.validation.Valid; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.runtime.BlockingOperationControl; import io.smallrye.common.annotation.NonBlocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/StreamingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/StreamingTest.java index e1e8bfb32f285..0a2866221d12e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/StreamingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/StreamingTest.java @@ -2,10 +2,10 @@ import static io.restassured.RestAssured.when; -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; import org.hamcrest.CoreMatchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SuperClass.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SuperClass.java index 0d273996f3b90..d81c459acd152 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SuperClass.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/SuperClass.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public class SuperClass { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/VertxJsonEndpoint.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/VertxJsonEndpoint.java index 619a6a8c4bf55..d6d5f22f2e6fa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/VertxJsonEndpoint.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/VertxJsonEndpoint.java @@ -2,11 +2,11 @@ import java.util.Collections; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseParserTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseParserTest.java index 9584c5efd89f1..6b55e2a725a56 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseParserTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseParserTest.java @@ -9,8 +9,8 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEvent; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEvent; import org.jboss.resteasy.reactive.client.impl.InboundSseEventImpl; import org.jboss.resteasy.reactive.client.impl.SseEventSourceImpl; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseResource.java index 83a02a7901269..cb61f52aca63d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseResource.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseBroadcaster; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.SseEventSink; // Using `@RestStreamElementType` on purpose to ensure the backward compatibility. import org.jboss.resteasy.reactive.RestSseElementType; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseTestCase.java index 8d36e04781214..442e140cfa976 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/test/java/io/quarkus/resteasy/reactive/jsonb/deployment/test/sse/SseTestCase.java @@ -14,13 +14,13 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.json.bind.JsonbBuilder; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEventSource; +import jakarta.json.bind.JsonbBuilder; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEventSource; import org.apache.http.HttpStatus; import org.jboss.resteasy.reactive.client.impl.MultiInvoker; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/CustomBeanTest.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/CustomBeanTest.kt index d66d4a77caf44..708e02079679c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/CustomBeanTest.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/CustomBeanTest.kt @@ -9,9 +9,9 @@ import org.jboss.shrinkwrap.api.spec.JavaArchive import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.enterprise.inject.Produces -import javax.inject.Inject -import javax.inject.Singleton +import jakarta.enterprise.inject.Produces +import jakarta.inject.Inject +import jakarta.inject.Singleton import kotlin.reflect.full.createType class CustomBeanTest { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/JsonBuilderCustomizerTest.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/JsonBuilderCustomizerTest.kt index 21eddd14c26ef..a80d9930cdc1d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/JsonBuilderCustomizerTest.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/deployment/src/test/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/JsonBuilderCustomizerTest.kt @@ -10,9 +10,9 @@ import org.jboss.shrinkwrap.api.spec.JavaArchive import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.annotation.Priority -import javax.inject.Inject -import javax.inject.Singleton +import jakarta.annotation.Priority +import jakarta.inject.Inject +import jakarta.inject.Singleton import kotlin.reflect.full.createType class JsonBuilderCustomizerTest { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/runtime/JsonProducer.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/runtime/JsonProducer.kt index b139e6364c6b1..09c24b4b80235 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/runtime/JsonProducer.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/common/runtime/JsonProducer.kt @@ -3,10 +3,10 @@ package io.quarkus.resteasy.reactive.kotlin.serialization.common.runtime import io.quarkus.arc.All import io.quarkus.arc.DefaultBean import io.quarkus.resteasy.reactive.kotlin.serialization.common.JsonBuilderCustomizer +import jakarta.enterprise.inject.Produces +import jakarta.inject.Singleton import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json -import javax.enterprise.inject.Produces -import javax.inject.Singleton @Singleton class JsonProducer { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/resteasy/reactive/kotlin/serialization/deployment/KotlinSerializationProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/resteasy/reactive/kotlin/serialization/deployment/KotlinSerializationProcessor.java index f5352d2627e02..b11780c04f24f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/resteasy/reactive/kotlin/serialization/deployment/KotlinSerializationProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/resteasy/reactive/kotlin/serialization/deployment/KotlinSerializationProcessor.java @@ -5,9 +5,9 @@ import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyReader.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyReader.kt index 07b0e82bc0f6b..083423c49c6ab 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyReader.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyReader.kt @@ -1,5 +1,7 @@ package io.quarkus.resteasy.reactive.kotlin.serialization.runtime +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.MultivaluedMap import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream @@ -11,8 +13,6 @@ import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader import org.jboss.resteasy.reactive.server.spi.ServerRequestContext import java.io.InputStream import java.lang.reflect.Type -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.MultivaluedMap class KotlinSerializationMessageBodyReader(private val json: Json) : AbstractJsonMessageBodyReader(), ServerMessageBodyReader { override fun isReadable(type: Class<*>, genericType: Type, annotations: Array?, mediaType: MediaType) = diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyWriter.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyWriter.kt index a21f8be8cd358..12918ea946d9c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyWriter.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/resteasy/reactive/kotlin/serialization/runtime/KotlinSerializationMessageBodyWriter.kt @@ -1,5 +1,8 @@ package io.quarkus.resteasy.reactive.kotlin.serialization.runtime +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.MultivaluedMap import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.json.encodeToStream @@ -10,9 +13,6 @@ import org.jboss.resteasy.reactive.server.spi.ServerRequestContext import java.io.OutputStream import java.lang.reflect.Type import java.nio.charset.StandardCharsets -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.MultivaluedMap @Produces("application/json", "application/*+json", "text/json") @OptIn(ExperimentalSerializationApi::class) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedResponseFilter.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedResponseFilter.kt index 46cb5206a638c..22e76aee8cc33 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedResponseFilter.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/AbstractSuspendedResponseFilter.kt @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin +import jakarta.ws.rs.container.ContainerResponseContext import kotlinx.coroutines.launch import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerResponseFilter -import javax.ws.rs.container.ContainerResponseContext /** * Base class used by Quarkus to generate an implementation at build-time that calls diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/ApplicationCoroutineScope.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/ApplicationCoroutineScope.kt index 5616f89ed3ab7..9edaa9bea43a4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/ApplicationCoroutineScope.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/ApplicationCoroutineScope.kt @@ -1,6 +1,8 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin import io.vertx.core.Context +import jakarta.annotation.PreDestroy +import jakarta.inject.Singleton import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Runnable @@ -9,8 +11,6 @@ import kotlinx.coroutines.cancel import org.jboss.resteasy.reactive.server.core.CurrentRequestManager import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext import org.jboss.resteasy.reactive.spi.ThreadSetupAction -import javax.annotation.PreDestroy -import javax.inject.Singleton import kotlin.coroutines.CoroutineContext /** diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineInvocationHandlerFactory.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineInvocationHandlerFactory.kt index 1446af6ccd552..19756493c6a7c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineInvocationHandlerFactory.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineInvocationHandlerFactory.kt @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin import io.quarkus.arc.Unremovable +import jakarta.inject.Singleton import org.jboss.resteasy.reactive.server.spi.EndpointInvoker import org.jboss.resteasy.reactive.server.spi.ServerRestHandler -import javax.inject.Singleton /** * Factory for the [CoroutineInvocationHandler] that is already part of the CDI container diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineMethodProcessor.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineMethodProcessor.kt index 01ab7ac4d6be5..2b47cdcb18d99 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineMethodProcessor.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/CoroutineMethodProcessor.kt @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin +import jakarta.enterprise.inject.spi.CDI import org.jboss.resteasy.reactive.server.model.HandlerChainCustomizer import org.jboss.resteasy.reactive.server.model.ServerResourceMethod import org.jboss.resteasy.reactive.server.spi.EndpointInvoker import org.jboss.resteasy.reactive.server.spi.ServerRestHandler import java.util.function.Supplier -import javax.enterprise.inject.spi.CDI /** * Intercepts method invocations to force an EndpointInvoker. diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/FlowToPublisherHandler.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/FlowToPublisherHandler.kt index 824202de6e0e6..bc28f858c7f68 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/FlowToPublisherHandler.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/FlowToPublisherHandler.kt @@ -2,13 +2,13 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin import io.smallrye.mutiny.coroutines.asMulti import io.vertx.core.Vertx +import jakarta.enterprise.inject.spi.CDI import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.launch import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext import org.jboss.resteasy.reactive.server.spi.ServerRestHandler import java.util.concurrent.Executor -import javax.enterprise.inject.spi.CDI class FlowToPublisherHandler : ServerRestHandler { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/PrepareExecution.kt b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/PrepareExecution.kt index 03d711dd2adfc..2443d660e5aad 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/PrepareExecution.kt +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin/runtime/src/main/kotlin/org/jboss/resteasy/reactive/server/runtime/kotlin/PrepareExecution.kt @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.runtime.kotlin import io.vertx.core.Vertx +import jakarta.enterprise.inject.spi.CDI import kotlinx.coroutines.CoroutineDispatcher import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext -import javax.enterprise.inject.spi.CDI fun prepareExecution(requestContext: ResteasyReactiveRequestContext): Pair { val requestScope = requestContext.captureCDIRequestScope() diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/main/java/io/quarkus/resteasy/reactive/links/deployment/LinksContainerFactory.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/main/java/io/quarkus/resteasy/reactive/links/deployment/LinksContainerFactory.java index 452b527ccb1e1..5081617941c73 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/main/java/io/quarkus/resteasy/reactive/links/deployment/LinksContainerFactory.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/main/java/io/quarkus/resteasy/reactive/links/deployment/LinksContainerFactory.java @@ -11,8 +11,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.HttpMethod; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.core.UriBuilder; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/RestLinksInjectionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/RestLinksInjectionTest.java index 294455f406f1f..e7009c35a5c62 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/RestLinksInjectionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/RestLinksInjectionTest.java @@ -5,8 +5,8 @@ import java.util.List; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriBuilder; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/TestResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/TestResource.java index 09191fa2cad08..cbfd69aa57159 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/TestResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/deployment/src/test/java/io/quarkus/resteasy/reactive/links/deployment/TestResource.java @@ -6,12 +6,12 @@ import java.util.List; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.util.RestMediaType; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksHandler.java index 5f21d42bc9785..421cc5ed87a61 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksHandler.java @@ -2,8 +2,8 @@ import java.util.Collection; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ServerRestHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksProvider.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksProvider.java index b2e7cc3f8d2f4..72693698ea9aa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksProvider.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/RestLinksProvider.java @@ -2,7 +2,7 @@ import java.util.Collection; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; /** * An injectable bean that contains methods to get the web links at class and instance levels. diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/LinksContainer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/LinksContainer.java index fd2d1d4f1ecb2..5ddfb10390bc7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/LinksContainer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/LinksContainer.java @@ -3,7 +3,7 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.util.MultivaluedTreeMap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderImpl.java index 18d9f58511be1..f29ccc56c1710 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderImpl.java @@ -4,8 +4,8 @@ import java.util.Collection; import java.util.List; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.resteasy.reactive.links.RestLinksProvider; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderProducer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderProducer.java index a2119687f984e..6914e75490781 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderProducer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/RestLinksProviderProducer.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.links.runtime; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.ws.rs.core.UriInfo; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.arc.DefaultBean; import io.quarkus.resteasy.reactive.links.RestLinksProvider; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/HalServerResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/HalServerResponseFilter.java index d537eb3741843..8e60ed5c1398b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/HalServerResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/HalServerResponseFilter.java @@ -6,11 +6,11 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.util.RestMediaType; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/ResteasyReactiveHalService.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/ResteasyReactiveHalService.java index 7840131160a9a..c7a58fa36e1d0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/ResteasyReactiveHalService.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-links/runtime/src/main/java/io/quarkus/resteasy/reactive/links/runtime/hal/ResteasyReactiveHalService.java @@ -4,9 +4,9 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.core.Link; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.core.Link; import io.quarkus.hal.HalLink; import io.quarkus.hal.HalService; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/AppMessageHelloResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/AppMessageHelloResource.java index e710f541501a3..fab22d0d3a906 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/AppMessageHelloResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/AppMessageHelloResource.java @@ -2,11 +2,11 @@ import java.util.Locale; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/HelloResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/HelloResource.java index d635cbe214ed2..f67ae5033c32d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/HelloResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/HelloResource.java @@ -2,13 +2,13 @@ import java.util.Map; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.ResponseHeader; import org.jboss.resteasy.reactive.ResponseStatus; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/ItemResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/ItemResource.java index e4ab08e1c5844..b1e402f13d839 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/ItemResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/ItemResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.qute.deployment; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.Template; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/MissingTemplateResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/MissingTemplateResource.java index 42f9b22832f83..7986315952e04 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/MissingTemplateResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/MissingTemplateResource.java @@ -2,7 +2,7 @@ import java.util.Map; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TemplateInstanceNonBlockingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TemplateInstanceNonBlockingTest.java index 4f4765bb68600..d1fb7c35fc321 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TemplateInstanceNonBlockingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TemplateInstanceNonBlockingTest.java @@ -3,11 +3,11 @@ import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.is; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TypeErrorResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TypeErrorResource.java index 05753de0cc286..46160dc08534e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TypeErrorResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/deployment/src/test/java/io/quarkus/resteasy/reactive/qute/deployment/TypeErrorResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.qute.deployment; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseFilter.java index f82d62ac5570a..e9202ba812b05 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseFilter.java @@ -3,9 +3,9 @@ import static io.quarkus.resteasy.reactive.qute.runtime.Util.setSelectedVariant; import static io.quarkus.resteasy.reactive.qute.runtime.Util.toUni; -import javax.inject.Inject; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.server.ServerResponseFilter; @@ -16,7 +16,7 @@ import io.smallrye.mutiny.Uni; /** - * This class is needed in order to support handling {@link javax.ws.rs.core.Response} that contains a TemplateInstance... + * This class is needed in order to support handling {@link jakarta.ws.rs.core.Response} that contains a TemplateInstance... */ public class TemplateResponseFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseUniHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseUniHandler.java index ebf2667b44554..cf2be4a3d25ec 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseUniHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/TemplateResponseUniHandler.java @@ -3,7 +3,7 @@ import static io.quarkus.resteasy.reactive.qute.runtime.Util.*; import static io.quarkus.resteasy.reactive.qute.runtime.Util.toUni; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ServerRestHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/Util.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/Util.java index 57b5ce52bd883..ba407a7c0b1ca 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/Util.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-qute/runtime/src/main/java/io/quarkus/resteasy/reactive/qute/runtime/Util.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Locale; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; import io.quarkus.qute.Engine; import io.quarkus.qute.TemplateException; @@ -36,12 +36,12 @@ static MediaType setSelectedVariant(TemplateInstance result, Object variantsAttr = result.getAttribute(TemplateInstance.VARIANTS); if (variantsAttr != null) { List quteVariants = (List) variantsAttr; - List jaxRsVariants = new ArrayList<>(quteVariants.size()); + List jaxRsVariants = new ArrayList<>(quteVariants.size()); for (Variant variant : quteVariants) { - jaxRsVariants.add(new javax.ws.rs.core.Variant(MediaType.valueOf(variant.getMediaType()), variant.getLocale(), + jaxRsVariants.add(new jakarta.ws.rs.core.Variant(MediaType.valueOf(variant.getMediaType()), variant.getLocale(), variant.getEncoding())); } - javax.ws.rs.core.Variant selected = request + jakarta.ws.rs.core.Variant selected = request .selectVariant(jaxRsVariants); if (selected != null) { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/deployment/src/main/java/io/quarkus/resteasy/reactive/server/servlet/deployment/ResteasyReactiveServletProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/deployment/src/main/java/io/quarkus/resteasy/reactive/server/servlet/deployment/ResteasyReactiveServletProcessor.java index 24d975f8d12c9..e08cc7f41cd83 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/deployment/src/main/java/io/quarkus/resteasy/reactive/server/servlet/deployment/ResteasyReactiveServletProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/deployment/src/main/java/io/quarkus/resteasy/reactive/server/servlet/deployment/ResteasyReactiveServletProcessor.java @@ -2,8 +2,8 @@ import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; -import javax.servlet.DispatcherType; -import javax.ws.rs.core.Application; +import jakarta.servlet.DispatcherType; +import jakarta.ws.rs.core.Application; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveFilter.java index 2f09a797de3c6..da554bb66c6c8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.http.HttpFilter; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletRequestWrapper; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpFilter; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletRequestWrapper; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.handlers.RestInitialHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServlet.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServlet.java index aa126a3b7dfd3..eb4ee11480aa8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServlet.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletRequestWrapper; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletRequestWrapper; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.handlers.RestInitialHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServletRecorder.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServletRecorder.java index b599c20bf7d68..f94dc06080235 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServletRecorder.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ResteasyReactiveServletRecorder.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.servlet.runtime; -import javax.servlet.Filter; -import javax.servlet.Servlet; +import jakarta.servlet.Filter; +import jakarta.servlet.Servlet; import org.jboss.resteasy.reactive.server.core.Deployment; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContext.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContext.java index 43f562f444e85..8aab366d0b14a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContext.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContext.java @@ -16,15 +16,15 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.enterprise.event.Event; -import javax.servlet.AsyncContext; -import javax.servlet.ReadListener; -import javax.servlet.ServletInputStream; -import javax.servlet.ServletOutputStream; -import javax.servlet.WriteListener; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.ws.rs.core.SecurityContext; +import jakarta.enterprise.event.Event; +import jakarta.servlet.AsyncContext; +import jakarta.servlet.ReadListener; +import jakarta.servlet.ServletInputStream; +import jakarta.servlet.ServletOutputStream; +import jakarta.servlet.WriteListener; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.ws.rs.core.SecurityContext; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContextFactory.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContextFactory.java index 10c42bacac222..cbda7b6d86137 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContextFactory.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletRequestContextFactory.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.servlet.runtime; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.core.RequestContextFactory; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletResteasyReactiveInputStream.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletResteasyReactiveInputStream.java index 1d432c170b093..8cff217a4bf3f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletResteasyReactiveInputStream.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-servlet/runtime/src/main/java/io/quarkus/resteasy/reactive/server/servlet/runtime/ServletResteasyReactiveInputStream.java @@ -4,7 +4,7 @@ import java.io.InputStream; import java.nio.ByteBuffer; -import javax.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletRequest; public class ServletResteasyReactiveInputStream extends InputStream { ByteBuffer existingData; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java index 600dc62fc03da..b141f654df785 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java @@ -7,9 +7,9 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/FilterClassIntrospector.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/FilterClassIntrospector.java index d82e0dfd0ada1..8618b225b8570 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/FilterClassIntrospector.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/FilterClassIntrospector.java @@ -4,7 +4,7 @@ import java.io.InputStream; import java.io.UncheckedIOException; -import javax.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.ResourceInfo; import org.jboss.jandex.MethodInfo; import org.objectweb.asm.ClassReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MessageBodyWriterTransformerUtils.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MessageBodyWriterTransformerUtils.java index 3395f4433b067..fabd174fc23e8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MessageBodyWriterTransformerUtils.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/MessageBodyWriterTransformerUtils.java @@ -5,7 +5,7 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicBoolean; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.logging.Logger; import org.objectweb.asm.ClassReader; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusMultipartReturnTypeHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusMultipartReturnTypeHandler.java index 5c309395931ee..e171957996e26 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusMultipartReturnTypeHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusMultipartReturnTypeHandler.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.function.Predicate; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.IndexView; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusServerEndpointIndexer.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusServerEndpointIndexer.java index 6923affbcca72..62181bcb5d575 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusServerEndpointIndexer.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/QuarkusServerEndpointIndexer.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.function.Predicate; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveCDIProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveCDIProcessor.java index b85fcad8a7a7f..c6a3ab0ec1d87 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveCDIProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveCDIProcessor.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.Optional; -import javax.ws.rs.BeanParam; +import jakarta.ws.rs.BeanParam; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveProcessor.java index ca8dd87631198..a3b5dc98d6f2d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveProcessor.java @@ -33,19 +33,19 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.ws.rs.Consumes; -import javax.ws.rs.Priorities; -import javax.ws.rs.Produces; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Providers; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Providers; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; @@ -895,7 +895,7 @@ private void handleDateFormatReflection(BuildProducer } /** - * RESTEasy Classic also includes the providers that are set in the 'META-INF/services/javax.ws.rs.ext.Providers' file + * RESTEasy Classic also includes the providers that are set in the 'META-INF/services/jakarta.ws.rs.ext.Providers' file * This is not a ServiceLoader call, but essentially provides the same functionality. */ @BuildStep diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveScanningProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveScanningProcessor.java index 42d5b78e2d8b9..d3003cb19a3aa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveScanningProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/ResteasyReactiveScanningProcessor.java @@ -13,8 +13,8 @@ import java.util.Set; import java.util.function.Consumer; -import javax.transaction.RollbackException; -import javax.ws.rs.Priorities; +import jakarta.transaction.RollbackException; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/SecurityTransformerUtils.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/SecurityTransformerUtils.java index 9a9ef2d9c0602..df1fd4b448a32 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/SecurityTransformerUtils.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/SecurityTransformerUtils.java @@ -5,9 +5,9 @@ import java.util.Optional; import java.util.Set; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/client/test/ContentTypeHeaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/client/test/ContentTypeHeaderTest.java index 7422abdd34ec1..d0e5a35d31507 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/client/test/ContentTypeHeaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/client/test/ContentTypeHeaderTest.java @@ -4,12 +4,12 @@ import java.net.URI; -import javax.ws.rs.Consumes; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.client.impl.ClientImpl; import org.jboss.resteasy.reactive.client.impl.WebTargetImpl; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnApplicationTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnApplicationTest.java index dffe8aca18275..cce3316d6944b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnApplicationTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnApplicationTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnClassTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnClassTest.java index dafd14a08adae..c7a932b27c35f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnClassTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnClassTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnMethodTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnMethodTest.java index 0cb2def5be083..7befc3f3c782f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnMethodTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/BothBlockingAndNonBlockingOnMethodTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/CustomNonBlockingReturnTypeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/CustomNonBlockingReturnTypeTest.java index 8a8813442dfbf..b2c95b7836c4b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/CustomNonBlockingReturnTypeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/CustomNonBlockingReturnTypeTest.java @@ -10,12 +10,12 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.jandex.DotName; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/EndpointDisabledTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/EndpointDisabledTest.java index 02f89968e9887..f5ff72ec538c7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/EndpointDisabledTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/EndpointDisabledTest.java @@ -3,8 +3,8 @@ import static io.restassured.RestAssured.*; import static org.hamcrest.CoreMatchers.equalTo; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/InnerClassTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/InnerClassTest.java index 1513476f85ecf..ddf5b937cf225 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/InnerClassTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/InnerClassTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleApplicationClassesWithBuildProfileTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleApplicationClassesWithBuildProfileTest.java index 3db55b97b2326..952f1f95b11f0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleApplicationClassesWithBuildProfileTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleApplicationClassesWithBuildProfileTest.java @@ -2,10 +2,10 @@ import static io.restassured.RestAssured.get; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleHttpAnnotationsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleHttpAnnotationsTest.java index a74af04fe9c3d..ade086c93b420 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleHttpAnnotationsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/MultipleHttpAnnotationsTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestLeakDetectionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestLeakDetectionTest.java index b62fe45b9a2f8..a073243d26360 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestLeakDetectionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestLeakDetectionTest.java @@ -9,12 +9,12 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedFieldInjectionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedFieldInjectionTest.java index 633c279f742b5..28db0231c3f5c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedFieldInjectionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedFieldInjectionTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.enterprise.context.RequestScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.RequestScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestPath; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedParamConverterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedParamConverterTest.java index 375404bf7df79..1e72cb1292a52 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedParamConverterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/RequestScopedParamConverterTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/SubResourcesAsBeansTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/SubResourcesAsBeansTest.java index c3148f50f3970..20767bbb3c741 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/SubResourcesAsBeansTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/SubResourcesAsBeansTest.java @@ -4,10 +4,10 @@ import java.util.function.Consumer; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.HttpHeaders; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.HttpHeaders; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestPath; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/BeanParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/BeanParamTest.java index 85a739e30b75a..bbfe2701f0178 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/BeanParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/BeanParamTest.java @@ -1,13 +1,13 @@ package io.quarkus.resteasy.reactive.server.test.beanparam; -import javax.ws.rs.BeanParam; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/CustomConverterInBeanParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/CustomConverterInBeanParamTest.java index 9573dcd9049c3..0d0806010496a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/CustomConverterInBeanParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/CustomConverterInBeanParamTest.java @@ -7,15 +7,15 @@ import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithAnnotationsInAMethodOfBeanParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithAnnotationsInAMethodOfBeanParamTest.java index 9bf8c62435a2f..4c360452bdcaa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithAnnotationsInAMethodOfBeanParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithAnnotationsInAMethodOfBeanParamTest.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.reactive.server.test.beanparam; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithNoAnnotationsInBeanParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithNoAnnotationsInBeanParamTest.java index 2a8b1e83f504d..62f899df9177a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithNoAnnotationsInBeanParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/FailWithNoAnnotationsInBeanParamTest.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.beanparam; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/NestedBeanParamInSubResourcesTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/NestedBeanParamInSubResourcesTest.java index 3d8e3418f53c2..a9c9aaba651f1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/NestedBeanParamInSubResourcesTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/beanparam/NestedBeanParamInSubResourcesTest.java @@ -2,12 +2,12 @@ import static org.hamcrest.CoreMatchers.equalTo; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnClassAndMethodsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnClassAndMethodsTest.java index 95a0a88b91ec6..3c9ef29349420 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnClassAndMethodsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnClassAndMethodsTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.Cache; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnMethodsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnMethodsTest.java index d97eb5a38339f..d77fa95f6f0d8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnMethodsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/CacheOnMethodsTest.java @@ -5,8 +5,8 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.Cache; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnClassAndMethodsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnClassAndMethodsTest.java index d51b955e4f322..2617f8a57bdef 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnClassAndMethodsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnClassAndMethodsTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnMethodsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnMethodsTest.java index b3197a87c1357..4fcad583e1d8b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnMethodsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/cache/NoCacheOnMethodsTest.java @@ -5,8 +5,8 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/compress/CompressionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/compress/CompressionTest.java index 0c5bf4ef2ce61..0ca7f3eba648e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/compress/CompressionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/compress/CompressionTest.java @@ -4,9 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/ConditionalExceptionMappersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/ConditionalExceptionMappersTest.java index 31c3270b60806..2b7c21bffe504 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/ConditionalExceptionMappersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/ConditionalExceptionMappersTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/FirstResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/FirstResource.java index 59bcada55af2f..d04abc326e280 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/FirstResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/FirstResource.java @@ -2,14 +2,14 @@ import static io.quarkus.resteasy.reactive.server.test.ExceptionUtil.removeStackTrace; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.RestQuery; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/GlobalThrowableExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/GlobalThrowableExceptionMapperTest.java index 36b245c96a9cf..5521309bc0d65 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/GlobalThrowableExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/GlobalThrowableExceptionMapperTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git "a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/InvalidConditional\316\234appersTest.java" "b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/InvalidConditional\316\234appersTest.java" index 08cb2f23ae8fc..6182aed1b58dd 100644 --- "a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/InvalidConditional\316\234appersTest.java" +++ "b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/InvalidConditional\316\234appersTest.java" @@ -5,9 +5,9 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/MyOtherExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/MyOtherExceptionMapper.java index 0a1c98478e940..1940b46cec857 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/MyOtherExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/MyOtherExceptionMapper.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.customexceptions; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/PerClassThrowableExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/PerClassThrowableExceptionMapperTest.java index 78c99db394d52..b817530270167 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/PerClassThrowableExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/PerClassThrowableExceptionMapperTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecondResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecondResource.java index 6a92fe1a916db..4bf4e772f5b8a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecondResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecondResource.java @@ -2,9 +2,9 @@ import static io.quarkus.resteasy.reactive.server.test.ExceptionUtil.removeStackTrace; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("second") public class SecondResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecurityExceptionMapperWithResourceInfoTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecurityExceptionMapperWithResourceInfoTest.java index 0eb03f18d6ea0..b38bf2c1179a3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecurityExceptionMapperWithResourceInfoTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SecurityExceptionMapperWithResourceInfoTest.java @@ -4,12 +4,12 @@ import java.util.function.Supplier; -import javax.annotation.security.DenyAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Response; +import jakarta.annotation.security.DenyAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SomeBean.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SomeBean.java index 1810de1ee9a11..a46b03e7c95f9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SomeBean.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/SomeBean.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.customexceptions; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class SomeBean { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UniExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UniExceptionMapper.java index 127ccd6dde728..ee5f1e771f520 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UniExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UniExceptionMapper.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.customexceptions; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UnwrappedExceptionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UnwrappedExceptionTest.java index 44325f8175fa3..14664493ff7a7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UnwrappedExceptionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customexceptions/UnwrappedExceptionTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AnotherValidNonBlockingFiltersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AnotherValidNonBlockingFiltersTest.java index ab5880493cbf8..3a78519fa9301 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AnotherValidNonBlockingFiltersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AnotherValidNonBlockingFiltersTest.java @@ -5,19 +5,19 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AssertContainerFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AssertContainerFilter.java index 7260ef9f400dd..827d651c47867 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AssertContainerFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/AssertContainerFilter.java @@ -5,10 +5,10 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Request; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Request; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ConditionalBeanFiltersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ConditionalBeanFiltersTest.java index e1822c0da4553..70e1cdbdc781c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ConditionalBeanFiltersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ConditionalBeanFiltersTest.java @@ -9,14 +9,14 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerRequestFilter.java index a8cb35b49f93d..1a7212d257807 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerRequestFilter.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerResponseFilter.java index bab2ffa503052..15599efeac8cc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomContainerResponseFilter.java @@ -4,9 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomFiltersResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomFiltersResource.java index 6d304cfd13cb1..175384bfbcacd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomFiltersResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/CustomFiltersResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; @Path("/custom") public class CustomFiltersResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/FilterWithPathParamsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/FilterWithPathParamsTest.java index 8ca89f3494238..fa087217a8bd7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/FilterWithPathParamsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/FilterWithPathParamsTest.java @@ -6,10 +6,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/IllegalStateExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/IllegalStateExceptionMapper.java index ccf1cf947b68b..443b2c5de6e86 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/IllegalStateExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/IllegalStateExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class IllegalStateExceptionMapper implements ExceptionMapper { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ImpliedReadBodyRequestFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ImpliedReadBodyRequestFilterTest.java index 605cb4677e18b..bc790e2866a76 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ImpliedReadBodyRequestFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ImpliedReadBodyRequestFilterTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.HttpHeaders; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidConditionalBeanFiltersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidConditionalBeanFiltersTest.java index b101b18929538..a8b0d4fef3368 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidConditionalBeanFiltersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidConditionalBeanFiltersTest.java @@ -5,9 +5,9 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidNonBlockingFiltersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidNonBlockingFiltersTest.java index 4f614191d4b75..29101a03de4b2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidNonBlockingFiltersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/InvalidNonBlockingFiltersTest.java @@ -5,14 +5,14 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/Metal.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/Metal.java index 77ecdd13b77d6..d094748c2e6fb 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/Metal.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/Metal.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/MetalFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/MetalFilter.java index 62335776d3343..c436a8489dc13 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/MetalFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/MetalFilter.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/NoTargetTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/NoTargetTest.java index 4d2bb9a21e58d..a1f3874752730 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/NoTargetTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/NoTargetTest.java @@ -5,16 +5,16 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionalRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionalRequestFilter.java index bcac985db195e..1bf6783b639d2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionalRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionalRequestFilter.java @@ -2,8 +2,8 @@ import java.util.Optional; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionsRequestTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionsRequestTest.java index 6c7acbbd94d11..c21669e05f7e5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionsRequestTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/OptionsRequestTest.java @@ -8,9 +8,9 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerResponseContext; import org.assertj.core.api.Assertions; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/PreMatchingHeadersFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/PreMatchingHeadersFilterTest.java index 25f203132763f..e575f758887af 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/PreMatchingHeadersFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/PreMatchingHeadersFilterTest.java @@ -6,13 +6,13 @@ import java.util.List; import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ReadBodyRequestFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ReadBodyRequestFilterTest.java index 952260f155988..b2da8e6e809a4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ReadBodyRequestFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ReadBodyRequestFilterTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.HttpHeaders; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ResponseFilter.java index c0d9ee29a9e6e..af1cb3ed0a0f3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ResponseFilter.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/SomeBean.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/SomeBean.java index 2ce396ebb6bbd..842c742dd99d2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/SomeBean.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/SomeBean.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class SomeBean { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniExceptionMapper.java index 5d6c7d67da507..d0cec3dbf87f3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class UniExceptionMapper implements ExceptionMapper { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniFiltersResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniFiltersResource.java index bb6a3da6e2e4e..34af6cf146dd2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniFiltersResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniFiltersResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; @Path("uni") public class UniFiltersResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseFilter.java index 0068f1de93bfa..b65d0c5c21a04 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseFilter.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseRequestFilter.java index 27b3e2fe057b7..624c78c72d639 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniResponseRequestFilter.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniVoidRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniVoidRequestFilter.java index 97f69fc993c50..2dcd0545fcc25 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniVoidRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/UniVoidRequestFilter.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ValidNonBlockingFiltersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ValidNonBlockingFiltersTest.java index 91a79d0b3232e..fe32696f46758 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ValidNonBlockingFiltersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/ValidNonBlockingFiltersTest.java @@ -5,17 +5,17 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/WithFormBodyTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/WithFormBodyTest.java index bc89943ad593a..c7a0a709ae735 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/WithFormBodyTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/customproviders/WithFormBodyTest.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/devmode/SubResourceDevModeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/devmode/SubResourceDevModeTest.java index e03792c3b9a5c..b335d931fd040 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/devmode/SubResourceDevModeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/devmode/SubResourceDevModeTest.java @@ -4,13 +4,13 @@ import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource.java index 69bb3fdbc1c36..7831150c4c1d1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.duplicate; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello-resteasy") public class GreetingResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource2.java index 38f75455a27c8..83987dbc1420a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource2.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.duplicate; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("") public class GreetingResource2 { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource3.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource3.java index f4a6a20a620f3..593091a9590c8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource3.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/duplicate/GreetingResource3.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.duplicate; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello-resteasy") public class GreetingResource3 { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/generatedresource/GeneratedJaxRsResourceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/generatedresource/GeneratedJaxRsResourceTest.java index 175a16954f767..d6ecdc925c525 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/generatedresource/GeneratedJaxRsResourceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/generatedresource/GeneratedJaxRsResourceTest.java @@ -4,8 +4,8 @@ import java.util.function.Consumer; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/Dummy.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/Dummy.java index 9dded6e3df76a..7510f1d26bc27 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/Dummy.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/Dummy.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.headers; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseHeader; import org.jboss.resteasy.reactive.ResponseStatus; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/ResponseHeaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/ResponseHeaderTest.java index ba10b38bb47a5..eb0f85732cff5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/ResponseHeaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/ResponseHeaderTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseHeader; import org.jboss.resteasy.reactive.ResponseStatus; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/VertxHeadersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/VertxHeadersTest.java index c2b902c7e2d50..8c7e646778c2a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/VertxHeadersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/headers/VertxHeadersTest.java @@ -5,13 +5,13 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.ext.Provider; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/ContentTypeCaseTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/ContentTypeCaseTest.java index 7698788d50dc9..d930e3787f921 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/ContentTypeCaseTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/ContentTypeCaseTest.java @@ -5,11 +5,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/InvalidContentTypeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/InvalidContentTypeTest.java index 8f1c3a64e561d..e9c14e3484427 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/InvalidContentTypeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/InvalidContentTypeTest.java @@ -6,9 +6,9 @@ import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/NoAcceptMultipleProducesTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/NoAcceptMultipleProducesTest.java index 592755a67752e..c777dfc9de431 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/NoAcceptMultipleProducesTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/mediatype/NoAcceptMultipleProducesTest.java @@ -12,13 +12,13 @@ import java.util.Map; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormData.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormData.java index 14529e614572f..3eae60efae0fe 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormData.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormData.java @@ -3,7 +3,7 @@ import java.io.File; import java.nio.file.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataBase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataBase.java index 0a25134a4538a..814db4272b940 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataBase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataBase.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.multipart; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataSameFileName.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataSameFileName.java index d8aa98915bcdf..e040cacaff52b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataSameFileName.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataSameFileName.java @@ -4,7 +4,7 @@ import java.nio.file.Path; import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataWithAllUploads.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataWithAllUploads.java index ba2b27ca7f125..a19e79952ae89 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataWithAllUploads.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/FormDataWithAllUploads.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/InvalidEncodingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/InvalidEncodingTest.java index c0557014e9c97..9123523ac6f4c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/InvalidEncodingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/InvalidEncodingTest.java @@ -5,12 +5,12 @@ import java.net.URISyntaxException; import java.nio.charset.StandardCharsets; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.RestForm; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java index f57c3e51f97eb..1616beba439af 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java @@ -9,13 +9,13 @@ import java.nio.file.Files; import java.util.function.Supplier; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MalformedMultipartInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MalformedMultipartInputTest.java index 7c18820ecf6eb..4959af0927efa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MalformedMultipartInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MalformedMultipartInputTest.java @@ -8,17 +8,17 @@ import java.lang.reflect.Type; import java.util.function.Supplier; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartDataInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartDataInputTest.java index 5a7da55fdb43d..1638b9d18efc7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartDataInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartDataInputTest.java @@ -13,11 +13,11 @@ import java.util.Map; import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.multipart.FormValue; import org.jboss.resteasy.reactive.server.multipart.MultipartFormDataInput; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputFileResponse.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputFileResponse.java index b5367db24e652..b4f60b596a902 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputFileResponse.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputFileResponse.java @@ -2,7 +2,7 @@ import java.io.File; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileDownloadResponse.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileDownloadResponse.java index a7f919b19b84f..1aea41681caf6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileDownloadResponse.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileDownloadResponse.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileResponse.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileResponse.java index ce0c2496ccd93..a881ff952018e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileResponse.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputMultipleFileResponse.java @@ -3,7 +3,7 @@ import java.io.File; import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResource.java index c6864055597e5..083d3f477c0fa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResource.java @@ -5,10 +5,10 @@ import java.io.RandomAccessFile; import java.util.List; -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; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.multipart.MultipartFormDataOutput; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResponse.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResponse.java index 6e079364c6ab2..5fb402f0b3804 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResponse.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputResponse.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputSingleFileDownloadResponse.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputSingleFileDownloadResponse.java index 7d09e750add6e..ea1c4a478a22b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputSingleFileDownloadResponse.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputSingleFileDownloadResponse.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.multipart; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java index 62881e6efed67..e83b86bf302a8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingReactiveEndpointTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingReactiveEndpointTest.java index a1a7fb1b70879..d1c9c16426ada 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingReactiveEndpointTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOutputUsingReactiveEndpointTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResource.java index a3958b01ae37a..4a2d1a2d6cf5f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResource.java @@ -5,14 +5,14 @@ import java.nio.file.Files; import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResourceWithAllUploads.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResourceWithAllUploads.java index 0f06e28291b8d..050596408b38e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResourceWithAllUploads.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResourceWithAllUploads.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherFormDataBase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherFormDataBase.java index 27549010a8804..605047ba43f7e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherFormDataBase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherFormDataBase.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.multipart; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; public class OtherFormDataBase { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherMultipartResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherMultipartResource.java index f768414f5d39d..bb1152c8c6ad3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherMultipartResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/OtherMultipartResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.multipart; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/otherMultipart") public class OtherMultipartResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java index f71ef64db649a..9e681556c7d36 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java @@ -9,12 +9,12 @@ import java.nio.file.Paths; import java.util.function.Supplier; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/other/OtherPackageFormDataBase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/other/OtherPackageFormDataBase.java index f0db1e86e3ea6..90a02323bd982 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/other/OtherPackageFormDataBase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/other/OtherPackageFormDataBase.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.multipart.other; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/HelloResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/HelloResource.java index 900fd9752b11a..98b48d5f25d5a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/HelloResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/HelloResource.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.PathSegment; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.PathSegment; /** * Per spec: diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/RestApplicationPathTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/RestApplicationPathTestCase.java index 18debb78f1f5b..9d8b56f1bd79e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/RestApplicationPathTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/path/RestApplicationPathTestCase.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.path; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileResource.java index 79f8b18beb6d7..6d427e3f461d3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileResource.java @@ -3,8 +3,8 @@ import java.io.File; import java.nio.file.Paths; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.FilePart; import org.jboss.resteasy.reactive.PathPart; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileTestCase.java index 4670039e90755..c9adc3def2c48 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/FileTestCase.java @@ -7,7 +7,7 @@ import java.nio.file.Path; import java.nio.file.Paths; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.FilePart; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/InvalidFileResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/InvalidFileResource.java index 87460972e6001..71f6884a7f9f1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/InvalidFileResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/InvalidFileResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.providers; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.file.AsyncFile; import io.vertx.ext.web.RoutingContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ParamConverterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ParamConverterTest.java index c0c2447d651c7..60c257a094ea9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ParamConverterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ParamConverterTest.java @@ -10,12 +10,12 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ProviderConfigInjectionTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ProviderConfigInjectionTest.java index 42250dd718a26..4875c1512a780 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ProviderConfigInjectionTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/ProviderConfigInjectionTest.java @@ -2,13 +2,13 @@ import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hamcrest.Matchers; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WithWriterInterceptor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WithWriterInterceptor.java index 9a71db6868751..9d68b882b0b15 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WithWriterInterceptor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WithWriterInterceptor.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.METHOD, ElementType.TYPE }) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WriterInterceptor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WriterInterceptor.java index 4172859a43504..cae816725c8a4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WriterInterceptor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/providers/WriterInterceptor.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.WriterInterceptorContext; @WithWriterInterceptor @Provider -public class WriterInterceptor implements javax.ws.rs.ext.WriterInterceptor { +public class WriterInterceptor implements jakarta.ws.rs.ext.WriterInterceptor { @Override public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortFilterWithLargePayloadTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortFilterWithLargePayloadTest.java index 66194567050c2..e0578888cc5e0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortFilterWithLargePayloadTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortFilterWithLargePayloadTest.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortingRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortingRequestFilter.java index 3f50b252d4c10..4413bc3bb2237 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortingRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/AbortingRequestFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; @Provider public class AbortingRequestFilter implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/BasicGenericTypesHandlingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/BasicGenericTypesHandlingTest.java index 791b146719a93..f2da2a6c2bb9e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/BasicGenericTypesHandlingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/BasicGenericTypesHandlingTest.java @@ -8,14 +8,14 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ClassLevelMediaTypeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ClassLevelMediaTypeTest.java index 2ec2baaa7254a..14ee9776094e7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ClassLevelMediaTypeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ClassLevelMediaTypeTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CollectionDefaultValueTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CollectionDefaultValueTest.java index 6a485a0be885d..93049bc34d32e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CollectionDefaultValueTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CollectionDefaultValueTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ContainerRequestContextTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ContainerRequestContextTest.java index 9943372efa324..116e13954f51b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ContainerRequestContextTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ContainerRequestContextTest.java @@ -5,11 +5,11 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java index 962aee861ff6b..22040d42deb1b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/DefaultMediaTypeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/DefaultMediaTypeTest.java index aab4f7a61973b..a434118763f59 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/DefaultMediaTypeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/DefaultMediaTypeTest.java @@ -3,12 +3,12 @@ import java.io.ByteArrayOutputStream; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericEntityTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericEntityTest.java index 9fd462023d4a8..40678cf526af2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericEntityTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericEntityTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericResourceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericResourceTest.java index 8c3737fab04e0..5f5a8cd043497 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericResourceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/GenericResourceTest.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/HttpHeadersTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/HttpHeadersTest.java index 5b8712e67f08e..1daae9a8c8ffc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/HttpHeadersTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/HttpHeadersTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/InheritanceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/InheritanceTest.java index 49cd28e1b2c2f..cda6508920086 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/InheritanceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/InheritanceTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MatchedResourceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MatchedResourceTest.java index c20cd298b208e..7810b6a33f2de 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MatchedResourceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MatchedResourceTest.java @@ -2,11 +2,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java index 95857595b41f1..8fa390b32c20a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java @@ -4,10 +4,10 @@ import java.util.Collection; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationClientQualityTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationClientQualityTest.java index 7cd1c400919b1..1e55814fd5020 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationClientQualityTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationClientQualityTest.java @@ -6,19 +6,19 @@ import java.lang.reflect.Type; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationServerQualityTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationServerQualityTest.java index 2e02d3a55e877..fe02751c8b68d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationServerQualityTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypeNegotiationServerQualityTest.java @@ -6,21 +6,21 @@ import java.lang.reflect.Type; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypesWithSuffixHandlingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypesWithSuffixHandlingTest.java index 4b741ca17e064..8708809f7d1a6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypesWithSuffixHandlingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MediaTypesWithSuffixHandlingTest.java @@ -7,14 +7,14 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultiInterfaceResLocatorTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultiInterfaceResLocatorTest.java index a7d3920776da8..600f4653e7699 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultiInterfaceResLocatorTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultiInterfaceResLocatorTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultipleAcceptHeaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultipleAcceptHeaderTest.java index 9310daf3d8331..05490bcca6578 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultipleAcceptHeaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/MultipleAcceptHeaderTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.client.ClientBuilder; import org.jboss.resteasy.reactive.client.impl.ClientImpl; import org.jboss.resteasy.reactive.client.impl.WebTargetImpl; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ParameterSubResTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ParameterSubResTest.java index df719e57763c7..13e24cee2d887 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ParameterSubResTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ParameterSubResTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResourceLocatorTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResourceLocatorTest.java index 12e00444a3850..0ea317fca1a22 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResourceLocatorTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResourceLocatorTest.java @@ -5,13 +5,13 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResponseInfoTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResponseInfoTest.java index 7dd534e9c15f6..e40f73601319a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResponseInfoTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/ResponseInfoTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SpecialResourceTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SpecialResourceTest.java index 87afe76813490..283f858e6bdb7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SpecialResourceTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SpecialResourceTest.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceLocatorTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceLocatorTest.java index ee1eccd41fa89..26b765b9535c5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceLocatorTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceLocatorTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceRequestFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceRequestFilterTest.java index d7e17d47148c0..cef368960d6e4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceRequestFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/SubResourceRequestFilterTest.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestPath; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/UriInfoTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/UriInfoTest.java index 1f35d4e6e595c..950ffba649376 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/UriInfoTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/UriInfoTest.java @@ -2,11 +2,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.hamcrest.Matchers; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/WiderMappingNegativeTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/WiderMappingNegativeTest.java index e7edda1646242..b1e109581c281 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/WiderMappingNegativeTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/WiderMappingNegativeTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ApplicationScopeObject.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ApplicationScopeObject.java index fdcc69f595d9e..f10df9d5436d8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ApplicationScopeObject.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ApplicationScopeObject.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ApplicationScopeObject { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ClassLevelMediaTypeResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ClassLevelMediaTypeResource.java index af256f113946a..d3a263a147fe8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ClassLevelMediaTypeResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ClassLevelMediaTypeResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -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("/test") @Produces(MediaType.APPLICATION_JSON) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CollectionDefaultValueResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CollectionDefaultValueResource.java index fdad22edc5261..be8be415635d2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CollectionDefaultValueResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CollectionDefaultValueResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java index 6e29245e45072..0eb7f6aa33406 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; public interface CovariantReturnSubresourceLocatorsRootProxy { @Path("sub/{path}") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java index 5a5754cc135af..6aa2b528ff8c8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface CovariantReturnSubresourceLocatorsSubProxy { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java index 4662374a832c3..6ab43103a75a8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/path") public class CovariantReturnSubresourceLocatorsSubProxyRootImpl implements CovariantReturnSubresourceLocatorsRootProxy { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultCharsetResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultCharsetResource.java index d2c9553a993ec..37604c3daf7ea 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultCharsetResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultCharsetResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class DefaultCharsetResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultMediaTypeResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultMediaTypeResource.java index bbac524ac79ae..ce9432d6388d7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultMediaTypeResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/DefaultMediaTypeResource.java @@ -2,12 +2,12 @@ import java.util.Date; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ExtensionResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ExtensionResource.java index 684bef347005d..259ae93e74889 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ExtensionResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ExtensionResource.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.Locale; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityDoubleWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityDoubleWriter.java index 71d63ad1ecab9..d60c147ed5356 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityDoubleWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityDoubleWriter.java @@ -7,12 +7,12 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityFloatWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityFloatWriter.java index 4f1f63d2109f1..c5584245b4c11 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityFloatWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityFloatWriter.java @@ -7,12 +7,12 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java index 6442c65c9ac41..7d20c36619c01 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java @@ -7,11 +7,11 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityResource.java index 3f075a6f8bbf4..598e5ed4c7431 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericEntityResource.java @@ -3,10 +3,10 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.Response; @Path("/") public class GenericEntityResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceCrudResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceCrudResource.java index 5b73f1171a34a..4b9b08ce4c619 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceCrudResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceCrudResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * This is a sample of a CRUD resource template which can be reused for different entities. diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentCrudResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentCrudResource.java index 1532702e78634..f90638347e1ed 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentCrudResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentCrudResource.java @@ -3,9 +3,9 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; /** * RESTEasy should be able to use type parameter values (Student, Integer) for (de)marshalling parameters/entity body. diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentInterface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentInterface.java index ede0b3e055602..6b1337630ce6c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentInterface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentInterface.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; /** * This interface is used on the client side only. diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentReader.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentReader.java index 9bd73fe406d94..9b8c4491424c6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentReader.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentReader.java @@ -7,12 +7,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; @Provider @Consumes("application/student") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentWriter.java index 71648f112e9d0..e5352f5646510 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GenericResourceStudentWriter.java @@ -6,12 +6,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces("application/student") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GetAbsolutePathResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GetAbsolutePathResource.java index b35f1bd895ada..520a5024cae12 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GetAbsolutePathResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/GetAbsolutePathResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; @Path("absolutePath") public class GetAbsolutePathResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/HttpHeadersResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/HttpHeadersResource.java index 70ff2175bda5e..317ad1962a1a1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/HttpHeadersResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/HttpHeadersResource.java @@ -8,14 +8,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResource.java index 97a1f59331cb0..dafae78a13113 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface InheritanceParentResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResourceImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResourceImpl.java index 539810789c2f4..889e4a01f33ef 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResourceImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/InheritanceParentResourceImpl.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path(value = "/InheritanceTest") public class InheritanceParentResourceImpl implements InheritanceParentResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MatchedResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MatchedResource.java index e1e8c2c209872..f5af470e89c97 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MatchedResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MatchedResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class MatchedResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java index 456d56f81d82b..7ea9b78950af7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.Collection; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.TEXT_PLAIN + "; charset=UTF-8") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java index 6c048a6791aa0..76c67e6f88632 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.Collection; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.APPLICATION_XML + "; charset=UTF-8") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java index 66c4f15f76564..8fc5281d93763 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java @@ -3,15 +3,15 @@ import java.util.Arrays; import java.util.List; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; @Path("/") public class MediaTypeFromMessageBodyWriterResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java index 9782b667f5423..3935d00ca1ce1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public interface MultiInterfaceResLocatorIntf1 { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java index 8111192887a05..2104e8b5639b3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public interface MultiInterfaceResLocatorIntf2 { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorResource.java index 32c9e91131bba..70488cab16f57 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultiInterfaceResLocatorResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class MultiInterfaceResLocatorResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultipleGetResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultipleGetResource.java index 911cc3553f3ee..79389cd3f375c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultipleGetResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/MultipleGetResource.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api") @Produces(MediaType.APPLICATION_JSON) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResClassSub.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResClassSub.java index 49c950756375e..b07af97f577d7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResClassSub.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResClassSub.java @@ -2,13 +2,13 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericInterface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericInterface.java index d9862c779209d..a6ccaae4608b2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericInterface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericInterface.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.QueryParam; public interface ParameterSubResGenericInterface { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericSub.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericSub.java index 621810fead935..a0918089a263d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericSub.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResGenericSub.java @@ -5,7 +5,7 @@ import java.lang.reflect.Proxy; import java.util.List; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("generic") public class ParameterSubResGenericSub { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResInternalInterface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResInternalInterface.java index be75c62d2e6dd..4066e2c7c516a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResInternalInterface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResInternalInterface.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.PUT; +import jakarta.ws.rs.PUT; public interface ParameterSubResInternalInterface { @PUT diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRoot.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRoot.java index 7ca75b42c58e3..ba46d8d46afc8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRoot.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRoot.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; public interface ParameterSubResRoot { @Path("sub/{path}") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRootImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRootImpl.java index 8719ce20f2971..36708505544c3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRootImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResRootImpl.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/path") public class ParameterSubResRootImpl implements ParameterSubResRoot { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResSub.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResSub.java index 79d615a7f1402..45d6d920d1128 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResSub.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ParameterSubResSub.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface ParameterSubResSub { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/RequestScopedObject.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/RequestScopedObject.java index 771dff2e2baf1..6f96140cd705c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/RequestScopedObject.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/RequestScopedObject.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class RequestScopedObject { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceInfoInjectionFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceInfoInjectionFilter.java index 818276a62f84a..5c0089b6ecc02 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceInfoInjectionFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceInfoInjectionFilter.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.lang.reflect.Method; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.Provider; @Provider public class ResourceInfoInjectionFilter implements ContainerResponseFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorBaseResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorBaseResource.java index 8b8d305ffd849..319833214901b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorBaseResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorBaseResource.java @@ -5,10 +5,10 @@ import java.lang.reflect.Proxy; import java.util.List; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorCollectionResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorCollectionResource.java index f4462d3253938..19884a6a3ec4b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorCollectionResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorCollectionResource.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/collection") public class ResourceLocatorCollectionResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorDirectory.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorDirectory.java index 9a4844292bd04..5edfcb8c77674 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorDirectory.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorDirectory.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/directory") public class ResourceLocatorDirectory { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorReceiver.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorReceiver.java index 16dbf319af970..56f901bcb0f66 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorReceiver.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorReceiver.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; public class ResourceLocatorReceiver { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorRootInterface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorRootInterface.java index dc019b7baf31a..393c4f6080805 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorRootInterface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorRootInterface.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Produces(MediaType.TEXT_PLAIN) public interface ResourceLocatorRootInterface { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubInterface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubInterface.java index 9f2cb61f3f0ed..574bb3d920e65 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubInterface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubInterface.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Produces(MediaType.TEXT_PLAIN) public interface ResourceLocatorSubInterface extends ResourceLocatorRootInterface { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource.java index 916ffc241f6f5..febacd2ff7ef2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.RestPath; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource2.java index 069786972a9dc..637ca33eb0afc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource2.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java index 871463c73e923..d0aeb0ae9cbf1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; public interface ResourceLocatorSubresource3Interface { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResponseInfoResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResponseInfoResource.java index 0c518d330a1f0..e35a34898206e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResponseInfoResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ResponseInfoResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanProxy.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanProxy.java index f57d270263e35..b287aa49ea256 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanProxy.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanProxy.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/test") public interface ScanProxy { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanSubresource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanSubresource.java index c57ffae49ed8b..578779ac761e9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanSubresource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/ScanSubresource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public class ScanSubresource { @Path("doit") diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceApiResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceApiResource.java index 4262119cf37e6..596d7f49bd662 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceApiResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceApiResource.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceDeleteResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceDeleteResource.java index ff7d79bee4816..7214bbb6a781a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceDeleteResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceDeleteResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceStreamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceStreamResource.java index b2f3eba6be5d4..4f1b96e69f01d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceStreamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SpecialResourceStreamResource.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.io.InputStream; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/inputstream") public class SpecialResourceStreamResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java index 00ff276718574..03ad67d685b57 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java @@ -2,15 +2,15 @@ import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public interface SubResourceLocatorBaseCrudService { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseService.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseService.java index 824ce81f8e3b2..4046d87e9fd4a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseService.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorBaseService.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; public interface SubResourceLocatorBaseService extends SubResourceLocatorBaseCrudService { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorFoo.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorFoo.java index 116f1388974f8..589e570bd82a8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorFoo.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorFoo.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; public interface SubResourceLocatorFoo { @GET diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorImpFoo.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorImpFoo.java index 20f6f13b82722..b69c285a18996 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorImpFoo.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorImpFoo.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("blah") public class SubResourceLocatorImpFoo implements SubResourceLocatorFoo { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java index 58e19750e944d..352928bc3b99e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; public class SubResourceLocatorPlatformServiceImpl implements SubResourceLocatorPlatformServiceResource { @Override diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java index 39d503eb55c0b..6edec186c5787 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/platform") public interface SubResourceLocatorPlatformServiceResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorUserResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorUserResource.java index f8c63ce5a8936..904df9157b675 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorUserResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/SubResourceLocatorUserResource.java @@ -2,16 +2,16 @@ import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; @Path("/users") public interface SubResourceLocatorUserResource extends SubResourceLocatorBaseService { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedQueryResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedQueryResource.java index 86cb2b953627a..3dc1156257565 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedQueryResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedQueryResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedTemplateResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedTemplateResource.java index b0eed0db506e2..b96644f68f70a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedTemplateResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEncodedTemplateResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java index 509bd62d62b05..e6e8d919bd602 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.MatrixParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.MatrixParam; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoQueryParamsResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoQueryParamsResource.java index fe86c2fa716fc..9c8680fe8efe6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoQueryParamsResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoQueryParamsResource.java @@ -4,12 +4,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoRelativizeResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoRelativizeResource.java index 981c2a36063b7..50d784e3e30fa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoRelativizeResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoRelativizeResource.java @@ -2,12 +2,12 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; @Path("/") public class UriInfoRelativizeResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleResource.java index 7ba33b4faa167..4dc7cc4e1ab33 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleSingletonResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleSingletonResource.java index 5c92562566c6f..8671e713e4b99 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleSingletonResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/UriInfoSimpleSingletonResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingDefaultOptions.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingDefaultOptions.java index 884a094974b9e..f6ca132bb404f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingDefaultOptions.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingDefaultOptions.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.Path; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.Path; @Path("{x:.*}") public class WiderMappingDefaultOptions { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingResource.java index 737e54b1678a5..a6e3463919912 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resource/basic/resource/WiderMappingResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resource.basic.resource; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/hello") public class WiderMappingResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ChunkedResponseTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ChunkedResponseTest.java index ae68349b887c2..025583a9456fe 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ChunkedResponseTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ChunkedResponseTest.java @@ -11,14 +11,14 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/NullHeaderTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/NullHeaderTestCase.java index de539d169c823..e5f742510937e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/NullHeaderTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/NullHeaderTestCase.java @@ -4,13 +4,13 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ResponseTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ResponseTest.java index a4c2a6877327b..0082df9202e63 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ResponseTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/ResponseTest.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.response; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/RestResponseResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/RestResponseResource.java index 41581c6eaef40..c133abfcefe56 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/RestResponseResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/response/RestResponseResource.java @@ -7,13 +7,13 @@ import java.util.Locale; import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncFilterExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncFilterExceptionMapper.java index 8ab56151e64a0..ecce4a0cd7390 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncFilterExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncFilterExceptionMapper.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class AsyncFilterExceptionMapper implements ExceptionMapper { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java index 467b7b48421d3..1aab642a63ae1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(1) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java index 3260a8f238804..fc4c9475d32c1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(2) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java index 20abdb936d140..d2197a54ec80c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(3) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter.java index b084a64a9f382..3b2fc578c9ffa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter.java @@ -4,7 +4,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter1.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter1.java index e95b9bf707967..3828d672eace3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter1.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter1.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(1) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter2.java index 70379bfb39975..8cfe52c282fd4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter2.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(2) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter3.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter3.java index 584e67e65ba16..232239efbaf40 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter3.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilter3.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(3) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterResource.java index ef8d14c1b669f..7d1ed88ed1ca4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterResource.java @@ -5,12 +5,12 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterTest.java index 5bc56de01ab82..be4a258482881 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncRequestFilterTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.jboss.logging.Logger; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResource.java index 4cd637586bca5..72f6a98383cd6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResource.java @@ -4,13 +4,13 @@ import java.io.StringWriter; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter.java index fd6615825a578..7892aa7e022f5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter.java @@ -6,7 +6,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter1.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter1.java index dce1fa1d4d91b..97f0ed80c557a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter1.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter1.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(1) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter2.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter2.java index 6a32c14b64d81..7f92320d0f83b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter2.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter2.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(2) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter3.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter3.java index 7b93d87611795..576a6182519dc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter3.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/resteasy/async/filters/AsyncResponseFilter3.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(3) @Provider diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationFailedExceptionHeaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationFailedExceptionHeaderTest.java index 4b4c3d67efe79..144382c69c303 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationFailedExceptionHeaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationFailedExceptionHeaderTest.java @@ -6,7 +6,7 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionHeaderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionHeaderTest.java index 35157e762ad77..30864020f322d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionHeaderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionHeaderTest.java @@ -7,7 +7,7 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionMapperTest.java index e5a6d2905b6d8..193e283828267 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/AuthenticationRedirectExceptionMapperTest.java @@ -4,8 +4,8 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/CustomExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/CustomExceptionMapperTest.java index bc65814e0c2e8..7c279f4a29396 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/CustomExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/CustomExceptionMapperTest.java @@ -2,10 +2,10 @@ import static io.restassured.RestAssured.when; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/HelloResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/HelloResource.java index 5f470ccf640f7..cedacce83d235 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/HelloResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/HelloResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllBlockingResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllBlockingResource.java index 68208cecf59ae..4a6ade5aee8e1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllBlockingResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllBlockingResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.common.annotation.Blocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllResource.java index 9854125d2517e..7d72a18054ba5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/PermitAllResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.common.annotation.NonBlocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionHandlerTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionHandlerTest.java index 49adcf5d43756..d69053601e665 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionHandlerTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionHandlerTest.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.security; -import static javax.ws.rs.core.Response.Status.UNAUTHORIZED; +import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; import java.util.function.Supplier; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionMapperTest.java index 61f250e251ee3..c1fe4cc7fcfcd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthCompletionExceptionMapperTest.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.security; -import static javax.ws.rs.core.Response.Status.UNAUTHORIZED; +import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; import java.util.function.Supplier; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; @@ -69,4 +69,4 @@ public Response unauthorized() { } -} \ No newline at end of file +} diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenExMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenExMapperTest.java index e16c8b2ee787f..277143e2577fb 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenExMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenExMapperTest.java @@ -1,13 +1,13 @@ package io.quarkus.resteasy.reactive.server.test.security; -import static javax.ws.rs.core.Response.Status.FORBIDDEN; +import static jakarta.ws.rs.core.Response.Status.FORBIDDEN; import static org.hamcrest.Matchers.equalTo; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.shrinkwrap.api.ShrinkWrap; @@ -76,4 +76,4 @@ public Response forbidden() { } -} \ No newline at end of file +} diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenHandlerTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenHandlerTest.java index 15ce1ca3a4b96..5fa95ba687eaa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenHandlerTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/ProactiveAuthHttpPolicyForbiddenHandlerTest.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.reactive.server.test.security; -import static javax.ws.rs.core.Response.Status.FORBIDDEN; +import static jakarta.ws.rs.core.Response.Status.FORBIDDEN; import static org.hamcrest.Matchers.equalTo; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedBlockingResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedBlockingResource.java index d3fa6f2e7aa3d..17eb48b30ee5f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedBlockingResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedBlockingResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.identity.CurrentIdentityAssociation; import io.smallrye.common.annotation.Blocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedJaxRsTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedJaxRsTestCase.java index 5621fb9fe9067..6df18df664b07 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedJaxRsTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedJaxRsTestCase.java @@ -8,11 +8,11 @@ import java.lang.reflect.Type; import java.util.Arrays; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedResource.java index ede7b1a80968b..bcbc12f51b34f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.identity.CurrentIdentityAssociation; import io.smallrye.common.annotation.NonBlocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedService.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedService.java index 716baa62472d0..23c1203c114e8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedService.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedService.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class RolesAllowedService { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedServiceResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedServiceResource.java index b67faaa6b9317..6ded9428be1b0 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedServiceResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/RolesAllowedServiceResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/roles-service") public class RolesAllowedServiceResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityOverrideFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityOverrideFilter.java index 5e9f8d1f53902..4850fa18ac982 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityOverrideFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityOverrideFilter.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.security.Principal; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.ext.Provider; @Provider @PreMatching diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityWithMethodGenericsTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityWithMethodGenericsTest.java index 16db7d24dde92..94a5446b55170 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityWithMethodGenericsTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SecurityWithMethodGenericsTest.java @@ -7,15 +7,15 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.providers.serialisers.ServerDefaultTextPlainBodyHandler; import org.junit.jupiter.api.BeforeAll; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SerializationRolesResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SerializationRolesResource.java index e2b273183fa33..97b9fe7175218 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SerializationRolesResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/SerializationRolesResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import io.smallrye.common.annotation.Blocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredResource.java index 72ea700a0edff..9129d5c4c9726 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.common.annotation.NonBlocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredSubResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredSubResource.java index 212678ae7b6d1..346248abc0ac9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredSubResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UnsecuredSubResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UserResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UserResource.java index c751cd7b7c7a1..10ac3f90765df 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UserResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/security/UserResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.security; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import io.smallrye.common.annotation.Blocking; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationPathTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationPathTest.java index 8ccc6343c3432..d104482278ff3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationPathTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationPathTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationTest.java index 3d7b3be0844ba..e4958029a1c97 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationTest.java @@ -9,15 +9,15 @@ import java.util.HashSet; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.*; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.*; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationWithBlockingTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationWithBlockingTest.java index 880ad64150276..e280e86eae0ae 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationWithBlockingTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ApplicationWithBlockingTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Bar.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Bar.java index 1fca320a2bfb0..db72b4de9985c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Bar.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Bar.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSubClass.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSubClass.java index 26979401343a0..0d2c810accfce 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSubClass.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSubClass.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSuperClass.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSuperClass.java index 5e5920d7187e8..83372e380cddf 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSuperClass.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BeanParamSuperClass.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BlockingWithFilterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BlockingWithFilterTest.java index 8ec903acc438b..6550634388557 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BlockingWithFilterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BlockingWithFilterTest.java @@ -6,11 +6,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BuildProfileTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BuildProfileTest.java index fc85caf6675f0..723c5df4a9c9b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BuildProfileTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/BuildProfileTest.java @@ -6,18 +6,18 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.DisplayName; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ContextParamFromCdiTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ContextParamFromCdiTest.java index ce96213d7144f..cd79a98328abd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ContextParamFromCdiTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ContextParamFromCdiTest.java @@ -1,11 +1,11 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/DynamicFeatureRequestFilterWithLowPriority.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/DynamicFeatureRequestFilterWithLowPriority.java index 376612d254a1c..a82d849425472 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/DynamicFeatureRequestFilterWithLowPriority.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/DynamicFeatureRequestFilterWithLowPriority.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; @Priority(Priorities.USER + 1000) public class DynamicFeatureRequestFilterWithLowPriority implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureMappedExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureMappedExceptionMapper.java index f95bea81a89e7..f332f46b938b1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureMappedExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureMappedExceptionMapper.java @@ -2,8 +2,8 @@ import java.io.Serializable; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; public class FeatureMappedExceptionMapper implements Cloneable, ExceptionMapper, Serializable { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithHighestPriority.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithHighestPriority.java index d8747131ffcea..83332a0e94d04 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithHighestPriority.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithHighestPriority.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; @Priority(Priorities.AUTHENTICATION) public class FeatureRequestFilterWithHighestPriority implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithNormalPriority.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithNormalPriority.java index f3e30db9219cd..b5f99b860b7dc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithNormalPriority.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureRequestFilterWithNormalPriority.java @@ -2,8 +2,8 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; public class FeatureRequestFilterWithNormalPriority implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureResponseFilter.java index 6c7e4cab8cb1a..5aaafa4941134 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FeatureResponseFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; public class FeatureResponseFilter implements ContainerResponseFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedResource.java index a3776b3e9c462..13c2cb34a46dd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedResource.java @@ -1,12 +1,12 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedSubClassResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedSubClassResource.java index bdbc47772cc09..50da704dc3603 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedSubClassResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/FieldInjectedSubClassResource.java @@ -1,13 +1,13 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.validation.constraints.NotNull; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Foo.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Foo.java index 8c58b741625c3..797e427499317 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Foo.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Foo.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HeaderParamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HeaderParamResource.java index 921a8cbfea0cf..ba2549fb490ed 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HeaderParamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HeaderParamResource.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; @Path("/ctor-header") public class HeaderParamResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HelloService.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HelloService.java index 2656f4c068fd4..7c900e8713e9f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HelloService.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/HelloService.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import io.vertx.ext.web.RoutingContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java index 9948f486809a3..8e9cd5802221b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/IllegalClassExceptionMapper.java @@ -6,9 +6,9 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResource.java index c1871daa1da30..58f9b34c2bc75 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResource.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.simple; -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("iface") public interface InterfaceResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResourceImpl.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResourceImpl.java index e7943d12c2f94..ec761fd162d81 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResourceImpl.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceResourceImpl.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.inject.Inject; +import jakarta.inject.Inject; public class InterfaceResourceImpl implements InterfaceResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceWithImplTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceWithImplTest.java index c45fc5348e202..57508ca9d71c1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceWithImplTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/InterfaceWithImplTest.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.simple; -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; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Issue22408TestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Issue22408TestCase.java index 45544cd36c152..26a7fb22cd564 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Issue22408TestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Issue22408TestCase.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateCustomParamConverterProviderTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateCustomParamConverterProviderTest.java index 2124f1f3cc5f0..0b75ea11fa838 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateCustomParamConverterProviderTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateCustomParamConverterProviderTest.java @@ -5,13 +5,13 @@ import java.time.LocalDate; import java.time.format.DateTimeFormatter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateParamTest.java index 40aa121072a95..da8fda7059e8a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/LocalDateParamTest.java @@ -2,10 +2,10 @@ import java.time.LocalDate; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MapWithParamConverterTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MapWithParamConverterTest.java index 2f3a9ec1d4370..419dfdd721533 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MapWithParamConverterTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MapWithParamConverterTest.java @@ -6,12 +6,12 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterConverter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterConverter.java index 62f5bad385c7e..b00d83888ab90 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterConverter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterConverter.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; public class MyParameterConverter implements ParamConverter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterProvider.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterProvider.java index 7937e776b45d4..114c9c4cc97ab 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterProvider.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/MyParameterProvider.java @@ -3,9 +3,9 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; @Provider public class MyParameterProvider implements ParamConverterProvider { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/NewParamsRestResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/NewParamsRestResource.java index 1179ce0fb1321..c409c17458efd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/NewParamsRestResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/NewParamsRestResource.java @@ -2,20 +2,20 @@ import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.Providers; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.Providers; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.reactive.RestCookie; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OptionalQueryParamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OptionalQueryParamResource.java index a27c34bd9fb0a..90beb87d2e802 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OptionalQueryParamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OptionalQueryParamResource.java @@ -7,9 +7,9 @@ import java.util.SortedSet; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("/optional-query/greetings") public class OptionalQueryParamResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OtherBeanParam.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OtherBeanParam.java index a10d946fa4224..e3685677b0516 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OtherBeanParam.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/OtherBeanParam.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Person.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Person.java index e28b55e4c0597..774707bf97040 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Person.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/Person.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotBlank; public class Person { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/QueryParamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/QueryParamResource.java index 805a0f2f112e0..2457d036ec257 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/QueryParamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/QueryParamResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; @Path("/ctor-query") public class QueryParamResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RawListQueryParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RawListQueryParamTest.java index 957f14806e1d7..25f81c6744caf 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RawListQueryParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RawListQueryParamTest.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RequestScopeExceptionMapperTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RequestScopeExceptionMapperTest.java index 2230316e74299..5ca8a2f472a88 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RequestScopeExceptionMapperTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RequestScopeExceptionMapperTest.java @@ -2,15 +2,15 @@ import java.util.function.Supplier; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.NotAllowedException; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotAllowedException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ResourceInfoInjectingFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ResourceInfoInjectingFilter.java index 2b3a815660727..7b00270808fa3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ResourceInfoInjectingFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/ResourceInfoInjectingFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; @Provider public class ResourceInfoInjectingFilter implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootAResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootAResource.java index 3e8a40917028d..f08c28f0e9937 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootAResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootAResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/") public class RootAResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootBResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootBResource.java index 0184794913c48..78ebe5996e3c3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootBResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/RootBResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/") public class RootBResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SeparatorQueryParamTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SeparatorQueryParamTest.java index c520568020663..c6ad9820b5ff8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SeparatorQueryParamTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SeparatorQueryParamTest.java @@ -4,9 +4,9 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleBeanParam.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleBeanParam.java index bf3a4763e2d18..b0efa1a108c1e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleBeanParam.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleBeanParam.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleQuarkusRestResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleQuarkusRestResource.java index 895a728bbd143..ec39fe9b19749 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleQuarkusRestResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SimpleQuarkusRestResource.java @@ -6,32 +6,32 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.json.JsonArray; -import javax.json.JsonObject; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HEAD; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.PATCH; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Providers; +import jakarta.inject.Inject; +import jakarta.json.JsonArray; +import jakarta.json.JsonObject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HEAD; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.PATCH; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Providers; import org.jboss.resteasy.reactive.RestHeader; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SubResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SubResource.java index e1546a77d6fc8..79a38e23e154a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SubResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/SubResource.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PATCH; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PATCH; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; public class SubResource { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TRACE.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TRACE.java index 51512f8de968f..8f7d2d83fac7f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TRACE.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TRACE.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.HttpMethod; +import jakarta.ws.rs.HttpMethod; @HttpMethod("TRACE") @Target(value = ElementType.METHOD) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarRequestFilter.java index d022a9a183caf..0a063dc18ce2e 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarRequestFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Bar diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarResponseFilter.java index 098d5ae13742a..9af2a8e0d7fd5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestBarResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Bar diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestDynamicFeature.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestDynamicFeature.java index 6c2d0af92ba4a..1d64fe5e316cd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestDynamicFeature.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestDynamicFeature.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; @Provider public class TestDynamicFeature implements DynamicFeature { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestExceptionMapper.java index dea268a763a09..577e359eec92d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class TestExceptionMapper implements ExceptionMapper { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFeature.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFeature.java index 46724cc504241..063df758b71ba 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFeature.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFeature.java @@ -1,9 +1,9 @@ package io.quarkus.resteasy.reactive.server.test.simple; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; @Provider public class TestFeature implements Feature { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarRequestFilter.java index 2fe83a04bf17f..d7b1efb1cb24f 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarRequestFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarResponseFilter.java index dc46967780589..b0db0e64178a5 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooBarResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooRequestFilter.java index d59cb2059b7ae..19b3095587c3d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooRequestFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import io.vertx.core.http.HttpServerRequest; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooResponseFilter.java index 519ee0f7f57a7..becf2c82bfd9d 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestFooResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestPreMatchRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestPreMatchRequestFilter.java index 4b8ff257647c9..ca8b0e292585c 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestPreMatchRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestPreMatchRequestFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @Provider @PreMatching diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilter.java index e56f5c19edc11..2430ce0617460 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider public class TestRequestFilter implements ContainerRequestFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighPriority.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighPriority.java index c7fe67b4e3436..33133c1d5a67a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighPriority.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighPriority.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Priority(Priorities.AUTHORIZATION) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighestPriority.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighestPriority.java index 32cc859af874f..7b59b0e6d5d05 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighestPriority.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestRequestFilterWithHighestPriority.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Priority(Priorities.AUTHENTICATION) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestResponseFilter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestResponseFilter.java index 1d4504d7a6a8c..3c40fe267c8d1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestResponseFilter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestResponseFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider public class TestResponseFilter implements ContainerResponseFilter { diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestUtil.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestUtil.java index 149a01aa04cd1..4bb72a7f66cdc 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestUtil.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestUtil.java @@ -11,7 +11,7 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.logging.Logger; import org.jboss.shrinkwrap.api.Archive; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestWriter.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestWriter.java index bad67513e8451..590c0d0820629 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestWriter.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/simple/TestWriter.java @@ -6,12 +6,12 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.TEXT_PLAIN) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/status/ResponseStatusTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/status/ResponseStatusTest.java index ef843a52c456a..a8496f9d1d8b9 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/status/ResponseStatusTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/status/ResponseStatusTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseStatus; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java index 31f931789d3de..c42dea196633a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java @@ -5,13 +5,13 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.Sse; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.Sse; import org.jboss.resteasy.reactive.common.util.MultiCollectors; import org.reactivestreams.Publisher; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java index f1615e674ad80..75e9830a024f2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java @@ -9,10 +9,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.client.impl.MultiInvoker; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stress/SuspendResumeStressTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stress/SuspendResumeStressTest.java index 5b3e3e6c0a94b..3244221fbb126 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stress/SuspendResumeStressTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stress/SuspendResumeStressTest.java @@ -8,8 +8,8 @@ import java.util.concurrent.Executors; import java.util.function.Consumer; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.jandex.ClassInfo; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/transformation/AnnotationTransformationTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/transformation/AnnotationTransformationTest.java index 938cd2da93dea..6fb2650109dc2 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/transformation/AnnotationTransformationTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/transformation/AnnotationTransformationTest.java @@ -11,8 +11,8 @@ import java.util.Collections; import java.util.function.Consumer; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.Path; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.jandex.AnnotationInstance; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/websocket/WebSocketResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/websocket/WebSocketResource.java index 32bc4efa94674..f3e80034ccc5b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/websocket/WebSocketResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/websocket/WebSocketResource.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.websocket; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.Handler; import io.vertx.core.http.ServerWebSocket; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/NotFoundExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/NotFoundExceptionMapper.java index 80a154f2bbce1..6c9b447a175f1 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/NotFoundExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/NotFoundExceptionMapper.java @@ -23,13 +23,13 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Variant; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.util.ServerMediaType; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusContextProducers.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusContextProducers.java index 1f9b04bbbba7a..f23cd1e048b4b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusContextProducers.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusContextProducers.java @@ -1,10 +1,10 @@ package io.quarkus.resteasy.reactive.server.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.ws.rs.ext.Providers; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.ws.rs.ext.Providers; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; import org.jboss.resteasy.reactive.server.jaxrs.ProvidersImpl; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusCurrentRequest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusCurrentRequest.java index 786c97e6f4b56..3b9dc718b2ef6 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusCurrentRequest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusCurrentRequest.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.runtime; -import javax.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.ContextNotActiveException; import org.jboss.resteasy.reactive.server.core.CurrentRequest; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusResteasyReactiveRequestContext.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusResteasyReactiveRequestContext.java index 0d772ca1a5c39..279698e570ca4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusResteasyReactiveRequestContext.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/QuarkusResteasyReactiveRequestContext.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.runtime; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.SecurityContext; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.spi.ServerRestHandler; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveCompressionHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveCompressionHandler.java index 237cd8c8694fc..c6be2343ccdb3 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveCompressionHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveCompressionHandler.java @@ -2,8 +2,8 @@ import java.util.Set; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.core.EncodedMediaType; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveRecorder.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveRecorder.java index 12ff82477be4c..e6ec3e33e8405 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveRecorder.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveRecorder.java @@ -14,7 +14,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveSecurityContext.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveSecurityContext.java index 63b6e385fed34..05a5a12f556c4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveSecurityContext.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveSecurityContext.java @@ -2,7 +2,7 @@ import java.security.Principal; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.SecurityContext; import io.quarkus.security.identity.CurrentIdentityAssociation; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveTestHttpProvider.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveTestHttpProvider.java index 995b090653838..0aa4fdea04576 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveTestHttpProvider.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/ResteasyReactiveTestHttpProvider.java @@ -5,7 +5,7 @@ import java.util.Optional; import java.util.function.Function; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/StandardSecurityCheckInterceptor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/StandardSecurityCheckInterceptor.java index 6b94b33b4a126..cd42e556e3166 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/StandardSecurityCheckInterceptor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/StandardSecurityCheckInterceptor.java @@ -5,14 +5,14 @@ import java.lang.reflect.Method; -import javax.annotation.Priority; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; @@ -59,7 +59,7 @@ public static final class RolesAllowedInterceptor extends StandardSecurityCheckI } /** - * Prevent the SecurityHandler from performing {@link javax.annotation.security.PermitAll} security checks + * Prevent the SecurityHandler from performing {@link jakarta.annotation.security.PermitAll} security checks */ @Interceptor @PermitAll diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationCompletionExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationCompletionExceptionMapper.java index d3f1dd499923f..acf80b9c11b8b 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationCompletionExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationCompletionExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import io.quarkus.security.AuthenticationCompletionException; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationFailedExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationFailedExceptionMapper.java index cbf6d994e8424..bb2148a87c7a7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationFailedExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationFailedExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationRedirectExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationRedirectExceptionMapper.java index 2dc9d1e0fc486..577afae40a549 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationRedirectExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/AuthenticationRedirectExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import io.quarkus.security.AuthenticationRedirectException; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/ForbiddenExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/ForbiddenExceptionMapper.java index bfad75655a6c9..dfb42218a2aeb 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/ForbiddenExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/ForbiddenExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import io.quarkus.security.ForbiddenException; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/SecurityExceptionMapperUtil.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/SecurityExceptionMapperUtil.java index 375e2a3e26c60..4872aeb141470 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/SecurityExceptionMapperUtil.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/SecurityExceptionMapperUtil.java @@ -4,7 +4,7 @@ import java.util.function.Function; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import io.quarkus.vertx.http.runtime.security.ChallengeData; import io.quarkus.vertx.http.runtime.security.HttpAuthenticator; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/UnauthorizedExceptionMapper.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/UnauthorizedExceptionMapper.java index 84246647466d4..12678be09af16 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/UnauthorizedExceptionMapper.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/exceptionmappers/UnauthorizedExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/SecurityContextOverrideHandler.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/SecurityContextOverrideHandler.java index 9f346c1d56ea3..64e04f1eb5c92 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/SecurityContextOverrideHandler.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/SecurityContextOverrideHandler.java @@ -8,7 +8,7 @@ import java.util.Set; import java.util.function.Function; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.SecurityContext; import org.jboss.resteasy.reactive.common.model.ResourceClass; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/websocket/VertxWebSocketParamExtractor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/websocket/VertxWebSocketParamExtractor.java index 2c3ebfbdd88ff..b639fa9718da8 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/websocket/VertxWebSocketParamExtractor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/websocket/VertxWebSocketParamExtractor.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.runtime.websocket; -import javax.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.CompletionCallback; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.core.parameters.ParameterExtractor; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/test/java/io/quarkus/resteasy/reactive/runtime/mapping/TypeSignatureParserTest.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/test/java/io/quarkus/resteasy/reactive/runtime/mapping/TypeSignatureParserTest.java index fa3f116917225..0ddb58a0af628 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/test/java/io/quarkus/resteasy/reactive/runtime/mapping/TypeSignatureParserTest.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/runtime/src/test/java/io/quarkus/resteasy/reactive/runtime/mapping/TypeSignatureParserTest.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Map; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.util.TypeLiteral; import org.jboss.resteasy.reactive.common.util.types.TypeSignatureParser; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/ContextTypeBuildItem.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/ContextTypeBuildItem.java index cfea09343a228..401f10f51e337 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/ContextTypeBuildItem.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/ContextTypeBuildItem.java @@ -1,6 +1,6 @@ package io.quarkus.resteasy.reactive.server.spi; -import javax.ws.rs.core.Context; +import jakarta.ws.rs.core.Context; import org.jboss.jandex.DotName; diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/UnwrappedExceptionBuildItem.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/UnwrappedExceptionBuildItem.java index 5cdee8cf359a4..6cb915916c3fa 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/UnwrappedExceptionBuildItem.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/spi-deployment/src/main/java/io/quarkus/resteasy/reactive/server/spi/UnwrappedExceptionBuildItem.java @@ -3,7 +3,7 @@ import io.quarkus.builder.item.MultiBuildItem; /** - * When an Exception of this type is thrown and no {@code javax.ws.rs.ext.ExceptionMapper} exists, + * When an Exception of this type is thrown and no {@code jakarta.ws.rs.ext.ExceptionMapper} exists, * then RESTEasy Reactive will attempt to locate an {@code ExceptionMapper} for the cause of the Exception. */ public final class UnwrappedExceptionBuildItem extends MultiBuildItem { diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/main/java/io/quarkus/rest/client/reactive/jackson/deployment/RestClientReactiveJacksonProcessor.java b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/main/java/io/quarkus/rest/client/reactive/jackson/deployment/RestClientReactiveJacksonProcessor.java index 7b7d967cab8aa..12fe28143cc6e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/main/java/io/quarkus/rest/client/reactive/jackson/deployment/RestClientReactiveJacksonProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/main/java/io/quarkus/rest/client/reactive/jackson/deployment/RestClientReactiveJacksonProcessor.java @@ -7,8 +7,8 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/BadRequestNotPropagatedTestCase.java b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/BadRequestNotPropagatedTestCase.java index df985eb8e0bbc..9e03af7e052cb 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/BadRequestNotPropagatedTestCase.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/BadRequestNotPropagatedTestCase.java @@ -3,16 +3,16 @@ import java.net.URL; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/MultiSseTest.java b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/MultiSseTest.java index 53e2147f4146f..cecc8a6be8f97 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/MultiSseTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/deployment/src/test/java/io/quarkus/rest/client/reactive/jackson/test/MultiSseTest.java @@ -9,11 +9,11 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -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.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyReader.java b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyReader.java index 662a9a77ee378..19d3d79d72b64 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyReader.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyReader.java @@ -8,11 +8,11 @@ import java.util.concurrent.ConcurrentMap; import java.util.function.Function; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.ClientWebApplicationException; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyWriter.java b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyWriter.java index 3c8158c1c725a..1ba281fc8c3e8 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyWriter.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jackson/runtime/src/main/java/io/quarkus/rest/client/reactive/jackson/runtime/serialisers/ClientJacksonMessageBodyWriter.java @@ -11,11 +11,11 @@ import java.util.concurrent.ConcurrentMap; import java.util.function.Function; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/main/java/io/quarkus/rest/client/reactive/jaxb/deployment/RestClientReactiveJaxbProcessor.java b/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/main/java/io/quarkus/rest/client/reactive/jaxb/deployment/RestClientReactiveJaxbProcessor.java index 90a3fcd1585f7..782e07ac96978 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/main/java/io/quarkus/rest/client/reactive/jaxb/deployment/RestClientReactiveJaxbProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/main/java/io/quarkus/rest/client/reactive/jaxb/deployment/RestClientReactiveJaxbProcessor.java @@ -4,9 +4,9 @@ import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/test/java/io/quarkus/rest/client/reactive/jaxb/test/SimpleJaxbTest.java b/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/test/java/io/quarkus/rest/client/reactive/jaxb/test/SimpleJaxbTest.java index ac28832e3a560..601bbb8558083 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/test/java/io/quarkus/rest/client/reactive/jaxb/test/SimpleJaxbTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jaxb/deployment/src/test/java/io/quarkus/rest/client/reactive/jaxb/test/SimpleJaxbTest.java @@ -5,11 +5,11 @@ import java.net.URI; import java.util.Objects; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.xml.bind.annotation.XmlRootElement; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientJaxbMessageBodyReader.java b/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientJaxbMessageBodyReader.java index 171b6984863c5..8fc460434be08 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientJaxbMessageBodyReader.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientJaxbMessageBodyReader.java @@ -5,17 +5,18 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; import javax.xml.transform.stream.StreamSource; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.xml.bind.JAXBElement; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Unmarshaller; + import org.jboss.resteasy.reactive.common.util.StreamUtil; @ActivateRequestContext diff --git a/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientMessageBodyWriter.java b/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientMessageBodyWriter.java index ec52eb6f36a7c..9d1b1f9043869 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientMessageBodyWriter.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jaxb/runtime/src/main/java/io/quarkus/rest/client/reactive/jaxb/runtime/ClientMessageBodyWriter.java @@ -5,19 +5,20 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.annotation.XmlRootElement; import javax.xml.namespace.QName; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.xml.bind.JAXBElement; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.annotation.XmlRootElement; + @ActivateRequestContext public class ClientMessageBodyWriter implements MessageBodyWriter { diff --git a/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/main/java/io/quarkus/rest/client/reactive/jsonb/deployment/RestClientReactiveJsonbProcessor.java b/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/main/java/io/quarkus/rest/client/reactive/jsonb/deployment/RestClientReactiveJsonbProcessor.java index 793d05e9bd93c..fd3b5ead0e5b7 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/main/java/io/quarkus/rest/client/reactive/jsonb/deployment/RestClientReactiveJsonbProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/main/java/io/quarkus/rest/client/reactive/jsonb/deployment/RestClientReactiveJsonbProcessor.java @@ -2,7 +2,7 @@ import static io.quarkus.deployment.Feature.REST_CLIENT_REACTIVE_JSONB; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; diff --git a/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/test/java/io/quarkus/rest/client/reactive/jsonb/test/SimpleJsonbTest.java b/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/test/java/io/quarkus/rest/client/reactive/jsonb/test/SimpleJsonbTest.java index 3f77b707afc74..84d1631e1b50d 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/test/java/io/quarkus/rest/client/reactive/jsonb/test/SimpleJsonbTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive-jsonb/deployment/src/test/java/io/quarkus/rest/client/reactive/jsonb/test/SimpleJsonbTest.java @@ -6,10 +6,10 @@ import java.util.List; import java.util.Objects; -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; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/rest/client/reactive/kotlin/deployment/RestClientReactiveKotlinSerializationProcessor.java b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/rest/client/reactive/kotlin/deployment/RestClientReactiveKotlinSerializationProcessor.java index c85df4428a142..cb212499d792b 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/rest/client/reactive/kotlin/deployment/RestClientReactiveKotlinSerializationProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/deployment/src/main/java/io/quarkus/rest/client/reactive/kotlin/deployment/RestClientReactiveKotlinSerializationProcessor.java @@ -4,9 +4,9 @@ import java.util.Collections; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyReader.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyReader.kt index e30c20afa85b5..dc98b398d4088 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyReader.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyReader.kt @@ -1,5 +1,8 @@ package io.quarkus.rest.client.reactive.kotlin.runtime.serializers +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.MultivaluedMap +import jakarta.ws.rs.ext.MessageBodyReader import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream @@ -7,9 +10,6 @@ import kotlinx.serialization.serializer import org.jboss.resteasy.reactive.common.util.StreamUtil import java.io.InputStream import java.lang.reflect.Type -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.MultivaluedMap -import javax.ws.rs.ext.MessageBodyReader @OptIn(ExperimentalSerializationApi::class) class ClientKotlinMessageBodyReader(private val json: Json) : MessageBodyReader { diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyWriter.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyWriter.kt index 8d2a4c9398b42..64192201b3788 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyWriter.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/runtime/src/main/kotlin/io/quarkus/rest/client/reactive/kotlin/runtime/serializers/ClientKotlinMessageBodyWriter.kt @@ -1,14 +1,14 @@ package io.quarkus.rest.client.reactive.kotlin.runtime.serializers +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.MultivaluedMap +import jakarta.ws.rs.ext.MessageBodyWriter import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.json.Json import kotlinx.serialization.json.encodeToStream import kotlinx.serialization.serializer import java.io.OutputStream import java.lang.reflect.Type -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.MultivaluedMap -import javax.ws.rs.ext.MessageBodyWriter @OptIn(ExperimentalSerializationApi::class) class ClientKotlinMessageBodyWriter(private val json: Json) : MessageBodyWriter { diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/EncodeDefaultValuesTest.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/EncodeDefaultValuesTest.kt index e1bb4a76674e1..bdb50b859821d 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/EncodeDefaultValuesTest.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/EncodeDefaultValuesTest.kt @@ -7,7 +7,7 @@ import kotlinx.serialization.json.Json import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.inject.Inject +import jakarta.inject.Inject class EncodeDefaultValuesTest { companion object { diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/ExplicitNullsTest.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/ExplicitNullsTest.kt index fc5d2facf4466..0c816f080622f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/ExplicitNullsTest.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/ExplicitNullsTest.kt @@ -7,7 +7,7 @@ import kotlinx.serialization.json.Json import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.inject.Inject +import jakarta.inject.Inject class ExplicitNullsTest { companion object { diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/LenientTest.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/LenientTest.kt index 668c1245b35f3..91213df829fd1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/LenientTest.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/LenientTest.kt @@ -8,7 +8,7 @@ import kotlinx.serialization.json.Json import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.inject.Inject +import jakarta.inject.Inject class LenientTest { companion object { diff --git a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/PrettyPrintTest.kt b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/PrettyPrintTest.kt index ba2ee556436f7..45234612beb90 100644 --- a/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/PrettyPrintTest.kt +++ b/extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization/tests/src/test/kotlin/io/quarkus/rest/client/reactive/kotlin/test/PrettyPrintTest.kt @@ -10,7 +10,7 @@ import kotlinx.serialization.json.JsonNames import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension -import javax.inject.Inject +import jakarta.inject.Inject @OptIn(ExperimentalSerializationApi::class) class PrettyPrintTest { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientExceptionMapperHandler.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientExceptionMapperHandler.java index 53590911221eb..92ff7b83b10fe 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientExceptionMapperHandler.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/ClientExceptionMapperHandler.java @@ -4,8 +4,8 @@ import java.lang.reflect.Modifier; import java.util.LinkedHashMap; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; import org.jboss.jandex.AnnotationInstance; @@ -82,7 +82,7 @@ Result generateResponseExceptionMapper(AnnotationInstance instance) { } if (!isValid) { String message = DotNames.CLIENT_EXCEPTION_MAPPER - + " is only supported on static methods of REST Client interfaces that take 'javax.ws.rs.core.Response' as a single parameter and return 'java.lang.RuntimeException'."; + + " is only supported on static methods of REST Client interfaces that take 'jakarta.ws.rs.core.Response' as a single parameter and return 'java.lang.RuntimeException'."; if (targetMethod != null) { message += " Offending instance is '" + targetMethod.declaringClass().name().toString() + "#" + targetMethod.name() + "'"; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/DotNames.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/DotNames.java index 4dcaa0be357f6..0a751573fc567 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/DotNames.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/DotNames.java @@ -2,8 +2,8 @@ import java.lang.reflect.Method; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseFilter; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParams; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java index 230a9cb0e913c..e1adaecfa011a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/MicroProfileRestClientEnricher.java @@ -20,9 +20,9 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.Configurable; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.Configurable; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.RestClientDefinitionException; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java index 236911b507336..c34febe9f0420 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java @@ -24,12 +24,12 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.Typed; -import javax.inject.Singleton; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ArrayPairsQueryParamTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ArrayPairsQueryParamTest.java index 19c285979b981..7771e5c0a3932 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ArrayPairsQueryParamTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ArrayPairsQueryParamTest.java @@ -11,10 +11,10 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/AsyncHeaderTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/AsyncHeaderTest.java index f1e471cabde99..00c2cef0f0194 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/AsyncHeaderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/AsyncHeaderTest.java @@ -9,11 +9,11 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/BasicRestClientTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/BasicRestClientTest.java index d6ad8b08a1900..5b1cf5b65e7f4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/BasicRestClientTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/BasicRestClientTest.java @@ -5,10 +5,10 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClassNameScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClassNameScopeOverrideTest.java index d099c885ba2cd..d1d24b4c1b9da 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClassNameScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClassNameScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClientAndServerSharingResponseTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClientAndServerSharingResponseTest.java index 397b811dc060e..c154d7e6e2dd7 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClientAndServerSharingResponseTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ClientAndServerSharingResponseTest.java @@ -9,14 +9,14 @@ import java.util.Map; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigKeyScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigKeyScopeOverrideTest.java index 3bb4f304f773e..71b78eda7b316 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigKeyScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigKeyScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigurationTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigurationTest.java index 5b7f7c2dc7fdd..21b749444d7f6 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigurationTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConfigurationTest.java @@ -5,9 +5,9 @@ import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConnectionPoolSizeTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConnectionPoolSizeTest.java index bf318df4cb1f6..d2042f8782ada 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConnectionPoolSizeTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ConnectionPoolSizeTest.java @@ -8,9 +8,9 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.client.api.QuarkusRestClientProperties; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaInjectedRestClientTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaInjectedRestClientTest.java index db5912882e267..2fe3ab28bccf1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaInjectedRestClientTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaInjectedRestClientTest.java @@ -5,11 +5,11 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaProgrammaticallyClientCreatedTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaProgrammaticallyClientCreatedTest.java index 9d0cc33366734..e95793ef8915e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaProgrammaticallyClientCreatedTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/CustomHttpOptionsViaProgrammaticallyClientCreatedTest.java @@ -5,10 +5,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.ext.ContextResolver; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.ext.ContextResolver; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestResponse; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/EmptyPostTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/EmptyPostTest.java index 78fb47de59435..72d3b069f470c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/EmptyPostTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/EmptyPostTest.java @@ -4,9 +4,9 @@ import java.net.URI; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/FormTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/FormTest.java index 02a9c8698255c..4c7426ff74168 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/FormTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/FormTest.java @@ -4,13 +4,13 @@ import java.net.URI; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/GlobalConfigurationTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/GlobalConfigurationTest.java index 2aeee8d415d40..463c52f8949ec 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/GlobalConfigurationTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/GlobalConfigurationTest.java @@ -5,10 +5,10 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient.java index 8038231aeb5d2..87dc6841bc41a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient.java @@ -1,10 +1,10 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public interface HelloClient { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient2.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient2.java index 660c55a0260d9..41d59bd54f9c4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient2.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClient2.java @@ -1,10 +1,10 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClientWithBaseUri.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClientWithBaseUri.java index 1a947b9261921..aa317d2dd030e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClientWithBaseUri.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloClientWithBaseUri.java @@ -2,14 +2,15 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; -import javax.ws.rs.core.MediaType; + +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloNonSimpleClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloNonSimpleClient.java index 09b99baee4b79..e9beedbfcfc67 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloNonSimpleClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloNonSimpleClient.java @@ -2,13 +2,13 @@ import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloResource.java index f298c0b303011..28d592df3905b 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/HelloResource.java @@ -4,15 +4,15 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Assertions; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidHostTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidHostTest.java index 88b25b6b104e6..bb5550b2c5e8e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidHostTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidHostTest.java @@ -2,10 +2,10 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.assertj.core.api.Assertions; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidURITest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidURITest.java index 94ff77ef943a7..5abe15c964d57 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidURITest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/InvalidURITest.java @@ -4,8 +4,8 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.assertj.core.api.Assertions; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/LegacyConfigurationTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/LegacyConfigurationTest.java index f7854fa0c446a..d6d686b9633c6 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/LegacyConfigurationTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/LegacyConfigurationTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MapParamsTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MapParamsTest.java index 7775a901149a7..58ce21d52f25c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MapParamsTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MapParamsTest.java @@ -7,12 +7,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MediaTypeSuffixTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MediaTypeSuffixTest.java index b6be853724c35..b764ada80c5df 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MediaTypeSuffixTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MediaTypeSuffixTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpClassNameScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpClassNameScopeOverrideTest.java index 550d8f8b725da..7aff1508a70c4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpClassNameScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpClassNameScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpConfigKeyScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpConfigKeyScopeOverrideTest.java index 8747b61018efa..76f2cc86bd54a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpConfigKeyScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpConfigKeyScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpGlobalScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpGlobalScopeOverrideTest.java index 01c1d213e3f9b..c4b8e0e2771c0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpGlobalScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MpGlobalScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MultiNdjsonTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MultiNdjsonTest.java index beb02bc6c1707..55e116ad49c4f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MultiNdjsonTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/MultiNdjsonTest.java @@ -11,11 +11,11 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestStreamElementType; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/PlaylistService.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/PlaylistService.java index 6ecc3182f33c9..4e775b73c1348 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/PlaylistService.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/PlaylistService.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.GET; +import jakarta.ws.rs.GET; public interface PlaylistService { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RequestLeakDetectionTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RequestLeakDetectionTest.java index d1d2b403783a5..046c9040db8c1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RequestLeakDetectionTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RequestLeakDetectionTest.java @@ -10,12 +10,12 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RestClientListenerTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RestClientListenerTest.java index a649dcfbf68a1..94f9d2f2e2751 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RestClientListenerTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/RestClientListenerTest.java @@ -7,11 +7,11 @@ import java.time.Duration; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -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.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ShortNameScopeOverrideTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ShortNameScopeOverrideTest.java index 5125d0e1a431f..0e0966d75a6d6 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ShortNameScopeOverrideTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ShortNameScopeOverrideTest.java @@ -4,9 +4,9 @@ import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/StreamJsonTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/StreamJsonTest.java index a8b12e9a5f47c..07344da0fae7f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/StreamJsonTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/StreamJsonTest.java @@ -11,11 +11,11 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestStreamElementType; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestBean.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestBean.java index 76d37c2e5d64e..10199646c6821 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestBean.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestBean.java @@ -3,7 +3,7 @@ import java.net.URL; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyReader.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyReader.java index e00d824ebc95d..8780ddde175c9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyReader.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyReader.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.Consumes; +import jakarta.ws.rs.Consumes; import org.jboss.resteasy.reactive.server.jackson.JacksonBasicMessageBodyReader; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyWriter.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyWriter.java index d4d4c494bdfda..1e930784fef1e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyWriter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestJacksonBasicMessageBodyWriter.java @@ -7,11 +7,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestRestClientListener.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestRestClientListener.java index e5f7e389bf41b..4293243bf0330 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestRestClientListener.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/TestRestClientListener.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.spi.RestClientListener; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/VoidReturnTypeTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/VoidReturnTypeTest.java index b9caa732e38e7..3e3bd8cd3a197 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/VoidReturnTypeTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/VoidReturnTypeTest.java @@ -5,9 +5,9 @@ import java.net.URI; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/Client.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/Client.java index a98eaaa3040d2..8b4736caf9878 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/Client.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/Client.java @@ -1,9 +1,9 @@ package io.quarkus.rest.client.reactive.beanTypes; -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; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ClientMock.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ClientMock.java index b6bb9b45b4a0a..795696f40bca9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ClientMock.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ClientMock.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.beanTypes; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/MyBean.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/MyBean.java index 63b479b3061d9..56c72349715d1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/MyBean.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/MyBean.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.beanTypes; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ResourceBeanTypeTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ResourceBeanTypeTest.java index fd4b9f80157af..c2badb23a2194 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ResourceBeanTypeTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanTypes/ResourceBeanTypeTest.java @@ -4,10 +4,10 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanFormParamTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanFormParamTest.java index b3e339d497d5e..dfd1cab010fa3 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanFormParamTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanFormParamTest.java @@ -6,13 +6,13 @@ import java.lang.reflect.Type; import java.net.URI; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; @@ -90,10 +90,10 @@ enum Param { public static class ParamConverter implements ParamConverterProvider { @SuppressWarnings("unchecked") @Override - public javax.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, + public jakarta.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, Annotation[] annotations) { if (rawType == BeanFormParamTest.Param.class) { - return (javax.ws.rs.ext.ParamConverter) new javax.ws.rs.ext.ParamConverter() { + return (jakarta.ws.rs.ext.ParamConverter) new jakarta.ws.rs.ext.ParamConverter() { @Override public BeanFormParamTest.Param fromString(String value) { return null; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanParamTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanParamTest.java index 47abd07a4f4c9..02facb4a25e22 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanParamTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanParamTest.java @@ -4,13 +4,13 @@ import java.net.URI; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestCookie; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanPathParamTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanPathParamTest.java index 54503b61b1973..418437f39569f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanPathParamTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/beanparam/BeanPathParamTest.java @@ -4,10 +4,10 @@ import java.net.URI; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/configuration/EchoResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/configuration/EchoResource.java index b023965ff7cab..5cf4bf863e95f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/configuration/EchoResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/configuration/EchoResource.java @@ -1,13 +1,13 @@ package io.quarkus.rest.client.reactive.configuration; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; @Path("/hello") @Produces(MediaType.TEXT_PLAIN) diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/converter/ParamConverterProviderTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/converter/ParamConverterProviderTest.java index c7a211cdfd699..535ea3ebe2065 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/converter/ParamConverterProviderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/converter/ParamConverterProviderTest.java @@ -7,14 +7,14 @@ import java.lang.reflect.Type; import java.net.URI; -import javax.ws.rs.BeanParam; -import javax.ws.rs.CookieParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; @@ -161,7 +161,7 @@ enum Param { public static class ParamConverter implements ParamConverterProvider { @SuppressWarnings("unchecked") @Override - public javax.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, + public jakarta.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, Annotation[] annotations) { if (genericType == null) { fail("Generic Type cannot be null!"); @@ -172,7 +172,7 @@ public javax.ws.rs.ext.ParamConverter getConverter(Class rawType, Type } if (rawType == Param.class) { - return (javax.ws.rs.ext.ParamConverter) new javax.ws.rs.ext.ParamConverter() { + return (jakarta.ws.rs.ext.ParamConverter) new jakarta.ws.rs.ext.ParamConverter() { @Override public Param fromString(String value) { return null; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ErrorMappingTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ErrorMappingTest.java index 762eabdbbc0e5..2161a6417d324 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ErrorMappingTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ErrorMappingTest.java @@ -4,10 +4,10 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ResponseExceptionMapperTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ResponseExceptionMapperTest.java index a572c8ab46bc4..a676a44fd8b60 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ResponseExceptionMapperTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/ResponseExceptionMapperTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/HighPriorityExceptionMapper.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/HighPriorityExceptionMapper.java index 0884914bab2f0..2713790a07240 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/HighPriorityExceptionMapper.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/HighPriorityExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.error.clientexceptionmapper; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/LowPriorityExceptionMapper.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/LowPriorityExceptionMapper.java index b7c7eab19fc48..6e5e310be2ec3 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/LowPriorityExceptionMapper.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/LowPriorityExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.error.clientexceptionmapper; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/ProgrammaticClientExceptionMapperTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/ProgrammaticClientExceptionMapperTest.java index 8d84859ddb876..3a5c05a8d05e4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/ProgrammaticClientExceptionMapperTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/ProgrammaticClientExceptionMapperTest.java @@ -5,9 +5,9 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.BeforeEach; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/RegisteredClientExceptionMapperTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/RegisteredClientExceptionMapperTest.java index 92ead62d1a898..815e8c1b21c2c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/RegisteredClientExceptionMapperTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/RegisteredClientExceptionMapperTest.java @@ -6,10 +6,10 @@ import java.lang.reflect.Method; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/Resource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/Resource.java index bae19e3df6237..a0148c5079110 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/Resource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/error/clientexceptionmapper/Resource.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.error.clientexceptionmapper; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/error") public class Resource { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormParamTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormParamTest.java index fa8382cc0837e..b3b34acef50c9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormParamTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormParamTest.java @@ -4,13 +4,13 @@ import java.net.URI; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormWithConverterTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormWithConverterTest.java index 5d42d9f168756..9df4834a01a1f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormWithConverterTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/FormWithConverterTest.java @@ -6,14 +6,14 @@ import java.lang.reflect.Type; import java.net.URI; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/Resource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/Resource.java index 43c6e134210de..60e7ab32af3a2 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/Resource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/form/Resource.java @@ -1,12 +1,12 @@ package io.quarkus.rest.client.reactive.form; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/AsyncRestClientFallbackTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/AsyncRestClientFallbackTest.java index aae84d4a33e12..dc20fede15ae0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/AsyncRestClientFallbackTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/AsyncRestClientFallbackTest.java @@ -7,10 +7,10 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.ExecutionException; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.ExecutionContext; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/RestClientFallbackTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/RestClientFallbackTest.java index 96c8f0d7642a7..cdb91d548dcf8 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/RestClientFallbackTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/RestClientFallbackTest.java @@ -3,10 +3,10 @@ import static io.quarkus.rest.client.reactive.RestClientTestUtil.setUrlForClass; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.faulttolerance.ExecutionContext; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/UniRestClientFallbackTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/UniRestClientFallbackTest.java index 7100449f72ca3..ec4b932e17c90 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/UniRestClientFallbackTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ft/UniRestClientFallbackTest.java @@ -3,10 +3,10 @@ import static io.quarkus.rest.client.reactive.RestClientTestUtil.setUrlForClass; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.faulttolerance.ExecutionContext; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java index ea4e632a402f2..dfb98aa1782c1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ClientHeaderParamFromPropertyTest.java @@ -5,10 +5,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/CookieTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/CookieTest.java index ab057e6bdd20e..ee615b9c49c64 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/CookieTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/CookieTest.java @@ -4,10 +4,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.CookieParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/HeaderTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/HeaderTest.java index 22d902c8e8406..2884a22184dc9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/HeaderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/HeaderTest.java @@ -4,12 +4,12 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestHeader; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ReactiveClientHeadersFromProviderTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ReactiveClientHeadersFromProviderTest.java index e0c9eca9ca16c..d9837a5c16d1a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ReactiveClientHeadersFromProviderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/ReactiveClientHeadersFromProviderTest.java @@ -8,17 +8,17 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UriUserInfoTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UriUserInfoTest.java index 63a52d6e85207..f667a89b8dae4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UriUserInfoTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UriUserInfoTest.java @@ -5,10 +5,10 @@ import java.net.URI; import java.util.Base64; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.UriBuilder; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentFromConfigTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentFromConfigTest.java index 2fef92992e0d9..ad1cebe255e6e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentFromConfigTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentFromConfigTest.java @@ -4,10 +4,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentTest.java index d5341d80e3323..7ea164cbc1fdc 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/headers/UserAgentTest.java @@ -4,10 +4,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/CallMakingResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/CallMakingResource.java index 179b8694d4bef..98dd74be4b55c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/CallMakingResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/CallMakingResource.java @@ -2,8 +2,8 @@ import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestClient.java index eb11e4cc192a3..4ed98b790e93a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestClient.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestResource.java index 994c3f1431be9..b3ae785a4c1f1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/lock/prevention/TestResource.java @@ -1,9 +1,9 @@ package io.quarkus.rest.client.reactive.lock.prevention; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/echo") @Produces("text/plain") diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteFileTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteFileTest.java index 5d470e36c27dc..2b7207f02fa15 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteFileTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteFileTest.java @@ -11,13 +11,13 @@ import java.util.concurrent.atomic.AtomicLong; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteWithRemoteErrorTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteWithRemoteErrorTest.java index 62ec116ddd5cb..f126dbc12ac5d 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteWithRemoteErrorTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultiByteWithRemoteErrorTest.java @@ -8,11 +8,11 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.core.MediaType; import org.assertj.core.api.Assertions; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartDetectionTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartDetectionTest.java index d07cb2b0c1733..ab0a0675b8de3 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartDetectionTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartDetectionTest.java @@ -8,11 +8,11 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartFilenameTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartFilenameTest.java index 9723f6f38411a..e4e8aa704f800 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartFilenameTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartFilenameTest.java @@ -12,12 +12,12 @@ import java.nio.file.Files; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.MultipartForm; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResource.java index 57ccd44263248..4ba9b879b6dac 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResource.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.multipart; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResponseTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResponseTest.java index f89eae747a690..c616e4d102517 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResponseTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/multipart/MultipartResponseTest.java @@ -17,12 +17,12 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; @@ -144,7 +144,8 @@ void shouldBeSaneOnServerError() { @Test void shouldParseMultipartResponseWithClientBuilderApi() { - javax.ws.rs.client.Client client = ClientBuilder.newBuilder().register(new TestJacksonBasicMessageBodyReader()).build(); + jakarta.ws.rs.client.Client client = ClientBuilder.newBuilder().register(new TestJacksonBasicMessageBodyReader()) + .build(); MultipartDataForClientBuilder data = client.target(baseUri) .path("/give-me-file") .request(MediaType.MULTIPART_FORM_DATA) diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalFeature.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalFeature.java index 09b39085a2f96..bf3256e943817 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalFeature.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalFeature.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.provider; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilter.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilter.java index 57f2a95cf1657..35fcbaffa89c9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilter.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.provider; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilterConstrainedToServer.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilterConstrainedToServer.java index 815a7c28f7155..40e3e81649182 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilterConstrainedToServer.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalRequestFilterConstrainedToServer.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.provider; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilter.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilter.java index b26bac87f264b..5501f20cca15b 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilter.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.provider; -import javax.annotation.Priority; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientResponseFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilterLowPrio.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilterLowPrio.java index 64fc0ae57d4ea..b0c7be8ea52bd 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilterLowPrio.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/GlobalResponseFilterLowPrio.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.provider; -import javax.annotation.Priority; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientResponseFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClient.java index d94255de56976..45922d2386f63 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClient.java @@ -1,11 +1,11 @@ package io.quarkus.rest.client.reactive.provider; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClientWithFilter.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClientWithFilter.java index 6c4ab9f666425..e8b8c34c0fd59 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClientWithFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/HelloClientWithFilter.java @@ -1,11 +1,11 @@ package io.quarkus.rest.client.reactive.provider; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderDisabledAutodiscoveryTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderDisabledAutodiscoveryTest.java index 446574aa8840f..6c2816c37988a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderDisabledAutodiscoveryTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderDisabledAutodiscoveryTest.java @@ -5,7 +5,7 @@ import java.net.URI; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderPriorityTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderPriorityTest.java index 0925819afc6ac..2c03aadc6d100 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderPriorityTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderPriorityTest.java @@ -3,7 +3,7 @@ import static io.quarkus.rest.client.reactive.RestClientTestUtil.setUrlForClass; import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderTest.java index 769819a1de649..ddea25d14ad13 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ProviderTest.java @@ -5,7 +5,7 @@ import java.net.URI; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ResponseFilterLowestPrio.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ResponseFilterLowestPrio.java index d29961b978803..f56f2737cc17f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ResponseFilterLowestPrio.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/provider/ResponseFilterLowestPrio.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.provider; -import javax.annotation.Priority; -import javax.ws.rs.client.ClientResponseContext; +import jakarta.annotation.Priority; +import jakarta.ws.rs.client.ClientResponseContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientResponseFilter; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client1.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client1.java index 431ca5e5e2dc0..c1f1b2a4f94d5 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client1.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client1.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client2.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client2.java index 69422bf72b063..9520f28edcd9f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client2.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client2.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -11,4 +11,4 @@ public interface Client2 { @GET Response get(); -} \ No newline at end of file +} diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client3.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client3.java index 2f3b199c32e1e..6d9c1fe5e3a08 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client3.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client3.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -11,4 +11,4 @@ public interface Client3 { @GET Response get(); -} \ No newline at end of file +} diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client4.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client4.java index 4264d8d0ee965..dfb15b891fc9f 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client4.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client4.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -11,4 +11,4 @@ public interface Client4 { @GET Response get(); -} \ No newline at end of file +} diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client5.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client5.java index 35d7181208745..a67164f12eb93 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client5.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client5.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client6.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client6.java index 2eb7cb7c6d3a8..176c2c60e8c52 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client6.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/Client6.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/GlobalNonProxyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/GlobalNonProxyTest.java index 4dd2dcdb66146..36bb44192cbc8 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/GlobalNonProxyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/GlobalNonProxyTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ProxyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ProxyTest.java index 8e3f10109129a..546f22d7b181b 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ProxyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ProxyTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyTest.java index 6cd30d2b8d37f..97fec49f4c1c1 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyWithAuthTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyWithAuthTest.java index abd2f27960ce5..aba42f0ed6930 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyWithAuthTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/SystemPropertyProxyWithAuthTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ViaHeaderReturningResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ViaHeaderReturningResource.java index f7f0be450826a..981c197da0a57 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ViaHeaderReturningResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/proxy/ViaHeaderReturningResource.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.proxy; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; @Path("/resource") public class ViaHeaderReturningResource { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromMethodTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromMethodTest.java index 46c4ccd7cd6b8..84ff4c17268f6 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromMethodTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromMethodTest.java @@ -5,10 +5,10 @@ import java.net.URI; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromPropertyTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromPropertyTest.java index 6d89f58bd23ac..9a1b73bbde01e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromPropertyTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/ClientQueryParamFromPropertyTest.java @@ -5,10 +5,10 @@ import java.net.URI; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/QueryTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/QueryTest.java index 72bb9539f89e0..da08aa80ba3da 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/QueryTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/queries/QueryTest.java @@ -8,12 +8,12 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectTest.java index 69cd0aef08a92..9a580f2e5b7f0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectTest.java @@ -4,7 +4,7 @@ import java.net.URI; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.client.api.QuarkusRestClientProperties; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResource.java index c6f04fa55e96e..87c8edf04531c 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResource.java @@ -2,10 +2,10 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; @Path("/redirect") public class RedirectingResource { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResourceClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResourceClient.java index 88c1054c30d01..9340528da0b3a 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResourceClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/redirect/RedirectingResourceClient.java @@ -1,9 +1,9 @@ package io.quarkus.rest.client.reactive.redirect; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; @Path("/redirect") public interface RedirectingResourceClient { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/EchoClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/EchoClient.java index a762f07496d1f..1910fc7d6e5e8 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/EchoClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/EchoClient.java @@ -1,11 +1,11 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderNoPassingClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderNoPassingClient.java index 6bd57afebe60c..f6485fc57ebfb 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderNoPassingClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderNoPassingClient.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderPassingClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderPassingClient.java index c5f9683dc65a6..3c1338e102aec 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderPassingClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderPassingClient.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderSettingClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderSettingClient.java index ef1df1794e015..d8d8e15ad9dd8 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderSettingClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/HeaderSettingClient.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MultipleHeadersBindingClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MultipleHeadersBindingClient.java index ebf9fc793e101..03353d82a3eb4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MultipleHeadersBindingClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MultipleHeadersBindingClient.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MyHeadersFactory.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MyHeadersFactory.java index 79068e1a0695f..a9cacb810d20e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MyHeadersFactory.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/MyHeadersFactory.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/TestResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/TestResource.java index 2761245318095..8e719cdc98e16 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/TestResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/registerclientheaders/TestResource.java @@ -1,15 +1,15 @@ package io.quarkus.rest.client.reactive.registerclientheaders; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ssl/TrustAllTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ssl/TrustAllTest.java index e09df332d96db..8014a4b7a1f23 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ssl/TrustAllTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/ssl/TrustAllTest.java @@ -6,8 +6,8 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.AfterEach; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloClient.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloClient.java index 0d1db10a04d95..664dea477ef7d 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloClient.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloClient.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.stork; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloResource.java index d53f325fad23c..e9966a8d8eac6 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/HelloResource.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.stork; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello") public class HelloResource { diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/PassThroughResource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/PassThroughResource.java index efb6a781befb1..129b7aece4cda 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/PassThroughResource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/PassThroughResource.java @@ -2,8 +2,8 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/StorkIntegrationTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/StorkIntegrationTest.java index 32c92031137db..cb22c1393db59 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/StorkIntegrationTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/stork/StorkIntegrationTest.java @@ -6,8 +6,8 @@ import java.net.URI; import java.net.URISyntaxException; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.UriBuilder; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/Resource.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/Resource.java index 653850c982c85..8b8c7199a5388 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/Resource.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/Resource.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestPath; import org.jboss.resteasy.reactive.RestQuery; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/SubResourceTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/SubResourceTest.java index 53e6cc1d39fb1..05dfb552a2428 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/SubResourceTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/subresource/SubResourceTest.java @@ -4,16 +4,16 @@ import java.net.URI; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; @@ -187,8 +187,8 @@ default String fillingMethod() { import io.quarkus.rest.client.reactive.subresource.SubResourceTest.RootClient; import io.quarkus.rest.client.reactive.subresource.SubResourceTest.SubClient; import java.io.Closeable; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Configurable; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Configurable; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; import org.eclipse.microprofile.rest.client.ext.DefaultClientHeadersFactoryImpl; import org.jboss.resteasy.reactive.client.impl.WebTargetImpl; @@ -252,13 +252,13 @@ public void close() { import io.quarkus.rest.client.reactive.HeaderFiller; import io.quarkus.rest.client.reactive.subresource.SubResourceTest.SubClient; import java.lang.reflect.Method; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; // $FF: synthetic class public class SubResourceTest$SubCliented77e297b94a7e0aa21c1f7f1d8ba4fbe72d61861 implements SubClient { @@ -374,7 +374,7 @@ public SubSubClient sub() { import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.logging.Logger; // $FF: synthetic class diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/BuilderReadTimeoutTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/BuilderReadTimeoutTest.java index 1c71a14260c12..e870bcf7b64ea 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/BuilderReadTimeoutTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/BuilderReadTimeoutTest.java @@ -9,11 +9,11 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.junit.jupiter.api.Test; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/RegisterReadTimeoutTest.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/RegisterReadTimeoutTest.java index 8ae48ae9b94b9..572e22362bb82 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/RegisterReadTimeoutTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/java/io/quarkus/rest/client/reactive/timeout/RegisterReadTimeoutTest.java @@ -7,11 +7,11 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.TimeoutException; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-classname-scope-test-application.properties b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-classname-scope-test-application.properties index ed9ef1750a760..694d900b0b933 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-classname-scope-test-application.properties +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-classname-scope-test-application.properties @@ -1,2 +1,2 @@ io.quarkus.rest.client.reactive.HelloClientWithBaseUri/mp-rest/url=http://localhost:${quarkus.http.test-port:8081}/hello -io.quarkus.rest.client.reactive.HelloClientWithBaseUri/mp-rest/scope=javax.enterprise.context.Dependent +io.quarkus.rest.client.reactive.HelloClientWithBaseUri/mp-rest/scope=jakarta.enterprise.context.Dependent diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-configkey-scope-test-application.properties b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-configkey-scope-test-application.properties index 97646d0fe4759..b2b1cc17be094 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-configkey-scope-test-application.properties +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-configkey-scope-test-application.properties @@ -1,2 +1,2 @@ hello2/mp-rest/url=http://localhost:${quarkus.http.test-port:8081}/hello -hello2/mp-rest/scope=javax.enterprise.context.Dependent +hello2/mp-rest/scope=jakarta.enterprise.context.Dependent diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-global-scope-test-application.properties b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-global-scope-test-application.properties index 6f07cfa84ecef..d6de308a9245d 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-global-scope-test-application.properties +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-global-scope-test-application.properties @@ -1,3 +1,3 @@ hello2/mp-rest/url=http://localhost:${quarkus.http.test-port:8081}/hello -quarkus.rest-client-reactive.scope=javax.enterprise.context.Dependent \ No newline at end of file +quarkus.rest-client-reactive.scope=jakarta.enterprise.context.Dependent \ No newline at end of file diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ClientExceptionMapper.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ClientExceptionMapper.java index cd2baed7a6deb..6541390621c05 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ClientExceptionMapper.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ClientExceptionMapper.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; /** * Used to easily define an exception mapper for the specific REST Client on which it's used. @@ -15,7 +15,7 @@ *
      *
    • Is a {@code static} method
    • *
    • Returns any subclass of {@link RuntimeException}
    • - *
    • Takes a single parameter of type {@link javax.ws.rs.core.Response}
    • + *
    • Takes a single parameter of type {@link jakarta.ws.rs.core.Response}
    • *
    * * An example method could look like the following: diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/HeaderFiller.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/HeaderFiller.java index 8387d97aa612e..b58e0a563b5bb 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/HeaderFiller.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/HeaderFiller.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; public interface HeaderFiller { void addHeaders(MultivaluedMap headers); diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ReactiveClientHeadersFactory.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ReactiveClientHeadersFactory.java index 6b9440c36ced5..0f4981d8ebcc7 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ReactiveClientHeadersFactory.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/ReactiveClientHeadersFactory.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/DefaultMicroprofileRestClientExceptionMapper.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/DefaultMicroprofileRestClientExceptionMapper.java index 27ff1f26787db..d4653cc190271 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/DefaultMicroprofileRestClientExceptionMapper.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/DefaultMicroprofileRestClientExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.rest.client.reactive.runtime; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderCapturingServerFilter.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderCapturingServerFilter.java index 5bf88d5e6cf22..d21a2dc739c19 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderCapturingServerFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderCapturingServerFilter.java @@ -1,7 +1,7 @@ package io.quarkus.rest.client.reactive.runtime; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; import io.quarkus.arc.Arc; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderContainer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderContainer.java index dbbe78a54c5b0..b3266a5637cd0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderContainer.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/HeaderContainer.java @@ -1,9 +1,9 @@ package io.quarkus.rest.client.reactive.runtime; -import javax.enterprise.context.RequestScoped; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.enterprise.context.RequestScoped; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; @RequestScoped public class HeaderContainer { diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientRequestFilter.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientRequestFilter.java index 89982a4c8caaa..9f1600b450cea 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientRequestFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientRequestFilter.java @@ -4,10 +4,10 @@ import java.util.List; import java.util.Map; -import javax.annotation.Priority; -import javax.enterprise.context.RequestScoped; -import javax.ws.rs.core.MultivaluedHashMap; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.RequestScoped; +import jakarta.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientResponseFilter.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientResponseFilter.java index 4e45f007d551f..8e78ea877f6df 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientResponseFilter.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/MicroProfileRestClientResponseFilter.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; import org.jboss.resteasy.reactive.client.handlers.ClientResponseCompleteRestHandler; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/NoOpHeaderFiller.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/NoOpHeaderFiller.java index ddf42f7e81e5a..9ddeb280046ca 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/NoOpHeaderFiller.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/NoOpHeaderFiller.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive.runtime; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; import io.quarkus.rest.client.reactive.HeaderFiller; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java index a6f18ac1f16eb..2bd6b3f266a32 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java @@ -14,9 +14,10 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.ext.ParamConverterProvider; + +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveCDIWrapperBase.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveCDIWrapperBase.java index 48db2cffd84ae..dfdbf373a1fb9 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveCDIWrapperBase.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveCDIWrapperBase.java @@ -3,7 +3,7 @@ import java.io.Closeable; import java.io.IOException; -import javax.annotation.PreDestroy; +import jakarta.annotation.PreDestroy; import org.jboss.logging.Logger; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveConfig.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveConfig.java index 61dbfac51c30e..79a0abc931ed0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveConfig.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientReactiveConfig.java @@ -15,10 +15,10 @@ public class RestClientReactiveConfig { /** - * Default scope for Rest Client Reactive. Use `javax.enterprise.context.Dependent` for spec-compliant behavior + * Default scope for Rest Client Reactive. Use `jakarta.enterprise.context.Dependent` for spec-compliant behavior */ @Deprecated // Deprecated in favour of RestClientsConfig.scope - @ConfigItem(name = "scope", defaultValue = "javax.enterprise.context.ApplicationScoped") + @ConfigItem(name = "scope", defaultValue = "jakarta.enterprise.context.ApplicationScoped") public String scope; /** @@ -33,7 +33,7 @@ public class RestClientReactiveConfig { public boolean disableSmartProduces; /** - * Whether providers (filters, etc.) annotated with {@link javax.ws.rs.ext.Provider} should be + * Whether providers (filters, etc.) annotated with {@link jakarta.ws.rs.ext.Provider} should be * automatically registered for all the clients in the application. */ @ConfigItem(name = "provider-autodiscovery", defaultValue = "true") diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ResteasyReactiveResponseExceptionMapper.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ResteasyReactiveResponseExceptionMapper.java index 2044d4c74f5b8..d421224cce34e 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ResteasyReactiveResponseExceptionMapper.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/ResteasyReactiveResponseExceptionMapper.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive.runtime; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/devconsole/RestClientsContainer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/devconsole/RestClientsContainer.java index 27c4e9eaec815..39d0945bf9c33 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/devconsole/RestClientsContainer.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/devconsole/RestClientsContainer.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Map; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.reactive.client.impl.ClientProxies; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java index 1329d3fb51807..f5ffb518b63be 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/JsonMissingMessageBodyReaderErrorMessageContextualizer.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive.runtime.spi; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java index 4b2c947a33b45..96927126ca442 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/spi/XmlMissingMessageBodyReaderErrorMessageContextualizer.java @@ -1,6 +1,6 @@ package io.quarkus.rest.client.reactive.runtime.spi; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/test/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilderTest.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/test/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilderTest.java index 9a0ec4493673d..2b913fc0870f0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/test/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilderTest.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/test/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilderTest.java @@ -14,9 +14,10 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; + +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.spi.ConfigProviderResolver; diff --git a/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduled.java b/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduled.java index 6cf09848de944..c5e29a72e22bf 100644 --- a/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduled.java +++ b/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduled.java @@ -10,9 +10,9 @@ import java.time.Duration; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import io.quarkus.runtime.ShutdownEvent; import io.quarkus.runtime.StartupEvent; diff --git a/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduler.java b/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduler.java index fc297e7930dd1..19ee33bcacb96 100644 --- a/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduler.java +++ b/extensions/scheduler/api/src/main/java/io/quarkus/scheduler/Scheduler.java @@ -10,7 +10,7 @@ /** * The container provides a built-in bean with bean type {@link Scheduler} and qualifier - * {@link javax.enterprise.inject.Default}. + * {@link jakarta.enterprise.inject.Default}. */ public interface Scheduler { diff --git a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipConcurrentExecutionInvoker.java b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipConcurrentExecutionInvoker.java index 1d687a8ad1e61..fc4a21906dbfb 100644 --- a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipConcurrentExecutionInvoker.java +++ b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipConcurrentExecutionInvoker.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.event.Event; +import jakarta.enterprise.event.Event; import org.jboss.logging.Logger; diff --git a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipPredicateInvoker.java b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipPredicateInvoker.java index 344b36e65394b..7daf2c80234fc 100644 --- a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipPredicateInvoker.java +++ b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SkipPredicateInvoker.java @@ -3,7 +3,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.event.Event; +import jakarta.enterprise.event.Event; import org.jboss.logging.Logger; diff --git a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/StatusEmitterInvoker.java b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/StatusEmitterInvoker.java index 5e941f7bfcfdd..9e9cfd7943188 100644 --- a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/StatusEmitterInvoker.java +++ b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/StatusEmitterInvoker.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.event.Event; +import jakarta.enterprise.event.Event; import org.jboss.logging.Logger; diff --git a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SyntheticScheduled.java b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SyntheticScheduled.java index 1131d2f1e41ea..71865962e9f1d 100644 --- a/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SyntheticScheduled.java +++ b/extensions/scheduler/common/src/main/java/io/quarkus/scheduler/common/runtime/SyntheticScheduled.java @@ -3,7 +3,7 @@ import java.util.Objects; import java.util.concurrent.TimeUnit; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import io.quarkus.scheduler.Scheduled; @@ -80,4 +80,4 @@ public String overdueGracePeriod() { return overdueGracePeriod; } -} \ No newline at end of file +} diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ApplicationNotRunningPredicateTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ApplicationNotRunningPredicateTest.java index fec2c586fa292..5b2be1124ebdc 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ApplicationNotRunningPredicateTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ApplicationNotRunningPredicateTest.java @@ -6,8 +6,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; -import javax.interceptor.Interceptor; +import jakarta.enterprise.event.Observes; +import jakarta.interceptor.Interceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionSkipTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionSkipTest.java index 15e0bacb13b7f..27290798d8c4a 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionSkipTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConcurrentExecutionSkipTest.java @@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConditionalExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConditionalExecutionTest.java index c6179cee519ba..0c1864bd0a45d 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConditionalExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/ConditionalExecutionTest.java @@ -9,8 +9,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DisabledSchedulerTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DisabledSchedulerTest.java index 19448ba283b36..7dd3aebdcc7a8 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DisabledSchedulerTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DisabledSchedulerTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicateJobIdentityTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicateJobIdentityTest.java index 91011e4b3df72..e48de49107389 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicateJobIdentityTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicateJobIdentityTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicatedContextTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicatedContextTest.java index 7088bcc3d562c..59cf446d4cc8c 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicatedContextTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/DuplicatedContextTest.java @@ -5,7 +5,7 @@ import java.time.Duration; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/FailedExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/FailedExecutionTest.java index 0e667e2cd7e8f..06b05885fd595 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/FailedExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/FailedExecutionTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/GetSchedulerJobsTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/GetSchedulerJobsTest.java index 4dbf1f858d52e..d9ba39edd4956 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/GetSchedulerJobsTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/GetSchedulerJobsTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidConditionalExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidConditionalExecutionTest.java index ab5ad0e5c7068..b0308deeefb47 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidConditionalExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidConditionalExecutionTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java index c9e1027e33c98..1b0b1beaae199 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidCronExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.scheduler.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidDelayedExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidDelayedExpressionTest.java index da5bfbd5c239b..de243471726e9 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidDelayedExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidDelayedExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.scheduler.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java index 0419b71c4394d..56cbc8dffa64f 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidEveryExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.scheduler.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidScheduledMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidScheduledMethodTest.java index 9b302860d719b..53d18a141ff87 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidScheduledMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/InvalidScheduledMethodTest.java @@ -1,6 +1,6 @@ package io.quarkus.scheduler.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java index c0d6484dc5050..7703679bfa05e 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/NoExpressionTest.java @@ -1,6 +1,6 @@ package io.quarkus.scheduler.test; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueCronExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueCronExecutionTest.java index 7e868b8e4445e..b8f29bead70de 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueCronExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueCronExecutionTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueExecutionTest.java index 9eebf27f9026b..bf41b92277ac4 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/OverdueExecutionTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodExpressionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodExpressionTest.java index c7d0fd30bdde7..d7e558630c5e0 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodExpressionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodExpressionTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.interceptor.Interceptor; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodTest.java index a2d0ed643a2cf..232fa648e2caf 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedMethodTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedResumedMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedResumedMethodTest.java index de9d1f41805ce..fd9999c9f834f 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedResumedMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedResumedMethodTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedSchedulerTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedSchedulerTest.java index fbbb63df766f9..750cf3a766743 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedSchedulerTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/PausedSchedulerTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java index bb860c52eedbf..15bc3f8492783 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/RequestContextJobs.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import io.quarkus.scheduler.Scheduled; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SuccessfulExecutionTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SuccessfulExecutionTest.java index a103ac369e27b..314534567bbc8 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SuccessfulExecutionTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/SuccessfulExecutionTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/BodyHandlerBean.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/BodyHandlerBean.java index 0a3795835a988..02d5eeb1003a4 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/BodyHandlerBean.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/BodyHandlerBean.java @@ -1,7 +1,7 @@ package io.quarkus.scheduler.test.devconsole; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.configuration.ConfigInstantiator; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/NeverRunTask.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/NeverRunTask.java index 4b8416d89267d..9440d55af59e5 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/NeverRunTask.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/devconsole/NeverRunTask.java @@ -3,7 +3,7 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.quarkus.scheduler.Scheduled; import io.vertx.core.Handler; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/inheritance/ScheduledMethodNotInheritedTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/inheritance/ScheduledMethodNotInheritedTest.java index 5b33501cde53e..2a7f0e1f69794 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/inheritance/ScheduledMethodNotInheritedTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/inheritance/ScheduledMethodNotInheritedTest.java @@ -7,7 +7,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/metrics/MicrometerTimedTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/metrics/MicrometerTimedTest.java index b38d4285121bb..ba907733db9a1 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/metrics/MicrometerTimedTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/metrics/MicrometerTimedTest.java @@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.awaitility.Awaitility; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/nonblocking/NonBlockingScheduledMethodTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/nonblocking/NonBlockingScheduledMethodTest.java index 2ddbbc58e735d..516144d8958f4 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/nonblocking/NonBlockingScheduledMethodTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/nonblocking/NonBlockingScheduledMethodTest.java @@ -13,10 +13,10 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ForcedStartModeJobsTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ForcedStartModeJobsTest.java index 622f497d23d04..0239c6ab73fbc 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ForcedStartModeJobsTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ForcedStartModeJobsTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/HaltedStartModeJobsTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/HaltedStartModeJobsTest.java index 6097bba9a1e73..4ace83d3f783e 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/HaltedStartModeJobsTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/HaltedStartModeJobsTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ProgrammaticJobsTest.java b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ProgrammaticJobsTest.java index b0695789216ee..e31c01a1aeb83 100644 --- a/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ProgrammaticJobsTest.java +++ b/extensions/scheduler/deployment/src/test/java/io/quarkus/scheduler/test/programmatic/ProgrammaticJobsTest.java @@ -9,8 +9,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/scheduler/kotlin/src/main/kotlin/io/quarkus/scheduler/kotlin/runtime/ApplicationCoroutineScope.kt b/extensions/scheduler/kotlin/src/main/kotlin/io/quarkus/scheduler/kotlin/runtime/ApplicationCoroutineScope.kt index 96dfed1db77a8..1b779f661bd53 100644 --- a/extensions/scheduler/kotlin/src/main/kotlin/io/quarkus/scheduler/kotlin/runtime/ApplicationCoroutineScope.kt +++ b/extensions/scheduler/kotlin/src/main/kotlin/io/quarkus/scheduler/kotlin/runtime/ApplicationCoroutineScope.kt @@ -1,10 +1,10 @@ package io.quarkus.scheduler.kotlin.runtime +import jakarta.annotation.PreDestroy +import jakarta.inject.Singleton import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.cancel -import javax.annotation.PreDestroy -import javax.inject.Singleton import kotlin.coroutines.CoroutineContext @Singleton diff --git a/extensions/scheduler/runtime/pom.xml b/extensions/scheduler/runtime/pom.xml index 28fb25d899677..d2bbc8257e621 100644 --- a/extensions/scheduler/runtime/pom.xml +++ b/extensions/scheduler/runtime/pom.xml @@ -30,8 +30,8 @@ slf4j-jboss-logmanager - org.glassfish - jakarta.el + org.glassfish.expressly + expressly diff --git a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SimpleScheduler.java b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SimpleScheduler.java index 141207f9f3bf5..9c70587c2f294 100644 --- a/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SimpleScheduler.java +++ b/extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/SimpleScheduler.java @@ -17,14 +17,14 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Typed; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import org.jboss.logging.Logger; import org.jboss.threads.JBossScheduledThreadPoolExecutor; diff --git a/extensions/security-jpa/deployment/src/main/java/io/quarkus/security/jpa/deployment/QuarkusSecurityJpaProcessor.java b/extensions/security-jpa/deployment/src/main/java/io/quarkus/security/jpa/deployment/QuarkusSecurityJpaProcessor.java index 706bce494bbc6..0c0e15e6c725a 100644 --- a/extensions/security-jpa/deployment/src/main/java/io/quarkus/security/jpa/deployment/QuarkusSecurityJpaProcessor.java +++ b/extensions/security-jpa/deployment/src/main/java/io/quarkus/security/jpa/deployment/QuarkusSecurityJpaProcessor.java @@ -8,9 +8,9 @@ import java.util.Set; import java.util.function.BiConsumer; -import javax.inject.Singleton; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.inject.Singleton; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import org.hibernate.Session; import org.hibernate.SimpleNaturalIdLoadAccess; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/BCryptUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/BCryptUserEntity.java index e4b9d8b5ff467..66563f39145be 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/BCryptUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/BCryptUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordProvider.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordProvider.java index 7c01ea35bb754..75196d2c45f64 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordProvider.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordProvider.java @@ -1,6 +1,6 @@ package io.quarkus.security.jpa; -import javax.xml.bind.DatatypeConverter; +import jakarta.xml.bind.DatatypeConverter; import org.wildfly.security.password.Password; import org.wildfly.security.password.interfaces.SimpleDigestPassword; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordUserEntity.java index f5d24c3188af1..8362de9ae40d9 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/CustomPasswordUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ExternalRolesUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ExternalRolesUserEntity.java index 890ff67b40719..6a62d63241066 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ExternalRolesUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ExternalRolesUserEntity.java @@ -3,14 +3,14 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MinimalUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MinimalUserEntity.java index f2392c935b288..12c09489217fe 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MinimalUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MinimalUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesInCollectionUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesInCollectionUserEntity.java index f9b8dafee050e..49a4f8a7b0c08 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesInCollectionUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesInCollectionUserEntity.java @@ -3,14 +3,14 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.Table; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesUserEntity.java index 26a7f5b9dc580..ee0d81608e693 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/MultipleRolesUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @UserDefinition @Table(name = "test_user") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/NaturalIdUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/NaturalIdUserEntity.java index 76b7294075e59..86218d63eb648 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/NaturalIdUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/NaturalIdUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.NaturalId; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheRoleEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheRoleEntity.java index f928f77b1bb60..ab99ace1e8b86 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheRoleEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheRoleEntity.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheUserEntity.java index 25edc44af77f1..8d67be4740a15 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PanacheUserEntity.java @@ -3,12 +3,12 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ParametrizedPathsResource.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ParametrizedPathsResource.java index 48027e12c52aa..512defbd5c43d 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ParametrizedPathsResource.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/ParametrizedPathsResource.java @@ -1,9 +1,9 @@ package io.quarkus.security.jpa; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PlainUserEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PlainUserEntity.java index 1543ddca2afbf..ba3d514e7c28d 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PlainUserEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/PlainUserEntity.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.NaturalId; diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RoleEntity.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RoleEntity.java index 30869aa499465..a40297ed6e04b 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RoleEntity.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RoleEntity.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; @Table(name = "test_role") @Entity diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RolesEndpointClassLevel.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RolesEndpointClassLevel.java index c042f0eeda6a7..d1585c21ee309 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RolesEndpointClassLevel.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/RolesEndpointClassLevel.java @@ -1,10 +1,10 @@ package io.quarkus.security.jpa; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; /** * Test JAXRS endpoint with RolesAllowed specified at the class level diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SingleRoleSecuredServlet.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SingleRoleSecuredServlet.java index d3266741dacb6..683c46a8dc5fb 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SingleRoleSecuredServlet.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SingleRoleSecuredServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic secured servlet test target diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SubjectExposingResource.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SubjectExposingResource.java index 58bee3d18d022..2c6016c940f70 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SubjectExposingResource.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/SubjectExposingResource.java @@ -2,14 +2,14 @@ import java.security.Principal; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("subject") public class SubjectExposingResource { diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/TestApplication.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/TestApplication.java index 5cb6b3d09d095..61ef7bfd0a21c 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/TestApplication.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/TestApplication.java @@ -1,8 +1,8 @@ package io.quarkus.security.jpa; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationScoped @ApplicationPath("/jaxrs-secured") diff --git a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/UserEntityIdentityProvider.java b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/UserEntityIdentityProvider.java index 5fa621a5d7e97..43729afa3434f 100644 --- a/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/UserEntityIdentityProvider.java +++ b/extensions/security-jpa/deployment/src/test/java/io/quarkus/security/jpa/UserEntityIdentityProvider.java @@ -1,7 +1,7 @@ package io.quarkus.security.jpa; -import javax.inject.Singleton; -import javax.persistence.EntityManager; +import jakarta.inject.Singleton; +import jakarta.persistence.EntityManager; import org.hibernate.Session; import org.hibernate.SimpleNaturalIdLoadAccess; diff --git a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/AbstractJpaIdentityProvider.java b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/AbstractJpaIdentityProvider.java index 45fa5d261fbc5..4d7cc8b754a07 100644 --- a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/AbstractJpaIdentityProvider.java +++ b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/AbstractJpaIdentityProvider.java @@ -3,7 +3,7 @@ import java.security.spec.InvalidKeySpecException; import java.util.List; -import javax.persistence.Query; +import jakarta.persistence.Query; import org.wildfly.security.credential.PasswordCredential; import org.wildfly.security.evidence.PasswordGuessEvidence; diff --git a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaIdentityProvider.java b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaIdentityProvider.java index 8084098db9eea..e2f06063b15cb 100644 --- a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaIdentityProvider.java +++ b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaIdentityProvider.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.FlushMode; import org.jboss.logging.Logger; diff --git a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaTrustedIdentityProvider.java b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaTrustedIdentityProvider.java index c966a4a50f351..9f93c7e4bc8b3 100644 --- a/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaTrustedIdentityProvider.java +++ b/extensions/security-jpa/runtime/src/main/java/io/quarkus/security/jpa/runtime/JpaTrustedIdentityProvider.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.FlushMode; import org.jboss.logging.Logger; diff --git a/extensions/security-webauthn/deployment/src/main/java/io/quarkus/security/webauthn/deployment/QuarkusSecurityWebAuthnProcessor.java b/extensions/security-webauthn/deployment/src/main/java/io/quarkus/security/webauthn/deployment/QuarkusSecurityWebAuthnProcessor.java index cb2da92bed7b0..64a531b612357 100644 --- a/extensions/security-webauthn/deployment/src/main/java/io/quarkus/security/webauthn/deployment/QuarkusSecurityWebAuthnProcessor.java +++ b/extensions/security-webauthn/deployment/src/main/java/io/quarkus/security/webauthn/deployment/QuarkusSecurityWebAuthnProcessor.java @@ -2,7 +2,7 @@ import java.util.function.BooleanSupplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.BeanContainerBuildItem; diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/ManualResource.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/ManualResource.java index b38089b3c6bff..8d2f628d426b4 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/ManualResource.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/ManualResource.java @@ -1,9 +1,9 @@ package io.quarkus.security.webauthn.test; -import javax.inject.Inject; -import javax.ws.rs.BeanParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import io.quarkus.security.webauthn.WebAuthnLoginResponse; import io.quarkus.security.webauthn.WebAuthnRegisterResponse; diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/TestResource.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/TestResource.java index 369fc9b143e55..f1415255f31c8 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/TestResource.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/TestResource.java @@ -1,9 +1,9 @@ package io.quarkus.security.webauthn.test; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; @@ -40,4 +40,4 @@ public String hello() { return "Hello"; } -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnAutomaticTest.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnAutomaticTest.java index e7e9c2930e2ae..696b1bb5481a7 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnAutomaticTest.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnAutomaticTest.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.junit.jupiter.api.Assertions; diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnBlockingTestUserProvider.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnBlockingTestUserProvider.java index d9b4b0d74d0f5..de755e7cd41be 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnBlockingTestUserProvider.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnBlockingTestUserProvider.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; @@ -40,4 +40,4 @@ private void assertBlockingAllowed() { throw new RuntimeException("Blocking is not allowed"); } -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTest.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTest.java index fa261dcab99c8..b9c86917c9a4a 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTest.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTest.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.junit.jupiter.api.Assertions; diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTestUserProvider.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTestUserProvider.java index afbb6f511bd96..65ae0801fdd95 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTestUserProvider.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnManualTestUserProvider.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.Arc; import io.quarkus.security.webauthn.WebAuthnSecurity; @@ -44,4 +44,4 @@ private void assertRequestContext() { throw new AssertionError("Request context not active"); } } -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnNonBlockingTestUserProvider.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnNonBlockingTestUserProvider.java index cfdac7120748e..1ce44c088ed52 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnNonBlockingTestUserProvider.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnNonBlockingTestUserProvider.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnStoringTestUserProvider.java b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnStoringTestUserProvider.java index cd8c93f12d84a..bc48fc3825649 100644 --- a/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnStoringTestUserProvider.java +++ b/extensions/security-webauthn/deployment/src/test/java/io/quarkus/security/webauthn/test/WebAuthnStoringTestUserProvider.java @@ -1,6 +1,6 @@ package io.quarkus.security.webauthn.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.test.security.webauthn.WebAuthnTestUserProvider; @@ -9,4 +9,4 @@ */ @ApplicationScoped public class WebAuthnStoringTestUserProvider extends WebAuthnTestUserProvider { -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/runtime/pom.xml b/extensions/security-webauthn/runtime/pom.xml index b23cb72a2c3c8..5ecfbe27820c9 100644 --- a/extensions/security-webauthn/runtime/pom.xml +++ b/extensions/security-webauthn/runtime/pom.xml @@ -15,8 +15,8 @@ Secure your applications with WebAuthn - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api io.quarkus diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnAuthenticatorStorage.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnAuthenticatorStorage.java index 6a09aa720895c..6ae86cc80ef8d 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnAuthenticatorStorage.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnAuthenticatorStorage.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.runtime.BlockingOperationControl; import io.smallrye.common.annotation.Blocking; @@ -64,4 +64,4 @@ public Future updater(Authenticator authenticator) { .fromCompletionStage(runPotentiallyBlocking(() -> userProvider.updateOrStoreWebAuthnCredentials(authenticator)) .subscribeAsCompletionStage()); } -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnIdentityProvider.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnIdentityProvider.java index c13ff30783e8a..8e1e62fffdd9a 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnIdentityProvider.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnIdentityProvider.java @@ -2,8 +2,8 @@ import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.security.identity.AuthenticationRequestContext; import io.quarkus.security.identity.IdentityProvider; diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnLoginResponse.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnLoginResponse.java index 0dd341d42b866..0e9a01aec89cf 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnLoginResponse.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnLoginResponse.java @@ -1,7 +1,7 @@ package io.quarkus.security.webauthn; -import javax.ws.rs.BeanParam; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.FormParam; import io.vertx.core.json.JsonObject; diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnRegisterResponse.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnRegisterResponse.java index 3c269a9aa7009..a9aff9820a466 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnRegisterResponse.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnRegisterResponse.java @@ -1,7 +1,7 @@ package io.quarkus.security.webauthn; -import javax.ws.rs.BeanParam; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.FormParam; import io.vertx.core.json.JsonObject; diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnResponse.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnResponse.java index 5ebe867be623d..08aa639594b79 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnResponse.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnResponse.java @@ -1,7 +1,7 @@ package io.quarkus.security.webauthn; -import javax.ws.rs.BeanParam; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.FormParam; import io.vertx.core.json.JsonObject; @@ -78,4 +78,4 @@ && notEmpty(webAuthnType) private boolean notEmpty(String value) { return value != null && !value.isBlank(); } -} \ No newline at end of file +} diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnSecurity.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnSecurity.java index 095d4e932c836..e76f5554e6a90 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnSecurity.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnSecurity.java @@ -2,8 +2,8 @@ import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.security.runtime.QuarkusPrincipal; import io.quarkus.security.runtime.QuarkusSecurityIdentity; diff --git a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnTrustedIdentityProvider.java b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnTrustedIdentityProvider.java index 934814154b163..46f4da269293c 100644 --- a/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnTrustedIdentityProvider.java +++ b/extensions/security-webauthn/runtime/src/main/java/io/quarkus/security/webauthn/WebAuthnTrustedIdentityProvider.java @@ -1,7 +1,7 @@ package io.quarkus.security.webauthn; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.security.identity.AuthenticationRequestContext; import io.quarkus.security.identity.IdentityProvider; diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java index 4d8b012b02574..84936f9cd1746 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/DotNames.java @@ -1,8 +1,8 @@ package io.quarkus.security.deployment; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.DotName; diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityAnnotationsRegistrar.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityAnnotationsRegistrar.java index cec64a54bb41d..f95401701393c 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityAnnotationsRegistrar.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityAnnotationsRegistrar.java @@ -3,9 +3,9 @@ import java.util.Collections; import java.util.List; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; import io.quarkus.arc.processor.InterceptorBindingRegistrar; import io.quarkus.security.Authenticated; diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java index 924c0ed173d62..52667fd8878d9 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityProcessor.java @@ -27,7 +27,7 @@ import java.util.function.Function; import java.util.function.Predicate; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityTransformerUtils.java b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityTransformerUtils.java index 4ca0dfa8b2517..8092a41a31bca 100644 --- a/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityTransformerUtils.java +++ b/extensions/security/deployment/src/main/java/io/quarkus/security/deployment/SecurityTransformerUtils.java @@ -5,8 +5,8 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/BeanWithSecuredFinalMethod.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/BeanWithSecuredFinalMethod.java index bee22955535f4..a0f85220d30da 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/BeanWithSecuredFinalMethod.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/BeanWithSecuredFinalMethod.java @@ -1,8 +1,8 @@ package io.quarkus.security.test.cdi; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Singleton; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Singleton; @Singleton public class BeanWithSecuredFinalMethod { diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDefaultTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDefaultTest.java index 6bc1ef4f5c466..fd34fbc3890ba 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDefaultTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDefaultTest.java @@ -8,8 +8,8 @@ import java.util.concurrent.ExecutionException; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDenyUnannotatedTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDenyUnannotatedTest.java index 4f34cbf3d212b..8859182433f28 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDenyUnannotatedTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/CDIAccessDenyUnannotatedTest.java @@ -6,8 +6,8 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/InvalidBean.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/InvalidBean.java index 8d3285c871431..39ae0c53abc80 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/InvalidBean.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/InvalidBean.java @@ -1,7 +1,7 @@ package io.quarkus.security.test.cdi; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.Authenticated; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodTest.java index a13317ae10281..96d9f64814dec 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodWithDisableFinalRemovalTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodWithDisableFinalRemovalTest.java index 9cfc7b8baa152..ebc7c8ce0ece2 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodWithDisableFinalRemovalTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/SecurityAnnotationOnFinalMethodWithDisableFinalRemovalTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/BeanWithSecuredMethods.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/BeanWithSecuredMethods.java index db457825b0fef..a3447479007bd 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/BeanWithSecuredMethods.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/BeanWithSecuredMethods.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import io.smallrye.mutiny.Uni; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithDenyAll.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithDenyAll.java index a65280b7ed0dc..16718d5da9d5c 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithDenyAll.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithDenyAll.java @@ -1,10 +1,10 @@ package io.quarkus.security.test.cdi.app; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithPermitAll.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithPermitAll.java index 67ce51a5a68a2..87d0879d52a03 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithPermitAll.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithPermitAll.java @@ -1,9 +1,9 @@ package io.quarkus.security.test.cdi.app; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithoutAnnotations.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithoutAnnotations.java index 3b78c67f5b8d7..8a2f0e129f69d 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithoutAnnotations.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/SubclassWithoutAnnotations.java @@ -1,6 +1,6 @@ package io.quarkus.security.test.cdi.app; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithNoSecurityAnnotations.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithNoSecurityAnnotations.java index 4b8e286f245a3..cec8254847f52 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithNoSecurityAnnotations.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithNoSecurityAnnotations.java @@ -1,6 +1,6 @@ package io.quarkus.security.test.cdi.app.denied.unnanotated; -import javax.inject.Singleton; +import jakarta.inject.Singleton; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotations.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotations.java index fcd0105858094..dc076a946b12c 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotations.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotations.java @@ -1,9 +1,9 @@ package io.quarkus.security.test.cdi.app.denied.unnanotated; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotationsSubBean.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotationsSubBean.java index 733c4798aef33..f281ac5dadfba 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotationsSubBean.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/BeanWithSecurityAnnotationsSubBean.java @@ -1,6 +1,6 @@ package io.quarkus.security.test.cdi.app.denied.unnanotated; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllBean.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllBean.java index f0bcdea1f2160..dff8162a6fa95 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllBean.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllBean.java @@ -1,7 +1,7 @@ package io.quarkus.security.test.cdi.app.denied.unnanotated; -import javax.annotation.security.PermitAll; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.PermitAll; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllSubBean.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllSubBean.java index 26c7f10dd2f9f..6afeed1c96638 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllSubBean.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/cdi/app/denied/unnanotated/PermitAllSubBean.java @@ -1,7 +1,7 @@ package io.quarkus.security.test.cdi.app.denied.unnanotated; -import javax.annotation.security.DenyAll; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.DenyAll; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/ConfigExpressionDetectionTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/ConfigExpressionDetectionTest.java index 945e0b93fc5b6..0f8de64952245 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/ConfigExpressionDetectionTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/ConfigExpressionDetectionTest.java @@ -5,7 +5,7 @@ import java.util.HashMap; import java.util.Map; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.DotName; import org.jboss.jandex.Indexer; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionFailureTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionFailureTest.java index 2a7d3b83a7357..d3e15789ed093 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionFailureTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionFailureTest.java @@ -5,8 +5,8 @@ import java.util.NoSuchElementException; -import javax.annotation.security.RolesAllowed; -import javax.inject.Singleton; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionTest.java b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionTest.java index 055c5f5cb79f3..be0c7df88482b 100644 --- a/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionTest.java +++ b/extensions/security/deployment/src/test/java/io/quarkus/security/test/rolesallowed/RolesAllowedExpressionTest.java @@ -8,9 +8,9 @@ import java.util.Collections; import java.util.Set; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/AuthorizationController.java b/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/AuthorizationController.java index 97c441257d855..49797b54ce31c 100644 --- a/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/AuthorizationController.java +++ b/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/AuthorizationController.java @@ -1,6 +1,6 @@ package io.quarkus.security.spi.runtime; -import javax.inject.Singleton; +import jakarta.inject.Singleton; /** * controller that allows authorization to be disabled in tests. diff --git a/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/DevModeDisabledAuthorizationController.java b/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/DevModeDisabledAuthorizationController.java index e9489f9680a4c..0da96a6517621 100644 --- a/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/DevModeDisabledAuthorizationController.java +++ b/extensions/security/runtime-spi/src/main/java/io/quarkus/security/spi/runtime/DevModeDisabledAuthorizationController.java @@ -1,9 +1,9 @@ package io.quarkus.security.spi.runtime; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import io.quarkus.runtime.LaunchMode; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java index 9a9fe8bed9236..b01c758d87f78 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/IdentityProviderManagerCreator.java @@ -2,10 +2,10 @@ import java.util.concurrent.Executor; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import io.quarkus.runtime.ExecutorRecorder; import io.quarkus.security.identity.IdentityProvider; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityAssociation.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityAssociation.java index aa41696fc5a37..3539d89d63256 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityAssociation.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityAssociation.java @@ -2,9 +2,9 @@ import java.security.Principal; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import io.quarkus.runtime.BlockingOperationControl; import io.quarkus.runtime.BlockingOperationNotAllowedException; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityProxy.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityProxy.java index e0aaef21892fe..26c4fe57b9ae6 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityProxy.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/SecurityIdentityProxy.java @@ -5,8 +5,8 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import io.quarkus.security.credential.Credential; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/X509IdentityProvider.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/X509IdentityProvider.java index 37e990aa4b60b..ae1ff274da163 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/X509IdentityProvider.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/X509IdentityProvider.java @@ -2,7 +2,7 @@ import java.security.cert.X509Certificate; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.security.identity.AuthenticationRequestContext; import io.quarkus.security.identity.IdentityProvider; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/AuthenticatedInterceptor.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/AuthenticatedInterceptor.java index 59aa863b2bc73..8563b0c5df0d2 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/AuthenticatedInterceptor.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/AuthenticatedInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.security.Authenticated; import io.quarkus.security.spi.runtime.AuthorizationController; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/DenyAllInterceptor.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/DenyAllInterceptor.java index 66f92e3ec1449..85db011c87aeb 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/DenyAllInterceptor.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/DenyAllInterceptor.java @@ -1,11 +1,11 @@ package io.quarkus.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.annotation.security.DenyAll; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.annotation.security.DenyAll; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.security.spi.runtime.AuthorizationController; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/PermitAllInterceptor.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/PermitAllInterceptor.java index fd6eb5fe25dfd..8fedc6b2bf6e2 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/PermitAllInterceptor.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/PermitAllInterceptor.java @@ -1,11 +1,11 @@ package io.quarkus.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.annotation.security.PermitAll; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.annotation.security.PermitAll; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/RolesAllowedInterceptor.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/RolesAllowedInterceptor.java index a0931f204fa38..d81d5c95fee99 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/RolesAllowedInterceptor.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/RolesAllowedInterceptor.java @@ -1,11 +1,11 @@ package io.quarkus.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.security.spi.runtime.AuthorizationController; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityConstrainer.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityConstrainer.java index cd1dc9c248078..72da6f9855c9f 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityConstrainer.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityConstrainer.java @@ -2,8 +2,8 @@ import java.lang.reflect.Method; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import io.quarkus.runtime.BlockingOperationNotAllowedException; import io.quarkus.security.runtime.SecurityIdentityAssociation; diff --git a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityHandler.java b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityHandler.java index 6c960be600c19..1819382ed76f2 100644 --- a/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityHandler.java +++ b/extensions/security/runtime/src/main/java/io/quarkus/security/runtime/interceptor/SecurityHandler.java @@ -6,9 +6,9 @@ import java.util.concurrent.CompletionStage; import java.util.function.Function; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.InvocationContext; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.InvocationContext; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; diff --git a/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredMethodsBuildItem.java b/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredMethodsBuildItem.java index 9064542782189..244f69b17dbda 100644 --- a/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredMethodsBuildItem.java +++ b/extensions/security/spi/src/main/java/io/quarkus/security/spi/AdditionalSecuredMethodsBuildItem.java @@ -10,8 +10,8 @@ import io.quarkus.builder.item.MultiBuildItem; /** - * Contains methods that need to have {@link javax.annotation.security.DenyAll} or - * {@link javax.annotation.security.RolesAllowed}. + * Contains methods that need to have {@link jakarta.annotation.security.DenyAll} or + * {@link jakarta.annotation.security.RolesAllowed}. */ public final class AdditionalSecuredMethodsBuildItem extends MultiBuildItem { diff --git a/extensions/security/spi/src/main/java/io/quarkus/security/spi/SecurityTransformerUtils.java b/extensions/security/spi/src/main/java/io/quarkus/security/spi/SecurityTransformerUtils.java index 34d5452a4d49d..3ef23c2c71644 100644 --- a/extensions/security/spi/src/main/java/io/quarkus/security/spi/SecurityTransformerUtils.java +++ b/extensions/security/spi/src/main/java/io/quarkus/security/spi/SecurityTransformerUtils.java @@ -5,9 +5,9 @@ import java.util.HashSet; import java.util.Set; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/IdentityMock.java b/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/IdentityMock.java index 7788d521bfcc1..edac1922ca3e9 100644 --- a/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/IdentityMock.java +++ b/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/IdentityMock.java @@ -6,10 +6,10 @@ import java.util.Map; import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; import io.quarkus.security.credential.Credential; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/TestIdentityProvider.java b/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/TestIdentityProvider.java index 6b3dee03c03c3..f1985097d4d92 100644 --- a/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/TestIdentityProvider.java +++ b/extensions/security/test-utils/src/main/java/io/quarkus/security/test/utils/TestIdentityProvider.java @@ -2,7 +2,7 @@ import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.AuthenticationFailedException; import io.quarkus.security.identity.AuthenticationRequestContext; diff --git a/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java b/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java index 8141b68e431f2..bcbe69dda868f 100644 --- a/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java +++ b/extensions/smallrye-context-propagation/deployment/src/main/java/io/quarkus/smallrye/context/deployment/SmallRyeContextPropagationProcessor.java @@ -12,7 +12,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllClearedConfigTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllClearedConfigTest.java index 06d4bb3cf3bab..c0111ad5103fa 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllClearedConfigTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllClearedConfigTest.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.context.deployment.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllUnchangedConfigTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllUnchangedConfigTest.java index 299069b620bb0..a042250e1f24f 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllUnchangedConfigTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/AllUnchangedConfigTest.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.context.deployment.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/NoConfigTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/NoConfigTest.java index 5ed8978d4caed..e043b7b46128b 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/NoConfigTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/NoConfigTest.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.context.deployment.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ConfiguredAndSharedBeansTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ConfiguredAndSharedBeansTest.java index 0c47996e5401c..6f007ef980060 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ConfiguredAndSharedBeansTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ConfiguredAndSharedBeansTest.java @@ -17,11 +17,11 @@ import java.lang.annotation.Target; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Qualifier; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderDisabledTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderDisabledTest.java index 6ba2ed04c67e5..cfc4bdf74635b 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderDisabledTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderDisabledTest.java @@ -8,10 +8,10 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderEnabledTest.java b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderEnabledTest.java index e94c8e67f941d..4781c93aaf064 100644 --- a/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderEnabledTest.java +++ b/extensions/smallrye-context-propagation/deployment/src/test/java/io/quarkus/smallrye/context/deployment/test/cdi/ContextProviderEnabledTest.java @@ -7,9 +7,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java b/extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java index d47a7f087cd2a..460e86abc8e91 100644 --- a/extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java +++ b/extensions/smallrye-context-propagation/runtime/src/main/java/io/quarkus/smallrye/context/runtime/SmallRyeContextPropagationProvider.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.context.runtime; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.eclipse.microprofile.context.ThreadContext; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java index 116ec5aafb708..2ce17873fb303 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java @@ -12,8 +12,8 @@ import java.util.Queue; import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.DefinitionException; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ObjectBeanTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ObjectBeanTest.java index 7845cd2978354..f0ee276482f16 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ObjectBeanTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ObjectBeanTest.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.faulttolerance.test; -import javax.enterprise.inject.Produces; -import javax.inject.Named; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousBean.java index c8941228b21a4..bba152652989a 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousBean.java @@ -3,7 +3,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Asynchronous; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousTest.java index cac16e37757f5..b8c0aa2d6e98f 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/AsynchronousTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.ExecutionException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingService.java index 21aa19c0decec..143bc0ab6992c 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingService.java @@ -8,7 +8,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingTest.java index 0300444d56cc7..c0312fb8f0841 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/AsyncNonBlockingTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassService.java index d4c7c60cc709a..42d83d371b827 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassService.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassTest.java index ab0145fbe33de..1d5bff10f804b 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnClassTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodService.java index fe945d873b067..ac0ab096cdc7f 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodService.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodTest.java index 6b7cd8564de68..6f59fa2d8d312 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingNonBlockingOnMethodTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingService.java index 3282e12ed022d..079497679b66c 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingService.java @@ -8,7 +8,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingTest.java index 61fe16a1799c5..3d4fa2348fecd 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BlockingTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassService.java index c1909ff1c859c..bf20b468da966 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassService.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassTest.java index f6ea91db3818a..9a99295ca64c9 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnClassTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodService.java index a864c27ad0d3a..2c6f41e30de03 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodService.java @@ -2,7 +2,7 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodTest.java index c813e95a6a6be..9bcce6422442b 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/BothAsyncOnMethodTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingService.java index 94eed372201db..49e7895249086 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingService.java @@ -8,7 +8,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingTest.java index 26c5db69d9b8e..d3d1ec58607a7 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/additional/NonblockingTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/context/propagation/FaultToleranceContextPropagationTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/context/propagation/FaultToleranceContextPropagationTest.java index 1abf6f690d336..05a40d244b0d5 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/context/propagation/FaultToleranceContextPropagationTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/context/propagation/FaultToleranceContextPropagationTest.java @@ -6,10 +6,10 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.ExecutionException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.faulttolerance.Asynchronous; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingService.java index b9ed038d3d0d4..9088f96ffe61f 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingService.java @@ -8,7 +8,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingTest.java index e1a13b59e1011..6fc6f6553efba 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/noncompat/NoncompatNonblockingTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyFaultToleranceTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyFaultToleranceTest.java index 6613d19824e24..5b96ce0f33ca0 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyFaultToleranceTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyFaultToleranceTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyHelloService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyHelloService.java index dc11cfda51d5a..4827cb9bccaa7 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyHelloService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/MutinyHelloService.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyHelloService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyHelloService.java index d3a478a2de7e4..dbec5fb1f307b 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyHelloService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyHelloService.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyResubscriptionTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyResubscriptionTest.java index edae12627710b..2cd195f94934a 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyResubscriptionTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/asynchronous/types/mutiny/resubscription/MutinyResubscriptionTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadBean.java index 87c9eef887091..70348a368be3a 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadBean.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Bulkhead; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadTest.java index b68b9c870f6e6..83269756c5a7d 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/bukhead/BulkheadTest.java @@ -7,7 +7,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.faulttolerance.exceptions.BulkheadException; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerBean.java index d6e6122634858..6a8fcb27e5ce9 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerBean.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerTest.java index 147f8126714dc..dd5790d6c56e8 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/CircuitBreakerTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.faulttolerance.exceptions.CircuitBreakerOpenException; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/CircuitBreakerNameInheritanceTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/CircuitBreakerNameInheritanceTest.java index c0c90ac9229c7..160e0d396ba18 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/CircuitBreakerNameInheritanceTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/CircuitBreakerNameInheritanceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SubCircuitBreakerService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SubCircuitBreakerService.java index 2373d53519bad..b2f26bbc454a1 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SubCircuitBreakerService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SubCircuitBreakerService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.circuitbreaker.maintenance.duplicate; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SuperCircuitBreakerService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SuperCircuitBreakerService.java index 81f6be2e82a1c..0a87d76f87b20 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SuperCircuitBreakerService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/duplicate/SuperCircuitBreakerService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.circuitbreaker.maintenance.duplicate; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService1.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService1.java index 289330a7cbea7..687f50da09b0b 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService1.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService1.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.circuitbreaker.maintenance.inheritance; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService2.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService2.java index 63d26cfa9e0d2..94d7be6f34af0 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService2.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/CircuitBreakerService2.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.circuitbreaker.maintenance.inheritance; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/DuplicateCircuitBreakerNameTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/DuplicateCircuitBreakerNameTest.java index 9dbd7a493db49..c5bb50252ed96 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/DuplicateCircuitBreakerNameTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/circuitbreaker/maintenance/inheritance/DuplicateCircuitBreakerNameTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackBean.java index b648dfba07862..d135a8d68663f 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackBean.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.fallback; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.ExecutionContext; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java index 25630e725bf43..8b4ab23ba0eeb 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/fallback/FallbackTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/HelloService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/HelloService.java index 1ea8872387016..62d04c395ab0d 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/HelloService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/HelloService.java @@ -3,7 +3,7 @@ import java.time.temporal.ChronoUnit; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/ProgrammaticCircuitBreakerTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/ProgrammaticCircuitBreakerTest.java index 828948eef9faa..07484392b4adc 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/ProgrammaticCircuitBreakerTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/programmatic/ProgrammaticCircuitBreakerTest.java @@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.faulttolerance.exceptions.CircuitBreakerOpenException; import org.junit.jupiter.api.BeforeEach; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitBean.java index 77505f9672eef..9c078742630ca 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitBean.java @@ -3,7 +3,7 @@ import java.time.temporal.ChronoUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.smallrye.faulttolerance.api.RateLimit; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitTest.java index 8066bc448a6f2..27e24c8a764ba 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/ratelimit/RateLimitTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryBean.java index 51a00cbfac4ef..7cc4f5e55d573 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryBean.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryTest.java index 01781902d5f34..f403e1bd46ceb 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/RetryTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffService.java index 42d90507219e7..911bbfbd41789 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.retry.backoff; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffTest.java index d7a7f4ffeb13c..b31e6f1b909f2 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/ClassAndMethodBackoffTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodService.java index 15c795ff0bcd7..774e08be3faee 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.retry.backoff; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodTest.java index 6003921736505..cc7020b34aa66 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnClassBackoffOnMethodTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassService.java index fbcd7093d7746..7cf3ef5d9d85a 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.retry.backoff; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassTest.java index b4c9e742fab3c..34d90f8a34498 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/RetryOnMethodBackoffOnClassTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodService.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodService.java index 45a58027ba6b4..236fae795b5ee 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodService.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodService.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.retry.backoff; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodTest.java index dd864e66b9b24..360337fce5c66 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/retry/backoff/TwoBackoffsOnMethodTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutBean.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutBean.java index 96e093706be72..f0ca2747c176f 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutBean.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutBean.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.faulttolerance.test.timeout; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Timeout; diff --git a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutTest.java b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutTest.java index e4c5290468e6b..42982a9504a8c 100644 --- a/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutTest.java +++ b/extensions/smallrye-fault-tolerance/deployment/src/test/java/io/quarkus/smallrye/faulttolerance/test/timeout/TimeoutTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.faulttolerance.exceptions.TimeoutException; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusAsyncExecutorProvider.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusAsyncExecutorProvider.java index 912997e4699e9..edc65951e2a39 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusAsyncExecutorProvider.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusAsyncExecutorProvider.java @@ -2,10 +2,10 @@ import java.util.concurrent.ExecutorService; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.context.ManagedExecutor; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusExistingCircuitBreakerNames.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusExistingCircuitBreakerNames.java index bd90f59dd3452..8386937f462f1 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusExistingCircuitBreakerNames.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusExistingCircuitBreakerNames.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; import io.smallrye.faulttolerance.ExistingCircuitBreakerNames; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java index f807114ab8756..21211cca75e46 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFallbackHandlerProvider.java @@ -1,11 +1,11 @@ package io.quarkus.smallrye.faulttolerance.runtime; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.faulttolerance.ExecutionContext; import org.eclipse.microprofile.faulttolerance.FallbackHandler; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java index 53614d3f24126..06769240943e4 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java @@ -6,9 +6,9 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/SmallRyeFaultToleranceRecorder.java b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/SmallRyeFaultToleranceRecorder.java index f1443fb32d4cf..f1481dc59cfde 100644 --- a/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/SmallRyeFaultToleranceRecorder.java +++ b/extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/SmallRyeFaultToleranceRecorder.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionException; diff --git a/extensions/smallrye-graphql-client/deployment/src/main/java/io/quarkus/smallrye/graphql/client/deployment/SmallRyeGraphQLClientProcessor.java b/extensions/smallrye-graphql-client/deployment/src/main/java/io/quarkus/smallrye/graphql/client/deployment/SmallRyeGraphQLClientProcessor.java index 9323e1eec539d..fdcd856cfbf1a 100644 --- a/extensions/smallrye-graphql-client/deployment/src/main/java/io/quarkus/smallrye/graphql/client/deployment/SmallRyeGraphQLClientProcessor.java +++ b/extensions/smallrye-graphql-client/deployment/src/main/java/io/quarkus/smallrye/graphql/client/deployment/SmallRyeGraphQLClientProcessor.java @@ -8,8 +8,8 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionTest.java index 7d691b1fb2f38..c1553ba681ede 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionTest.java @@ -9,7 +9,7 @@ import java.util.List; import java.util.concurrent.ExecutionException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionWithQuarkusConfigTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionWithQuarkusConfigTest.java index 0c0124cd6f651..2bbc1133d4083 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionWithQuarkusConfigTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/DynamicGraphQLClientInjectionWithQuarkusConfigTest.java @@ -9,7 +9,7 @@ import java.util.List; import java.util.concurrent.ExecutionException; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/StorkAndGraphQLClientTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/StorkAndGraphQLClientTest.java index 70e0f1e9fb9f0..bde9d888ddaec 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/StorkAndGraphQLClientTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/StorkAndGraphQLClientTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientFQNameTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientFQNameTest.java index e74330e1ab181..d3b1033ce74e4 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientFQNameTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientFQNameTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionTest.java index 784254cf209eb..c75b3fb652109 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionWithQuarkusConfigTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionWithQuarkusConfigTest.java index 696cb438f38bb..1b066b01ab7ac 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionWithQuarkusConfigTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientInjectionWithQuarkusConfigTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientShortcutTest.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientShortcutTest.java index f4e51f36eda6f..84840596fe0a9 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientShortcutTest.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/TypesafeGraphQLClientShortcutTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.asset.EmptyAsset; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/model/TestingGraphQLApi.java b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/model/TestingGraphQLApi.java index 42abcf84dd638..f6f73aed7485e 100644 --- a/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/model/TestingGraphQLApi.java +++ b/extensions/smallrye-graphql-client/deployment/src/test/java/io/quarkus/smallrye/graphql/client/deployment/model/TestingGraphQLApi.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java index fcb6549f7cecf..c313a4c4da3ad 100644 --- a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java +++ b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java @@ -5,9 +5,9 @@ import java.util.Map; import java.util.Optional; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java index d44185c471cf4..c2c5cb8660385 100644 --- a/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java +++ b/extensions/smallrye-graphql/deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java @@ -201,7 +201,7 @@ void registerNativeImageResources(BuildProducer servic // Add a condition for the optional eventing services reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem(TracingService.class, "io.opentracing.Tracer")); reflectiveClassCondition - .produce(new ReflectiveClassConditionBuildItem(ValidationService.class, "javax.validation.ValidatorFactory")); + .produce(new ReflectiveClassConditionBuildItem(ValidationService.class, "jakarta.validation.ValidatorFactory")); // Use MicroProfile Config (We use the one from the CDI Module) serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(MicroProfileConfig.class.getName())); @@ -400,7 +400,7 @@ private Set getAllAdapterClasses(IndexView index) { adapterClasses.addAll( getAdapterClasses(index, DotName.createSimple("jakarta.json.bind.annotation.JsonbTypeAdapter"))); adapterClasses.addAll( - getAdapterClasses(index, DotName.createSimple("javax.json.bind.annotation.JsonbTypeAdapter"))); + getAdapterClasses(index, DotName.createSimple("jakarta.json.bind.annotation.JsonbTypeAdapter"))); return adapterClasses; } diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/AbstractGraphQLTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/AbstractGraphQLTest.java index ba8dd7e1769d2..e88b367bc6029 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/AbstractGraphQLTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/AbstractGraphQLTest.java @@ -6,10 +6,10 @@ import java.util.Map; import java.util.Properties; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonObjectBuilder; +import jakarta.json.JsonReader; import org.hamcrest.CoreMatchers; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/BeanValidationGraphQLDirectivesTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/BeanValidationGraphQLDirectivesTest.java index faab1536063f1..8975d40f956c0 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/BeanValidationGraphQLDirectivesTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/BeanValidationGraphQLDirectivesTest.java @@ -3,8 +3,8 @@ import static io.restassured.RestAssured.get; import static org.hamcrest.Matchers.containsString; -import javax.validation.Valid; -import javax.validation.constraints.Size; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/ConcurrentAuthTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/ConcurrentAuthTest.java index 9504bfcb83ce5..4f8541a62b5da 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/ConcurrentAuthTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/ConcurrentAuthTest.java @@ -15,8 +15,8 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLBlockingModeTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLBlockingModeTest.java index 8e220c5fe78e1..371193ed16e54 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLBlockingModeTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLBlockingModeTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLCDIContextPropagationTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLCDIContextPropagationTest.java index de64008574b3c..e78481eadfc7b 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLCDIContextPropagationTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLCDIContextPropagationTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.ThreadLocalRandom; import java.util.stream.Collectors; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.graphql.GraphQLApi; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLTerminateContextTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLTerminateContextTest.java index ce6c0123bbdf7..8100c1a227bd6 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLTerminateContextTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLTerminateContextTest.java @@ -2,7 +2,7 @@ import static io.quarkus.smallrye.graphql.deployment.AbstractGraphQLTest.MEDIATYPE_JSON; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLThreadTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLThreadTest.java index 78eedf99c93b3..9787cc2807135 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLThreadTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLThreadTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLValidationMessagesLocalizationTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLValidationMessagesLocalizationTest.java index ef8cd46b9aede..251dc90bd04f1 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLValidationMessagesLocalizationTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/GraphQLValidationMessagesLocalizationTest.java @@ -2,7 +2,7 @@ import static org.hamcrest.CoreMatchers.containsString; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.Size; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/InjectRoutingContextTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/InjectRoutingContextTest.java index 53c68790e57da..92e2aedb9ae5d 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/InjectRoutingContextTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/InjectRoutingContextTest.java @@ -2,7 +2,7 @@ import static org.hamcrest.Matchers.containsString; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsDisabledTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsDisabledTest.java index c6576e72f927f..f5a3914d207d8 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsDisabledTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsDisabledTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsTest.java index d41bde3ffd681..04d1187d7ff5d 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/MetricsTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestContextTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestContextTest.java index 133bd22950568..812ccdfc71708 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestContextTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestContextTest.java @@ -2,7 +2,7 @@ import static org.hamcrest.Matchers.containsString; -import javax.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.ContextNotActiveException; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestLeakDetectionTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestLeakDetectionTest.java index a05c20265ce85..9d11a93e7940c 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestLeakDetectionTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/RequestLeakDetectionTest.java @@ -9,9 +9,9 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SecurityTest.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SecurityTest.java index 3bd90e04ed528..ed33eee1bd533 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SecurityTest.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SecurityTest.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.stream.Collectors; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Name; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLContextTestCase.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLContextTestCase.java index a4ccf0d11ae7b..4a4f329f4b92b 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLContextTestCase.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLContextTestCase.java @@ -9,8 +9,8 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.ExecutionException; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.graphql.GraphQLApi; diff --git a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/TestResource.java b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/TestResource.java index 5a69b62a791d3..be4dd0dbb1fcd 100644 --- a/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/TestResource.java +++ b/extensions/smallrye-graphql/deployment/src/test/java/io/quarkus/smallrye/graphql/deployment/TestResource.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.graphql.deployment; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Mutation; diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLAbstractHandler.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLAbstractHandler.java index c8692d035680e..14933e47d9daf 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLAbstractHandler.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLAbstractHandler.java @@ -6,10 +6,10 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; -import javax.json.JsonReaderFactory; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; +import jakarta.json.JsonReaderFactory; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableContext; diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java index 127e1ed8cc759..958c0832c4912 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java @@ -8,10 +8,10 @@ import java.util.List; import java.util.regex.Pattern; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonObjectBuilder; +import jakarta.json.JsonReader; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLLocaleResolver.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLLocaleResolver.java index 0bba02a64c008..f4a1f658dc0dc 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLLocaleResolver.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLLocaleResolver.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.Optional; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.hibernate.validator.spi.messageinterpolation.LocaleResolver; import org.hibernate.validator.spi.messageinterpolation.LocaleResolverContext; diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLSchemaHandler.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLSchemaHandler.java index d9af98e75d81b..7312057315f62 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLSchemaHandler.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLSchemaHandler.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.graphql.runtime; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import graphql.schema.GraphQLSchema; import io.smallrye.graphql.execution.SchemaPrinter; diff --git a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java index 76c5effc51549..3ae05debeed90 100644 --- a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java +++ b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java @@ -85,7 +85,7 @@ class SmallRyeHealthProcessor { private static final DotName HEALTH_GROUP = DotName.createSimple(HealthGroup.class.getName()); private static final DotName HEALTH_GROUPS = DotName.createSimple(HealthGroups.class.getName()); private static final DotName WELLNESS = DotName.createSimple(Wellness.class.getName()); - private static final DotName JAX_RS_PATH = DotName.createSimple("javax.ws.rs.Path"); + private static final DotName JAX_RS_PATH = DotName.createSimple("jakarta.ws.rs.Path"); // For the UI private static final GACT HEALTH_UI_WEBJAR_ARTIFACT_KEY = new GACT("io.smallrye", "smallrye-health-ui", null, "jar"); diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/AsyncDispatchedThreadTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/AsyncDispatchedThreadTest.java index 1a87c4b42980e..5030989f53c5e 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/AsyncDispatchedThreadTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/AsyncDispatchedThreadTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.stringContainsInOrder; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Liveness; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/BasicHealthCheck.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/BasicHealthCheck.java index 509887bac68cd..6d6e53dc8011f 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/BasicHealthCheck.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/BasicHealthCheck.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/DispatchedThreadTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/DispatchedThreadTest.java index 31b15e6fffd8d..b36e48a87b1f7 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/DispatchedThreadTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/DispatchedThreadTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.stringContainsInOrder; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/ExpectedBeansUnitTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/ExpectedBeansUnitTest.java index 1c4633f495b77..54239eb3f9862 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/ExpectedBeansUnitTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/ExpectedBeansUnitTest.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.health.test; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.Liveness; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java index 3347daf5257a7..0c49c56be7b76 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingHealthCheck.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java index 2ce753abfa5ed..4c069818555f9 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/FailingUnitTest.java @@ -5,9 +5,9 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckContextPropagationTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckContextPropagationTest.java index 5fbd13544333e..0d843d56cb901 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckContextPropagationTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckContextPropagationTest.java @@ -7,10 +7,10 @@ import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckDefaultScopeTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckDefaultScopeTest.java index 34e711e7334a0..7aac837a9b72f 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckDefaultScopeTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckDefaultScopeTest.java @@ -12,8 +12,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; -import javax.inject.Named; +import jakarta.enterprise.inject.Stereotype; +import jakarta.inject.Named; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckProducerDefaultScopeTest.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckProducerDefaultScopeTest.java index 89f6472e94338..dadbfee2acc6c 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckProducerDefaultScopeTest.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/HealthCheckProducerDefaultScopeTest.java @@ -7,7 +7,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/OpenApiRoute.java b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/OpenApiRoute.java index 99b84af6cb53e..767f16857a147 100644 --- a/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/OpenApiRoute.java +++ b/extensions/smallrye-health/deployment/src/test/java/io/quarkus/smallrye/health/test/OpenApiRoute.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.health.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.web.Route; import io.quarkus.vertx.web.Route.HttpMethod; diff --git a/extensions/smallrye-health/runtime/pom.xml b/extensions/smallrye-health/runtime/pom.xml index d4965a6a547dc..a176b2235ec7c 100644 --- a/extensions/smallrye-health/runtime/pom.xml +++ b/extensions/smallrye-health/runtime/pom.xml @@ -18,7 +18,6 @@ io.smallrye smallrye-health - org.glassfish jakarta.json diff --git a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/QuarkusAsyncHealthCheckFactory.java b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/QuarkusAsyncHealthCheckFactory.java index 15ed0e93fb7bb..90c64a7d5939f 100644 --- a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/QuarkusAsyncHealthCheckFactory.java +++ b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/QuarkusAsyncHealthCheckFactory.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.health.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessCheck.java b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessCheck.java index bb7f555734c72..aa66233f086a1 100644 --- a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessCheck.java +++ b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessCheck.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.health.runtime; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; diff --git a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessListener.java b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessListener.java index b5696dfebfb2d..3a012853908b0 100644 --- a/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessListener.java +++ b/extensions/smallrye-health/runtime/src/main/java/io/quarkus/smallrye/health/runtime/ShutdownReadinessListener.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.health.runtime; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import org.eclipse.microprofile.health.Readiness; diff --git a/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java b/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java index 7076b433bddc8..430ebfe2d9008 100644 --- a/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java +++ b/extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java @@ -165,10 +165,10 @@ void registerOptionalClaimProducer(BeanRegistrationPhaseBuildItem beanRegistrati } AnnotationInstance claimQualifier = injectionPoint.getRequiredQualifier(CLAIM_NAME); if (claimQualifier != null && injectionPoint.getType().name().equals(DotNames.PROVIDER)) { - // Classes from javax.json are handled specially + // Classes from jakarta.json are handled specially Type actualType = injectionPoint.getRequiredType(); if (actualType.name().equals(DotNames.OPTIONAL) && !actualType.name().toString() - .startsWith("javax.json")) { + .startsWith("jakarta.json")) { additionalTypes.add(actualType); } } diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/AuthenticatedEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/AuthenticatedEndpoint.java index 163d6f9b844fb..a4ef87e660304 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/AuthenticatedEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/AuthenticatedEndpoint.java @@ -1,7 +1,7 @@ package io.quarkus.jwt.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/CustomSecurityIdentityAugmentor.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/CustomSecurityIdentityAugmentor.java index 402b9d4776db1..c870795dead0a 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/CustomSecurityIdentityAugmentor.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/CustomSecurityIdentityAugmentor.java @@ -1,6 +1,6 @@ package io.quarkus.jwt.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.identity.AuthenticationRequestContext; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java index cc55142bc3837..904b4a012873e 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultGroupsEndpoint.java @@ -1,13 +1,13 @@ package io.quarkus.jwt.test; -import javax.annotation.security.DenyAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultScopedEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultScopedEndpoint.java index 17191f8511ad0..66fb6f68cdeb3 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultScopedEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DefaultScopedEndpoint.java @@ -2,18 +2,18 @@ import java.util.Optional; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonString; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonString; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DisabledProactiveAuthFailedExceptionMappingTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DisabledProactiveAuthFailedExceptionMappingTest.java index 8b3be61214626..006911f981bc8 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DisabledProactiveAuthFailedExceptionMappingTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/DisabledProactiveAuthFailedExceptionMappingTest.java @@ -1,6 +1,6 @@ package io.quarkus.jwt.test; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/EnabledProactiveAuthFailedExceptionMapperTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/EnabledProactiveAuthFailedExceptionMapperTest.java index ebd85a97539b8..558033bfb2ff7 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/EnabledProactiveAuthFailedExceptionMapperTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/EnabledProactiveAuthFailedExceptionMapperTest.java @@ -1,6 +1,6 @@ package io.quarkus.jwt.test; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; @@ -44,4 +44,4 @@ public Response unauthorized() { } } -} \ No newline at end of file +} diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/GreetingService.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/GreetingService.java index 447e426596c9f..c6b2d1db6acd6 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/GreetingService.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.jwt.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JsonValuejectionEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JsonValuejectionEndpoint.java index ba350662f0044..d949305da3687 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JsonValuejectionEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JsonValuejectionEndpoint.java @@ -4,19 +4,19 @@ import java.util.HashSet; import java.util.List; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonArray; -import javax.json.JsonNumber; -import javax.json.JsonObject; -import javax.json.JsonString; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonArray; +import jakarta.json.JsonNumber; +import jakarta.json.JsonObject; +import jakarta.json.JsonString; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtAuthUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtAuthUnitTest.java index 89e324cd49549..f1eb08b534727 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtAuthUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtAuthUnitTest.java @@ -6,9 +6,9 @@ import java.net.HttpURLConnection; import java.util.HashMap; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.eclipse.microprofile.jwt.Claims; import org.junit.jupiter.api.Assertions; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtCallerPrincipalUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtCallerPrincipalUnitTest.java index 0d928a3c0aa7b..eba26fc97ae46 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtCallerPrincipalUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtCallerPrincipalUnitTest.java @@ -5,10 +5,10 @@ import java.util.HashSet; import java.util.Set; -import javax.json.Json; -import javax.json.JsonArray; -import javax.json.JsonNumber; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonArray; +import jakarta.json.JsonNumber; +import jakarta.json.JsonObject; import org.eclipse.microprofile.jwt.Claims; import org.jose4j.jwt.JwtClaims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtParserEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtParserEndpoint.java index 5ef00b45664ee..60490f22080a5 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtParserEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/JwtParserEndpoint.java @@ -2,11 +2,11 @@ import java.security.PublicKey; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; import io.smallrye.jwt.auth.principal.JWTParser; import io.smallrye.jwt.util.KeyUtils; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PermitAllEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PermitAllEndpoint.java index 682475a7799c9..c494bfde34ae7 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PermitAllEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PermitAllEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.jwt.test; -import javax.annotation.security.PermitAll; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/permit-all-endpoint") @PermitAll diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java index f4dcf7bcd2ce1..546ce9529126f 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionEndpoint.java @@ -3,16 +3,16 @@ import java.util.List; import java.util.Set; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionUnitTest.java index a7fde74b16f75..7ee74de33fb97 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrimitiveInjectionUnitTest.java @@ -4,9 +4,9 @@ import java.net.HttpURLConnection; import java.util.HashMap; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.eclipse.microprofile.jwt.Claims; import org.junit.jupiter.api.Assertions; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionEndpoint.java index 663d22249f62c..245ccce8b89a7 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionEndpoint.java @@ -3,19 +3,19 @@ import java.security.Principal; import java.util.Optional; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonString; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonString; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionUnitTest.java index cb41e3f1b7d06..79c6ab670cb1f 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PrincipalInjectionUnitTest.java @@ -4,9 +4,9 @@ import java.net.HttpURLConnection; import java.util.HashMap; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.eclipse.microprofile.jwt.Claims; import org.junit.jupiter.api.Assertions; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PublicKeyLocationConfigTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PublicKeyLocationConfigTest.java index 6b0eb8bc45234..5bd0033a73a9f 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PublicKeyLocationConfigTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/PublicKeyLocationConfigTest.java @@ -4,7 +4,7 @@ import java.util.logging.Level; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequestScopedEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequestScopedEndpoint.java index 2ce150955f40c..982f17728afd4 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequestScopedEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequestScopedEndpoint.java @@ -2,19 +2,19 @@ import java.util.Optional; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonString; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonString; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.Claims; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsEndpoint.java index c8b329b10b9dd..9a5598e92b97b 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsEndpoint.java @@ -3,16 +3,16 @@ import java.util.Optional; import java.util.Set; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.Claims; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsUnitTest.java index 9b9b90e0956bf..68f6619fb7b0d 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RequiredClaimsUnitTest.java @@ -4,9 +4,9 @@ import java.net.HttpURLConnection; import java.util.HashMap; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.eclipse.microprofile.jwt.Claims; import org.junit.jupiter.api.Assertions; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java index 4d120b817b983..2ba268b467616 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/RolesEndpoint.java @@ -3,20 +3,20 @@ import java.security.Principal; import java.util.Date; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.ClaimValue; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/ScopingUnitTest.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/ScopingUnitTest.java index a64485e0e278f..e7e38d5eb2ba9 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/ScopingUnitTest.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/ScopingUnitTest.java @@ -3,9 +3,9 @@ import java.io.StringReader; import java.net.HttpURLConnection; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/TestJWTCallerPrincipalFactory.java b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/TestJWTCallerPrincipalFactory.java index 15a8d13e580ef..9e7aafd1776d5 100644 --- a/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/TestJWTCallerPrincipalFactory.java +++ b/extensions/smallrye-jwt/deployment/src/test/java/io/quarkus/jwt/test/TestJWTCallerPrincipalFactory.java @@ -3,7 +3,7 @@ import java.nio.charset.StandardCharsets; import java.util.Base64; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jose4j.jwt.JwtClaims; diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java index 92293c7ae94f6..024b5f3bd50ae 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JWTAuthMechanism.java @@ -6,8 +6,8 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpResponseStatus; diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JsonWebTokenCredentialProducer.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JsonWebTokenCredentialProducer.java index d493f982e4047..36401bb2fea8b 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JsonWebTokenCredentialProducer.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JsonWebTokenCredentialProducer.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.jwt.runtime.auth; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JwtPrincipalProducer.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JwtPrincipalProducer.java index 60c21e2dbf5f8..64bbf9f27139e 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JwtPrincipalProducer.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/JwtPrincipalProducer.java @@ -1,10 +1,10 @@ package io.quarkus.smallrye.jwt.runtime.auth; -import javax.annotation.Priority; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.JsonWebToken; @@ -35,4 +35,4 @@ JsonWebToken currentJWTPrincipalOrNull() { } throw new IllegalStateException("Current principal " + identity.getPrincipal() + " is not a JSON web token"); } -} \ No newline at end of file +} diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/MpJwtValidator.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/MpJwtValidator.java index 49510a031d9d0..4c4064680db9e 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/MpJwtValidator.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/MpJwtValidator.java @@ -2,8 +2,8 @@ import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.jwt.JsonWebToken; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/RawOptionalClaimCreator.java b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/RawOptionalClaimCreator.java index c9d9f9c3b9ad4..f9f174a283900 100644 --- a/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/RawOptionalClaimCreator.java +++ b/extensions/smallrye-jwt/runtime/src/main/java/io/quarkus/smallrye/jwt/runtime/auth/RawOptionalClaimCreator.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.Arc; import io.quarkus.arc.BeanCreator; diff --git a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/JaxRsMetricsProcessor.java b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/JaxRsMetricsProcessor.java index b99b48bdba15b..7608c1813a7a1 100644 --- a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/JaxRsMetricsProcessor.java +++ b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/JaxRsMetricsProcessor.java @@ -3,7 +3,7 @@ import java.util.Optional; import java.util.function.BooleanSupplier; -import javax.servlet.DispatcherType; +import jakarta.servlet.DispatcherType; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsDotNames.java b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsDotNames.java index 2dabc1da997ca..cac8c69d859d0 100644 --- a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsDotNames.java +++ b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsDotNames.java @@ -64,9 +64,9 @@ public static boolean isMetricAnnotation(AnnotationInstance instance) { } // these are needed for determining whether a class is a REST endpoint or JAX-RS provider - public static final DotName JAXRS_PATH = DotName.createSimple("javax.ws.rs.Path"); + public static final DotName JAXRS_PATH = DotName.createSimple("jakarta.ws.rs.Path"); public static final DotName REST_CONTROLLER = DotName .createSimple("org.springframework.web.bind.annotation.RestController"); - public static final DotName JAXRS_PROVIDER = DotName.createSimple("javax.ws.rs.ext.Provider"); + public static final DotName JAXRS_PROVIDER = DotName.createSimple("jakarta.ws.rs.ext.Provider"); } diff --git a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java index d6e815b62060e..a1d836621b22f 100644 --- a/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java +++ b/extensions/smallrye-metrics/deployment/src/main/java/io/quarkus/smallrye/metrics/deployment/SmallRyeMetricsProcessor.java @@ -25,7 +25,7 @@ import java.util.Set; import java.util.function.Predicate; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.eclipse.microprofile.metrics.MetricRegistry; import org.eclipse.microprofile.metrics.MetricType; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/DefaultPackageMetricsTest.java b/extensions/smallrye-metrics/deployment/src/test/java/DefaultPackageMetricsTest.java index 36546ecdd6736..4eaea68fd8352 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/DefaultPackageMetricsTest.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/DefaultPackageMetricsTest.java @@ -1,7 +1,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricRegistryTest.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricRegistryTest.java index ff35b785ec8cb..1f46a23b849fd 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricRegistryTest.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricRegistryTest.java @@ -3,11 +3,11 @@ import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.equalTo; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricsTest.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricsTest.java index 03415f56c1567..1676a334fb154 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricsTest.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/deployment/DevModeMetricsTest.java @@ -7,11 +7,11 @@ import java.io.File; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.MetricID; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java index 956d81794d7a1..f64e2d1ccea06 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java @@ -4,8 +4,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; -import javax.ws.rs.core.PathSegment; +import jakarta.inject.Inject; +import jakarta.ws.rs.core.PathSegment; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java index 0b7d47306c2ad..5090b369d0b5f 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java @@ -4,11 +4,11 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.Response; @Path("/") public class MetricsResource { diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/registration/DefaultMethodTest.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/registration/DefaultMethodTest.java index cfd77b83cdf6f..35b1165a16d48 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/registration/DefaultMethodTest.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/registration/DefaultMethodTest.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.metrics.registration; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/StereotypeCountedClassTest.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/StereotypeCountedClassTest.java index eb3fceff5433b..8e03e84e3447a 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/StereotypeCountedClassTest.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/StereotypeCountedClassTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/stereotypes/CountMe.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/stereotypes/CountMe.java index 57deac8bb3c33..b22aa61e33301 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/stereotypes/CountMe.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/stereotype/stereotypes/CountMe.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.Stereotype; import org.eclipse.microprofile.metrics.annotation.Counted; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricResource.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricResource.java index 575ebfcaa1eac..3ccbe619bdce4 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricResource.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricResource.java @@ -1,9 +1,9 @@ package io.quarkus.smallrye.metrics.test; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricsFromMetricsFactoryTestCase.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricsFromMetricsFactoryTestCase.java index 2349682de3fac..d710b04e96ec0 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricsFromMetricsFactoryTestCase.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MetricsFromMetricsFactoryTestCase.java @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.Gauge; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java index a61d6e6abf785..474a8dae954d4 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java @@ -21,13 +21,13 @@ import java.lang.reflect.Method; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; import io.vertx.ext.web.RoutingContext; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java index 2be8383079f28..f720c5c9539e2 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java @@ -4,7 +4,7 @@ import java.lang.reflect.Method; -import javax.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.ResourceInfo; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsHandler.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsHandler.java index 78c80fcfcbc14..31dd16ce15862 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsHandler.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsHandler.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.stream.Stream; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsRecorder.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsRecorder.java index 840be46047a59..b9ebfba6933a3 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsRecorder.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/SmallRyeMetricsRecorder.java @@ -15,7 +15,7 @@ import java.util.List; import java.util.function.Consumer; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.eclipse.microprofile.metrics.ConcurrentGauge; import org.eclipse.microprofile.metrics.Counter; diff --git a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/RESTEasyExtension.java b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/RESTEasyExtension.java index e15ea64f5b100..260ba3e5a539e 100644 --- a/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/RESTEasyExtension.java +++ b/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/RESTEasyExtension.java @@ -16,7 +16,7 @@ public class RESTEasyExtension implements AnnotationScannerExtension { - private static final DotName DOTNAME_PROVIDER = DotName.createSimple("javax.ws.rs.ext.Provider"); + private static final DotName DOTNAME_PROVIDER = DotName.createSimple("jakarta.ws.rs.ext.Provider"); private static final DotName DOTNAME_ASYNC_RESPONSE_PROVIDER = DotName .createSimple("org.jboss.resteasy.spi.AsyncResponseProvider"); @@ -35,7 +35,7 @@ private void scanAsyncResponseProvidersFromServices() { Thread.currentThread().getContextClassLoader()); // can't use the ServiceLoader API because Providers is not an interface for (String provider : ServiceUtil.classNamesNamedIn(getClass().getClassLoader(), - "META-INF/services/javax.ws.rs.ext.Providers")) { + "META-INF/services/jakarta.ws.rs.ext.Providers")) { scanAsyncResponseProvidersFromClassName(asyncResponseProvider, provider); } } catch (IOException e) { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MyResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MyResource.java index 7839a33a30449..2a956ed2170a5 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MyResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MyResource.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.hotreload; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/api") public class MyResource { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MySecondResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MySecondResource.java index eb2d6b4204928..10b8036ed7615 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MySecondResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/hotreload/MySecondResource.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.hotreload; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/my-second-api") public class MySecondResource { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AbstractAutoTagResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AbstractAutoTagResource.java index b778172e8653a..5b9e881dceebc 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AbstractAutoTagResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AbstractAutoTagResource.java @@ -1,14 +1,14 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Produces(MediaType.TEXT_PLAIN) public interface AbstractAutoTagResource { @GET @Path("/{id}") T getById(@PathParam("id") long id); -} \ No newline at end of file +} diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagFetchableResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagFetchableResource.java index bdacd06926616..99db3f2bef4ff 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagFetchableResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagFetchableResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.GET; +import jakarta.ws.rs.GET; public abstract class AutoTagFetchableResource implements AbstractAutoTagResource { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagResource.java index 0412d7d6b93c0..940230dc11055 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/AutoTagResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/tagged") public class AutoTagResource extends AutoTagFetchableResource { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/DefaultContentTypeResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/DefaultContentTypeResource.java index e6d751cdf85c3..0715898c0ecc2 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/DefaultContentTypeResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/DefaultContentTypeResource.java @@ -1,10 +1,10 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -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.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/greeting") public class DefaultContentTypeResource { @@ -28,4 +28,4 @@ public Greeting byebye() { return new Greeting("Good Bye !"); } -} \ No newline at end of file +} diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/MyOASFilter.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/MyOASFilter.java index 227e15567a630..0e0fddb27315f 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/MyOASFilter.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/MyOASFilter.java @@ -2,7 +2,7 @@ import java.util.Optional; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResource.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResource.java index de854165f7505..d4a999bdc7960 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResource.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResource.java @@ -1,9 +1,9 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.openapi.annotations.extensions.Extension; import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtClassLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtClassLevel.java index 164ea97c27954..ea92555faee74 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtClassLevel.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtClassLevel.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; import org.eclipse.microprofile.openapi.annotations.servers.Server; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel.java index 6a3dc43cadfab..4e71c1dc36051 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; import org.eclipse.microprofile.openapi.annotations.servers.Server; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel2.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel2.java index 98bef92c50ebf..b920b06f95e0a 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel2.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceAuthenticatedAtMethodLevel2.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; import org.eclipse.microprofile.openapi.annotations.servers.Server; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java index 2d6749566c6e1..25fd247141bcf 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtClassLevel.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.responses.APIResponse; import org.eclipse.microprofile.openapi.annotations.responses.APIResponses; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java index ff3e17182fa0e..41c0704f40867 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.responses.APIResponse; import org.eclipse.microprofile.openapi.annotations.responses.APIResponses; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel2.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel2.java index 92c5610dae071..139823d65b032 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel2.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceSecuredAtMethodLevel2.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; import org.eclipse.microprofile.openapi.annotations.servers.Server; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceWithNoTag.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceWithNoTag.java index c93cc0dc2f3c8..a27ef2eeb43f9 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceWithNoTag.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/OpenApiResourceWithNoTag.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.openapi.annotations.tags.Tag; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean.java index 70bf3ccd23aa1..cd81c5ffc34d6 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ResourceBean { diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean2.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean2.java index 134a04b5657c1..30f95908d171b 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean2.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/jaxrs/ResourceBean2.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.openapi.test.jaxrs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.Authenticated; diff --git a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiRoute.java b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiRoute.java index 3acb0d2ada95d..cd03c2b2ccf34 100644 --- a/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiRoute.java +++ b/extensions/smallrye-openapi/deployment/src/test/java/io/quarkus/smallrye/openapi/test/vertx/OpenApiRoute.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.openapi.test.vertx; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.web.Param; import io.quarkus.vertx.web.Route; diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java index 7b107646d0c33..c71c452a9143b 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java @@ -4,8 +4,8 @@ import java.io.InputStream; import java.nio.charset.StandardCharsets; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.openapi.OASFilter; diff --git a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java b/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java index 619e50c542fb9..23687250ed9e1 100644 --- a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java +++ b/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java @@ -2,8 +2,8 @@ import java.lang.reflect.Method; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.servlet.DispatcherType; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.servlet.DispatcherType; import io.opentracing.Tracer; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java index 9af9e2b3b1f87..dfe69588a107f 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java @@ -1,15 +1,15 @@ package io.quarkus.smallrye.opentracing.deployment; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java index 67ba3ae5a3951..0589f77db2830 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java @@ -3,11 +3,11 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; @Path("/") public interface RestService { diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java index 2547e672cc275..5cf5fe0d47a54 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; import org.eclipse.microprofile.faulttolerance.Asynchronous; import org.eclipse.microprofile.faulttolerance.Fallback; diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java index 904fa837545ac..1edb36a5409c0 100644 --- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java +++ b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java @@ -3,11 +3,11 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.rest.client.RestClientBuilder; diff --git a/extensions/smallrye-opentracing/runtime/pom.xml b/extensions/smallrye-opentracing/runtime/pom.xml index f3356d8993c5b..8d8916cef1a72 100644 --- a/extensions/smallrye-opentracing/runtime/pom.xml +++ b/extensions/smallrye-opentracing/runtime/pom.xml @@ -37,8 +37,8 @@ See https://github.com/opentracing-contrib/java-interceptors/issues/15 --> - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api io.smallrye diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java index bc25e52d34742..bc115097f088b 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java @@ -1,11 +1,11 @@ package io.quarkus.smallrye.opentracing.runtime; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; import io.opentracing.Tracer; import io.smallrye.opentracing.contrib.jaxrs2.server.OperationNameProvider; diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java index 72d2893e1a744..ba2320371a1ad 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.WriterInterceptorContext; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java index 5cfb72e74517d..681b78b369eed 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; import io.opentracing.tag.Tags; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java index 4688038b76f22..4af785fbacfb7 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.opentracing.runtime; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.opentracing.Tracer; import io.opentracing.util.GlobalTracer; diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java index 5b51c2edfe171..9f1a0fe73a226 100644 --- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java +++ b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java @@ -7,7 +7,7 @@ import java.util.Map; import java.util.Set; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import io.smallrye.config.ConfigSourceInterceptorContext; import io.smallrye.config.ConfigValue; diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ConsumingBean.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ConsumingBean.java index 1b00e59433c0b..67872c2d61a95 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ConsumingBean.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ConsumingBean.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.amqp; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java index e56e3444b33a6..93771a283c998 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java @@ -2,7 +2,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.reactivestreams.Publisher; diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/TestResource.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/TestResource.java index f5a201943b66b..cb24dbc52ddfb 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/TestResource.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/TestResource.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.reactivemessaging.amqp; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/last") public class TestResource { diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Consumer.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Consumer.java index b2d034efbd3d1..1bc4a57690f29 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Consumer.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Consumer.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.amqp.devmode.nohttp; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.logging.Logger; diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java index a0f4182d6880e..f7ae0181c2a3a 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java @@ -2,7 +2,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.reactivestreams.Publisher; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeDiscoveryState.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeDiscoveryState.java index 8950e35fc578d..3928ce5e03068 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeDiscoveryState.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeDiscoveryState.java @@ -170,7 +170,7 @@ boolean hasApicurio2() { boolean hasJsonb() { if (hasJsonb == null) { try { - Class.forName("javax.json.bind.Jsonb", false, + Class.forName("jakarta.json.bind.Jsonb", false, Thread.currentThread().getContextClassLoader()); hasJsonb = true; } catch (ClassNotFoundException e) { diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeConfigTest.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeConfigTest.java index ce568884642af..c14c53b28167d 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeConfigTest.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/DefaultSerdeConfigTest.java @@ -11,7 +11,7 @@ import java.util.Map; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.apache.avro.generic.GenericRecord; import org.apache.avro.specific.AvroGenerated; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/VertxSerdeRemovedTest.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/VertxSerdeRemovedTest.java index 2b04458ad040f..c496aeb09f0bb 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/VertxSerdeRemovedTest.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/VertxSerdeRemovedTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/KafkaDevServicesDevModeTestCase.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/KafkaDevServicesDevModeTestCase.java index 869d81a53c702..34ea6085e013b 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/KafkaDevServicesDevModeTestCase.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/KafkaDevServicesDevModeTestCase.java @@ -5,10 +5,10 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import org.assertj.core.api.Assertions; import org.awaitility.Awaitility; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceConverter.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceConverter.java index b49922cc2a616..c73ec00daad4e 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceConverter.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceConverter.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceGenerator.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceGenerator.java index 9471f16eca404..cab08dfc64d4a 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceGenerator.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceGenerator.java @@ -3,7 +3,7 @@ import java.time.Duration; import java.util.Random; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceResource.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceResource.java index 6a434b84b527a..de6a94c1b624c 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceResource.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/dev/PriceResource.java @@ -1,9 +1,9 @@ package io.quarkus.smallrye.reactivemessaging.kafka.deployment.dev; -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; import org.eclipse.microprofile.reactive.messaging.Channel; import org.reactivestreams.Publisher; diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceConverter.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceConverter.java index af2a5663ad7fd..0a112eb128e9b 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceConverter.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceConverter.java @@ -5,7 +5,7 @@ //import org.eclipse.microprofile.reactive.messaging.Incoming; //import org.eclipse.microprofile.reactive.messaging.Outgoing; // -//import javax.enterprise.context.ApplicationScoped; +//import jakarta.enterprise.context.ApplicationScoped; // //@ApplicationScoped public class PriceConverter { @@ -17,4 +17,4 @@ public class PriceConverter { // public double process(int priceInUsd) { // return priceInUsd * CONVERSION_RATE; // } -} \ No newline at end of file +} diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceGenerator.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceGenerator.java index 71a8dedc772ad..c367a10b6b1b6 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceGenerator.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceGenerator.java @@ -3,7 +3,7 @@ //import io.smallrye.mutiny.Multi; //import org.eclipse.microprofile.reactive.messaging.Outgoing; // -//import javax.enterprise.context.ApplicationScoped; +//import jakarta.enterprise.context.ApplicationScoped; //import java.time.Duration; //import java.util.Random; // @@ -17,4 +17,4 @@ public class PriceGenerator { // .onOverflow().drop() // .map(tick -> this.random.nextInt(100)); // } -} \ No newline at end of file +} diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResource.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResource.java index 4cc607f296c7d..9c6f7dc20880d 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResource.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResource.java @@ -4,10 +4,10 @@ //import org.eclipse.microprofile.reactive.messaging.Channel; //import org.reactivestreams.Publisher; // -//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("/prices") public class PriceResource { @@ -23,4 +23,4 @@ public class PriceResource { // public Publisher ssePrices() { // return this.processedPrices; // } -} \ No newline at end of file +} diff --git a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResourceET.java b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResourceET.java index e19a2b0753890..26e2f80a480a8 100644 --- a/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResourceET.java +++ b/extensions/smallrye-reactive-messaging-kafka/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/kafka/deployment/testing/PriceResourceET.java @@ -5,10 +5,10 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import org.assertj.core.api.Assertions; import org.awaitility.Awaitility; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntity.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntity.java index 931e4b224a0e3..7d455b0bc917f 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntity.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntity.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.reactivemessaging.kafka; -import javax.persistence.Column; -import javax.persistence.EmbeddedId; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.MappedSuperclass; import org.apache.kafka.common.TopicPartition; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntityId.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntityId.java index eeeab7a60c884..da2b4518398ba 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntityId.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/CheckpointEntityId.java @@ -3,8 +3,8 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; import org.apache.kafka.common.TopicPartition; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/DatabindProcessingStateCodec.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/DatabindProcessingStateCodec.java index 8078dca06c9dd..c19030d0dbdd4 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/DatabindProcessingStateCodec.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/DatabindProcessingStateCodec.java @@ -2,7 +2,7 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java index 9a8f75a79a7f3..c7a78c6673efe 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateOrmStateStore.java @@ -6,10 +6,10 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.TopicPartition; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateReactiveStateStore.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateReactiveStateStore.java index 811b29bb10115..4635d21946aba 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateReactiveStateStore.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/HibernateReactiveStateStore.java @@ -5,8 +5,8 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.TopicPartition; diff --git a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/RedisStateStore.java b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/RedisStateStore.java index b606a2e14a67b..a562c7950a680 100644 --- a/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/RedisStateStore.java +++ b/extensions/smallrye-reactive-messaging-kafka/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/kafka/RedisStateStore.java @@ -7,11 +7,11 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.TopicPartition; diff --git a/extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/deployment/SmallRyeReactiveMessagingRabbitMQProcessor.java b/extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/deployment/SmallRyeReactiveMessagingRabbitMQProcessor.java index f728ca500e097..b0b54ffa49700 100644 --- a/extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/deployment/SmallRyeReactiveMessagingRabbitMQProcessor.java +++ b/extensions/smallrye-reactive-messaging-rabbitmq/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/deployment/SmallRyeReactiveMessagingRabbitMQProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.rabbitmq.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.rabbitmq.client.impl.CredentialsProvider; diff --git a/extensions/smallrye-reactive-messaging-rabbitmq/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/runtime/devconsole/RabbitHttpPortFinder.java b/extensions/smallrye-reactive-messaging-rabbitmq/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/runtime/devconsole/RabbitHttpPortFinder.java index 117b7e907ee7b..e222ac14df4b2 100644 --- a/extensions/smallrye-reactive-messaging-rabbitmq/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/runtime/devconsole/RabbitHttpPortFinder.java +++ b/extensions/smallrye-reactive-messaging-rabbitmq/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/rabbitmq/runtime/devconsole/RabbitHttpPortFinder.java @@ -1,7 +1,7 @@ package io.quarkus.smallrye.reactivemessaging.rabbitmq.runtime.devconsole; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.Config; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java index 19dc9c4b664eb..b43bddc727e68 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java @@ -69,17 +69,17 @@ public final class ReactiveMessagingDotNames { .createSimple("io.smallrye.reactive.messaging.providers.metrics.MicrometerDecorator"); // Used to detect REST endpoints and JAX-RS provider - public static final DotName JAXRS_PATH = DotName.createSimple("javax.ws.rs.Path"); + public static final DotName JAXRS_PATH = DotName.createSimple("jakarta.ws.rs.Path"); public static final DotName REST_CONTROLLER = DotName .createSimple("org.springframework.web.bind.annotation.RestController"); - public static final DotName JAXRS_PROVIDER = DotName.createSimple("javax.ws.rs.ext.Provider"); + public static final DotName JAXRS_PROVIDER = DotName.createSimple("jakarta.ws.rs.ext.Provider"); static final DotName CONTINUATION = DotName.createSimple("kotlin.coroutines.Continuation"); static final DotName KOTLIN_UNIT = DotName.createSimple("kotlin.Unit"); static final DotName ABSTRACT_SUBSCRIBING_COROUTINE_INVOKER = DotName .createSimple("io.quarkus.smallrye.reactivemessaging.runtime.kotlin.AbstractSubscribingCoroutineInvoker"); - static final DotName TRANSACTIONAL = DotName.createSimple("javax.transaction.Transactional"); + static final DotName TRANSACTIONAL = DotName.createSimple("jakarta.transaction.Transactional"); private ReactiveMessagingDotNames() { } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java index c329c7f8f7891..6f7ca0f537337 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/SmallRyeReactiveMessagingProcessor.java @@ -12,9 +12,9 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Vetoed; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.spi.Connector; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/WiringProcessor.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/WiringProcessor.java index e04797ec80a72..61a31a4f8f5e2 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/WiringProcessor.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/WiringProcessor.java @@ -18,7 +18,7 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.commonmark.parser.Parser; import org.commonmark.renderer.html.HtmlRenderer; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ChainTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ChainTest.java index e7eaacd4010a5..f0cf70d95c9f6 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ChainTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ChainTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/DefaultScopeTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/DefaultScopeTest.java index a895d1b7172dc..90dc2222671ca 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/DefaultScopeTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/DefaultScopeTest.java @@ -2,14 +2,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/MediatorConfigurationSupportTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/MediatorConfigurationSupportTest.java index 0b323afdf2c4c..452180cffbf7c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/MediatorConfigurationSupportTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/MediatorConfigurationSupportTest.java @@ -9,7 +9,7 @@ import java.util.concurrent.CompletionStage; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.streams.operators.ProcessorBuilder; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ReactiveMessagingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ReactiveMessagingTest.java index 469b16e42df7d..aee3574126cf1 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ReactiveMessagingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/ReactiveMessagingTest.java @@ -5,7 +5,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SimpleBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SimpleBean.java index 451aea7209709..5924708cde2b5 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SimpleBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SimpleBean.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java index 19ed893c12c31..4d89322315f35 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java index 85db105af0b1c..04b6134a478a7 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingPublisherTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingPublisherTest.java index 399947bf48dc4..7c726a611b25c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingPublisherTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingPublisherTest.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java index d2949c0ad6afe..76a4eb3fd2eb6 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingValidationErrorTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingValidationErrorTest.java index 97763d064b500..d708869bde5b4 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingValidationErrorTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingValidationErrorTest.java @@ -5,8 +5,8 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingWithoutOutgoingOnIncomingErrorTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingWithoutOutgoingOnIncomingErrorTest.java index 3dad8f8cbc8ec..3765637f91bc4 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingWithoutOutgoingOnIncomingErrorTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingWithoutOutgoingOnIncomingErrorTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingPublisherTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingPublisherTest.java index 9808c63eba0b1..9cfcf4a199c7c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingPublisherTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingPublisherTest.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java index 54bddca3ae6ae..f2792b6cca643 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessages.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessages.java index 661d5e351d641..dfb8612a1c703 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessages.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessages.java @@ -4,7 +4,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessagesUsingSmallRyeBlocking.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessagesUsingSmallRyeBlocking.java index 70bdcd1ea2e6d..2ab9c7aba3b84 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessagesUsingSmallRyeBlocking.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningMessagesUsingSmallRyeBlocking.java @@ -4,7 +4,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloads.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloads.java index 56ff7c1665297..359c0246dafc8 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloads.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloads.java @@ -4,7 +4,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloadsUsingSmallRyeBlocking.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloadsUsingSmallRyeBlocking.java index e24b3265b556a..8fe5857532c6a 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloadsUsingSmallRyeBlocking.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/BeanReturningPayloadsUsingSmallRyeBlocking.java @@ -4,7 +4,7 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomTwoBlockingBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomTwoBlockingBean.java index 23cd7a91ccfd2..c976830d55566 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomTwoBlockingBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomTwoBlockingBean.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomUnorderedBlockingBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomUnorderedBlockingBean.java index fccd7cb225aa7..5ae0b188b8e3a 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomUnorderedBlockingBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingCustomUnorderedBlockingBean.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingSmallRyeBlocking.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingSmallRyeBlocking.java index 9ca31331ea73f..6f6811b9220ef 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingSmallRyeBlocking.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingSmallRyeBlocking.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingTransactional.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingTransactional.java index af17e380a7ec8..8860d96ce7155 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingTransactional.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/IncomingUsingTransactional.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/InfiniteSubscriber.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/InfiniteSubscriber.java index 81df71a8a8db0..da09c83fe0213 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/InfiniteSubscriber.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/beans/InfiniteSubscriber.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelConsumer.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelConsumer.java index f381e597bc495..cee21ad4c9902 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelConsumer.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelConsumer.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflow.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflow.java index 530d4e3a963df..78535791f0a6d 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflow.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflow.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflowAndBroadcast.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflowAndBroadcast.java index a1ddef78bfd8c..16fa31cd51b03 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflowAndBroadcast.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/ChannelEmitterWithOverflowAndBroadcast.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java index c0280c56bfbd4..9ec142ab201a9 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedEmitterExample.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedEmitterExample.java index c7f3163ca0ab1..f4072208593a8 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedEmitterExample.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedEmitterExample.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedInjectionTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedInjectionTest.java index 30723109a06d9..05ef3615e258e 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedInjectionTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedInjectionTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterExample.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterExample.java index 196ba75ef1d45..1e995d82faafe 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterExample.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterExample.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberExample.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberExample.java index d4fa3f9edc95f..31f9971b341c1 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberExample.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberExample.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberTest.java index 090e064145dac..cde8be34b1344 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastAndSubscriberTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastExample.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastExample.java index d1b393d14d80f..2a3b4b6f0a656 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastExample.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastExample.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastTest.java index 4ea634bc0beee..4f50c9ce9a5b8 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithBroadcastTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowAndBroadcastTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowAndBroadcastTest.java index 60dd90f028a53..e09ce0c57dc9d 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowAndBroadcastTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowAndBroadcastTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowTest.java index 24156b8895418..5b99b7a17bfbf 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/EmitterWithOverflowTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterTest.java index 04a888bbda74c..cb0694f274ec7 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithConstructorInjectionTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithConstructorInjectionTest.java index ae1f718a0c6a4..9e1c68bbd08dd 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithConstructorInjectionTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithConstructorInjectionTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithParameterInjectionTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithParameterInjectionTest.java index 512c6f63bbf42..3c9f90e086ba5 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithParameterInjectionTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/MutinyEmitterWithParameterInjectionTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorConfigTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorConfigTest.java index 73799043255bf..0c888eb4ff480 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorConfigTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorConfigTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorDoubleQuoteConfigTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorDoubleQuoteConfigTest.java index 46b6350d0bfed..02719d1195801 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorDoubleQuoteConfigTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorDoubleQuoteConfigTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorProfileConfigTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorProfileConfigTest.java index e79fc5e66bd46..c4300ae660b51 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorProfileConfigTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/ConnectorProfileConfigTest.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.junit.jupiter.api.Test; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/DumbConnector.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/DumbConnector.java index 5c365fd7d7fa5..66ee2032d1f3f 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/DumbConnector.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/config/DumbConnector.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.config; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/converters/ConverterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/converters/ConverterTest.java index e27ba242254f3..08fb32d50f4a4 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/converters/ConverterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/converters/ConverterTest.java @@ -8,8 +8,8 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/HttpFrontend.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/HttpFrontend.java index e021eac9057b5..53faabcde3fb1 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/HttpFrontend.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/HttpFrontend.java @@ -1,9 +1,9 @@ package io.quarkus.smallrye.reactivemessaging.devmode; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/MyProcessor.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/MyProcessor.java index 257be19e394d8..c184e28b4f363 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/MyProcessor.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/devmode/MyProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.devmode; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeConnector.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeConnector.java index a31575383e220..cdf9c45ad39ee 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeConnector.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeConnector.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.reactivemessaging.hotreload; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeProcessor.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeProcessor.java index c5e483954b49b..988c4e3c86c24 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeProcessor.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeProcessor.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.hotreload; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSink.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSink.java index e5cfaf25e432c..3be65e4faf197 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSink.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSink.java @@ -1,8 +1,8 @@ package io.quarkus.smallrye.reactivemessaging.hotreload; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSource.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSource.java index cddf04eddf867..e5fe535880e31 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSource.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/hotreload/SomeSource.java @@ -2,7 +2,7 @@ import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiIntBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiIntBean.java index 7d3df089478da..29027a2a9a64c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiIntBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiIntBean.java @@ -4,7 +4,7 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiStringBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiStringBean.java index b758295482d56..937735b358e81 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiStringBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiStringBean.java @@ -3,7 +3,7 @@ import java.time.Duration; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiTest.java index 69f45a61cdbda..bfa32b7ea7d07 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/MultiTest.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/StringProducer.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/StringProducer.java index 3f17dc8745b97..984e09f000129 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/StringProducer.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/StringProducer.java @@ -1,6 +1,6 @@ package io.quarkus.smallrye.reactivemessaging.mutiny; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniBean.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniBean.java index e29d3c0a5fd2e..ac583b74690bc 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniBean.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniBean.java @@ -4,7 +4,7 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniTest.java index 49ad142bce891..c2c3eef875c6e 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/mutiny/UniTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java index 238a124f9d0e0..4102b9e5124a6 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/ProcessorSignatureTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/ProcessorSignatureTest.java index cf1a03c0a9ac4..b65357bf8364c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/ProcessorSignatureTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/ProcessorSignatureTest.java @@ -10,8 +10,8 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/PublisherSignatureTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/PublisherSignatureTest.java index 6fa6c8333ba72..20caf2f60a24c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/PublisherSignatureTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/PublisherSignatureTest.java @@ -11,8 +11,8 @@ import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/SubscriberSignatureTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/SubscriberSignatureTest.java index 568066240bc1c..b78eb4f3a4159 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/SubscriberSignatureTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/SubscriberSignatureTest.java @@ -10,8 +10,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/TransformerSignatureTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/TransformerSignatureTest.java index 7b42f4eb6fa99..171563a1d14f3 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/TransformerSignatureTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/TransformerSignatureTest.java @@ -9,8 +9,8 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java index 6a2a0cfb48969..647fea7bb98f7 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java index 652321db30178..37ef0f8a9fc51 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java @@ -6,12 +6,12 @@ import java.util.Objects; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentEmitterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentEmitterTest.java index 9c0ded5da5658..bf4d6812424c2 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentEmitterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentEmitterTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java index 2cdaa559a2d51..9c0842b500c35 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentMutinyEmitterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentMutinyEmitterTest.java index debedcdf85fc0..d596b1314eaca 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentMutinyEmitterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentMutinyEmitterTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentOutgoingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentOutgoingTest.java index ef2718b9edfdf..5effe85eb507d 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentOutgoingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentOutgoingTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java index b423efe7e91af..82a04a471ff40 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentOutgoingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentOutgoingTest.java index 11a5684b94a19..0167d67092acd 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentOutgoingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentOutgoingTest.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java index 33ea46cae0249..2217eebb3161e 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingIncomingConnectorDetectionTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingIncomingConnectorDetectionTest.java index f0212f36f3f52..9d2a130e76915 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingIncomingConnectorDetectionTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingIncomingConnectorDetectionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingOutgoingConnectorDetectionTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingOutgoingConnectorDetectionTest.java index 314f82b455791..c012f67c4e5da 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingOutgoingConnectorDetectionTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/MissingOutgoingConnectorDetectionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/NoConnectorAttachmentTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/NoConnectorAttachmentTest.java index 99a5759fce87c..d0f9e180c221a 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/NoConnectorAttachmentTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/NoConnectorAttachmentTest.java @@ -2,9 +2,9 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/OutgoingWithDotsTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/OutgoingWithDotsTest.java index f57eaca16438b..2d3ce4112c2a5 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/OutgoingWithDotsTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/OutgoingWithDotsTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java index f3acf720a2119..68f708c54b04f 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentOutgoingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentOutgoingTest.java index 06333a344cf37..da04022c5ec4a 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentOutgoingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentOutgoingTest.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/extensions/smallrye-reactive-messaging/kotlin/src/main/kotlin/io/quarkus/smallrye/reactivemessaging/runtime/kotlin/ApplicationCoroutineScope.kt b/extensions/smallrye-reactive-messaging/kotlin/src/main/kotlin/io/quarkus/smallrye/reactivemessaging/runtime/kotlin/ApplicationCoroutineScope.kt index cce302018985b..5cf0dcf8bd4f5 100644 --- a/extensions/smallrye-reactive-messaging/kotlin/src/main/kotlin/io/quarkus/smallrye/reactivemessaging/runtime/kotlin/ApplicationCoroutineScope.kt +++ b/extensions/smallrye-reactive-messaging/kotlin/src/main/kotlin/io/quarkus/smallrye/reactivemessaging/runtime/kotlin/ApplicationCoroutineScope.kt @@ -1,10 +1,10 @@ package io.quarkus.smallrye.reactivemessaging.runtime.kotlin +import jakarta.annotation.PreDestroy +import jakarta.inject.Singleton import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.cancel -import javax.annotation.PreDestroy -import javax.inject.Singleton import kotlin.coroutines.CoroutineContext @Singleton diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactory.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactory.java index 27e6a5d4b9606..dbb9cd28822b1 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactory.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactory.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Target(ElementType.TYPE) diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java index a0659ecad6333..3bb3703f4af2e 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java @@ -2,10 +2,10 @@ import java.util.Optional; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder; diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java index 962e56ccce86e..48c3309a2dc1d 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java @@ -5,7 +5,7 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.Bean; import org.eclipse.microprofile.reactive.messaging.Acknowledgment; diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusWorkerPoolRegistry.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusWorkerPoolRegistry.java index 79c928c8f9c86..f2fbc4307e620 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusWorkerPoolRegistry.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusWorkerPoolRegistry.java @@ -6,12 +6,12 @@ import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.event.Observes; -import javax.enterprise.event.Reception; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.Reception; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.ConfigProvider; import org.slf4j.LoggerFactory; diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/SmallRyeReactiveMessagingLifecycle.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/SmallRyeReactiveMessagingLifecycle.java index 8ad0e75d8dc19..89294f8e41b89 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/SmallRyeReactiveMessagingLifecycle.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/SmallRyeReactiveMessagingLifecycle.java @@ -1,14 +1,14 @@ package io.quarkus.smallrye.reactivemessaging.runtime; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableContext; diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devconsole/Connectors.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devconsole/Connectors.java index 2113e4feceafd..898d181381cf3 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devconsole/Connectors.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devconsole/Connectors.java @@ -6,8 +6,8 @@ import java.util.Map; import java.util.Map.Entry; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.eclipse.microprofile.config.Config; diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactory.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactory.java index 223c1bfd918b6..d07037628a958 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactory.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactory.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Target(ElementType.TYPE) diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java index e89e6979e2a7a..e006416e9a4b8 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java @@ -3,10 +3,10 @@ import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder; diff --git a/extensions/smallrye-stork/runtime/src/main/java/io/quarkus/stork/QuarkusStorkInfrastructure.java b/extensions/smallrye-stork/runtime/src/main/java/io/quarkus/stork/QuarkusStorkInfrastructure.java index f96aaacbdbdec..37786b1c1b61a 100644 --- a/extensions/smallrye-stork/runtime/src/main/java/io/quarkus/stork/QuarkusStorkInfrastructure.java +++ b/extensions/smallrye-stork/runtime/src/main/java/io/quarkus/stork/QuarkusStorkInfrastructure.java @@ -2,7 +2,7 @@ import java.util.function.Supplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.smallrye.stork.integration.DefaultStorkInfrastructure; import io.vertx.core.Vertx; diff --git a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java index d839beb2e30c2..c40ba364959aa 100644 --- a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java +++ b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java @@ -9,11 +9,11 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -53,9 +53,9 @@ final class ClassConfigurationPropertiesUtil { private static final Logger LOGGER = Logger.getLogger(ClassConfigurationPropertiesUtil.class); - private static final String VALIDATOR_CLASS = "javax.validation.Validator"; + private static final String VALIDATOR_CLASS = "jakarta.validation.Validator"; private static final String HIBERNATE_VALIDATOR_IMPL_CLASS = "org.hibernate.validator.HibernateValidator"; - private static final String CONSTRAINT_VIOLATION_EXCEPTION_CLASS = "javax.validation.ConstraintViolationException"; + private static final String CONSTRAINT_VIOLATION_EXCEPTION_CLASS = "jakarta.validation.ConstraintViolationException"; private final IndexView applicationIndex; private final YamlListObjectHandler yamlListObjectHandler; diff --git a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesBuildStep.java b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesBuildStep.java index c8c5922e6a7f0..19f7cb91c0e50 100644 --- a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesBuildStep.java +++ b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesBuildStep.java @@ -7,7 +7,7 @@ import java.util.Map; import java.util.Set; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesUtil.java b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesUtil.java index e532fee80e329..cd46597bae21b 100644 --- a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesUtil.java +++ b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ConfigurationPropertiesUtil.java @@ -4,7 +4,7 @@ import java.util.Optional; import java.util.function.IntFunction; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.config.Config; import org.jboss.jandex.DotName; diff --git a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/InterfaceConfigurationPropertiesUtil.java b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/InterfaceConfigurationPropertiesUtil.java index b8a085b95978e..7b642060b1cd9 100644 --- a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/InterfaceConfigurationPropertiesUtil.java +++ b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/InterfaceConfigurationPropertiesUtil.java @@ -10,8 +10,8 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DeploymentException; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/spring-boot-properties/runtime/src/main/java/io/quarkus/spring/boot/properties/runtime/SpringBootConfigProperties.java b/extensions/spring-boot-properties/runtime/src/main/java/io/quarkus/spring/boot/properties/runtime/SpringBootConfigProperties.java index 2bb26ef207f4f..9649313972da4 100644 --- a/extensions/spring-boot-properties/runtime/src/main/java/io/quarkus/spring/boot/properties/runtime/SpringBootConfigProperties.java +++ b/extensions/spring-boot-properties/runtime/src/main/java/io/quarkus/spring/boot/properties/runtime/SpringBootConfigProperties.java @@ -3,8 +3,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * This annotation is added as a qualifier to bean producer methods that produce @ConfigProperties beans diff --git a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/AnnotationOnClassTest.java b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/AnnotationOnClassTest.java index dcef6e211bdde..ac0b72fa40a60 100644 --- a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/AnnotationOnClassTest.java +++ b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/AnnotationOnClassTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/BasicTest.java b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/BasicTest.java index 8c18add69a8bb..3f0be45e2bf29 100644 --- a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/BasicTest.java +++ b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/BasicTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompositeKeyCacheTest.java b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompositeKeyCacheTest.java index 7f2f09896876a..77f5c30031008 100644 --- a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompositeKeyCacheTest.java +++ b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/CompositeKeyCacheTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UnsupportedAnnotationValueTest.java b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UnsupportedAnnotationValueTest.java index b61c612bae7f8..3f3206b273c09 100644 --- a/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UnsupportedAnnotationValueTest.java +++ b/extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/UnsupportedAnnotationValueTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/spring-cloud-config-client/runtime/pom.xml b/extensions/spring-cloud-config-client/runtime/pom.xml index fab921fa06699..ed577fcc0b69d 100644 --- a/extensions/spring-cloud-config-client/runtime/pom.xml +++ b/extensions/spring-cloud-config-client/runtime/pom.xml @@ -77,8 +77,8 @@ test - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/DotNames.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/DotNames.java index 36cdcbe800ce9..bf7010086e965 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/DotNames.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/DotNames.java @@ -22,15 +22,15 @@ import java.util.TimeZone; import java.util.stream.Stream; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.MappedSuperclass; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Transient; -import javax.persistence.Version; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Transient; +import jakarta.persistence.Version; import org.jboss.jandex.DotName; import org.springframework.data.domain.Page; diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/AbstractMethodsAdder.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/AbstractMethodsAdder.java index 9fd97dab1bd78..c3bb368e4d8b9 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/AbstractMethodsAdder.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/AbstractMethodsAdder.java @@ -10,7 +10,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.persistence.NoResultException; +import jakarta.persistence.NoResultException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/CustomQueryMethodsAdder.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/CustomQueryMethodsAdder.java index f1adab61587c8..1e7e8655daf74 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/CustomQueryMethodsAdder.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/CustomQueryMethodsAdder.java @@ -17,7 +17,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/DerivedMethodsAdder.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/DerivedMethodsAdder.java index bb85dbef44800..133b8b2f1cb68 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/DerivedMethodsAdder.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/DerivedMethodsAdder.java @@ -10,7 +10,7 @@ import java.util.Map; import java.util.function.Consumer; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/SpringDataRepositoryCreator.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/SpringDataRepositoryCreator.java index 763bb2a64e8a2..691eb8916e887 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/SpringDataRepositoryCreator.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/SpringDataRepositoryCreator.java @@ -10,8 +10,8 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/StockMethodsAdder.java b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/StockMethodsAdder.java index 891d29b0fa5f3..c719ced1638ae 100644 --- a/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/StockMethodsAdder.java +++ b/extensions/spring-data-jpa/deployment/src/main/java/io/quarkus/spring/data/deployment/generate/StockMethodsAdder.java @@ -16,8 +16,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeData.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeData.java index b158524796939..b9f00408571dd 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeData.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeData.java @@ -7,10 +7,10 @@ import java.util.TimeZone; import java.util.UUID; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class BasicTypeData { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeDataRepositoryTest.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeDataRepositoryTest.java index 512d9a2b57493..71c61785cc6fc 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeDataRepositoryTest.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/BasicTypeDataRepositoryTest.java @@ -14,8 +14,8 @@ import java.util.UUID; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.assertj.core.data.Percentage; import org.hibernate.Hibernate; diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Book.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Book.java index 2af3e3a9d75f8..974e6d5f9411b 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Book.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Book.java @@ -1,7 +1,7 @@ package io.quarkus.spring.data.deployment; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Book { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/LoginEvent.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/LoginEvent.java index 1e777d8923f48..ea04e5b0bd2f3 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/LoginEvent.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/LoginEvent.java @@ -2,10 +2,10 @@ import java.time.ZonedDateTime; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; @Entity public class LoginEvent { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/ModifyingQueryWithFlushAndClearTest.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/ModifyingQueryWithFlushAndClearTest.java index be7541b810ef8..4c3a98c3b7af5 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/ModifyingQueryWithFlushAndClearTest.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/ModifyingQueryWithFlushAndClearTest.java @@ -5,8 +5,8 @@ import java.time.ZonedDateTime; import java.util.Optional; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Person.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Person.java index ecd339b23be09..e780ed933071d 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Person.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/Person.java @@ -1,7 +1,7 @@ package io.quarkus.spring.data.deployment; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Person { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/User.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/User.java index b37799f1af191..a05654837876e 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/User.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/deployment/User.java @@ -3,14 +3,14 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity @Table(name = "User_") diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/Book.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/Book.java index d89580f3cf651..3908487eebe0b 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/Book.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/Book.java @@ -1,7 +1,7 @@ package io.quarkus.spring.data.devmode; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Book { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/BookResource.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/BookResource.java index d1ca42ec255d3..e85f2f815f5fc 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/BookResource.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/BookResource.java @@ -2,10 +2,10 @@ import java.util.List; -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("/book") public class BookResource { diff --git a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/RepositoryReloadTest.java b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/RepositoryReloadTest.java index 38aaca792001c..39eb7abc04c15 100644 --- a/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/RepositoryReloadTest.java +++ b/extensions/spring-data-jpa/deployment/src/test/java/io/quarkus/spring/data/devmode/RepositoryReloadTest.java @@ -28,7 +28,7 @@ public void testRepositoryIsReloaded() { TEST.modifySourceFile("BookResource.java", s -> s.replace("// ", "@GET @Path(\"/{id}\") @Produces(MediaType.APPLICATION_JSON)\n" + - " public java.util.Optional findById(@javax.ws.rs.PathParam(\"id\") Integer id) {\n" + + " public java.util.Optional findById(@jakarta.ws.rs.PathParam(\"id\") Integer id) {\n" + " return bookRepository.findById(id);\n" + " }")); diff --git a/extensions/spring-data-jpa/runtime/src/main/java/io/quarkus/spring/data/runtime/RepositorySupport.java b/extensions/spring-data-jpa/runtime/src/main/java/io/quarkus/spring/data/runtime/RepositorySupport.java index 67f379e491c78..17e99255d4be0 100644 --- a/extensions/spring-data-jpa/runtime/src/main/java/io/quarkus/spring/data/runtime/RepositorySupport.java +++ b/extensions/spring-data-jpa/runtime/src/main/java/io/quarkus/spring/data/runtime/RepositorySupport.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Objects; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import io.quarkus.hibernate.orm.panache.Panache; import io.quarkus.hibernate.orm.panache.PanacheQuery; diff --git a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourceImplementor.java b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourceImplementor.java index 6a3edcba16031..e3a95d8fcfd06 100644 --- a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourceImplementor.java +++ b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourceImplementor.java @@ -1,6 +1,6 @@ package io.quarkus.spring.data.rest.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.logging.Logger; diff --git a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourcePropertiesProvider.java b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourcePropertiesProvider.java index 097615fa3a0f3..bbdf467979e7b 100644 --- a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourcePropertiesProvider.java +++ b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/ResourcePropertiesProvider.java @@ -8,7 +8,7 @@ import java.util.Set; import java.util.function.Predicate; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/SpringDataRestProcessor.java b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/SpringDataRestProcessor.java index a2433afe36d77..aaa9c9209b21b 100644 --- a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/SpringDataRestProcessor.java +++ b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/SpringDataRestProcessor.java @@ -8,7 +8,7 @@ import java.util.LinkedList; import java.util.List; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/crud/EntityClassHelper.java b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/crud/EntityClassHelper.java index 3161b2f1e44ba..a1e1dddf00991 100644 --- a/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/crud/EntityClassHelper.java +++ b/extensions/spring-data-rest/deployment/src/main/java/io/quarkus/spring/data/rest/deployment/crud/EntityClassHelper.java @@ -1,6 +1,6 @@ package io.quarkus.spring.data.rest.deployment.crud; -import javax.persistence.Id; +import jakarta.persistence.Id; import org.hibernate.bytecode.enhance.spi.EnhancerConstants; import org.jboss.jandex.ClassInfo; diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/AbstractEntity.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/AbstractEntity.java index 8c5b26290aca9..85b06c2d21ccf 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/AbstractEntity.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/AbstractEntity.java @@ -2,9 +2,9 @@ import java.io.Serializable; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractEntity { diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/Record.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/Record.java index 89b6797dbc49b..0770a80a07a75 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/Record.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/crud/Record.java @@ -1,6 +1,6 @@ package io.quarkus.spring.data.rest.crud; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Record extends AbstractEntity { diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/AbstractEntity.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/AbstractEntity.java index 03745e2d8430f..66484a0d200e5 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/AbstractEntity.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/AbstractEntity.java @@ -2,9 +2,9 @@ import java.io.Serializable; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractEntity { diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/DefaultPagedResourceTest.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/DefaultPagedResourceTest.java index 2abb353b9964b..087f42baa2473 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/DefaultPagedResourceTest.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/DefaultPagedResourceTest.java @@ -16,7 +16,7 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.Link; +import jakarta.ws.rs.core.Link; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/EmptyListRecord.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/EmptyListRecord.java index 385efa6794099..28eeca7512a23 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/EmptyListRecord.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/EmptyListRecord.java @@ -1,6 +1,6 @@ package io.quarkus.spring.data.rest.paged; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class EmptyListRecord extends AbstractEntity { diff --git a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/Record.java b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/Record.java index 8a10c308e71c7..882df5bff7bd1 100644 --- a/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/Record.java +++ b/extensions/spring-data-rest/deployment/src/test/java/io/quarkus/spring/data/rest/paged/Record.java @@ -1,6 +1,6 @@ package io.quarkus.spring.data.rest.paged; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Record extends AbstractEntity { diff --git a/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/RestDataPanacheExceptionMapper.java b/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/RestDataPanacheExceptionMapper.java index 4275a62f2425e..4190cef528207 100644 --- a/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/RestDataPanacheExceptionMapper.java +++ b/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/RestDataPanacheExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.spring.data.rest.runtime; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.logging.Logger; @@ -18,7 +18,7 @@ public Response toResponse(RestDataPanacheException exception) { } private Response throwableToResponse(Throwable throwable, String message) { - if (throwable instanceof javax.validation.ConstraintViolationException) { + if (throwable instanceof jakarta.validation.ConstraintViolationException) { return Response.status(Response.Status.BAD_REQUEST.getStatusCode(), message).build(); } diff --git a/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/jta/TransactionalUpdateExecutor.java b/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/jta/TransactionalUpdateExecutor.java index 9cccba32dd182..fa862b632905d 100644 --- a/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/jta/TransactionalUpdateExecutor.java +++ b/extensions/spring-data-rest/runtime/src/main/java/io/quarkus/spring/data/rest/runtime/jta/TransactionalUpdateExecutor.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.inject.Singleton; -import javax.transaction.Transactional; +import jakarta.inject.Singleton; +import jakarta.transaction.Transactional; import io.quarkus.rest.data.panache.runtime.UpdateExecutor; diff --git a/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java b/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java index e350c767c53e5..9126aa2f04941 100644 --- a/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java +++ b/extensions/spring-di/deployment/src/main/java/io/quarkus/spring/di/deployment/SpringDIProcessor.java @@ -13,7 +13,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.jandex.AnnotationInstance; @@ -73,7 +73,8 @@ public class SpringDIProcessor { private static final DotName CDI_SINGLETON_ANNOTATION = BuiltinScope.SINGLETON.getInfo().getDotName(); private static final DotName CDI_DEPENDENT_ANNOTATION = BuiltinScope.DEPENDENT.getInfo().getDotName(); private static final DotName CDI_REQUEST_SCOPED_ANNOTATION = BuiltinScope.REQUEST.getInfo().getDotName(); - private static final DotName CDI_SESSION_SCOPED_ANNOTATION = DotName.createSimple("javax.enterprise.context.SessionScoped"); + private static final DotName CDI_SESSION_SCOPED_ANNOTATION = DotName + .createSimple("jakarta.enterprise.context.SessionScoped"); private static final DotName CDI_APP_SCOPED_ANNOTATION = BuiltinScope.APPLICATION.getInfo().getDotName(); private static final DotName CDI_NAMED_ANNOTATION = DotNames.NAMED; private static final DotName CDI_INJECT_ANNOTATION = DotNames.INJECT; diff --git a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanNameTest.java b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanNameTest.java index bcb35ee7e1c76..a9c1a249808b7 100644 --- a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanNameTest.java +++ b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanNameTest.java @@ -1,6 +1,6 @@ package io.quarkus.spring.di.deployment; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanWithoutConfigurationTest.java b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanWithoutConfigurationTest.java index fd2756615d1ba..f8a7c8858b549 100644 --- a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanWithoutConfigurationTest.java +++ b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/BeanWithoutConfigurationTest.java @@ -1,7 +1,7 @@ package io.quarkus.spring.di.deployment; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/ListOfBeansTest.java b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/ListOfBeansTest.java index c1197cee9628c..3af74b8d00ec6 100644 --- a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/ListOfBeansTest.java +++ b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/ListOfBeansTest.java @@ -4,7 +4,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java index 41e6975855dec..b704245415cc9 100644 --- a/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java +++ b/extensions/spring-di/deployment/src/test/java/io/quarkus/spring/di/deployment/SpringDIProcessorTest.java @@ -14,12 +14,12 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; @@ -167,7 +167,7 @@ public void getAnnotationsToAddBeanMethodDefaultsToSingleton() { } /** - * Do not add javax.inject.Singleton, as it is not spring-specific and Arc processor already handles it. + * Do not add jakarta.inject.Singleton, as it is not spring-specific and Arc processor already handles it. * Otherwise, it would cause "declares multiple scope type annotations" error. */ @Test diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/InvalidCronExpressionTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/InvalidCronExpressionTest.java index b6c80add50e21..0dc2ff8cd4c0e 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/InvalidCronExpressionTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/InvalidCronExpressionTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/RepeatedScheduledMethodTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/RepeatedScheduledMethodTest.java index 83b246833be32..16ec6524099ed 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/RepeatedScheduledMethodTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/RepeatedScheduledMethodTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringDelayedTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringDelayedTest.java index 1bc0e21e6fcf7..911e18be473ac 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringDelayedTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringDelayedTest.java @@ -5,7 +5,7 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledMethodsBean.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledMethodsBean.java index 2e1bc29f4bedb..e5a642d91700c 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledMethodsBean.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledMethodsBean.java @@ -4,7 +4,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.springframework.scheduling.annotation.Scheduled; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledProcessorTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledProcessorTest.java index 45db58171f526..cf3468602177c 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledProcessorTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/SpringScheduledProcessorTest.java @@ -8,7 +8,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayParamTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayParamTest.java index 4cc5593b00bd5..b17b310d746ca 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayParamTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayParamTest.java @@ -1,6 +1,6 @@ package io.quarkus.spring.scheduled.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayStringParamTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayStringParamTest.java index ea02f1498cc79..7ae29918043d4 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayStringParamTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedFixedDelayStringParamTest.java @@ -1,6 +1,6 @@ package io.quarkus.spring.scheduled.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedInitialDelayForCronTest.java b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedInitialDelayForCronTest.java index ba8ce7cbb7e23..0a428d301b408 100644 --- a/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedInitialDelayForCronTest.java +++ b/extensions/spring-scheduled/deployment/src/test/java/io/quarkus/spring/scheduled/deployment/UnsupportedInitialDelayForCronTest.java @@ -1,6 +1,6 @@ package io.quarkus.spring.scheduled.deployment; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-security/deployment/src/main/java/io/quarkus/spring/security/deployment/StringPropertyAccessorGenerator.java b/extensions/spring-security/deployment/src/main/java/io/quarkus/spring/security/deployment/StringPropertyAccessorGenerator.java index d9ac79496e8ec..41d6bbdecdbd9 100644 --- a/extensions/spring-security/deployment/src/main/java/io/quarkus/spring/security/deployment/StringPropertyAccessorGenerator.java +++ b/extensions/spring-security/deployment/src/main/java/io/quarkus/spring/security/deployment/StringPropertyAccessorGenerator.java @@ -4,7 +4,7 @@ import java.util.Set; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.jboss.jandex.FieldInfo; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/BeanMethodCheckTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/BeanMethodCheckTest.java index eace7340fbbd9..b3f79b4f7d2ab 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/BeanMethodCheckTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/BeanMethodCheckTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/MetaAnnotationsTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/MetaAnnotationsTest.java index 02f30bc97a1ec..a824e690ea577 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/MetaAnnotationsTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/MetaAnnotationsTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SecurityAnnotationMixingTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SecurityAnnotationMixingTest.java index a455095564a4c..9f445ca6647ce 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SecurityAnnotationMixingTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SecurityAnnotationMixingTest.java @@ -1,7 +1,7 @@ package io.quarkus.spring.security.deployment; -import javax.annotation.security.PermitAll; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.PermitAll; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeClassAnnotatedTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeClassAnnotatedTest.java index 49137a03df6aa..aa164851f5522 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeClassAnnotatedTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeClassAnnotatedTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeTest.java index d6cc9bb869cba..eaab4280b3647 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeWithExpressionsTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeWithExpressionsTest.java index c27f58dc84335..da26266e45019 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeWithExpressionsTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringPreAuthorizeWithExpressionsTest.java @@ -6,7 +6,7 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringSecuredAnnotatedTest.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringSecuredAnnotatedTest.java index ff3d0b6ade1f4..1fd5cb4738f46 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringSecuredAnnotatedTest.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/SpringSecuredAnnotatedTest.java @@ -4,8 +4,8 @@ import static io.quarkus.security.test.utils.SecurityTestUtils.assertFailureFor; import static io.quarkus.security.test.utils.SecurityTestUtils.assertSuccess; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityAnnotations.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityAnnotations.java index 08304b632ac75..e7852f5acf34e 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityAnnotations.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityAnnotations.java @@ -1,6 +1,6 @@ package io.quarkus.spring.security.deployment.app; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.springframework.security.access.annotation.Secured; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityMethodAnnotations.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityMethodAnnotations.java index 1eb60f6a21fd4..a60cd1767540f 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityMethodAnnotations.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/BeanWithSpringSecurityMethodAnnotations.java @@ -1,7 +1,7 @@ package io.quarkus.spring.security.deployment.app; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import org.springframework.security.access.annotation.Secured; diff --git a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/SpringSecuredSubClass.java b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/SpringSecuredSubClass.java index 0a179af7b45a2..153bb50d52ee6 100644 --- a/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/SpringSecuredSubClass.java +++ b/extensions/spring-security/deployment/src/test/java/io/quarkus/spring/security/deployment/app/SpringSecuredSubClass.java @@ -1,6 +1,6 @@ package io.quarkus.spring.security.deployment.app; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.springframework.security.access.annotation.Secured; diff --git a/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringPreauthorizeInterceptor.java b/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringPreauthorizeInterceptor.java index fe5d02942e9d4..49d146a369193 100644 --- a/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringPreauthorizeInterceptor.java +++ b/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringPreauthorizeInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.spring.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.springframework.security.access.prepost.PreAuthorize; diff --git a/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringSecuredInterceptor.java b/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringSecuredInterceptor.java index 86ef67a99818b..30a2886be418f 100644 --- a/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringSecuredInterceptor.java +++ b/extensions/spring-security/runtime/src/main/java/io/quarkus/spring/security/runtime/interceptor/SpringSecuredInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.spring.security.runtime.interceptor; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.springframework.security.access.annotation.Secured; diff --git a/extensions/spring-web/core/common-runtime/pom.xml b/extensions/spring-web/core/common-runtime/pom.xml index b390650332744..5333d7c12395c 100644 --- a/extensions/spring-web/core/common-runtime/pom.xml +++ b/extensions/spring-web/core/common-runtime/pom.xml @@ -15,8 +15,8 @@ - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.enterprise diff --git a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/AbstractResponseContentTypeResolver.java b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/AbstractResponseContentTypeResolver.java index b8429a0dc7c19..8b1d09e9bcf9b 100644 --- a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/AbstractResponseContentTypeResolver.java +++ b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/AbstractResponseContentTypeResolver.java @@ -1,14 +1,14 @@ package io.quarkus.spring.web.runtime.common; -import static javax.ws.rs.core.HttpHeaders.ACCEPT; -import static javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE; +import static jakarta.ws.rs.core.HttpHeaders.ACCEPT; +import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN_TYPE; import java.util.List; import java.util.Objects; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Variant; public abstract class AbstractResponseContentTypeResolver { diff --git a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseEntityConverter.java b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseEntityConverter.java index 4980298b480f1..2a6848ef6679e 100644 --- a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseEntityConverter.java +++ b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseEntityConverter.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.springframework.http.HttpHeaders; import org.springframework.http.ResponseEntity; diff --git a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseStatusExceptionMapper.java b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseStatusExceptionMapper.java index 9ac9c56997c21..c0c5e8d747048 100644 --- a/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseStatusExceptionMapper.java +++ b/extensions/spring-web/core/common-runtime/src/main/java/io/quarkus/spring/web/runtime/common/ResponseStatusExceptionMapper.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import org.springframework.http.HttpHeaders; import org.springframework.web.server.ResponseStatusException; diff --git a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/AbstractExceptionMapperGenerator.java b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/AbstractExceptionMapperGenerator.java index 620e25691a3b9..d0d940daea7b9 100644 --- a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/AbstractExceptionMapperGenerator.java +++ b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/AbstractExceptionMapperGenerator.java @@ -3,9 +3,9 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ControllerAdviceExceptionMapperGenerator.java b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ControllerAdviceExceptionMapperGenerator.java index b423c1e4d83a5..e3fe977dc9817 100644 --- a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ControllerAdviceExceptionMapperGenerator.java +++ b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ControllerAdviceExceptionMapperGenerator.java @@ -7,14 +7,14 @@ import java.util.List; import java.util.Map; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; @@ -72,7 +72,7 @@ class ControllerAdviceExceptionMapperGenerator extends AbstractExceptionMapperGe /** * We need to go through each parameter of the method of the ControllerAdvice * and make sure it's supported - * The javax.ws.rs.ext.ExceptionMapper only has one parameter, the exception, however + * The jakarta.ws.rs.ext.ExceptionMapper only has one parameter, the exception, however * other parameters can be obtained using @Context and therefore injected into the target method */ @Override diff --git a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseBuilder.java b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseBuilder.java index e94a6130754ca..d9789bab8fbd3 100644 --- a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseBuilder.java +++ b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseBuilder.java @@ -2,8 +2,8 @@ import static io.quarkus.gizmo.MethodDescriptor.ofMethod; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.gizmo.MethodCreator; import io.quarkus.gizmo.ResultHandle; diff --git a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseStatusOnExceptionGenerator.java b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseStatusOnExceptionGenerator.java index a6ad9cf5aca37..cf6394e19969a 100644 --- a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseStatusOnExceptionGenerator.java +++ b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/ResponseStatusOnExceptionGenerator.java @@ -1,6 +1,6 @@ package io.quarkus.spring.web.deployment; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.ClassInfo; diff --git a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java index b6cb72bb3bffa..0ab486c20df71 100644 --- a/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java +++ b/extensions/spring-web/core/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java @@ -7,8 +7,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/spring-web/resteasy-classic/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyClassicProcessor.java b/extensions/spring-web/resteasy-classic/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyClassicProcessor.java index 110c554380594..8ecb1818703ae 100644 --- a/extensions/spring-web/resteasy-classic/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyClassicProcessor.java +++ b/extensions/spring-web/resteasy-classic/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyClassicProcessor.java @@ -12,8 +12,8 @@ import java.util.Set; import java.util.function.Consumer; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.Providers; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/spring-web/resteasy-classic/runtime/pom.xml b/extensions/spring-web/resteasy-classic/runtime/pom.xml index 121d9554dea66..52896d906c0aa 100644 --- a/extensions/spring-web/resteasy-classic/runtime/pom.xml +++ b/extensions/spring-web/resteasy-classic/runtime/pom.xml @@ -19,7 +19,7 @@ quarkus-resteasy - org.jboss.resteasy + org.jboss.resteasy.spring resteasy-spring-web diff --git a/extensions/spring-web/resteasy-classic/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyClassicResponseContentTypeResolver.java b/extensions/spring-web/resteasy-classic/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyClassicResponseContentTypeResolver.java index 298282d10b046..edfc8d5efc5b6 100644 --- a/extensions/spring-web/resteasy-classic/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyClassicResponseContentTypeResolver.java +++ b/extensions/spring-web/resteasy-classic/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyClassicResponseContentTypeResolver.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.core.request.ServerDrivenNegotiation; diff --git a/extensions/spring-web/resteasy-reactive/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyReactiveProcessor.java b/extensions/spring-web/resteasy-reactive/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyReactiveProcessor.java index 4a9b50fbedc87..60baf26c9432e 100644 --- a/extensions/spring-web/resteasy-reactive/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyReactiveProcessor.java +++ b/extensions/spring-web/resteasy-reactive/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebResteasyReactiveProcessor.java @@ -15,8 +15,8 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/extensions/spring-web/resteasy-reactive/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyReactiveResponseContentTypeResolver.java b/extensions/spring-web/resteasy-reactive/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyReactiveResponseContentTypeResolver.java index 2324cb923e5ae..a036095e78f4d 100644 --- a/extensions/spring-web/resteasy-reactive/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyReactiveResponseContentTypeResolver.java +++ b/extensions/spring-web/resteasy-reactive/runtime/src/main/java/io/quarkus/spring/web/runtime/ResteasyReactiveResponseContentTypeResolver.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.server.core.request.ServerDrivenNegotiation; diff --git a/extensions/spring-web/resteasy-reactive/tests/src/test/java/io/quarkus/spring/web/test/TestController.java b/extensions/spring-web/resteasy-reactive/tests/src/test/java/io/quarkus/spring/web/test/TestController.java index 4793707865885..26847be09c9d4 100644 --- a/extensions/spring-web/resteasy-reactive/tests/src/test/java/io/quarkus/spring/web/test/TestController.java +++ b/extensions/spring-web/resteasy-reactive/tests/src/test/java/io/quarkus/spring/web/test/TestController.java @@ -1,6 +1,6 @@ package io.quarkus.spring.web.test; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java index a028318c79bda..1ae8effc23588 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/ServletConfig.java @@ -4,7 +4,7 @@ import java.util.Optional; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java index 6758ef0245712..bbc6400670510 100644 --- a/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java +++ b/extensions/undertow/deployment/src/main/java/io/quarkus/undertow/deployment/UndertowBuildStep.java @@ -5,7 +5,7 @@ import static io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic.AUTHENTICATE; import static io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic.DENY; import static io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic.PERMIT; -import static javax.servlet.DispatcherType.REQUEST; +import static jakarta.servlet.DispatcherType.REQUEST; import java.io.IOException; import java.util.ArrayList; @@ -18,21 +18,21 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.annotation.security.DeclareRoles; -import javax.annotation.security.RunAs; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.inject.Typed; -import javax.inject.Inject; -import javax.servlet.ServletContainerInitializer; -import javax.servlet.ServletContext; -import javax.servlet.SessionTrackingMode; -import javax.servlet.annotation.HandlesTypes; -import javax.servlet.annotation.MultipartConfig; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebFilter; -import javax.servlet.annotation.WebListener; -import javax.servlet.annotation.WebServlet; +import jakarta.annotation.security.DeclareRoles; +import jakarta.annotation.security.RunAs; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Inject; +import jakarta.servlet.ServletContainerInitializer; +import jakarta.servlet.ServletContext; +import jakarta.servlet.SessionTrackingMode; +import jakarta.servlet.annotation.HandlesTypes; +import jakarta.servlet.annotation.MultipartConfig; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebFilter; +import jakarta.servlet.annotation.WebListener; +import jakarta.servlet.annotation.WebServlet; import org.jboss.annotation.javaee.Descriptions; import org.jboss.annotation.javaee.DisplayNames; @@ -146,7 +146,7 @@ public class UndertowBuildStep { public static final DotName MULTIPART_CONFIG = DotName.createSimple(MultipartConfig.class.getName()); public static final DotName SERVLET_SECURITY = DotName.createSimple(ServletSecurity.class.getName()); public static final DotName TYPED = DotName.createSimple(Typed.class.getName()); - protected static final String SERVLET_CONTAINER_INITIALIZER = "META-INF/services/javax.servlet.ServletContainerInitializer"; + protected static final String SERVLET_CONTAINER_INITIALIZER = "META-INF/services/jakarta.servlet.ServletContainerInitializer"; protected static final DotName HANDLES_TYPES = DotName.createSimple(HandlesTypes.class.getName()); @Inject @@ -516,7 +516,7 @@ public ServletDeploymentManagerBuildItem build(List servlets, } else { for (DispatcherType dispatcher : mapping.getDispatchers()) { recorder.addFilterURLMapping(deployment, mapping.getFilterName(), m, - javax.servlet.DispatcherType.valueOf(dispatcher.name())); + jakarta.servlet.DispatcherType.valueOf(dispatcher.name())); } } } @@ -528,7 +528,7 @@ public ServletDeploymentManagerBuildItem build(List servlets, } else { for (DispatcherType dispatcher : mapping.getDispatchers()) { recorder.addFilterServletNameMapping(deployment, mapping.getFilterName(), name, - javax.servlet.DispatcherType.valueOf(dispatcher.name())); + jakarta.servlet.DispatcherType.valueOf(dispatcher.name())); } } } diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java index ab7cd800d495d..6303a8ccb2e60 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilter.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.Enumeration; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.annotation.WebFilter; -import javax.servlet.http.HttpFilter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.annotation.WebFilter; +import jakarta.servlet.http.HttpFilter; @WebFilter(urlPatterns = "/*") public class AnnotatedFilter extends HttpFilter { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilterInitParam.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilterInitParam.java index adc162147f67d..8b050efb95d9e 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilterInitParam.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedFilterInitParam.java @@ -4,13 +4,13 @@ import java.io.IOException; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.annotation.WebFilter; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.http.HttpFilter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.annotation.WebFilter; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.http.HttpFilter; @WebFilter(urlPatterns = SERVLET_ENDPOINT, description = "Haha Filter", initParams = { @WebInitParam(name = "AnnotatedInitFilterParamName", value = "AnnotatedInitFilterParamValue", description = "Described filter init param") diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java index b2d149b773b59..b9c08dff64d24 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedListener.java @@ -1,8 +1,8 @@ package io.quarkus.undertow.test; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; +import jakarta.servlet.annotation.WebListener; @WebListener public class AnnotatedListener implements ServletContextListener { @@ -10,4 +10,4 @@ public class AnnotatedListener implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { sce.getServletContext().setAttribute("annotated listener", true); } -} \ No newline at end of file +} diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServlet.java index ef49bd5c21a96..c685937a747da 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServlet.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.security.RunAs; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.annotation.security.RunAs; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServletInitParam.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServletInitParam.java index 0fa259c525873..a11e2a31cc09b 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServletInitParam.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/AnnotatedServletInitParam.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = AnnotatedServletInitParam.SERVLET_ENDPOINT, initParams = { @WebInitParam(name = "AnnotatedInitParamName", value = "AnnotatedInitParamValue", description = "This is my init param") diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ErrorServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ErrorServlet.java index 98f1a83122c55..77073d4e4db0b 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ErrorServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ErrorServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/error") public class ErrorServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/LoginLogoutServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/LoginLogoutServlet.java index 6bac323fff3c9..560231ab815f8 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/LoginLogoutServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/LoginLogoutServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.security.AuthenticationFailedException; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/MultipartConfigTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/MultipartConfigTestCase.java index 1bdb49eb58398..bab1b3210223d 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/MultipartConfigTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/MultipartConfigTestCase.java @@ -7,14 +7,14 @@ import java.io.PrintWriter; import java.nio.charset.StandardCharsets; -import javax.servlet.MultipartConfigElement; -import javax.servlet.ServletException; -import javax.servlet.annotation.MultipartConfig; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.Part; +import jakarta.servlet.MultipartConfigElement; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.MultipartConfig; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.servlet.http.Part; import org.junit.jupiter.api.extension.RegisterExtension; import org.junit.jupiter.params.ParameterizedTest; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NamedServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NamedServlet.java index dcec0f2b11c20..be56b75bc7ad3 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NamedServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NamedServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "named", urlPatterns = "/named") public class NamedServlet extends HttpServlet { @@ -16,4 +16,4 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se resp.getWriter().write("Hello World"); } -} \ No newline at end of file +} diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NoUrlPatternWebFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NoUrlPatternWebFilter.java index 9fc3ebb813533..13c01ce06a306 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NoUrlPatternWebFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/NoUrlPatternWebFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.annotation.WebFilter; +import jakarta.servlet.Filter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.annotation.WebFilter; @WebFilter(filterName = "MyFilter", servletNames = "named", asyncSupported = true) public class NoUrlPatternWebFilter implements Filter { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java index 23a47380c7b5d..b7f62ad5a3b7b 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/PreDestroyServlet.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.PreDestroy; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.annotation.PreDestroy; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/destroy", loadOnStartup = 1) public class PreDestroyServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedAnnotationServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedAnnotationServlet.java index 4ae228d29aa3b..4b95346ae0a23 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedAnnotationServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedAnnotationServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/roles-anno") @ServletSecurity(@HttpConstraint(rolesAllowed = "admin")) diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedBeanServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedBeanServlet.java index 1b2510bfe94e5..0a2eff3463f73 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedBeanServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/RolesAllowedBeanServlet.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/roles-bean") public class RolesAllowedBeanServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredAnnotationServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredAnnotationServlet.java index 7cdafc30c1e96..d0a17be109d1a 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredAnnotationServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredAnnotationServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/annotation/servlet") @ServletSecurity(@HttpConstraint(rolesAllowed = "admin")) diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredServlet.java index 139e93fc77c01..35bf6c7abb81d 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/SecuredServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/secure/servlet") public class SecuredServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java index 3ead44e33b8df..7460719ec0ee5 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContainerInitializerTestCase.java @@ -2,7 +2,7 @@ import static org.hamcrest.Matchers.containsString; -import javax.servlet.ServletContainerInitializer; +import jakarta.servlet.ServletContainerInitializer; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContextInjectionTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContextInjectionTestCase.java index 9be39e69b46e8..4c8a055e055a9 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContextInjectionTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/ServletContextInjectionTestCase.java @@ -1,7 +1,7 @@ package io.quarkus.undertow.test; -import javax.inject.Inject; -import javax.servlet.ServletContext; +import jakarta.inject.Inject; +import jakarta.servlet.ServletContext; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestGreeter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestGreeter.java index 9d3a101453b31..e05f3e1d14694 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestGreeter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestGreeter.java @@ -1,6 +1,6 @@ package io.quarkus.undertow.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class TestGreeter { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestSCI.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestSCI.java index 0f953ce8f16ef..b1c44663b3b65 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestSCI.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestSCI.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.util.Set; -import javax.servlet.ServletContainerInitializer; -import javax.servlet.ServletContext; -import javax.servlet.ServletException; -import javax.servlet.ServletRegistration; -import javax.servlet.annotation.HandlesTypes; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletContainerInitializer; +import jakarta.servlet.ServletContext; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRegistration; +import jakarta.servlet.annotation.HandlesTypes; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @HandlesTypes({ SCIInterface.class, SCIAnnotation.class }) public class TestSCI implements ServletContainerInitializer { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java index cf57ad89f576f..1b8f80ef683aa 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/test") public class TestServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServletSubclass.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServletSubclass.java index 3a419f3138e00..206c1bfd283d3 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServletSubclass.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/TestServletSubclass.java @@ -1,6 +1,6 @@ package io.quarkus.undertow.test; -import javax.servlet.annotation.WebServlet; +import jakarta.servlet.annotation.WebServlet; @WebServlet(urlPatterns = "/test-sub") public class TestServletSubclass extends TestServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UndertowHandlersConfTestCase.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UndertowHandlersConfTestCase.java index 025650926f8d5..25bdc596d3a20 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UndertowHandlersConfTestCase.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UndertowHandlersConfTestCase.java @@ -5,10 +5,10 @@ import java.io.IOException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UserServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UserServlet.java index ee8afd1bca95c..5eaa86cd6ffb7 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UserServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/UserServlet.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.security.Principal; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/user") public class UserServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java index b9a78c46a517b..a427a79886d34 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.http.HttpFilter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.http.HttpFilter; public class WebXmlFilter extends HttpFilter { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsFilter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsFilter.java index 887eccf0e0b11..9c9f678eb967f 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsFilter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.FilterConfig; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.Filter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.FilterConfig; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; public class WebXmlInitParamsFilter implements Filter { private FilterConfig filterConfig; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsServlet.java index 2acd8ed27bbd4..c35459539834a 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlInitParamsServlet.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; public class WebXmlInitParamsServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java index 94fd87226714f..8b21390594ada 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlListener.java @@ -1,7 +1,7 @@ package io.quarkus.undertow.test; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; public class WebXmlListener implements ServletContextListener { @Override diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java index 264a1761b2717..027448608c329 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/WebXmlServlet.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; public class WebXmlServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/Counter.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/Counter.java index f31155bd2b847..84f5a8c4515ac 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/Counter.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/Counter.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.SessionScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.SessionScoped; @SessionScoped class Counter { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/ServletBuiltinBeanInjectingBean.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/ServletBuiltinBeanInjectingBean.java index 79065f3455373..7ff0b591dacb7 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/ServletBuiltinBeanInjectingBean.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/ServletBuiltinBeanInjectingBean.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.servlet.ServletContext; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.servlet.ServletContext; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpSession; @Dependent class ServletBuiltinBeanInjectingBean { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/TestServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/TestServlet.java index ebc2b73c64c38..ad39fd4fa23bc 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/TestServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/builtinbeans/TestServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; +import jakarta.inject.Inject; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpSession; @SuppressWarnings("serial") @WebServlet(urlPatterns = "/foo/*", name = "testServlet") diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/config/WebFilterConfigInjectionWarningsTest.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/config/WebFilterConfigInjectionWarningsTest.java index 53c5e1a9cbd4e..a6e2a3e04bec4 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/config/WebFilterConfigInjectionWarningsTest.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/config/WebFilterConfigInjectionWarningsTest.java @@ -10,17 +10,17 @@ import java.util.logging.LogRecord; import java.util.stream.Collectors; -import javax.enterprise.inject.Instance; -import javax.servlet.Filter; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.annotation.WebFilter; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.enterprise.inject.Instance; +import jakarta.servlet.Filter; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.annotation.WebFilter; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hamcrest.Matchers; @@ -42,10 +42,11 @@ public class WebFilterConfigInjectionWarningsTest { assertEquals(1, logRecords.size()); Set messages = logRecords.stream().map(LogRecord::getMessage).collect(Collectors.toSet()); assertTrue(messages.contains( - "Directly injecting a org.eclipse.microprofile.config.inject.ConfigProperty into a javax.servlet" + + "Directly injecting a org.eclipse.microprofile.config.inject.ConfigProperty into a jakarta.servlet" + ".annotation.WebFilter may lead to unexpected results. To ensure proper results, please change the " + - "type of the field to javax.enterprise.inject.Instance. Offending field is " + + "type of the field to jakarta.enterprise.inject.Instance. Offending field is " + + "'configProperty' of class 'io.quarkus.undertow.test.config" + ".WebFilterConfigInjectionWarningsTest$ConfigFilter'")); }); diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/DevServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/DevServlet.java index 82979ea97a13b..98f9498d08cfb 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/DevServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/DevServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.runtime.BlockingOperationControl; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/NewServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/NewServlet.java index e87cd344ba9b7..04bfc1efac799 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/NewServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/devmode/NewServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.runtime.BlockingOperationControl; diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/MessageServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/MessageServlet.java index a6a5542c2e320..f34d3bedbc06a 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/MessageServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/MessageServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/pushed") public class MessageServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/ServerPushServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/ServerPushServlet.java index 49a6a3c5559cc..5b7833123e30f 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/ServerPushServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/push/ServerPushServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/push") public class ServerPushServlet extends HttpServlet { diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/Foo.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/Foo.java index 6ac0b844a1e0f..4e172706e407b 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/Foo.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/Foo.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicLong; -import javax.annotation.PostConstruct; -import javax.enterprise.context.SessionScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.SessionScoped; @SessionScoped class Foo { @@ -19,4 +19,4 @@ long incrementAndGet() { return counter.incrementAndGet(); } -} \ No newline at end of file +} diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/TestServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/TestServlet.java index a7bcde11d1117..315dcec8cbac7 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/TestServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/sessioncontext/TestServlet.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @SuppressWarnings("serial") @WebServlet(urlPatterns = "/foo") @@ -24,4 +24,4 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se resp.getWriter().write("count=" + foo.incrementAndGet()); } } -} \ No newline at end of file +} diff --git a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/timeout/TimeoutTestServlet.java b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/timeout/TimeoutTestServlet.java index d894ca392fe1d..4ba024b8a86f3 100644 --- a/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/timeout/TimeoutTestServlet.java +++ b/extensions/undertow/deployment/src/test/java/io/quarkus/undertow/test/timeout/TimeoutTestServlet.java @@ -6,11 +6,11 @@ import java.io.UncheckedIOException; import java.util.stream.Collectors; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(urlPatterns = "/timeout") public class TimeoutTestServlet extends HttpServlet { diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpSessionContext.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpSessionContext.java index 25a5d54942d29..388d1665d0984 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpSessionContext.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/HttpSessionContext.java @@ -6,15 +6,15 @@ import java.util.Objects; import java.util.stream.Collectors; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.SessionScoped; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.servlet.annotation.WebListener; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; -import javax.servlet.http.HttpSessionEvent; -import javax.servlet.http.HttpSessionListener; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.SessionScoped; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.servlet.annotation.WebListener; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpSession; +import jakarta.servlet.http.HttpSessionEvent; +import jakarta.servlet.http.HttpSessionListener; import org.jboss.logging.Logger; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusErrorServlet.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusErrorServlet.java index 9515d858312f2..19f63cc1bf6f5 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusErrorServlet.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusErrorServlet.java @@ -5,11 +5,11 @@ import java.io.StringWriter; import java.nio.charset.StandardCharsets; -import javax.servlet.RequestDispatcher; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.RequestDispatcher; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.runtime.TemplateHtmlBuilder; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusExceptionHandler.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusExceptionHandler.java index 67ee278c3a72f..a2687e1a9bb09 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusExceptionHandler.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusExceptionHandler.java @@ -4,8 +4,8 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicLong; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; import org.jboss.logging.BasicLogger; import org.jboss.logging.Logger; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusIdentityManager.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusIdentityManager.java index 6d36a88ae24b3..e3239737bef2b 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusIdentityManager.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/QuarkusIdentityManager.java @@ -1,7 +1,7 @@ package io.quarkus.undertow.runtime; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletHttpSecurityPolicy.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletHttpSecurityPolicy.java index 7e288c80272ca..1e47c7ceb7859 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletHttpSecurityPolicy.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletHttpSecurityPolicy.java @@ -2,7 +2,7 @@ import java.util.function.Function; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.vertx.http.runtime.security.HttpSecurityPolicy; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletProducer.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletProducer.java index 56ca17ffaa3f6..d1c4ba9a5001b 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletProducer.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/ServletProducer.java @@ -1,11 +1,11 @@ package io.quarkus.undertow.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpSession; import io.undertow.servlet.handlers.ServletRequestContext; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java index aabc3a1964e85..90def7a486baa 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowDeploymentRecorder.java @@ -15,20 +15,20 @@ import java.util.concurrent.ExecutorService; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; -import javax.servlet.AsyncEvent; -import javax.servlet.AsyncListener; -import javax.servlet.DispatcherType; -import javax.servlet.Filter; -import javax.servlet.MultipartConfigElement; -import javax.servlet.Servlet; -import javax.servlet.ServletContainerInitializer; -import javax.servlet.ServletContext; -import javax.servlet.ServletException; -import javax.servlet.ServletRequest; -import javax.servlet.ServletResponse; -import javax.servlet.SessionTrackingMode; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.servlet.AsyncEvent; +import jakarta.servlet.AsyncListener; +import jakarta.servlet.DispatcherType; +import jakarta.servlet.Filter; +import jakarta.servlet.MultipartConfigElement; +import jakarta.servlet.Servlet; +import jakarta.servlet.ServletContainerInitializer; +import jakarta.servlet.ServletContext; +import jakarta.servlet.ServletException; +import jakarta.servlet.ServletRequest; +import jakarta.servlet.ServletResponse; +import jakarta.servlet.SessionTrackingMode; import org.jboss.logging.Logger; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowHandlersConfServletExtension.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowHandlersConfServletExtension.java index 6713542e9f96f..76a57cc6fba21 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowHandlersConfServletExtension.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowHandlersConfServletExtension.java @@ -5,7 +5,7 @@ import java.io.UncheckedIOException; import java.util.List; -import javax.servlet.ServletContext; +import jakarta.servlet.ServletContext; import io.undertow.Handlers; import io.undertow.server.HandlerWrapper; diff --git a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowTestHttpProvider.java b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowTestHttpProvider.java index 5fa77ba9d043e..b5b5caae5bc97 100644 --- a/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowTestHttpProvider.java +++ b/extensions/undertow/runtime/src/main/java/io/quarkus/undertow/runtime/UndertowTestHttpProvider.java @@ -5,7 +5,7 @@ import java.util.Optional; import java.util.function.Function; -import javax.servlet.annotation.WebServlet; +import jakarta.servlet.annotation.WebServlet; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java b/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java index 3430dbd585e8c..9899ae25820fd 100644 --- a/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java +++ b/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/FilterBuildItem.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.Map; -import javax.servlet.DispatcherType; -import javax.servlet.Filter; +import jakarta.servlet.DispatcherType; +import jakarta.servlet.Filter; import io.quarkus.builder.item.MultiBuildItem; import io.undertow.servlet.api.InstanceFactory; diff --git a/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java b/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java index a8d8bac4f039d..300a1c8442a89 100644 --- a/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java +++ b/extensions/undertow/spi/src/main/java/io/quarkus/undertow/deployment/ServletBuildItem.java @@ -6,8 +6,8 @@ import java.util.List; import java.util.Map; -import javax.servlet.MultipartConfigElement; -import javax.servlet.Servlet; +import jakarta.servlet.MultipartConfigElement; +import jakarta.servlet.Servlet; import io.quarkus.builder.item.MultiBuildItem; import io.undertow.servlet.api.InstanceFactory; diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/HttpSecurityProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/HttpSecurityProcessor.java index f28e4c68d1e5c..980bc8aaeaaf0 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/HttpSecurityProcessor.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/HttpSecurityProcessor.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.function.Supplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.BeanContainerListenerBuildItem; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/CompressionTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/CompressionTest.java index e22ce6ba2eb13..811e684bd75f6 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/CompressionTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/CompressionTest.java @@ -3,8 +3,8 @@ import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ConnectionLimitsTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ConnectionLimitsTest.java index 5caefddacfa33..7f06f93eee36b 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ConnectionLimitsTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ConnectionLimitsTest.java @@ -6,8 +6,8 @@ import java.nio.charset.StandardCharsets; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.awaitility.Awaitility; import org.awaitility.core.ThrowingRunnable; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DecompressionTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DecompressionTest.java index 8fab0733e8aee..34c68e3d3503c 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DecompressionTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DecompressionTest.java @@ -6,8 +6,8 @@ import java.util.stream.IntStream; import java.util.zip.GZIPOutputStream; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DisableHttpPortTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DisableHttpPortTest.java index 38d86121b32a8..65e0d23e78197 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DisableHttpPortTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/DisableHttpPortTest.java @@ -7,8 +7,8 @@ import java.io.File; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.AfterAll; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java index 39d8a596cc16a..ad8200b875184 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ForwardedHandlerInitializer.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.core.http.HttpHeaders; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/HttpContinueHeaderTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/HttpContinueHeaderTest.java index a2b4220cda4d6..35f59a01fee3b 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/HttpContinueHeaderTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/HttpContinueHeaderTest.java @@ -4,8 +4,8 @@ import java.net.URL; import java.nio.charset.StandardCharsets; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationAndRootPathTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationAndRootPathTest.java index bf70b20f36c1a..243bcca9b71c9 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationAndRootPathTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationAndRootPathTest.java @@ -2,8 +2,8 @@ import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationEscapeTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationEscapeTest.java index 3fb3cb8cc186c..5299be7fcbb65 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationEscapeTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationEscapeTest.java @@ -5,9 +5,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.awaitility.Awaitility; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationRootPathSiblingTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationRootPathSiblingTest.java index 9470296d1eba0..3c2c997eb8257 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationRootPathSiblingTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/NonApplicationRootPathSiblingTest.java @@ -2,8 +2,8 @@ import java.util.function.Consumer; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RandomPortTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RandomPortTest.java index 916c98b5f1932..6527a9383f0b5 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RandomPortTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RandomPortTest.java @@ -4,7 +4,7 @@ import java.net.URL; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RootPathTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RootPathTest.java index cab8c3c78f11b..325aa99a9200e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RootPathTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/RootPathTest.java @@ -2,8 +2,8 @@ import static io.restassured.RestAssured.given; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UnhandledExceptionTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UnhandledExceptionTest.java index b1d66f7001eb9..698376e023e14 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UnhandledExceptionTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UnhandledExceptionTest.java @@ -5,8 +5,8 @@ import static org.hamcrest.Matchers.allOf; import static org.hamcrest.Matchers.containsString; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.hamcrest.Matcher; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UserRouteRegistrationTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UserRouteRegistrationTest.java index f61c486cd98bf..4d212f4dfde50 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UserRouteRegistrationTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/UserRouteRegistrationTest.java @@ -3,9 +3,9 @@ import static io.restassured.RestAssured.given; import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/cors/BeanRegisteringRoute.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/cors/BeanRegisteringRoute.java index 3b07f9455b55d..4d4a17e814afb 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/cors/BeanRegisteringRoute.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/cors/BeanRegisteringRoute.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.cors; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.vertx.core.Handler; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/customizers/HttpServerOptionsCustomizerTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/customizers/HttpServerOptionsCustomizerTest.java index 033667116ff4f..09d5837286134 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/customizers/HttpServerOptionsCustomizerTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/customizers/HttpServerOptionsCustomizerTest.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/BodyHandlerBean.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/BodyHandlerBean.java index f1320b95b70c3..116db1c8a43f1 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/BodyHandlerBean.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/BodyHandlerBean.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.devconsole; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.configuration.ConfigInstantiator; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/ConfigBean.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/ConfigBean.java index f837ccf3742af..2ebc09380fccf 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/ConfigBean.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devconsole/ConfigBean.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.devconsole; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ArcEndpointTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ArcEndpointTest.java index 57e60c4c87194..a2644f677996e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ArcEndpointTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ArcEndpointTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileCorrectlyEndpoint.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileCorrectlyEndpoint.java index b514f915f2c12..3bb49127ae5e9 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileCorrectlyEndpoint.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileCorrectlyEndpoint.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.devmode; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileErrorEndpoint.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileErrorEndpoint.java index 7149f2e7a61d6..f2f1650898265 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileErrorEndpoint.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/CompileErrorEndpoint.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.devmode; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/LiveReloadEndpoint.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/LiveReloadEndpoint.java index 26b1f112b56d0..3a9d821f84861 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/LiveReloadEndpoint.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/LiveReloadEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.vertx.http.devmode; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Named; import io.quarkus.vertx.http.runtime.HttpBuildTimeConfig; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ParentFirstEndpoint.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ParentFirstEndpoint.java index ee3b727a80a88..05b9b6a0b0688 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ParentFirstEndpoint.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/devmode/ParentFirstEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.vertx.http.devmode; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Named; import io.quarkus.bootstrap.classloading.QuarkusClassLoader; import io.quarkus.vertx.http.runtime.HttpBuildTimeConfig; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/filters/UserFilterTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/filters/UserFilterTest.java index 1326a7744e4e2..3e2af8f032715 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/filters/UserFilterTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/filters/UserFilterTest.java @@ -5,8 +5,8 @@ import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.Matchers.is; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevBean.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevBean.java index 9310dfd698278..78a31fc0ebc2e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevBean.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevBean.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.http.hotreload; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevFilter.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevFilter.java index fe2676a07d641..a3493a8ec8a35 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevFilter.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/DevFilter.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.hotreload; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.filters.Filters; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewBean.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewBean.java index 090d3bfa8ca5e..9b0f38d913ad3 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewBean.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewBean.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.http.hotreload; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewFilter.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewFilter.java index ce25ad98b5b4c..b6f7d3d7e7544 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewFilter.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/NewFilter.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.hotreload; -import javax.enterprise.event.Observes; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.filters.Filters; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusConsumer.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusConsumer.java index 336d5fbbf9d0f..7453a1ce37288 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusConsumer.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusConsumer.java @@ -1,9 +1,9 @@ package io.quarkus.vertx.http.hotreload; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.core.Vertx; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusProducer.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusProducer.java index 2a68eacd41a1d..d023bcb1f231b 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusProducer.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/hotreload/VertxEventBusProducer.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.http.hotreload; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.core.Vertx; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/http2/Http2Test.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/http2/Http2Test.java index 07ef39c6279fb..8d79b21ab3578 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/http2/Http2Test.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/http2/Http2Test.java @@ -5,8 +5,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assumptions; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/router/RouterEventTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/router/RouterEventTest.java index 9eab123124de3..0cb25d586d155 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/router/RouterEventTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/router/RouterEventTest.java @@ -2,8 +2,8 @@ import static org.hamcrest.Matchers.is; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/samesite/SetCookieHandler.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/samesite/SetCookieHandler.java index 7f1537ef8dd86..5886540f4a61c 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/samesite/SetCookieHandler.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/samesite/SetCookieHandler.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.samesite; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.core.Handler; import io.vertx.core.http.impl.CookieImpl; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/AdminPathHandler.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/AdminPathHandler.java index 4caa62496d64b..0fe98afe4d410 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/AdminPathHandler.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/AdminPathHandler.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.security; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.security.QuarkusHttpUser; import io.vertx.core.Handler; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/CustomFormAuthChallengeTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/CustomFormAuthChallengeTest.java index 696e130ec95d2..fc7ff866f05f4 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/CustomFormAuthChallengeTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/CustomFormAuthChallengeTest.java @@ -3,9 +3,9 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/DisabledProactiveSecIdentityProviderTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/DisabledProactiveSecIdentityProviderTest.java index 6daddfe2fbe14..11bcd75daa8c8 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/DisabledProactiveSecIdentityProviderTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/DisabledProactiveSecIdentityProviderTest.java @@ -3,7 +3,7 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/FailingIdentityProvider.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/FailingIdentityProvider.java index db46d3a08d521..cb29db211f3ea 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/FailingIdentityProvider.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/FailingIdentityProvider.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.http.security; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.security.AuthenticationFailedException; import io.quarkus.security.identity.AuthenticationRequestContext; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/HeaderAuthenticator.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/HeaderAuthenticator.java index 32e13c7e61d79..383eabe66c00f 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/HeaderAuthenticator.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/HeaderAuthenticator.java @@ -3,7 +3,7 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.identity.IdentityProviderManager; import io.quarkus.security.identity.SecurityIdentity; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/IdentityProviderTestCase.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/IdentityProviderTestCase.java index d45c291445741..2504e61b1be77 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/IdentityProviderTestCase.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/IdentityProviderTestCase.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestBasicAuthTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestBasicAuthTest.java index fd694937243f2..2a651111126f0 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestBasicAuthTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestBasicAuthTest.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestTest.java index 57f229e1abaa1..93a2a16e9ad3e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequestTest.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequiredTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequiredTest.java index 0313c17600769..9457f81106d76 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequiredTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/MtlsRequiredTest.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/PathHandler.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/PathHandler.java index f6e11b69bc47b..b89c0e9b83793 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/PathHandler.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/PathHandler.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.security; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.security.QuarkusHttpUser; import io.vertx.core.Handler; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/TestTrustedIdentityProvider.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/TestTrustedIdentityProvider.java index b7ae74ceed18e..2366a6b41ac66 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/TestTrustedIdentityProvider.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/security/TestTrustedIdentityProvider.java @@ -3,7 +3,7 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.security.AuthenticationFailedException; import io.quarkus.security.identity.AuthenticationRequestContext; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTest.java index e1c3f23d97001..b55c4c6f521f7 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTest.java @@ -6,8 +6,8 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutDefaultExecutorTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutDefaultExecutorTest.java index 9f31489f7961b..8435d0065e2f3 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutDefaultExecutorTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutDefaultExecutorTest.java @@ -7,10 +7,10 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutTest.java index 37e79597e5899..4607b42e2f272 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/shutdown/ShutdownTimeoutTest.java @@ -6,8 +6,8 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithJksTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithJksTest.java index c7e96846065eb..0b74e031c0d6b 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithJksTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithJksTest.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.AfterAll; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithP12Test.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithP12Test.java index e876ceb90ff38..3a3591f20327e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithP12Test.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithP12Test.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.AfterAll; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithPemTest.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithPemTest.java index 85a09758d2c1c..448ba943f9e4e 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithPemTest.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/ssl/SslServerWithPemTest.java @@ -5,8 +5,8 @@ import java.io.File; import java.net.URL; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.AfterAll; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/HelloResource.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/HelloResource.java index 202a5d32a9f01..999dec34619aa 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/HelloResource.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/HelloResource.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.testrunner; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.core.Handler; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/StartupFailer.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/StartupFailer.java index e65fa8b11b5b0..935dfe6340bca 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/StartupFailer.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/StartupFailer.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.testrunner; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.runtime.LaunchMode; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/brokenonly/BrokenOnlyResource.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/brokenonly/BrokenOnlyResource.java index 472ea25e58f2c..f7b4c843bd87d 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/brokenonly/BrokenOnlyResource.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/brokenonly/BrokenOnlyResource.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.testrunner.brokenonly; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.core.Handler; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/params/Setup.java b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/params/Setup.java index 53bd7f3d0021e..e479563078593 100644 --- a/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/params/Setup.java +++ b/extensions/vertx-http/deployment/src/test/java/io/quarkus/vertx/http/testrunner/params/Setup.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.testrunner.params; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.ext.web.Router; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentRequestProducer.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentRequestProducer.java index e6927333de7cf..412d886a8bd7b 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentRequestProducer.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentRequestProducer.java @@ -1,9 +1,9 @@ package io.quarkus.vertx.http.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import io.vertx.core.http.HttpServerRequest; import io.vertx.ext.web.RoutingContext; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentVertxRequest.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentVertxRequest.java index 421d961a0a731..217c01185a875 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentVertxRequest.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/CurrentVertxRequest.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.http.runtime; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; import io.vertx.ext.web.RoutingContext; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java index 7e1c54a5b42e4..4b0346f26697d 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/TrustedProxyCheckPartConverter.java @@ -7,7 +7,7 @@ import java.util.function.BiPredicate; import java.util.regex.Pattern; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java index ff57c4c383896..9b4415ce8b7d5 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java @@ -35,7 +35,7 @@ import java.util.function.Supplier; import java.util.regex.Pattern; -import javax.enterprise.event.Event; +import jakarta.enterprise.event.Event; import org.crac.Resource; import org.jboss.logging.Logger; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ArcDevRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ArcDevRecorder.java index 9d474916e889c..c5c18b76d2555 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ArcDevRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ArcDevRecorder.java @@ -9,8 +9,8 @@ import java.util.Map; import java.util.Map.Entry; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableBean; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/BasicAuthenticationMechanism.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/BasicAuthenticationMechanism.java index 60566daba953d..62bc6b8ae8ef5 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/BasicAuthenticationMechanism.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/BasicAuthenticationMechanism.java @@ -29,7 +29,7 @@ import java.util.Set; import java.util.regex.Pattern; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthenticator.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthenticator.java index f8738d9c63902..9268597154a76 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthenticator.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthenticator.java @@ -8,8 +8,8 @@ import java.util.Set; import java.util.function.Function; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthorizer.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthorizer.java index b5f61f6bcf3ae..defee73f0f714 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthorizer.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpAuthorizer.java @@ -6,8 +6,8 @@ import java.util.function.BiFunction; import java.util.function.Consumer; -import javax.enterprise.inject.Instance; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java index 064b1c6dba6e0..6d4b707e542a5 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/HttpSecurityRecorder.java @@ -9,7 +9,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDI; import org.jboss.logging.Logger; diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/PathMatchingHttpSecurityPolicy.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/PathMatchingHttpSecurityPolicy.java index aad139cde70b2..52c2e0de186af 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/PathMatchingHttpSecurityPolicy.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/security/PathMatchingHttpSecurityPolicy.java @@ -10,7 +10,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.vertx.http.runtime.HttpBuildTimeConfig; diff --git a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/core/deployment/VertxCoreProcessor.java b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/core/deployment/VertxCoreProcessor.java index b5fb5a0334c55..6fbce56e4dbe9 100644 --- a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/core/deployment/VertxCoreProcessor.java +++ b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/core/deployment/VertxCoreProcessor.java @@ -15,7 +15,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/CodecRegistrationTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/CodecRegistrationTest.java index 046e2468258f1..b6c055d9291d2 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/CodecRegistrationTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/CodecRegistrationTest.java @@ -11,7 +11,7 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/DuplicatedContextTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/DuplicatedContextTest.java index c65ce08035d93..c1c83d58b7248 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/DuplicatedContextTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/DuplicatedContextTest.java @@ -8,8 +8,8 @@ import java.util.UUID; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/EventBusCodecTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/EventBusCodecTest.java index 1d4f6d3a97b71..dcd5f0ebd15cd 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/EventBusCodecTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/EventBusCodecTest.java @@ -9,7 +9,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MutinyCodecTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MutinyCodecTest.java index ccf61227d6c35..9ca11164405f3 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MutinyCodecTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/MutinyCodecTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxContextSupportTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxContextSupportTest.java index f250c29fa7528..b34d631d355f8 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxContextSupportTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxContextSupportTest.java @@ -6,9 +6,9 @@ import java.util.function.Supplier; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxInjectionTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxInjectionTest.java index 6af7ed791bc9b..9d2ca3a485fda 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxInjectionTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/VertxInjectionTest.java @@ -1,8 +1,8 @@ package io.quarkus.vertx; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/customizers/VertxOptionsCustomizerTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/customizers/VertxOptionsCustomizerTest.java index 47cc596be71a1..1e19edf7f57f7 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/customizers/VertxOptionsCustomizerTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/customizers/VertxOptionsCustomizerTest.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.customizers; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/HeadersMessageConsumerMethodTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/HeadersMessageConsumerMethodTest.java index e929f6d435d6c..47e6f9c2ff5a8 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/HeadersMessageConsumerMethodTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/HeadersMessageConsumerMethodTest.java @@ -12,8 +12,8 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerContextTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerContextTest.java index cc80a52a62335..393a4720d7314 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerContextTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerContextTest.java @@ -8,8 +8,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.RepeatedTest; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerFailureTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerFailureTest.java index 938df4ab9ee51..c282c6c1bb49a 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerFailureTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerFailureTest.java @@ -10,7 +10,7 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerMethodTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerMethodTest.java index 3fd71db859df2..abb459f515f87 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerMethodTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/MessageConsumerMethodTest.java @@ -14,8 +14,8 @@ import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/NonVoidMessageConsumerTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/NonVoidMessageConsumerTest.java index 3ffabfb8dfc58..36bf36bcce842 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/NonVoidMessageConsumerTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/NonVoidMessageConsumerTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/RequestContextTerminationTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/RequestContextTerminationTest.java index 85a6da915da98..26ae7792e998e 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/RequestContextTerminationTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/RequestContextTerminationTest.java @@ -11,9 +11,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithClassNameDeploymentTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithClassNameDeploymentTest.java index 5f97590be5f25..87467cb4f4678 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithClassNameDeploymentTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithClassNameDeploymentTest.java @@ -2,8 +2,8 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithInstanceDeploymentTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithInstanceDeploymentTest.java index 374b933901c67..fd5a0aaa060e7 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithInstanceDeploymentTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VerticleWithInstanceDeploymentTest.java @@ -2,8 +2,8 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxCommonProducerTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxCommonProducerTest.java index 29638bf251a58..62132dc16b5dc 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxCommonProducerTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxCommonProducerTest.java @@ -4,8 +4,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxInjectionTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxInjectionTest.java index 3961b2dcd7aa4..96b32b4863142 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxInjectionTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxInjectionTest.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.deployment; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxLoggingTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxLoggingTest.java index 9c77a212b4a55..e79a05c241bdb 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxLoggingTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxLoggingTest.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.deployment; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxProducerTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxProducerTest.java index 4ae371e668a60..378685da9ec48 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxProducerTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/deployment/VertxProducerTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/locals/LocalContextAccessTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/locals/LocalContextAccessTest.java index 35c465a2d7f2c..f6e0fcc7befa2 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/locals/LocalContextAccessTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/locals/LocalContextAccessTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.assertj.core.api.Assertions; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/InMemoryLogHandlerProducer.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/InMemoryLogHandlerProducer.java index 84f25fe074b20..844aea4a5200c 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/InMemoryLogHandlerProducer.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/InMemoryLogHandlerProducer.java @@ -1,9 +1,9 @@ package io.quarkus.vertx.mdc; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.quarkus.bootstrap.logging.InitialConfigurator; import io.quarkus.runtime.ShutdownEvent; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VerticleDeployer.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VerticleDeployer.java index 3d181fd170b94..b08d9dc8b7c98 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VerticleDeployer.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VerticleDeployer.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.mdc; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.jboss.logging.MDC; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VertxMDCTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VertxMDCTest.java index e7149236b0510..9d42a80fbf728 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VertxMDCTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/mdc/VertxMDCTest.java @@ -19,7 +19,7 @@ import java.util.stream.IntStream; import java.util.stream.Stream; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.logging.Logger; import org.jboss.logging.MDC; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyBeanVerticle.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyBeanVerticle.java index b39c4e85376d8..4d40500b6f850 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyBeanVerticle.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyBeanVerticle.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.verticles; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyUndeployedVerticle.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyUndeployedVerticle.java index 8d09e2c02753b..e8392532d9a7a 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyUndeployedVerticle.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/MyUndeployedVerticle.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.verticles; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.vertx.core.AbstractVerticle; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/NotDeployedVerticle.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/NotDeployedVerticle.java index b313e1e2b8450..d6e1d98c51226 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/NotDeployedVerticle.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/NotDeployedVerticle.java @@ -1,6 +1,6 @@ package io.quarkus.vertx.verticles; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.vertx.core.AbstractVerticle; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeployer.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeployer.java index c968583bc3025..4f2141387c160 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeployer.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeployer.java @@ -1,8 +1,8 @@ package io.quarkus.vertx.verticles; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.mutiny.core.Vertx; diff --git a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeploymentTest.java b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeploymentTest.java index 942714065bcfd..62a465c385530 100644 --- a/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeploymentTest.java +++ b/extensions/vertx/deployment/src/test/java/io/quarkus/vertx/verticles/VerticleDeploymentTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/VertxProducer.java b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/VertxProducer.java index 822b59543fd63..7e1dd5230130b 100644 --- a/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/VertxProducer.java +++ b/extensions/vertx/runtime/src/main/java/io/quarkus/vertx/runtime/VertxProducer.java @@ -2,15 +2,15 @@ import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.spi.Context; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.spi.Context; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/extensions/webjars-locator/deployment/src/test/java/io/quarkus/webjar/locator/test/PostResource.java b/extensions/webjars-locator/deployment/src/test/java/io/quarkus/webjar/locator/test/PostResource.java index 5343f3c6393ed..f595f6478dcdf 100644 --- a/extensions/webjars-locator/deployment/src/test/java/io/quarkus/webjar/locator/test/PostResource.java +++ b/extensions/webjars-locator/deployment/src/test/java/io/quarkus/webjar/locator/test/PostResource.java @@ -1,8 +1,8 @@ package io.quarkus.webjar.locator.test; -import javax.annotation.PreDestroy; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.PreDestroy; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/post") public class PostResource { diff --git a/extensions/websockets/client/deployment/src/main/java/io/quarkus/websockets/client/deployment/WebsocketClientProcessor.java b/extensions/websockets/client/deployment/src/main/java/io/quarkus/websockets/client/deployment/WebsocketClientProcessor.java index d66ea74330cb6..b225246309f51 100644 --- a/extensions/websockets/client/deployment/src/main/java/io/quarkus/websockets/client/deployment/WebsocketClientProcessor.java +++ b/extensions/websockets/client/deployment/src/main/java/io/quarkus/websockets/client/deployment/WebsocketClientProcessor.java @@ -7,13 +7,13 @@ import java.util.Optional; import java.util.Set; -import javax.websocket.ClientEndpoint; -import javax.websocket.ClientEndpointConfig; -import javax.websocket.ContainerProvider; -import javax.websocket.Endpoint; -import javax.websocket.server.ServerApplicationConfig; -import javax.websocket.server.ServerContainer; -import javax.websocket.server.ServerEndpointConfig; +import jakarta.websocket.ClientEndpoint; +import jakarta.websocket.ClientEndpointConfig; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.Endpoint; +import jakarta.websocket.server.ServerApplicationConfig; +import jakarta.websocket.server.ServerContainer; +import jakarta.websocket.server.ServerEndpointConfig; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/TestWebSocketClient.java b/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/TestWebSocketClient.java index 83744638f7a29..4e8a37d6295fb 100644 --- a/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/TestWebSocketClient.java +++ b/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/TestWebSocketClient.java @@ -3,8 +3,8 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ClientEndpoint; -import javax.websocket.OnMessage; +import jakarta.websocket.ClientEndpoint; +import jakarta.websocket.OnMessage; @ClientEndpoint public class TestWebSocketClient { diff --git a/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/WebSocketClientTestCase.java b/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/WebSocketClientTestCase.java index 0324e23e757dd..f9c8fa9bdb916 100644 --- a/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/WebSocketClientTestCase.java +++ b/extensions/websockets/client/deployment/src/test/java/io/quarkus/websockets/test/WebSocketClientTestCase.java @@ -6,7 +6,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.websocket.ContainerProvider; +import jakarta.websocket.ContainerProvider; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java index 9ad0b31a49d1b..7953ef312bc6b 100644 --- a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java +++ b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java @@ -5,10 +5,11 @@ import java.util.Map; import javax.net.ssl.SSLContext; -import javax.websocket.ClientEndpointConfig; -import javax.websocket.Decoder; -import javax.websocket.Encoder; -import javax.websocket.Extension; + +import jakarta.websocket.ClientEndpointConfig; +import jakarta.websocket.Decoder; +import jakarta.websocket.Encoder; +import jakarta.websocket.Extension; import io.vertx.core.http.HttpHeaders; @@ -55,6 +56,7 @@ public Map getUserProperties() { return Collections.emptyMap(); } + @Override public SSLContext getSSLContext() { return null; } diff --git a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/ServerWebSocketContainerFactory.java b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/ServerWebSocketContainerFactory.java index 57e610501c831..54e3c8442be88 100644 --- a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/ServerWebSocketContainerFactory.java +++ b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/ServerWebSocketContainerFactory.java @@ -6,7 +6,7 @@ import java.util.concurrent.Executor; import java.util.function.Supplier; -import javax.websocket.Extension; +import jakarta.websocket.Extension; import io.netty.channel.EventLoopGroup; import io.undertow.websockets.ServerWebSocketContainer; diff --git a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/WebsocketCoreRecorder.java b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/WebsocketCoreRecorder.java index 670656f1a0a5a..9e97fa2c37da5 100644 --- a/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/WebsocketCoreRecorder.java +++ b/extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/client/runtime/WebsocketCoreRecorder.java @@ -7,11 +7,11 @@ import java.util.concurrent.Executor; import java.util.function.Supplier; -import javax.enterprise.inject.Instance; -import javax.websocket.DeploymentException; -import javax.websocket.Endpoint; -import javax.websocket.server.ServerApplicationConfig; -import javax.websocket.server.ServerEndpointConfig; +import jakarta.enterprise.inject.Instance; +import jakarta.websocket.DeploymentException; +import jakarta.websocket.Endpoint; +import jakarta.websocket.server.ServerApplicationConfig; +import jakarta.websocket.server.ServerEndpointConfig; import org.jboss.logging.Logger; diff --git a/extensions/websockets/server/deployment/src/main/java/io/quarkus/websockets/deployment/ServerWebSocketProcessor.java b/extensions/websockets/server/deployment/src/main/java/io/quarkus/websockets/deployment/ServerWebSocketProcessor.java index cbff174071b16..9f1c5f308e064 100644 --- a/extensions/websockets/server/deployment/src/main/java/io/quarkus/websockets/deployment/ServerWebSocketProcessor.java +++ b/extensions/websockets/server/deployment/src/main/java/io/quarkus/websockets/deployment/ServerWebSocketProcessor.java @@ -4,7 +4,7 @@ import java.util.Collection; import java.util.Optional; -import javax.websocket.server.ServerEndpoint; +import jakarta.websocket.server.ServerEndpoint; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoService.java b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoService.java index e8258090f203b..860feb18a38e8 100644 --- a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoService.java +++ b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoService.java @@ -1,6 +1,6 @@ package io.quarkus.websockets.test; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class EchoService { diff --git a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoWebSocket.java b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoWebSocket.java index 1f5c7a84c4a4b..205d0d6b6910d 100644 --- a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoWebSocket.java +++ b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/EchoWebSocket.java @@ -1,8 +1,8 @@ package io.quarkus.websockets.test; -import javax.inject.Inject; -import javax.websocket.OnMessage; -import javax.websocket.server.ServerEndpoint; +import jakarta.inject.Inject; +import jakarta.websocket.OnMessage; +import jakarta.websocket.server.ServerEndpoint; @ServerEndpoint("/echo") public class EchoWebSocket { diff --git a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketDevModeTestCase.java b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketDevModeTestCase.java index bc7aaac5fe6a9..d23764ca5296a 100644 --- a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketDevModeTestCase.java +++ b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketDevModeTestCase.java @@ -5,12 +5,12 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.websocket.ClientEndpointConfig; -import javax.websocket.ContainerProvider; -import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.MessageHandler; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpointConfig; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.Endpoint; +import jakarta.websocket.EndpointConfig; +import jakarta.websocket.MessageHandler; +import jakarta.websocket.Session; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketRootPathTestCase.java b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketRootPathTestCase.java index 84e353941dc56..a0c823eb99fc9 100644 --- a/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketRootPathTestCase.java +++ b/extensions/websockets/server/deployment/src/test/java/io/quarkus/websockets/test/WebsocketRootPathTestCase.java @@ -4,12 +4,12 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ClientEndpointConfig; -import javax.websocket.ContainerProvider; -import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.MessageHandler; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpointConfig; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.Endpoint; +import jakarta.websocket.EndpointConfig; +import jakarta.websocket.MessageHandler; +import jakarta.websocket.Session; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Assertions; diff --git a/extensions/websockets/server/runtime/src/main/java/io/quarkus/websockets/runtime/WebsocketServerRecorder.java b/extensions/websockets/server/runtime/src/main/java/io/quarkus/websockets/runtime/WebsocketServerRecorder.java index 51016e71247e1..d5ddec395d3db 100644 --- a/extensions/websockets/server/runtime/src/main/java/io/quarkus/websockets/runtime/WebsocketServerRecorder.java +++ b/extensions/websockets/server/runtime/src/main/java/io/quarkus/websockets/runtime/WebsocketServerRecorder.java @@ -7,8 +7,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Supplier; -import javax.websocket.DeploymentException; -import javax.websocket.Extension; +import jakarta.websocket.DeploymentException; +import jakarta.websocket.Extension; import org.jboss.logging.Logger; diff --git a/independent-projects/arc/pom.xml b/independent-projects/arc/pom.xml index 963f7c57c6403..beffa29e305c8 100644 --- a/independent-projects/arc/pom.xml +++ b/independent-projects/arc/pom.xml @@ -35,21 +35,23 @@ + 1.0.0 + 5.0.0 UTF-8 11 11 11 - 2.0.2 - 1.3.3 + 4.0.1 + 2.0.1 3.0.5 5.9.2 3.8.7 3.24.2 3.5.0.Final - 1.3.5 + 2.1.1 1.6.0.Final - 2.2.3 + 3.0.0 1.8.0 3.0.0-M8 diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java index 4a6dd5c88542b..12c9f10614ccd 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanArchives.java @@ -16,15 +16,15 @@ import java.util.Queue; import java.util.Set; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.Model; -import javax.inject.Named; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Intercepted; +import jakarta.enterprise.inject.Model; +import jakarta.inject.Named; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java index c1377c40cf962..42c1177ed4736 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfigurator.java @@ -10,7 +10,7 @@ import org.jboss.jandex.DotName; /** - * Synthetic bean configurator. An alternative to {@link javax.enterprise.inject.spi.configurator.BeanConfigurator}. + * Synthetic bean configurator. An alternative to {@link jakarta.enterprise.inject.spi.configurator.BeanConfigurator}. *

    * This construct is not thread-safe and should not be re-used. * diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfiguratorBase.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfiguratorBase.java index a37f616558041..fa2730bba6518 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfiguratorBase.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanConfiguratorBase.java @@ -10,8 +10,8 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.context.NormalScope; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.NormalScope; +import jakarta.enterprise.context.spi.CreationalContext; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; @@ -158,7 +158,8 @@ public THIS name(String name) { } /** - * Unlike for the {@link #name(String)} method a new {@link javax.inject.Named} qualifier with the specified value is added + * Unlike for the {@link #name(String)} method a new {@link jakarta.inject.Named} qualifier with the specified value is + * added * to the configured bean. * * @param name diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java index dad5f355c0d2d..c2fb9ac8493d8 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java @@ -25,9 +25,9 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.event.Reception; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java index 7b93819ac93a3..55d080c87f5d3 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeploymentValidator.java @@ -3,7 +3,7 @@ import java.util.Collection; import java.util.List; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; /** * Makes it possible to validate the bean deployment and also to skip some validation rules for specific components. diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index fea18c51b3f30..323dd070705ba 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -25,13 +25,13 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.CreationException; -import javax.enterprise.inject.IllegalProductException; -import javax.enterprise.inject.literal.InjectLiteral; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.CreationException; +import jakarta.enterprise.inject.IllegalProductException; +import jakarta.enterprise.inject.literal.InjectLiteral; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java index b71636e5899b8..b1d40056dff4c 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java @@ -18,9 +18,9 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.DeploymentException; -import javax.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.InterceptionType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java index 6e187fd6cf774..54fb313bceb20 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanProcessor.java @@ -23,7 +23,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; @@ -687,7 +687,7 @@ public void setAllowMocking(boolean allowMocking) { *

  • does not have a name,
  • *
  • does not declare an observer,
  • *
  • does not declare any producer which is eligible for injection to any injection point,
  • - *
  • is not directly eligible for injection into any {@link javax.enterprise.inject.Instance} injection point
  • + *
  • is not directly eligible for injection into any {@link jakarta.enterprise.inject.Instance} injection point
  • * * * @param removeUnusedBeans diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java index 45c2febb4a6a9..c4be961818557 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolver.java @@ -3,7 +3,7 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.AmbiguousResolutionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.Type; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolverImpl.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolverImpl.java index 2be7e8e9fd397..45b71117afc16 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolverImpl.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanResolverImpl.java @@ -17,7 +17,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.AmbiguousResolutionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassType; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java index b22eaeaa4e83b..ff6515f5462e1 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Beans.java @@ -14,10 +14,10 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.enterprise.inject.AmbiguousResolutionException; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java index 2b64aadfa9d2f..34b5c6c80becd 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinBean.java @@ -10,7 +10,7 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; @@ -222,7 +222,7 @@ private static void generateEventBytecode(GeneratorContext ctx) { ResultHandle qualifiers = ctx.constructor.newInstance(MethodDescriptor.ofConstructor(HashSet.class)); if (!ctx.injectionPoint.getRequiredQualifiers().isEmpty()) { // Set instanceProvider1Qualifiers = new HashSet<>() - // instanceProvider1Qualifiers.add(javax.enterprise.inject.Default.Literal.INSTANCE) + // instanceProvider1Qualifiers.add(jakarta.enterprise.inject.Default.Literal.INSTANCE) for (AnnotationInstance qualifierAnnotation : ctx.injectionPoint.getRequiredQualifiers()) { BuiltinQualifier qualifier = BuiltinQualifier.of(qualifierAnnotation); @@ -342,15 +342,15 @@ private static void validateInstance(InjectionTargetInfo injectionTarget, Inject Consumer errors) { if (injectionPoint.getType().kind() != Kind.PARAMETERIZED_TYPE) { errors.accept( - new DefinitionException("An injection point of raw type javax.enterprise.inject.Instance is defined: " + new DefinitionException("An injection point of raw type jakarta.enterprise.inject.Instance is defined: " + injectionPoint.getTargetInfo())); } else if (injectionPoint.getRequiredType().kind() == Kind.WILDCARD_TYPE) { errors.accept( - new DefinitionException("Wildcard is not a legal type argument for javax.enterprise.inject.Instance: " + + new DefinitionException("Wildcard is not a legal type argument for jakarta.enterprise.inject.Instance: " + injectionPoint.getTargetInfo())); } else if (injectionPoint.getRequiredType().kind() == Kind.TYPE_VARIABLE) { errors.accept(new DefinitionException( - "Type variable is not a legal type argument for javax.enterprise.inject.Instance: " + + "Type variable is not a legal type argument for jakarta.enterprise.inject.Instance: " + injectionPoint.getTargetInfo())); } } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java index be7a9593e7e10..c327aa7a427ed 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinQualifier.java @@ -2,8 +2,8 @@ import java.util.Collections; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; import org.jboss.jandex.AnnotationInstance; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinScope.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinScope.java index d82db985f3f3d..d664b561671e1 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinScope.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BuiltinScope.java @@ -2,10 +2,10 @@ import java.lang.annotation.Annotation; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java index c94a00dacc1d5..ab8f8959372f2 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ContextConfigurator.java @@ -9,7 +9,7 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.enterprise.context.NormalScope; +import jakarta.enterprise.context.NormalScope; import io.quarkus.arc.ContextCreator; import io.quarkus.arc.InjectableContext; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Decorators.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Decorators.java index efb373a015d12..8c590ad6c92b2 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Decorators.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Decorators.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java index 36154d5d65838..7b0a75d9dc251 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DisposerInfo.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java index 49c68aee322ff..da22e32021567 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java @@ -9,45 +9,45 @@ import java.util.OptionalInt; import java.util.OptionalLong; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.TransientReference; -import javax.enterprise.inject.Typed; -import javax.enterprise.inject.Vetoed; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.EventMetadata; -import javax.enterprise.inject.spi.Extension; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.Nonbinding; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Provider; -import javax.inject.Qualifier; -import javax.inject.Singleton; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Intercepted; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.TransientReference; +import jakarta.enterprise.inject.Typed; +import jakarta.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.enterprise.inject.spi.Extension; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Provider; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java index 3bc805bc94fdc..c5b6d86ee76db 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Injection.java @@ -9,7 +9,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java index 78466bf6b7ac6..1c7fc38972e45 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InjectionPointInfo.java @@ -14,7 +14,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Predicate; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorBindingRegistrar.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorBindingRegistrar.java index 1412b55312c5d..e9c737780c16f 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorBindingRegistrar.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorBindingRegistrar.java @@ -6,7 +6,7 @@ import java.util.Set; import java.util.function.Predicate; -import javax.enterprise.util.Nonbinding; +import jakarta.enterprise.util.Nonbinding; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java index cfd885fbfb6a3..0ce5a09586659 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorGenerator.java @@ -14,8 +14,8 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; @@ -180,7 +180,7 @@ protected void implementGetPriority(ClassCreator creator, InterceptorInfo interc /** * * @return the method - * @see InjectableInterceptor#intercepts(javax.enterprise.inject.spi.InterceptionType) + * @see InjectableInterceptor#intercepts(jakarta.enterprise.inject.spi.InterceptionType) */ protected void implementIntercepts(ClassCreator creator, InterceptorInfo interceptor) { MethodCreator intercepts = creator.getMethodCreator("intercepts", boolean.class, InterceptionType.class) @@ -206,7 +206,7 @@ private void addIntercepts(InterceptorInfo interceptor, InterceptionType interce /** * - * @see InjectableInterceptor#intercept(InterceptionType, Object, javax.interceptor.InvocationContext) + * @see InjectableInterceptor#intercept(InterceptionType, Object, jakarta.interceptor.InvocationContext) */ protected void implementIntercept(ClassCreator creator, InterceptorInfo interceptor, ProviderType providerType, ReflectionRegistration reflectionRegistration, boolean isApplicationClass) { diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java index cafe46771b218..2438fe6045ac9 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java @@ -9,7 +9,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.InterceptionType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; @@ -90,7 +90,7 @@ private MethodInfo validateSignature(MethodInfo method) { if (parameters.size() != 1 || !(parameters.get(0).name().equals(DotNames.INVOCATION_CONTEXT) || parameters.get(0).name().equals(DotNames.ARC_INVOCATION_CONTEXT))) { throw new IllegalStateException( - "An interceptor method must accept exactly one parameter of type javax.interceptor.InvocationContext: " + "An interceptor method must accept exactly one parameter of type jakarta.interceptor.InvocationContext: " + method + " declared on " + method.declaringClass()); } if (!method.returnType().kind().equals(Type.Kind.VOID) && diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java index 2b6f07aa3e9f0..4ef049210a6ba 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorResolver.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.InterceptionType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java index 5cbb002271ee1..ffdfa737f351e 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Interceptors.java @@ -4,7 +4,7 @@ import java.util.HashSet; import java.util.Set; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java index f1762c7db4aa7..970c768e45c31 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java @@ -12,12 +12,12 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.context.spi.Context; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.EventMetadata; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.spi.Context; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java index f993b93ea534f..4f1d0eb4f743f 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java @@ -15,7 +15,7 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.inject.spi.DeploymentException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverConfigurator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverConfigurator.java index 01ece104c26b0..b498242cdc2f4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverConfigurator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverConfigurator.java @@ -6,8 +6,8 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.spi.ObserverMethod; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java index 5db8a410af2fe..608e74cb56445 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverGenerator.java @@ -23,12 +23,12 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.ObserverMethod; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java index c593fa4d423f0..009188098f290 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverInfo.java @@ -12,10 +12,10 @@ import java.util.Set; import java.util.function.Consumer; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.ObserverMethod; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverTransformer.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverTransformer.java index 146d7739a71ba..3d7883c42ae3b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverTransformer.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/ObserverTransformer.java @@ -3,8 +3,8 @@ import java.util.Collection; import java.util.Set; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.MethodInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/QualifierRegistrar.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/QualifierRegistrar.java index 0c275eeeb338f..f9301c3d8b01a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/QualifierRegistrar.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/QualifierRegistrar.java @@ -3,7 +3,7 @@ import java.util.Map; import java.util.Set; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; import org.jboss.jandex.DotName; @@ -14,7 +14,8 @@ public interface QualifierRegistrar extends BuildExtension { /** * Returns a map of additional qualifers where the key represents the annotation type and the value is an optional set of - * non-binding members. Here, "non-binding" is meant in the sense of {@code javax.enterprise.util.Nonbinding}. I.e. members + * non-binding members. Here, "non-binding" is meant in the sense of {@code jakarta.enterprise.util.Nonbinding}. I.e. + * members * named in the set will be ignored when the CDI container is selecting a bean instance for a particular injection point. */ Map> getAdditionalQualifiers(); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeRegistrar.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeRegistrar.java index 1c8259569ef04..bb195fc3c763a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeRegistrar.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/StereotypeRegistrar.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.Stereotype; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java index 4f3da34dd5eff..dcd1c2cfa8696 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java @@ -23,9 +23,9 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index 92f61b5a91c1a..aeb52b2e97195 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -16,7 +16,7 @@ import java.util.Set; import java.util.function.BiConsumer; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/AnnotationLiteralProcessorTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/AnnotationLiteralProcessorTest.java index 35ed23d0d5dca..8f1685614a581 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/AnnotationLiteralProcessorTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/AnnotationLiteralProcessorTest.java @@ -10,7 +10,7 @@ import java.util.Collection; import java.util.Collections; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java index c45159d440a80..463818dd2ef76 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java index bcf5651f7bb2a..b9153c14d6ad3 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/TypesTest.java @@ -16,7 +16,7 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java index 827bc41a81e2e..07cd8b446d84e 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Bar.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class Bar { diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java index 2258a70e3716d..9a6dbb15b211f 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Baz.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; @Dependent public class Baz { diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java index eee8bc6102bd4..0efda9f9c02a3 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/Foo.java @@ -2,9 +2,9 @@ import java.util.AbstractList; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Default; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Default; @Dependent @Default diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java index aae68ef90f8d0..9e2d732b9f797 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/types/FooQualifier.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.inject.Qualifier; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Qualifier; @Qualifier @Inherited diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/All.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/All.java index cbe377b26d3db..c1f2c5c108262 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/All.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/All.java @@ -10,10 +10,10 @@ import java.lang.annotation.Target; import java.util.List; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * The container provides a synthetic bean for an injection point with the required type {@link List} and the required qualifier diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AlternativePriority.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AlternativePriority.java index 0c48f47a847d2..48be16ec02521 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AlternativePriority.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AlternativePriority.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Alternative; /** * If a bean is annotated with this annotation, it is considered an enabled alternative with given priority. @@ -13,7 +13,7 @@ * * This annotation can be used not only on bean classes, but also method and field producers (unlike pure {@code Priority}). * - * @deprecated Use {@link Alternative} and {@link io.quarkus.arc.Priority}/{@link javax.annotation.Priority} instead + * @deprecated Use {@link Alternative} and {@link io.quarkus.arc.Priority}/{@link jakarta.annotation.Priority} instead */ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.METHOD, ElementType.TYPE, ElementType.FIELD }) diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java index 19f49a9b2de57..7dcbcbbedb8a6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcContainer.java @@ -7,10 +7,10 @@ import java.util.concurrent.ExecutorService; import java.util.function.Supplier; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.util.TypeLiteral; /** * Represents a container instance. @@ -21,7 +21,7 @@ public interface ArcContainer { /** * Unlike {@link BeanManager#getContext(Class)} this method does not throw - * {@link javax.enterprise.context.ContextNotActiveException} if there is no active context for the given + * {@link jakarta.enterprise.context.ContextNotActiveException} if there is no active context for the given * scope. * * @param scopeType @@ -199,7 +199,7 @@ public interface ArcContainer { /** * Note that ambiguous names are detected at build time. Therefore, unlike - * {@link javax.enterprise.inject.spi.BeanManager.getBeans(String)} this method either returns a resolved bean or + * {@link jakarta.enterprise.inject.spi.BeanManager.getBeans(String)} this method either returns a resolved bean or * {@code null} if no bean matches. * * @param name @@ -211,7 +211,7 @@ public interface ArcContainer { /** * This method never throws {@link ContextNotActiveException}. * - * @return the built-in context for {@link javax.enterprise.context.RequestScoped} + * @return the built-in context for {@link jakarta.enterprise.context.RequestScoped} */ ManagedContext requestContext(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcInvocationContext.java index a27daed536e0f..b15982d545b88 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ArcInvocationContext.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.Set; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; /** * Enhanced version of {@link InvocationContext}. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncObserverExceptionHandler.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncObserverExceptionHandler.java index f5bc805fe4f5b..c93fc8aa566af 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncObserverExceptionHandler.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/AsyncObserverExceptionHandler.java @@ -1,17 +1,17 @@ package io.quarkus.arc; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.ObserverMethod; /** * Handles an exception thrown by an asynchronous observer. By default, an error message is logged. *

    * Note that the exception aborts processing of the observer but not of the async event. *

    - * A bean that implements this interface should be {@link javax.inject.Singleton} or - * {@link javax.enterprise.context.ApplicationScoped}. + * A bean that implements this interface should be {@link jakarta.inject.Singleton} or + * {@link jakarta.enterprise.context.ApplicationScoped}. * - * @see javax.enterprise.event.ObservesAsync + * @see jakarta.enterprise.event.ObservesAsync */ public interface AsyncObserverExceptionHandler { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java index ac5f36e23f98e..b8c56b79345b1 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanCreator.java @@ -2,8 +2,8 @@ import java.util.Map; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; /** * It can be used by synthetic {@link InjectableBean} definitions to produce a contextual instance. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java index d50fdc3f638fd..c5eeb0af51d43 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/BeanDestroyer.java @@ -4,8 +4,8 @@ import java.io.IOException; import java.util.Map; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; /** * It can be used by synthetic {@link InjectableBean} definitions to destroy a contextual instance. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java index 2d782dd059cf7..3aed342708994 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Components.java @@ -54,7 +54,7 @@ public Supplier> getRemovedBeans() { * Values in the map are never null. * * @return a map of fully-qualified class names of all custom qualifiers to the set of non-binding members - * @see javax.enterprise.util.Nonbinding + * @see jakarta.enterprise.util.Nonbinding */ public Map> getQualifierNonbindingMembers() { return qualifierNonbindingMembers; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandle.java index 17d0dd5f9e3ac..35b87182ee9a5 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/ContextInstanceHandle.java @@ -9,7 +9,7 @@ public interface ContextInstanceHandle extends InstanceHandle { /** * Destroy the instance as defined by - * {@link javax.enterprise.context.spi.Contextual#destroy(Object, javax.enterprise.context.spi.CreationalContext)}. + * {@link jakarta.enterprise.context.spi.Contextual#destroy(Object, jakarta.enterprise.context.spi.CreationalContext)}. */ void destroy(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentContextFactory.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentContextFactory.java index 811600e553846..c448fe65f4103 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentContextFactory.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/CurrentContextFactory.java @@ -6,8 +6,8 @@ /** * This factory can be used to create a new {@link CurrentContext} for a normal scope, e.g. for - * {@link javax.enterprise.context.RequestScoped}. It's usually not necessary for shared contexts, such as - * {@link javax.enterprise.context.ApplicationScoped}. + * {@link jakarta.enterprise.context.RequestScoped}. It's usually not necessary for shared contexts, such as + * {@link jakarta.enterprise.context.ApplicationScoped}. */ public interface CurrentContextFactory { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java index 129c418bcbb7b..4e058aa521754 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableBean.java @@ -5,11 +5,11 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.impl.Qualifiers; @@ -130,7 +130,7 @@ default boolean isSuppressed() { /** * A bean may have a priority assigned. *

    - * Class-based beans can specify the priority declaratively via {@link javax.annotation.Priority} and + * Class-based beans can specify the priority declaratively via {@link jakarta.annotation.Priority} and * {@link io.quarkus.arc.Priority}. If no priority annotation is used then a bean has the priority of value 0. *

    * This priority is used to sort the resolved beans when performing programmatic lookup via diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java index e03e954a5e1e0..027b5c2bc5ef8 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableContext.java @@ -3,11 +3,11 @@ import java.util.Map; import java.util.function.Function; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.NormalScope; -import javax.enterprise.context.spi.AlterableContext; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.NormalScope; +import jakarta.enterprise.context.spi.AlterableContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; /** * A context implementing this interface makes it possible to capture and view its state via the {@link ContextState}. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableDecorator.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableDecorator.java index b6135d3802b7b..98af86b9f6a11 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableDecorator.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableDecorator.java @@ -1,6 +1,6 @@ package io.quarkus.arc; -import javax.enterprise.inject.spi.Decorator; +import jakarta.enterprise.inject.spi.Decorator; /** * Quarkus representation of a decorator bean. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInstance.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInstance.java index 1cdd2efaf401e..6c205741e39f1 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInstance.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInstance.java @@ -3,9 +3,9 @@ import java.lang.annotation.Annotation; import java.util.Iterator; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.util.TypeLiteral; /** * Enhanced version of {@link Instance}. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java index 8f3ba72393663..77c3fc2fca8f6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableInterceptor.java @@ -1,6 +1,6 @@ package io.quarkus.arc; -import javax.enterprise.inject.spi.Interceptor; +import jakarta.enterprise.inject.spi.Interceptor; /** * Quarkus representation of an interceptor bean. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java index 29e139bbcda7e..2ecc487e587c9 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableObserverMethod.java @@ -4,9 +4,9 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.event.Reception; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.event.Reception; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.spi.ObserverMethod; /** * Represents an observer method. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java index fabf2583c7afc..22763ccde57d9 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InjectableReferenceProvider.java @@ -1,6 +1,6 @@ package io.quarkus.arc; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; /** * diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java index 9d08d1a9083ca..e3845a27ba81a 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java @@ -1,7 +1,7 @@ package io.quarkus.arc; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.spi.AlterableContext; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.spi.AlterableContext; /** * Represents an instance handle. @@ -40,10 +40,11 @@ default T orElse(T other) { /** * Destroy the instance as defined by - * {@link javax.enterprise.context.spi.Contextual#destroy(Object, javax.enterprise.context.spi.CreationalContext)}. If this + * {@link jakarta.enterprise.context.spi.Contextual#destroy(Object, jakarta.enterprise.context.spi.CreationalContext)}. If + * this * is a CDI contextual instance it is also removed from the underlying context. * - * @see AlterableContext#destroy(javax.enterprise.context.spi.Contextual) + * @see AlterableContext#destroy(jakarta.enterprise.context.spi.Contextual) */ default void destroy() { // No-op diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Lock.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Lock.java index 150d9f920ae67..1193f13f74eb6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Lock.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Lock.java @@ -10,8 +10,8 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReadWriteLock; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; /** * Defines a concurrency lock for a bean. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Priority.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Priority.java index f45df5e621c23..b07211ebb4127 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Priority.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Priority.java @@ -6,11 +6,12 @@ import java.lang.annotation.Target; /** - * This annotation has the same semantics as {@link javax.annotation.Priority} except that the {@link Target} meta-annotation is + * This annotation has the same semantics as {@link jakarta.annotation.Priority} except that the {@link Target} meta-annotation + * is * not present. The main motivation is to support method and field declarations, i.e. this annotation can be used for producer * methods and fields. Note that this problem is fixed in Common Annotations 2.1. *

    - * A priority specified by {@link AlternativePriority} and {@link javax.annotation.Priority} takes precedence. + * A priority specified by {@link AlternativePriority} and {@link jakarta.annotation.Priority} takes precedence. */ @Retention(RUNTIME) public @interface Priority { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Unremovable.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Unremovable.java index 6bf3548a6be71..510435c10c3a6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Unremovable.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/Unremovable.java @@ -17,7 +17,8 @@ *

  • does not have a name,
  • *
  • does not declare an observer,
  • *
  • does not declare any producer which is eligible for injection to any injection point,
  • - *
  • is not directly eligible for injection into any `javax.enterprise.inject.Instance` or `javax.inject.Provider` injection + *
  • is not directly eligible for injection into any `jakarta.enterprise.inject.Instance` or `jakarta.inject.Provider` + * injection * point
  • * */ diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WithCaching.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WithCaching.java index c89b3feb4114d..57c9abbb2b909 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WithCaching.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/WithCaching.java @@ -7,8 +7,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; /** * An injected {@link Instance} annotated with this annotation will cache the result of the {@link Instance#get()} operation. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInstanceHandle.java index e2d622d84103e..8776486456e15 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInstanceHandle.java @@ -3,9 +3,9 @@ import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; import java.util.function.Consumer; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.spi.CreationalContext; import org.jboss.logging.Logger; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractSharedContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractSharedContext.java index 8900d1a0be5be..ab5f585af6523 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractSharedContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractSharedContext.java @@ -7,8 +7,8 @@ import java.util.function.Supplier; import java.util.stream.Collectors; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.ContextInstanceHandle; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java index 42909774ef55d..2ddd2fb68883f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ActivateRequestContextInterceptor.java @@ -3,11 +3,11 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.annotation.Priority; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ApplicationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ApplicationContext.java index 0754c7bbaf2a2..2bc60e6abc04d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ApplicationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ApplicationContext.java @@ -2,7 +2,7 @@ import java.lang.annotation.Annotation; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; class ApplicationContext extends AbstractSharedContext { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java index 7efb7ba85eafc..97712f0ae7295 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java @@ -3,11 +3,11 @@ import java.lang.annotation.Annotation; import java.util.Iterator; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; -import javax.enterprise.inject.spi.CDIProvider; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.CDIProvider; +import jakarta.enterprise.util.TypeLiteral; import io.quarkus.arc.Arc; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcContainerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcContainerImpl.java index 3c88386ab5925..803a685d5931d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcContainerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcContainerImpl.java @@ -26,28 +26,28 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.NormalScope; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Event; -import javax.enterprise.inject.AmbiguousResolutionException; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; -import javax.enterprise.inject.spi.Decorator; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.inject.spi.InterceptionType; -import javax.enterprise.inject.spi.Interceptor; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Scope; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.NormalScope; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.spi.Decorator; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.Interceptor; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Scope; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java index c964fc94642af..c2d76f8b092e9 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java @@ -7,7 +7,7 @@ import java.util.Set; import java.util.function.Function; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; /** * Special type of InvocationContext for AroundInvoke interceptors. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerBean.java index 40a0367b46274..15d44803fd392 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerBean.java @@ -3,8 +3,8 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.BeanManager; public class BeanManagerBean extends BuiltInBean { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java index 109155c4ced77..8cbd1b0064659 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java @@ -10,36 +10,36 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.el.ELResolver; -import javax.el.ExpressionFactory; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.spi.Context; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Event; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.enterprise.inject.spi.AnnotatedField; -import javax.enterprise.inject.spi.AnnotatedMember; -import javax.enterprise.inject.spi.AnnotatedMethod; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.AnnotatedType; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanAttributes; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.Decorator; -import javax.enterprise.inject.spi.Extension; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.inject.spi.InjectionTarget; -import javax.enterprise.inject.spi.InjectionTargetFactory; -import javax.enterprise.inject.spi.InterceptionFactory; -import javax.enterprise.inject.spi.InterceptionType; -import javax.enterprise.inject.spi.Interceptor; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.enterprise.inject.spi.ProducerFactory; -import javax.inject.Qualifier; -import javax.interceptor.InterceptorBinding; +import jakarta.el.ELResolver; +import jakarta.el.ExpressionFactory; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.spi.Context; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.spi.AnnotatedField; +import jakarta.enterprise.inject.spi.AnnotatedMember; +import jakarta.enterprise.inject.spi.AnnotatedMethod; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.AnnotatedType; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanAttributes; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.Decorator; +import jakarta.enterprise.inject.spi.Extension; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.inject.spi.InjectionTarget; +import jakarta.enterprise.inject.spi.InjectionTargetFactory; +import jakarta.enterprise.inject.spi.InterceptionFactory; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.Interceptor; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.inject.spi.ProducerFactory; +import jakarta.inject.Qualifier; +import jakarta.interceptor.InterceptorBinding; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerProvider.java index e2adf206ca47c..291c3294b9ed8 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerProvider.java @@ -1,7 +1,7 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.BeanManager; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanMetadataProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanMetadataProvider.java index e1004fec2bbf6..0907a676efebc 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanMetadataProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanMetadataProvider.java @@ -1,7 +1,7 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.Bean; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BuiltInBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BuiltInBean.java index 91db032697dbf..782f1b9558c47 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BuiltInBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BuiltInBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ClientProxies.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ClientProxies.java index 85bcd64f9e4e0..8a2417950e416 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ClientProxies.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ClientProxies.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.spi.Contextual; import io.quarkus.arc.Arc; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextDataMap.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextDataMap.java index 97e7e91cfab90..07ad96d54928e 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextDataMap.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextDataMap.java @@ -12,7 +12,7 @@ import java.util.Objects; import java.util.Set; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextInstanceHandleImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextInstanceHandleImpl.java index 88c3ab4a1a641..fcfce31cbe023 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextInstanceHandleImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ContextInstanceHandleImpl.java @@ -1,6 +1,6 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.ContextInstanceHandle; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Contexts.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Contexts.java index 33cae5c4955fd..af2567c577b9c 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Contexts.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Contexts.java @@ -9,9 +9,9 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Singleton; import io.quarkus.arc.InjectableContext; import io.quarkus.arc.ManagedContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CreationalContextImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CreationalContextImpl.java index 4da18083d7191..95bf2714e7ec4 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CreationalContextImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CreationalContextImpl.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.function.Function; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CurrentInjectionPointProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CurrentInjectionPointProvider.java index 2f21bbd7ab532..3ee2809f5504a 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CurrentInjectionPointProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/CurrentInjectionPointProvider.java @@ -14,16 +14,16 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.Annotated; -import javax.enterprise.inject.spi.AnnotatedCallable; -import javax.enterprise.inject.spi.AnnotatedConstructor; -import javax.enterprise.inject.spi.AnnotatedField; -import javax.enterprise.inject.spi.AnnotatedMethod; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.AnnotatedType; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.Annotated; +import jakarta.enterprise.inject.spi.AnnotatedCallable; +import jakarta.enterprise.inject.spi.AnnotatedConstructor; +import jakarta.enterprise.inject.spi.AnnotatedField; +import jakarta.enterprise.inject.spi.AnnotatedMethod; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.AnnotatedType; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DecoratorDelegateProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DecoratorDelegateProvider.java index 3afe7668e5178..d7ef2fede1a11 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DecoratorDelegateProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DecoratorDelegateProvider.java @@ -1,6 +1,6 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DefaultAsyncObserverExceptionHandler.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DefaultAsyncObserverExceptionHandler.java index e72d314832720..c1f983e284d4d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DefaultAsyncObserverExceptionHandler.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/DefaultAsyncObserverExceptionHandler.java @@ -1,8 +1,8 @@ package io.quarkus.arc.impl; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.inject.Singleton; import org.jboss.logging.Logger; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EagerInstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EagerInstanceHandle.java index e80cd5c1c7671..1ba2cf08159a6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EagerInstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EagerInstanceHandle.java @@ -2,7 +2,7 @@ import java.util.function.Consumer; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InstanceHandle; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventBean.java index 5da32f79160cc..c2b970db440fd 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventBean.java @@ -3,9 +3,9 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Event; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.inject.spi.InjectionPoint; public class EventBean extends BuiltInBean> { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventImpl.java index 3a428d799dc54..71dbb4d24d316 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventImpl.java @@ -2,7 +2,7 @@ import static io.quarkus.arc.impl.TypeCachePollutionUtils.asParameterizedType; import static io.quarkus.arc.impl.TypeCachePollutionUtils.isParameterizedType; -import static javax.transaction.Status.STATUS_COMMITTED; +import static jakarta.transaction.Status.STATUS_COMMITTED; import java.lang.annotation.Annotation; import java.lang.reflect.ParameterizedType; @@ -22,20 +22,20 @@ import java.util.function.Predicate; import java.util.function.Supplier; -import javax.enterprise.event.Event; -import javax.enterprise.event.NotificationOptions; -import javax.enterprise.event.ObserverException; -import javax.enterprise.event.TransactionPhase; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.EventMetadata; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.enterprise.util.TypeLiteral; -import javax.transaction.RollbackException; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.TransactionManager; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.NotificationOptions; +import jakarta.enterprise.event.ObserverException; +import jakarta.enterprise.event.TransactionPhase; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.transaction.RollbackException; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.TransactionManager; import org.jboss.logging.Logger; @@ -260,7 +260,7 @@ void notify(T event, ObserverExceptionHandler exceptionHandler, boolean async) { try { if (transactionManagerInstance.isAvailable() && - transactionManagerInstance.get().getStatus() == javax.transaction.Status.STATUS_ACTIVE) { + transactionManagerInstance.get().getStatus() == jakarta.transaction.Status.STATUS_ACTIVE) { // we have one or more transactional OM, and TransactionManager is available // we attempt to register a JTA synchronization List> deferredEvents = new ArrayList<>(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventProvider.java index 12baf664ebef4..e120ab942c0f7 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/EventProvider.java @@ -4,8 +4,8 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Event; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.event.Event; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Identified.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Identified.java index 943906717f41a..a33bb2297bf24 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Identified.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Identified.java @@ -9,8 +9,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; /** * Qualifies a bean with a string-based identifier. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InitializedInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InitializedInterceptor.java index 3832d54401daa..d6efa8b906401 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InitializedInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InitializedInterceptor.java @@ -4,9 +4,9 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.InjectableInterceptor; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableReferenceProviders.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableReferenceProviders.java index 4aca922bb5413..92ead3eba3fad 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableReferenceProviders.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableReferenceProviders.java @@ -1,7 +1,7 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableRequestContextController.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableRequestContextController.java index de041f88a6161..b7898b5ee36c6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableRequestContextController.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectableRequestContextController.java @@ -2,10 +2,10 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.control.RequestContextController; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.control.RequestContextController; import io.quarkus.arc.Arc; import io.quarkus.arc.ManagedContext; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointBean.java index 9aaee5f64a9e9..f65fce52d758d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointBean.java @@ -3,8 +3,8 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.InjectionPoint; public class InjectionPointBean extends BuiltInBean { private static final Set IP_TYPES = Set.of(InjectionPoint.class, Object.class); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointProvider.java index 08593713425e3..5dd28847b94b0 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InjectionPointProvider.java @@ -1,7 +1,7 @@ package io.quarkus.arc.impl; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceBean.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceBean.java index bbe1bab5b4923..16636137605ef 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceBean.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceBean.java @@ -4,9 +4,9 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceImpl.java index 4572094edfc6d..8e9d7d3f9df2d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceImpl.java @@ -16,14 +16,14 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.AmbiguousResolutionException; -import javax.enterprise.inject.UnsatisfiedResolutionException; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Provider; -import javax.inject.Singleton; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.AmbiguousResolutionException; +import jakarta.enterprise.inject.UnsatisfiedResolutionException; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Provider; +import jakarta.inject.Singleton; import io.quarkus.arc.Arc; import io.quarkus.arc.ClientProxy; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceProvider.java index 51cde16792933..013472e61ead4 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InstanceProvider.java @@ -5,8 +5,8 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Instance; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Instances.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Instances.java index 4e548bc65e8a4..afff1078bd8fa 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Instances.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Instances.java @@ -10,9 +10,9 @@ import java.util.Set; import java.util.function.Supplier; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.InjectionPoint; import io.quarkus.arc.InjectableBean; import io.quarkus.arc.InstanceHandle; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedBeanMetadataProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedBeanMetadataProvider.java index 2419db6af3fe7..1b919ce10860d 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedBeanMetadataProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedBeanMetadataProvider.java @@ -2,10 +2,10 @@ import static io.quarkus.arc.impl.CreationalContextImpl.unwrap; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Intercepted; +import jakarta.enterprise.inject.spi.Bean; import io.quarkus.arc.InjectableReferenceProvider; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java index 2bf04c1c85a7d..80c51464ecc36 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java @@ -4,7 +4,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.function.Function; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; public final class InterceptedStaticMethods { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptorInvocation.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptorInvocation.java index 3c8e235ac0434..8f26e8a734a51 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptorInvocation.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptorInvocation.java @@ -1,7 +1,7 @@ package io.quarkus.arc.impl; -import javax.enterprise.inject.spi.InterceptionType; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.InjectableInterceptor; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java index ef3c639431455..5132867850d2f 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java @@ -8,7 +8,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.InvocationContext; public final class InvocationContexts { @@ -62,7 +62,7 @@ public static InvocationContext preDestroy(Object target, List constructor, Object[] parameters, diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LazyInstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LazyInstanceHandle.java index 8c13e17465647..891a1c8397257 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LazyInstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LazyInstanceHandle.java @@ -3,7 +3,7 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableBean; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LockInterceptor.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LockInterceptor.java index 00a1289f3d778..46f94cb31cbd6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LockInterceptor.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LockInterceptor.java @@ -1,16 +1,16 @@ package io.quarkus.arc.impl; -import static javax.interceptor.Interceptor.Priority.PLATFORM_BEFORE; +import static jakarta.interceptor.Interceptor.Priority.PLATFORM_BEFORE; import java.lang.annotation.Annotation; import java.util.Set; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.ArcInvocationContext; import io.quarkus.arc.Lock; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Qualifiers.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Qualifiers.java index 216ed66668235..0c4dea580e2fb 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Qualifiers.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Qualifiers.java @@ -12,9 +12,9 @@ import java.util.Set; import java.util.function.BiFunction; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.util.Nonbinding; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.util.Nonbinding; public final class Qualifiers { diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java index 804d48862b104..79777725506d1 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/Reflections.java @@ -21,7 +21,7 @@ import java.util.Set; import java.util.function.Function; -import javax.enterprise.inject.CreationException; +import jakarta.enterprise.inject.CreationException; /** * Neither the class nor its methods are considered a public API and should only be used internally. diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/RequestContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/RequestContext.java index 2f9eb74464027..d0fef6b23ac76 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/RequestContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/RequestContext.java @@ -11,10 +11,10 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.spi.Contextual; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.spi.Contextual; +import jakarta.enterprise.context.spi.CreationalContext; import org.jboss.logging.Logger; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ResourceProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ResourceProvider.java index fe4a43f64102f..59a95f86cdec6 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ResourceProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ResourceProvider.java @@ -4,7 +4,7 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import io.quarkus.arc.InjectableReferenceProvider; import io.quarkus.arc.InstanceHandle; diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/SingletonContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/SingletonContext.java index 2ee8f46e75cdb..549ebed4de469 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/SingletonContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/SingletonContext.java @@ -2,7 +2,7 @@ import java.lang.annotation.Annotation; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.ContextInstanceHandle; import io.quarkus.arc.InstanceHandle; diff --git a/independent-projects/arc/runtime/src/test/java/io/quarkus/arc/impl/QualifiersTest.java b/independent-projects/arc/runtime/src/test/java/io/quarkus/arc/impl/QualifiersTest.java index d6fb4ed39ccde..15c1877c9b89c 100644 --- a/independent-projects/arc/runtime/src/test/java/io/quarkus/arc/impl/QualifiersTest.java +++ b/independent-projects/arc/runtime/src/test/java/io/quarkus/arc/impl/QualifiersTest.java @@ -7,8 +7,8 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.Initialized; -import javax.enterprise.inject.Any; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.inject.Any; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java index 5cfae8d773450..7d982d17d20b2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/MyQualifier.java @@ -10,7 +10,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; @Qualifier @Inherited diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/all/ListAllTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/all/ListAllTest.java index ad7b744462acf..c1aa07e80d6a9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/all/ListAllTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/all/ListAllTest.java @@ -8,13 +8,13 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java index 439bd1f22ff1a..a0eb8fa92b308 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesPriorityTest.java @@ -4,12 +4,12 @@ import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java index c9ecc8a39bc2f..b3200e456337b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/AlternativesTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityAnnotationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityAnnotationTest.java index 9f77a29cc040b..d8c6b6661b2ce 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityAnnotationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityAnnotationTest.java @@ -3,14 +3,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Vetoed; -import javax.enterprise.inject.spi.CDI; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.spi.CDI; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityResolutionTest.java index 89ad409155918..c46a10fc9b37f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativePriorityResolutionTest.java @@ -3,12 +3,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Vetoed; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Vetoed; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java index 298d1a508aa2a..bbc911fec62de 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/AlternativeProducerPriorityOnClassTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/ComputedAlternativePriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/ComputedAlternativePriorityTest.java index e5b76406f782a..469b5b5e8f02e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/ComputedAlternativePriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/alternatives/priority/ComputedAlternativePriorityTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; import org.jboss.jandex.AnnotationTarget; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java index 57c04fbc7fc79..9f553a8e7d1ce 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/create/BeanCreateErrorTest.java @@ -6,10 +6,10 @@ import java.math.BigDecimal; import java.math.BigInteger; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.CreationException; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.CreationException; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/destroy/BeanPreDestroyErrorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/destroy/BeanPreDestroyErrorTest.java index b9f8f1a2e68eb..a5e920e92e433 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/destroy/BeanPreDestroyErrorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/destroy/BeanPreDestroyErrorTest.java @@ -4,11 +4,11 @@ import java.math.BigDecimal; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Bird.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Bird.java index 7083606fe3134..c319715f6ce55 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Bird.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Bird.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; // base class defining pre destroy and post construct callbacks @Dependent diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Eagle.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Eagle.java index 50fc34985e981..7bb8efbf32d34 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Eagle.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Eagle.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; @Dependent public class Eagle extends Bird { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Falcon.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Falcon.java index a38ddb19b7623..7c2be21d2fcb8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Falcon.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/lifecycle/inheritance/Falcon.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; // extends Bird class, overrides pre-destroy and post construct with new variant @Dependent diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java index 90d3ae1b2b2fb..d72f17eff7625 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/ArrayBeanTypesTest.java @@ -7,11 +7,11 @@ import java.util.List; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java index aeff5ab1f0c12..0e004b19e854a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java @@ -8,8 +8,8 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/GenericBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/GenericBeanTypesTest.java index 8af418de89d42..6cab554a20207 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/GenericBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/GenericBeanTypesTest.java @@ -9,10 +9,10 @@ import java.util.Iterator; import java.util.Set; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/NonPublicJdkBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/NonPublicJdkBeanTypesTest.java index 3b42d0bb969dd..75d31e87ddeb6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/NonPublicJdkBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/NonPublicJdkBeanTypesTest.java @@ -3,8 +3,8 @@ import static org.assertj.core.api.Assertions.assertThatCollection; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/SimpleBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/SimpleBeanTypesTest.java index 99a38c1b8bc88..30459f86c1825 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/SimpleBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/SimpleBeanTypesTest.java @@ -7,7 +7,7 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java index f8fc7df3dd819..4a5ebc5d84a54 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerEventTest.java @@ -4,9 +4,9 @@ import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java index f4b3fd716a5ba..4e922b69e25d9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerInstanceTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java index 76bbbb4b145cd..388f1de936bab 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/beanmanager/BeanManagerTest.java @@ -25,32 +25,32 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.spi.Annotated; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.inject.spi.InterceptionType; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.Nonbinding; -import javax.inject.Inject; -import javax.inject.Qualifier; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.spi.Annotated; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.DotName; import org.junit.jupiter.api.Test; @@ -173,7 +173,7 @@ public Annotated getAnnotated() { @Test public void testResolveInterceptors() { BeanManager beanManager = Arc.container().beanManager(); - List> interceptors; + List> interceptors; // InterceptionType does not match interceptors = beanManager.resolveInterceptors(InterceptionType.AROUND_CONSTRUCT, new DummyBinding.Literal(true, true)); assertTrue(interceptors.isEmpty()); diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AddObservesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AddObservesTest.java index fb9b13e9dd36a..67fc97c3f8995 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AddObservesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AddObservesTest.java @@ -4,8 +4,8 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget.Kind; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerBuilderTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerBuilderTest.java index f91f70145ff7c..b169c328552f8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerBuilderTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerBuilderTest.java @@ -6,10 +6,10 @@ import java.util.AbstractList; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Vetoed; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Vetoed; +import jakarta.inject.Inject; import org.jboss.jandex.AnnotationTarget.Kind; import org.jboss.jandex.PrimitiveType; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerInterceptorBindingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerInterceptorBindingTest.java index 90ca921ede1b6..471f353d809e1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerInterceptorBindingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerInterceptorBindingTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import org.jboss.jandex.AnnotationTarget.Kind; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerTest.java index af93afe9d97f2..56d5cc8788669 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/AnnotationsTransformerTest.java @@ -7,9 +7,9 @@ import java.util.AbstractList; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Vetoed; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Vetoed; +import jakarta.inject.Inject; import org.jboss.jandex.AnnotationTarget.Kind; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/Simple.java index dca55da5eec8e..8d2dfbb0263ad 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/SimpleInterceptor.java index f4e5dbc82e265..9b4c84795993c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/annotations/SimpleInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.buildextension.annotations; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java index 3f58e841dc2a9..30c2eb26896ab 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/BeanRegistrarTest.java @@ -16,13 +16,13 @@ import java.util.Map; import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Qualifier; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.jboss.jandex.ParameterizedType; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/NormalScopedSyntheticBeanProducedNullTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/NormalScopedSyntheticBeanProducedNullTest.java index 7814f10472cc3..8a7ef3ce593ff 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/NormalScopedSyntheticBeanProducedNullTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/NormalScopedSyntheticBeanProducedNullTest.java @@ -5,9 +5,9 @@ import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.CreationException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.CreationException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SynthBeanWithWrongScopeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SynthBeanWithWrongScopeTest.java index c6cbed652feff..4e191f0803969 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SynthBeanWithWrongScopeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SynthBeanWithWrongScopeTest.java @@ -12,7 +12,7 @@ import java.lang.annotation.Target; import java.util.Map; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanCollisionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanCollisionTest.java index df7ccbb20bc34..f2ae8ff9fec52 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanCollisionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanCollisionTest.java @@ -5,7 +5,7 @@ import java.util.Map; -import javax.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.context.spi.CreationalContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanWithStereotypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanWithStereotypeTest.java index f5f4d3007a521..b194d77b2279f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanWithStereotypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/beans/SyntheticBeanWithStereotypeTest.java @@ -13,13 +13,13 @@ import java.lang.annotation.Target; import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationValue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/injectionPoints/InjectionPointTransformerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/injectionPoints/InjectionPointTransformerTest.java index 916116c2bdbd8..807773e9b7948 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/injectionPoints/InjectionPointTransformerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/injectionPoints/InjectionPointTransformerTest.java @@ -12,12 +12,12 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsPredicateTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsPredicateTest.java index 290138a2439a5..94ed03419b5cd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsPredicateTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsPredicateTest.java @@ -13,11 +13,11 @@ import java.util.List; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsTest.java index afdf7fa298bda..eac99bd810bc4 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/interceptor/bindings/AdditionalInterceptorBindingsTest.java @@ -13,11 +13,11 @@ import java.util.List; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/observers/SyntheticObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/observers/SyntheticObserverTest.java index b69e2e0900930..404c4eacaa2fe 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/observers/SyntheticObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/observers/SyntheticObserverTest.java @@ -6,11 +6,11 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.literal.NamedLiteral; -import javax.enterprise.inject.spi.EventContext; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.literal.NamedLiteral; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/qualifiers/AdditionalQualifiersTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/qualifiers/AdditionalQualifiersTest.java index 0214d05226687..25bfbf0f2ad67 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/qualifiers/AdditionalQualifiersTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/qualifiers/AdditionalQualifiersTest.java @@ -16,8 +16,8 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Singleton; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Singleton; import org.jboss.jandex.DotName; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/stereotypes/AdditionalStereotypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/stereotypes/AdditionalStereotypesTest.java index 90ea7e0dade6e..42773d615a868 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/stereotypes/AdditionalStereotypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/stereotypes/AdditionalStereotypesTest.java @@ -13,14 +13,14 @@ import java.lang.annotation.Target; import java.util.Set; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.inject.Named; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Named; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.AnnotationValue; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/validator/BeanDeploymentValidatorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/validator/BeanDeploymentValidatorTest.java index 8f62965d29e08..44b5407a80a7f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/validator/BeanDeploymentValidatorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/buildextension/validator/BeanDeploymentValidatorTest.java @@ -10,13 +10,13 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.jboss.jandex.DotName; import org.jboss.jandex.ParameterizedType; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/BuiltInBeansAreResolvableTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/BuiltInBeansAreResolvableTest.java index 043acb8a25bd8..e8699bb265c60 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/BuiltInBeansAreResolvableTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/BuiltInBeansAreResolvableTest.java @@ -13,18 +13,18 @@ import java.util.HashSet; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.Annotated; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.Annotated; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Qualifier; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/InjectionPointBuiltInBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/InjectionPointBuiltInBeanTest.java index 7c89169b8238a..90f6bd3ced077 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/InjectionPointBuiltInBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/builtin/beans/InjectionPointBuiltInBeanTest.java @@ -5,14 +5,14 @@ import java.lang.reflect.Executable; import java.lang.reflect.Field; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.AnnotatedField; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.AnnotatedField; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java index 1e2e92919dba6..795019cfd9725 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/cdiprovider/CDIProviderTest.java @@ -7,10 +7,10 @@ import java.lang.reflect.Field; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.CDI; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.CDI; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/CircularDependenciesChainTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/CircularDependenciesChainTest.java index 30115de9e5ca8..b5442ead8ff56 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/CircularDependenciesChainTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/CircularDependenciesChainTest.java @@ -5,9 +5,9 @@ import java.util.Comparator; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/SelfInjectionWithNormalScopeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/SelfInjectionWithNormalScopeTest.java index 00032c3bfd1c7..79663235b705c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/SelfInjectionWithNormalScopeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/circular/SelfInjectionWithNormalScopeTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java index 88dd50a71beae..ea74bcdd13ef4 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ClientProxyGetContextualInstanceTest.java @@ -5,8 +5,8 @@ import java.io.IOException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java index 88f61b9127d6e..9bdadfffae9b9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/ProducerClientProxyTest.java @@ -5,9 +5,9 @@ import java.io.IOException; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/Complex.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/Complex.java index 849a5e8789d1d..975786c0635b5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/Complex.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/Complex.java @@ -10,8 +10,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Qualifier @Inherited diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/SameDescriptorDifferentReturnTypeMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/SameDescriptorDifferentReturnTypeMethodTest.java index 8f55cbc65bfc8..88e7a8042dad6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/SameDescriptorDifferentReturnTypeMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/bridgemethod/SameDescriptorDifferentReturnTypeMethodTest.java @@ -5,9 +5,9 @@ import java.io.IOException; import java.io.Serializable; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java index f2e990eacbf1f..e5ca6a104cee7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ClientProxyConstructorGuardTest.java @@ -5,7 +5,7 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java index 459aa47e727bb..d56d56889a5e2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/constructor/ProducerReturnTypePackagePrivateNoArgsConstructorTest.java @@ -6,9 +6,9 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/contextnotactive/ClientProxyContextNotActiveTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/contextnotactive/ClientProxyContextNotActiveTest.java index 73c0fd33acf29..c550f22d96690 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/contextnotactive/ClientProxyContextNotActiveTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/contextnotactive/ClientProxyContextNotActiveTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.RequestScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/delegatingmethods/MyBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/delegatingmethods/MyBean.java index e4fa3009cede6..c05df5fdea061 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/delegatingmethods/MyBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/delegatingmethods/MyBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.clientproxy.delegatingmethods; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyBean extends Component implements HasSize { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/finalmethod/FinalMethodIgnoredTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/finalmethod/FinalMethodIgnoredTest.java index 9dcf7e185ee1e..fc92af74df0b8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/finalmethod/FinalMethodIgnoredTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/finalmethod/FinalMethodIgnoredTest.java @@ -5,8 +5,8 @@ import java.io.IOException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/packageprivate/foo/Producer.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/packageprivate/foo/Producer.java index 3301df337c4c8..b5f689fae6df5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/packageprivate/foo/Producer.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/packageprivate/foo/Producer.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.clientproxy.packageprivate.foo; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; @ApplicationScoped public class Producer { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/toString/Foo.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/toString/Foo.java index 7aa3dbfdeb523..54f3868e0d96d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/toString/Foo.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/clientproxy/toString/Foo.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.clientproxy.toString; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Foo { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationContextGetTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationContextGetTest.java index 1120dd4ad0be9..0c2e2b4c9fe58 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationContextGetTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationContextGetTest.java @@ -6,8 +6,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java index 4b2caa89329e3..228c035712aeb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/application/ApplicationInitializedTest.java @@ -4,12 +4,12 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/dependent/DependentCreationalContextTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/dependent/DependentCreationalContextTest.java index fc2f66cae7888..7318e58b19c02 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/dependent/DependentCreationalContextTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/dependent/DependentCreationalContextTest.java @@ -6,12 +6,12 @@ import java.util.Map; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ContextObserver.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ContextObserver.java index 10981ccdd8cc1..dc72378d02d4f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ContextObserver.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ContextObserver.java @@ -1,11 +1,11 @@ package io.quarkus.arc.test.contexts.request; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class ContextObserver { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java index 7c047d64b6d6c..c773bf79a3b1b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/Controller.java @@ -3,9 +3,9 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class Controller { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java index e94ba36e7a9e9..2504c2c7dc800 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/ControllerClient.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.contexts.request; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; @ApplicationScoped public class ControllerClient { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java index 531d260650a9c..7b3fd5f2764bc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/RequestContextTest.java @@ -7,9 +7,9 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.control.RequestContextController; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.control.RequestContextController; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/ActivateRequestContextInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/ActivateRequestContextInterceptorTest.java index 510e694bd7af8..2af0a3460300b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/ActivateRequestContextInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/ActivateRequestContextInterceptorTest.java @@ -10,13 +10,13 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java index b3f956f1dc978..bab8a04132bd9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/RequestContextPropagationTest.java @@ -6,7 +6,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.ContextNotActiveException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java index 596fa7bee0b19..e34210b32246e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperButton.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; @Dependent public class SuperButton { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java index c0a6c7784dbb1..37de6bb700ed1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/SuperController.java @@ -3,10 +3,10 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; @RequestScoped public class SuperController { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/YetAnotherReqScopedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/YetAnotherReqScopedBean.java index 9dcc23499c207..e0e2b2052adaa 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/YetAnotherReqScopedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/request/propagation/YetAnotherReqScopedBean.java @@ -2,7 +2,7 @@ import java.util.Random; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class YetAnotherReqScopedBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonContextGetTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonContextGetTest.java index 32aea5c47de88..e0086a6bb9221 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonContextGetTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonContextGetTest.java @@ -6,8 +6,8 @@ import java.util.List; -import javax.enterprise.context.RequestScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonDestructionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonDestructionTest.java index 8873adb8a94c1..780fcd32beea0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonDestructionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/contexts/singleton/SingletonDestructionTest.java @@ -4,10 +4,10 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorOverloadingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorOverloadingTest.java index cd66ec68ebebf..1a48b01c8fe9c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorOverloadingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorOverloadingTest.java @@ -2,12 +2,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorTest.java index 55ce203ca4a2a..47d02b42821cc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/SimpleDecoratorTest.java @@ -2,12 +2,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/AbstractDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/AbstractDecoratorTest.java index 3ec64820c0915..74f02cddf0a56 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/AbstractDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/AbstractDecoratorTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/InterceptorAndAbstractDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/InterceptorAndAbstractDecoratorTest.java index c8885ba668aa9..091f8d906b09a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/InterceptorAndAbstractDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/abstractimpl/InterceptorAndAbstractDecoratorTest.java @@ -10,15 +10,15 @@ import java.lang.annotation.Target; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/delegate/DelegateSubtypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/delegate/DelegateSubtypeTest.java index b666e4e94de53..0d751266fb700 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/delegate/DelegateSubtypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/delegate/DelegateSubtypeTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/DecoratorWithTypeVariableTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/DecoratorWithTypeVariableTest.java index e9d48318daf6e..809c698cd9d75 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/DecoratorWithTypeVariableTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/DecoratorWithTypeVariableTest.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.Set; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -33,7 +33,7 @@ public void testDecoration() { bean.doSomething(new MyParameterizedType<>("test", new Contract()))); // Secondly, assert that this decorator can be resolved at runtime via BM - List> decoratorsFound = Arc.container().beanManager() + List> decoratorsFound = Arc.container().beanManager() .resolveDecorators(Set.of(new TypeLiteral>() { }.getType()), Any.Literal.INSTANCE); Assertions.assertTrue(decoratorsFound.size() == 1); diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/GenericsDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/GenericsDecoratorTest.java index b05d965a78ab4..cf43fb5261409 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/GenericsDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/generics/GenericsDecoratorTest.java @@ -5,11 +5,11 @@ import java.util.List; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/interceptor/InterceptorAndDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/interceptor/InterceptorAndDecoratorTest.java index ffbcaf8e053eb..0ac83d0e9c507 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/interceptor/InterceptorAndDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/interceptor/InterceptorAndDecoratorTest.java @@ -10,15 +10,15 @@ import java.lang.annotation.Target; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlphaConverterDecorator.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlphaConverterDecorator.java index f1e2c0c9e73cc..cb46dbddf4dbf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlphaConverterDecorator.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlphaConverterDecorator.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.decorators.priority; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; @Priority(20) @Decorator diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlsoAlphaConverterDecorator.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlsoAlphaConverterDecorator.java index f68ee91ed6d09..6bae6ffb75751 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlsoAlphaConverterDecorator.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/AlsoAlphaConverterDecorator.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.decorators.priority; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; @Priority(20) @Decorator diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/BravoConverterDecorator.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/BravoConverterDecorator.java index a2fdd18d47292..d7b9d81ac2834 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/BravoConverterDecorator.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/BravoConverterDecorator.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.decorators.priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; import io.quarkus.arc.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsSamePriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsSamePriorityTest.java index b88f28aa2d555..e0b235c7e3a4f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsSamePriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsSamePriorityTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsTest.java index cae321ede26da..2e8462cbe952b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/priority/MultipleDecoratorsTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/qualifiers/DelegateQualifiersTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/qualifiers/DelegateQualifiersTest.java index a8c17d4a17480..140592973689c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/qualifiers/DelegateQualifiersTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/qualifiers/DelegateQualifiersTest.java @@ -2,13 +2,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/AbstractDecoratorWithAbstractMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/AbstractDecoratorWithAbstractMethodTest.java index 4808722aaefaf..7951757a334ff 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/AbstractDecoratorWithAbstractMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/AbstractDecoratorWithAbstractMethodTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DecoratorForBuiltInEventTypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DecoratorForBuiltInEventTypeTest.java index 6716eb2ca48c6..bf433785622d6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DecoratorForBuiltInEventTypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DecoratorForBuiltInEventTypeTest.java @@ -6,12 +6,12 @@ import java.lang.annotation.Annotation; import java.util.concurrent.CompletionStage; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.event.Event; -import javax.enterprise.event.NotificationOptions; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.NotificationOptions; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DelegateDoesNotImplementDecoratedTypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DelegateDoesNotImplementDecoratedTypeTest.java index 5b6fffd985965..dce18c6049100 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DelegateDoesNotImplementDecoratedTypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/DelegateDoesNotImplementDecoratedTypeTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/MultipleDelegateInjectionPointsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/MultipleDelegateInjectionPointsTest.java index 0001f187e13a9..5123dd61ca3c1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/MultipleDelegateInjectionPointsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/MultipleDelegateInjectionPointsTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDecoratedTypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDecoratedTypeTest.java index 8547756c23c30..2c11ccee59e27 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDecoratedTypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDecoratedTypeTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDelegateInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDelegateInjectionPointTest.java index e7fb0cdaa2b7f..25ac56397907d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDelegateInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NoDelegateInjectionPointTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NonDependentScopeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NonDependentScopeTest.java index d7873e19a27ff..f037b2ccaf1ea 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NonDependentScopeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/decorators/validation/NonDependentScopeTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -26,7 +26,7 @@ public void testFailure() { assertTrue( container.getFailure().getMessage() .contains( - "A decorator must be @Dependent but io.quarkus.arc.test.decorators.validation.NonDependentScopeTest$DecoratorWithWrongScope declares javax.enterprise.context.ApplicationScoped"), + "A decorator must be @Dependent but io.quarkus.arc.test.decorators.validation.NonDependentScopeTest$DecoratorWithWrongScope declares jakarta.enterprise.context.ApplicationScoped"), container.getFailure().getMessage()); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultClassBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultClassBeanTest.java index 156ea33c02ba2..3d889eda4bb72 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultClassBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultClassBeanTest.java @@ -5,12 +5,12 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerFieldTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerFieldTest.java index 9cf0c82e93004..b9102a8319f35 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerFieldTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerFieldTest.java @@ -6,12 +6,12 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerMethodTest.java index df27a01a0099e..f7dd994f5648d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/defaultbean/DefaultProducerMethodTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.CDI; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/AbstractClassIgnoredTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/AbstractClassIgnoredTest.java index e30d6ef1c392e..9fd86554a069d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/AbstractClassIgnoredTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/AbstractClassIgnoredTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/ParameterizedBeanTypeWithVariableTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/ParameterizedBeanTypeWithVariableTest.java index 71f6da5da3ca3..790364cc5eb58 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/ParameterizedBeanTypeWithVariableTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/discovery/ParameterizedBeanTypeWithVariableTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/EventSelectTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/EventSelectTest.java index 381db746464f4..ea57b56d9ed74 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/EventSelectTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/EventSelectTest.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.event.select; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.TypeLiteral; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SecuritySensor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SecuritySensor.java index 91584749e7798..67599bfc132c5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SecuritySensor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SecuritySensor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.event.select; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.inject.Any; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.inject.Any; +import jakarta.inject.Inject; @Dependent public class SecuritySensor { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SystemTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SystemTest.java index fbf3f5a23e0ad..2d76a6b5b1a18 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SystemTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/event/select/SystemTest.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/index/AdditionalIndexTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/index/AdditionalIndexTest.java index c28c446096e0f..e88364dba62fc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/index/AdditionalIndexTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/index/AdditionalIndexTest.java @@ -5,9 +5,9 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/MemberLevelInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/MemberLevelInheritanceTest.java index 523d99f1474b6..90f58022eb581 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/MemberLevelInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/MemberLevelInheritanceTest.java @@ -12,15 +12,15 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/QualifiersInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/QualifiersInheritanceTest.java index cd2b49b50d6f2..29542c1f64f12 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/QualifiersInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/QualifiersInheritanceTest.java @@ -7,9 +7,9 @@ import java.lang.annotation.Inherited; import java.lang.annotation.Retention; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceStereotypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceStereotypeTest.java index 30855b3cdd955..f754c0360f327 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceStereotypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceStereotypeTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Model; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Model; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java index cfaf38dee9d4e..02081cf81065b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/ScopeInheritanceTest.java @@ -11,11 +11,11 @@ import java.lang.annotation.Target; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/TypeLevelInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/TypeLevelInheritanceTest.java index 0823a715fcef2..c21696214f73f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/TypeLevelInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/inheritance/TypeLevelInheritanceTest.java @@ -13,16 +13,16 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.Typed; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.Typed; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java index 54f17fa3609db..403f2141eb302 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/ListJdkElementTypeTest.java @@ -5,10 +5,10 @@ import java.util.Collections; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java index a124e1d65a47b..83958b372841f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/OptionalAssignabilityTest.java @@ -4,11 +4,11 @@ import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/AssignabilityWithGenericsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/AssignabilityWithGenericsTest.java index 732f252628d41..df550b7215808 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/AssignabilityWithGenericsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/AssignabilityWithGenericsTest.java @@ -9,13 +9,13 @@ import java.util.List; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Car.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Car.java index 0cc0985ae56ba..f7cd4d299fc1a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Car.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Car.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.injection.assignability.generics; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Car extends Vehicle { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/PetrolEngine.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/PetrolEngine.java index 0a486c318ad29..d235a9d5fe602 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/PetrolEngine.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/PetrolEngine.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.injection.assignability.generics; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class PetrolEngine implements Engine { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/RawTypeAssignabilityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/RawTypeAssignabilityTest.java index 242c134fa7f20..20d314a54dba2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/RawTypeAssignabilityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/RawTypeAssignabilityTest.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.injection.assignability.generics; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Vetoed; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Vetoed; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Vehicle.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Vehicle.java index cd468d64132b4..42ed4d1bd311a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Vehicle.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/assignability/generics/Vehicle.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.injection.assignability.generics; -import javax.inject.Inject; +import jakarta.inject.Inject; public abstract class Vehicle { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/MultiInjectConstructorFailureTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/MultiInjectConstructorFailureTest.java index 64a305879f4ca..597d3dcd50d62 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/MultiInjectConstructorFailureTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/MultiInjectConstructorFailureTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/NoArgConstructorTakesPrecedenceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/NoArgConstructorTakesPrecedenceTest.java index e0d6e4c87a93b..960cb83d30e6b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/NoArgConstructorTakesPrecedenceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/NoArgConstructorTakesPrecedenceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java index 991d98fc546cf..abd180eee515b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/constructornoinject/SingleNonNoArgConstructorInjectionTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java index a03a76ce42641..4e62c34237270 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/erroneous/CircularInjectionNotSupportedTest.java @@ -2,8 +2,8 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/finalfield/FinalFieldInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/finalfield/FinalFieldInjectionTest.java index 791fcd7a4c7a1..8fe60dcd35135 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/finalfield/FinalFieldInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/finalfield/FinalFieldInjectionTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableFieldInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableFieldInjectionPointTest.java index a4f84e6ee71ca..160e2cd720058 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableFieldInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableFieldInjectionPointTest.java @@ -4,9 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java index 7c7e6eab95008..a85ca157e7933 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/illegal/TypeVariableInitializerInjectionPointTest.java @@ -4,9 +4,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java index 99b8a8e7e4d69..b3f7e74c0519b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateconstructor/PrivateConstructorInjectionTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java index 549f02da936e3..db0afe69edf3f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privatefield/PrivateFieldInjectionTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java index a4e6582c0b619..8131907842806 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/privateinitializer/PrivateInitializerInjectionTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java index 2bdb111422d78..ecef3af79b7fa 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/resource/ResourceInjectionTest.java @@ -16,25 +16,25 @@ import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.persistence.EntityGraph; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.PersistenceContext; -import javax.persistence.Query; -import javax.persistence.StoredProcedureQuery; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaDelete; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.CriteriaUpdate; -import javax.persistence.metamodel.Metamodel; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.persistence.EntityGraph; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.Query; +import jakarta.persistence.StoredProcedureQuery; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaDelete; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.CriteriaUpdate; +import jakarta.persistence.metamodel.Metamodel; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.DotName; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/staticfield/StaticFieldInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/staticfield/StaticFieldInjectionTest.java index ab70d2a846955..93fecc88b5987 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/staticfield/StaticFieldInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/staticfield/StaticFieldInjectionTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java index b9f8dd4431447..0422cee08c28d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/SuperclassInjectionTest.java @@ -8,11 +8,11 @@ import java.util.Set; import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java index a45db78a3de81..9f28f1366a4eb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/injection/superclass/foo/FooHarvester.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.injection.superclass.foo; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.arc.test.injection.superclass.SuperclassInjectionTest.Head; import io.quarkus.arc.test.injection.superclass.SuperclassInjectionTest.SuperHarvester; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/ArcContainerSelectTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/ArcContainerSelectTest.java index fd64da3df0482..931a817f48386 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/ArcContainerSelectTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/ArcContainerSelectTest.java @@ -12,15 +12,15 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.function.Supplier; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.AnnotationLiteral; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InjectableInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InjectableInstanceTest.java index 60ee66907cd98..48d384a6c7cf5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InjectableInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InjectableInstanceTest.java @@ -7,12 +7,12 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InvalidQualifierInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InvalidQualifierInstanceTest.java index 13faed49a5d70..3afac81413791 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InvalidQualifierInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/InvalidQualifierInstanceTest.java @@ -2,10 +2,10 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; -import javax.enterprise.inject.Instance; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/PriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/PriorityTest.java index 310db680932e9..a4f19ee638cda 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/PriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/PriorityTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -35,7 +35,7 @@ interface Converter { } - @javax.annotation.Priority(5) // this priority takes precedence + @jakarta.annotation.Priority(5) // this priority takes precedence @Priority(50) @Singleton static class AlphaConverter implements Converter { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/RawTypeInstanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/RawTypeInstanceTest.java index d6923687706e7..8f9741562ce20 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/RawTypeInstanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/RawTypeInstanceTest.java @@ -4,10 +4,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/cacheget/InstanceWithCachingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/cacheget/InstanceWithCachingTest.java index c719155148340..2f54f30b963f9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/cacheget/InstanceWithCachingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/cacheget/InstanceWithCachingTest.java @@ -6,12 +6,12 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java index 97ce20addbc88..1c89c3ed5470b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/destroy/InstanceDestroyTest.java @@ -7,13 +7,13 @@ import java.util.UUID; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java index fe3f2566b9cb4..53f42413f39f3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/frombean/InstanceFromBeanTest.java @@ -4,8 +4,8 @@ import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/TypeVariableInstanceInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/TypeVariableInstanceInjectionPointTest.java index b01573a6e3684..14e5e56443a94 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/TypeVariableInstanceInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/TypeVariableInstanceInjectionPointTest.java @@ -4,10 +4,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -25,7 +25,7 @@ public void testError() { assertNotNull(failure); assertTrue(failure instanceof DefinitionException); assertEquals( - "Type variable is not a legal type argument for javax.enterprise.inject.Instance: io.quarkus.arc.test.instance.illegal.TypeVariableInstanceInjectionPointTest$Head#instance", + "Type variable is not a legal type argument for jakarta.enterprise.inject.Instance: io.quarkus.arc.test.instance.illegal.TypeVariableInstanceInjectionPointTest$Head#instance", failure.getMessage()); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/WildcardInstanceInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/WildcardInstanceInjectionPointTest.java index 4ead3ec2fb9b4..307b7c2bfeb35 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/WildcardInstanceInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/instance/illegal/WildcardInstanceInjectionPointTest.java @@ -4,10 +4,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -25,7 +25,7 @@ public void testError() { assertNotNull(failure); assertTrue(failure instanceof DefinitionException); assertEquals( - "Wildcard is not a legal type argument for javax.enterprise.inject.Instance: io.quarkus.arc.test.instance.illegal.WildcardInstanceInjectionPointTest$Head#instance", + "Wildcard is not a legal type argument for jakarta.enterprise.inject.Instance: io.quarkus.arc.test.instance.illegal.WildcardInstanceInjectionPointTest$Head#instance", failure.getMessage()); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java index 3c7d11a47265d..93d861e13ed98 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Counter.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class Counter { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/KotlinInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/KotlinInterceptorTest.java index 34bf64effb821..bcc5eb87e519a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/KotlinInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/KotlinInterceptorTest.java @@ -10,12 +10,12 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java index 12f8809470e5d..3eff459de66c3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Lifecycle.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java index ac92863f1921a..3cf327c15a577 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LifecycleInterceptor.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java index 2b5ec678af827..073b553cc0faa 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Logging.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java index 5a8678bed552c..beed992aaa943 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/LoggingInterceptor.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicReference; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.Priority; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java index c821dc26953a4..c524aaa3b7389 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java index b7ccff5af421f..3bade240cfb9a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.interceptors; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; @Lifecycle @Dependent diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java index 3f0dc7e8766a1..3e452cc2bc41d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/SimpleInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptor.java index 84b6fdaa4edee..82ca70a9cd066 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptor.java @@ -3,9 +3,9 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptorPrivate.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptorPrivate.java index 58461b193a866..5d8428c6ad7be 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptorPrivate.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextInterceptorPrivate.java @@ -3,9 +3,9 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptor.java index 2e2751c127851..c0aead235948c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptor.java @@ -3,10 +3,10 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptorPrivate.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptorPrivate.java index 64c67ac849d40..2fed150246350 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptorPrivate.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/ArcContextLifecycleInterceptorPrivate.java @@ -3,10 +3,10 @@ import java.lang.annotation.Annotation; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.interceptor.Interceptor; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.interceptor.Interceptor; import io.quarkus.arc.ArcInvocationContext; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/Foo.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/Foo.java index 0e2e34e9a7714..f2dc0571bf72a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/Foo.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/Foo.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.arcInvContext; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @SomeBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/SomeBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/SomeBinding.java index ea9c665ce82a1..6c4811bb090d6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/SomeBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/arcInvContext/SomeBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructAppliedViaConstructorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructAppliedViaConstructorTest.java index c2741cdb809e4..8f3d25a6772fd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructAppliedViaConstructorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructAppliedViaConstructorTest.java @@ -5,12 +5,12 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundConstruct; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java index 0d0409d87d06d..9c0667905e718 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructReturningObjectTest.java @@ -5,10 +5,10 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.inject.Singleton; -import javax.interceptor.AroundConstruct; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java index 396fda6f582e3..fc3f8c7d016b9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/AroundConstructTest.java @@ -6,12 +6,12 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyOtherTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyOtherTransactional.java index ef549a960f6e0..659e628154a36 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyOtherTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyOtherTransactional.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java index f7a514caeb549..e74f257fb5ef5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/aroundconstruct/MyTransactional.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java index 8b9e2eb705fe9..9b594112c3555 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/BindingDefaultValueTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java index 372ca48cea8e6..a2db094843314 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindingdefaultvalue/MyTransactional.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java index 0e4e0e86ff984..93ce0f3c24db7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/InvocationContextBindingsTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java index a4badc71535c6..2f1e8a5952247 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/MyTransactional.java @@ -8,8 +8,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/BarBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/BarBinding.java index 5f80e77947f20..364294759cbf2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/BarBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/BarBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Documented diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/FooBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/FooBinding.java index 57096cc8b362d..73b709eed859f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/FooBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/FooBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Documented diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyBean.java index 04c27aa33f6b4..9f15edfa653a7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.multiple; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @BarBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyInterceptor.java index b198347415661..19469829c7c0a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.bindings.multiple; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyOtherBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyOtherBean.java index 0260085b8e011..5e8861c921609 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyOtherBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/multiple/MyOtherBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.multiple; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @FooBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/InheritedRepeatableInterceptorBindingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/InheritedRepeatableInterceptorBindingTest.java index 21d72b07fa20d..92fabb99e414a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/InheritedRepeatableInterceptorBindingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/InheritedRepeatableInterceptorBindingTest.java @@ -11,14 +11,14 @@ import java.lang.annotation.Target; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingTest.java index 217d3df90fb50..45c5b3ccf77b0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingTest.java @@ -11,14 +11,14 @@ import java.lang.annotation.Target; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingWithNonbindingAttributeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingWithNonbindingAttributeTest.java index 114e26d0a805c..f70bbd0925c4d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingWithNonbindingAttributeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/repeatable/RepeatableInterceptorBindingWithNonbindingAttributeTest.java @@ -11,15 +11,15 @@ import java.lang.annotation.Target; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InterceptorBinding; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InterceptorBinding; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/AnotherAnnotation.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/AnotherAnnotation.java index 8bc648e20e8df..634f1bf4f8a7f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/AnotherAnnotation.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/AnotherAnnotation.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/ClassLevelInterceptedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/ClassLevelInterceptedBean.java index 75b4a6dc7f4fc..fb5056ec58bde 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/ClassLevelInterceptedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/ClassLevelInterceptedBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @SomeAnnotation diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterBinding.java index d99390a56fb01..2be78fb9597c0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterInterceptor.java index 54ccf2ebab25c..fc89b4acb2ecb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/CounterInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/MethodLevelInterceptedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/MethodLevelInterceptedBean.java index 5b81b3cd05f66..4caeca9c274b2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/MethodLevelInterceptedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/MethodLevelInterceptedBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MethodLevelInterceptedBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/NotInterceptedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/NotInterceptedBean.java index 6cae4e809af9a..c69a1180c7612 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/NotInterceptedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/NotInterceptedBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @NotABinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/SomeAnnotation.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/SomeAnnotation.java index d357426257f56..b8ce4d9655d14 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/SomeAnnotation.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/SomeAnnotation.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * This annotation is a not a binding itself but a meta-annotation containing one. diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TransitiveCounterInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TransitiveCounterInterceptor.java index e05e4c10d9726..2aff42936aaa1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TransitiveCounterInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TransitiveCounterInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(2) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TwoLevelsDeepClassLevelInterceptedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TwoLevelsDeepClassLevelInterceptedBean.java index 395b8b43845b3..6751c1007f5e9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TwoLevelsDeepClassLevelInterceptedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/TwoLevelsDeepClassLevelInterceptedBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.transitive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @AnotherAnnotation diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/DummyBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/DummyBean.java index 34e110b2120a3..95a3178ff272c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/DummyBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/DummyBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.bindings.transitive.with.transformer; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @PlainBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerBinding.java index ab1de49529aa8..51d14ef595f41 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerInterceptor.java index baba66ef8cb7f..30e0819254445 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/MuchCoolerInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.bindings.transitive.with.transformer; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainBinding.java index 404f039d9f4d4..c0530b532148a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainInterceptor.java index c7152eb3dadbf..c92371a7f3c64 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bindings/transitive/with/transformer/PlainInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.bindings.transitive.with.transformer; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/BridgeMethodInterceptionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/BridgeMethodInterceptionTest.java index 4d893c1ca96ff..0f3c706de7f4b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/BridgeMethodInterceptionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/BridgeMethodInterceptionTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/ExampleResource.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/ExampleResource.java index 9a70d1a5f4a14..cb2f1fc933d77 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/ExampleResource.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/ExampleResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton @Simple diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/Simple.java index f38aa216c8075..aa2a0a4aede8d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/SimpleInterceptor.java index e18ae3009f141..40b98b3ef2a15 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/bridge/SimpleInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors.bridge; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.test.interceptors.Counter; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyBinding.java index 23cb0b6f5114d..6a859ed41987e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyInterceptor.java index 146799133a0a8..ecf34d0aa52df 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/MyInterceptor.java @@ -2,13 +2,13 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/SomeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/SomeBean.java index ab25290da36b7..a22ff98d1cf5c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/SomeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/complex/SomeBean.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.inject.Singleton; @Singleton @MyBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java index be86db3ccf54d..b09fde4fdd081 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/constructor/SubclassConstructorGuardTest.java @@ -4,11 +4,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/AsyncContinuationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/AsyncContinuationTest.java index 96b732c598b71..b7540167693ee 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/AsyncContinuationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/AsyncContinuationTest.java @@ -9,11 +9,11 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/ContextDataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/ContextDataTest.java index 09167a3005a37..3d33001663d5e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/ContextDataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/context/ContextDataTest.java @@ -4,11 +4,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/ABinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/ABinding.java index 010c185973da5..cf50a86e20c0c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/ABinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/ABinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/DefaultMethodBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/DefaultMethodBean.java index 40e07646c3623..cf000a4cd5132 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/DefaultMethodBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/DefaultMethodBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.defaultmethod; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @ABinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/MessageInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/MessageInterceptor.java index 661fa2b83acb0..08f46b26215fb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/MessageInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/MessageInterceptor.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.interceptors.defaultmethod; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @ABinding @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextBinding.java index 012c9a1dc6e11..bf271646231fe 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextInterceptor.java index 201867f822310..e5ac6e9ce530e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/NextInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.defaultmethod; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @NextBinding @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java index 6205fe93924f9..0c8698b4a08b5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.exceptionhandling; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class ExceptionHandlingBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java index 22b634a2a7818..2abd8e86fc2e6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.exceptionhandling; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @ExceptionHandlingInterceptorBinding @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java index 857126aed789f..d30a09f774032 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/exceptionhandling/ExceptionHandlingInterceptorBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalInterceptedMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalInterceptedMethodTest.java index 3e6f9f8d160a1..f9a491360ca8f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalInterceptedMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalInterceptedMethodTest.java @@ -3,12 +3,12 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.Priority; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalNonInterceptedMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalNonInterceptedMethodTest.java index 799739fb29310..4defa4c15011b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalNonInterceptedMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/finalmethod/FinalNonInterceptedMethodTest.java @@ -2,12 +2,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor1.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor1.java index 38add15da746d..50c7b2fe37209 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor1.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor1.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.interceptors.inheritance; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @One @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor2.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor2.java index 9d234aece3464..2a1528a44533f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor2.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Interceptor2.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.inheritance; -import javax.interceptor.Interceptor; +import jakarta.interceptor.Interceptor; @Two @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/InterceptorSuperclassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/InterceptorSuperclassTest.java index e77f88a535050..fecdc13331593 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/InterceptorSuperclassTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/InterceptorSuperclassTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/One.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/One.java index 4ba511186fe49..444591489ed71 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/One.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/One.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/OverridenInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/OverridenInterceptor.java index 8a1e03f6c6f81..4e58dcaf02fec 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/OverridenInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/OverridenInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.interceptors.inheritance; -import javax.interceptor.AroundInvoke; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.InvocationContext; public class OverridenInterceptor { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Two.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Two.java index f5eb942d138b0..582b089dd6673 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Two.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/inheritance/Two.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/InterceptedBeanInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/InterceptedBeanInjectionTest.java index 0cd7c1751bd14..c205e68816d5f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/InterceptedBeanInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/InterceptedBeanInjectionTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/Simple.java index f611d304c081b..237a04b3b5495 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/SimpleInterceptor.java index 9ca7e4de0f456..38e6abd2f489d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/intercepted/SimpleInterceptor.java @@ -1,14 +1,14 @@ package io.quarkus.arc.test.interceptors.intercepted; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.inject.Intercepted; -import javax.enterprise.inject.spi.Bean; -import javax.inject.Inject; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Intercepted; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/LargeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/LargeBean.java index 28bdd5617057e..38772ad0b4b13 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/LargeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/LargeBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.limits; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.test.interceptors.Simple; @@ -6007,4 +6007,4 @@ public String ping1498(String val) { public String ping1499(String val) { return val; } -} \ No newline at end of file +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/SubclassLimitsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/SubclassLimitsTest.java index 892d9f2f73b4a..1efb3a79da71c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/SubclassLimitsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/limits/SubclassLimitsTest.java @@ -31,7 +31,7 @@ public void testInterception() { // int count = 1500; // StringBuilder builder = new StringBuilder(); // builder.append("package io.quarkus.arc.test.interceptors.limits;"); - // builder.append("import javax.enterprise.context.ApplicationScoped;"); + // builder.append("import jakarta.enterprise.context.ApplicationScoped;"); // builder.append("import io.quarkus.arc.test.interceptors.Simple;"); // builder.append("@Simple @ApplicationScoped public class LargeBean {"); // for (int i = 0; i < count; i++) { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/CustomExecutor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/CustomExecutor.java index 9a0462fbd3ecf..40451becc0a4c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/CustomExecutor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/CustomExecutor.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.methodargs; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.test.interceptors.methodargs.base.BaseExecutor; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/ExampleResource.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/ExampleResource.java index fe34a773c7aec..328b3f0f13759 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/ExampleResource.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/ExampleResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton @Simple diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/Simple.java index ef212e7c6703d..3b621af2d36e5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/SimpleInterceptor.java index 431c8a5c364b4..49c4a052ab446 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/methodargs/SimpleInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors.methodargs; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.arc.test.interceptors.Counter; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/BusinessLifecycleInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/BusinessLifecycleInterceptorTest.java index ca94707516b71..65e78b849c648 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/BusinessLifecycleInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/BusinessLifecycleInterceptorTest.java @@ -4,13 +4,13 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/MyTransactional.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/MyTransactional.java index d5db845a4bc19..8c221f521b384 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/MyTransactional.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/mixed/MyTransactional.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/AverageBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/AverageBean.java index 285a7a7df81f5..553199cdc70d2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/AverageBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/AverageBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.no.priority; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class AverageBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/Simple.java index ecd221e13f004..98231fd2419d7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/SimpleInterceptorWithNoPriority.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/SimpleInterceptorWithNoPriority.java index d68260c86e5bd..a94222fd7a172 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/SimpleInterceptorWithNoPriority.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/no/priority/SimpleInterceptorWithNoPriority.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.interceptors.no.priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevel.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevel.java index 2e6ce3c65fe62..afb2a8c4168e8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevel.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevel.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevelInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevelInterceptor.java index eaa2925c2661c..da5668caa3f41 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevelInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/ClassLevelInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors.noclassinterceptors; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @ClassLevel @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevel.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevel.java index f48e7e749e329..a844883ff8152 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevel.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevel.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevelInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevelInterceptor.java index 4f1439eb00a10..aeb134c660cde 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevelInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InheritedClassLevelInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors.noclassinterceptors; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @InheritedClassLevel @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InterceptedBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InterceptedBean.java index 6fea3881b9b82..bbffd543f9131 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InterceptedBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/InterceptedBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.noclassinterceptors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.NoClassInterceptors; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevel.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevel.java index af6e41314edb0..6b2b2ac1ef5e5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevel.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevel.java @@ -9,7 +9,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD, CONSTRUCTOR }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevelInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevelInterceptor.java index 42e6b785a6cca..cd8a0c84a347c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevelInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/noclassinterceptors/MethodLevelInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.interceptors.noclassinterceptors; -import javax.annotation.Priority; -import javax.interceptor.AroundConstruct; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundConstruct; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @MethodLevel @Interceptor diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/nonpublicparams/NonPublicParametersTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/nonpublicparams/NonPublicParametersTest.java index 907a91a29adcb..48261ea397dd2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/nonpublicparams/NonPublicParametersTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/nonpublicparams/NonPublicParametersTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java index 3363ddbd90111..0182b0ad641cd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.parameters; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/Simple.java index d057f970f41e0..3715f05244db6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SimpleBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SimpleBean.java index e94a82a77fa4e..33a6cd6c9e017 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SimpleBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SimpleBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.interceptors.parameters; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class SimpleBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java index 984b482216912..edab9dd924842 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/privatemethod/PrivateInterceptorMethodTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Nok.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Nok.java index 6efdc252b96dd..31df230cfb0db 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Nok.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Nok.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/NokInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/NokInterceptor.java index 23bbf830284ed..ce0a84085842b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/NokInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/NokInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.selfinvocation; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Nok @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Ok.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Ok.java index de4f94d5e5568..b15a33c4e3035 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Ok.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/Ok.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/OkInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/OkInterceptor.java index e78cf8d9170f6..6726dd3e9bab9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/OkInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/OkInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.selfinvocation; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Ok @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/SelfInvocationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/SelfInvocationTest.java index 02704c633c9e6..c2338640cc0ca 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/SelfInvocationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/selfinvocation/SelfInvocationTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/MyBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/MyBinding.java index b597edce21385..bae0e4c04d8bd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/MyBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/MyBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/SomeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/SomeBean.java index dc07fcc975d71..9978d047fb356 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/SomeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/SomeBean.java @@ -2,7 +2,7 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped @MyBinding diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/WeirdInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/WeirdInterceptor.java index 57930a8888955..01d95bd96d59d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/WeirdInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/subclasses/WeirdInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.interceptors.subclasses; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Interceptor @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java index 38341d345c33c..1d1f92c93fdf8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/OriginalBean.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class OriginalBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java index 2829a93657c2f..c903cad0e6074 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lifecyclecallbacks/inherited/subpackage/AlternativeBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.lifecyclecallbacks.inherited.subpackage; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import io.quarkus.arc.test.lifecyclecallbacks.inherited.OriginalBean; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockInterceptorTest.java index e248dc7396a7a..6b4a9f6c1704c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockInterceptorTest.java @@ -15,9 +15,9 @@ import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Singleton; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockWaitTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockWaitTest.java index b5824f04e7177..4f00d332354e3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockWaitTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/lock/LockWaitTest.java @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java index 427a3de2aabcd..022c786ca4390 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/BeanMetadataTest.java @@ -4,7 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.Bean; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java index 65925953c3512..b338989507576 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/Controller.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.metadata; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.Bean; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.inject.Inject; @Dependent public class Controller { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java index 1012f36b0612b..9e72f84e71a2b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/metadata/InjectionPointMetadataTest.java @@ -11,19 +11,19 @@ import java.util.Set; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.AnnotatedConstructor; -import javax.enterprise.inject.spi.AnnotatedField; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.AnnotatedConstructor; +import jakarta.enterprise.inject.spi.AnnotatedField; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java index e65e50366386d..30618eb723d01 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/AmbiguousNameTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/InvalidNamedInjectionPointTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/InvalidNamedInjectionPointTest.java index de39e4dd722a2..5e6cba5a938a4 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/InvalidNamedInjectionPointTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/InvalidNamedInjectionPointTest.java @@ -4,10 +4,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java index 0e4ddfac45ae1..6ab64323608fc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/name/NameResolutionTest.java @@ -3,12 +3,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.literal.NamedLiteral; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.literal.NamedLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java index 526b23a7fa7ce..c8134a4707eb1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ParameterizedPayloadTest.java @@ -8,12 +8,12 @@ import java.util.List; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java index d85238bfa1c36..4c76b018b2650 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/RuntimeClassTest.java @@ -5,12 +5,12 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java index 7c5abc7c7f5e2..c9a6da10accde 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/SimpleObserverTest.java @@ -5,12 +5,12 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java index bfd25ce0043b1..28d9cf0488d68 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverExceptionTest.java @@ -15,13 +15,13 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.ObservesAsync; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java index b30a8ab2f70be..25790f794f593 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/AsyncObserverTest.java @@ -11,14 +11,14 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PostConstruct; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.enterprise.event.ObservesAsync; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/CustomAsyncObserverExceptionHandlerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/CustomAsyncObserverExceptionHandlerTest.java index 9b9409e7d0092..5d624440fd00a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/CustomAsyncObserverExceptionHandlerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/async/CustomAsyncObserverExceptionHandlerTest.java @@ -11,13 +11,13 @@ import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicBoolean; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.ObservesAsync; -import javax.enterprise.inject.spi.EventContext; -import javax.enterprise.inject.spi.ObserverMethod; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.enterprise.inject.spi.EventContext; +import jakarta.enterprise.inject.spi.ObserverMethod; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java index 0c69615622422..2a444578234b6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/discovery/ObserverOnClassWithoutBeanDefiningAnnotationTest.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/BindingTypeA.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/BindingTypeA.java index cec895c3bded8..45391edebb8d0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/BindingTypeA.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/BindingTypeA.java @@ -6,8 +6,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/DuplicateBindingsResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/DuplicateBindingsResolutionTest.java index 25e4974788f62..1b06a4c53e381 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/DuplicateBindingsResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/duplicate/bindings/DuplicateBindingsResolutionTest.java @@ -2,9 +2,9 @@ import java.lang.annotation.Annotation; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.CDI; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -14,7 +14,7 @@ /** * Tests that when you try to resolve observer methods via - * {@link javax.enterprise.inject.spi.BeanManager#resolveObserverMethods(Object, Annotation...)}, + * {@link jakarta.enterprise.inject.spi.BeanManager#resolveObserverMethods(Object, Annotation...)}, * you will get an exception if you pass in twice the same annotation that is not repeatable. */ public class DuplicateBindingsResolutionTest { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java index 143699cdbd6df..ea270b87e83ee 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ifexists/ReceptionIfExistsTest.java @@ -5,11 +5,11 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.event.Reception; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.event.Reception; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/EmittingBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/EmittingBean.java index 0b6b973e827ba..954c6bbdafc92 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/EmittingBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/EmittingBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.observers.inheritance; -import javax.enterprise.event.Event; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/NonObservingSubBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/NonObservingSubBean.java index 1fa23774c425e..eb5d57d7db765 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/NonObservingSubBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/NonObservingSubBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.observers.inheritance; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObserverInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObserverInheritanceTest.java index 7cd9f756fb3c5..cd3eca47b56d8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObserverInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObserverInheritanceTest.java @@ -4,7 +4,7 @@ import java.lang.annotation.Annotation; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.util.AnnotationLiteral; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingBean.java index 3beb625a943f7..c99cbdd9b4b8a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingBean.java @@ -5,9 +5,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Qualifier; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingSubBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingSubBean.java index 9cb1cedc12ed4..4dd5c021a58b8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingSubBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/ObservingSubBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.observers.inheritance; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * @author Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/OriginalBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/OriginalBean.java index ede8d86ac4ddf..44a77b93d0c85 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/OriginalBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/OriginalBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.observers.inheritance.different.packages; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Initialized; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class OriginalBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/subpackage/AlternativeBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/subpackage/AlternativeBean.java index b4a5b83001fdc..b8c457ba49cf1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/subpackage/AlternativeBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/different/packages/subpackage/AlternativeBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.observers.inheritance.different.packages.subpackage; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import io.quarkus.arc.test.observers.inheritance.different.packages.OriginalBean; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/generated/GeneratedObserverClassNotSharedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/generated/GeneratedObserverClassNotSharedTest.java index 96886ffdd490a..79776678a50c0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/generated/GeneratedObserverClassNotSharedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/generated/GeneratedObserverClassNotSharedTest.java @@ -6,10 +6,10 @@ import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/typevariable/ObserverInheritanceTypeVariableTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/typevariable/ObserverInheritanceTypeVariableTest.java index 30390f3bc73a8..78cb788e844e1 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/typevariable/ObserverInheritanceTypeVariableTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/inheritance/typevariable/ObserverInheritanceTypeVariableTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java index 56483d2a27343..8021aee8041fc 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/injection/SimpleObserverInjectionTest.java @@ -8,13 +8,13 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java index 781270997ce4f..8ff071be8aab9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataTest.java @@ -6,10 +6,10 @@ import java.math.BigDecimal; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.spi.EventMetadata; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java index e2bef85aebfe2..38cc65e91e126 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/metadata/EventMetadataWrongInjectionTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.DefinitionException; -import javax.enterprise.inject.spi.EventMetadata; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.EventMetadata; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/notification/ObserverNotificationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/notification/ObserverNotificationTest.java index cfb1953fb1612..6a548b424b89d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/notification/ObserverNotificationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/notification/ObserverNotificationTest.java @@ -4,8 +4,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java index c2a1f9f27e82c..a2ddd3b4ba7c4 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/ordering/ObserverOrderingTest.java @@ -5,13 +5,13 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/request/RequestInObserverNotificationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/request/RequestInObserverNotificationTest.java index 2c95cb2182de3..3ad7a8574adf5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/request/RequestInObserverNotificationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/request/RequestInObserverNotificationTest.java @@ -10,11 +10,11 @@ import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.event.Observes; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/staticmethods/StaticObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/staticmethods/StaticObserverTest.java index 8685bf5f02776..ba4bc34d224ae 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/staticmethods/StaticObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/observers/staticmethods/StaticObserverTest.java @@ -9,9 +9,9 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java index e08b220f5bf45..25bf3c9e1093d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/async/AsyncProducerTest.java @@ -8,10 +8,10 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java index 20139fff7458e..365d2ed09ce3f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/dependent/DeclaringBeanTest.java @@ -9,11 +9,11 @@ import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Singleton; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java index a7880303b6d79..eeeb7bf19f6bf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/discovery/ProducerOnClassWithoutBeanDefiningAnnotationTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java index ba94705131cf0..5d6ecd3ca6d69 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerTest.java @@ -9,15 +9,15 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Singleton; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerWithWildcardTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerWithWildcardTest.java index 625cc290f7aac..b45cd3ba79fca 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerWithWildcardTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/DisposerWithWildcardTest.java @@ -8,10 +8,10 @@ import java.util.Map; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java index 264ce8ab98c7a..bad937661c163 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/disposer/StaticDisposerTest.java @@ -6,11 +6,11 @@ import java.math.BigDecimal; import java.math.BigInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/Claim.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/Claim.java index 7e41972dc157f..bc2ac2455a41a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/Claim.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/Claim.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.inject.Qualifier; +import jakarta.enterprise.util.Nonbinding; +import jakarta.inject.Qualifier; @Qualifier @Retention(RetentionPolicy.RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/DuplicateRecursiveGenericTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/DuplicateRecursiveGenericTest.java index 31188eabb78e9..7f08e354c17fb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/DuplicateRecursiveGenericTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/DuplicateRecursiveGenericTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/ErasedGenericTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/ErasedGenericTest.java index fb899125fc465..6e12fec9345b9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/ErasedGenericTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/ErasedGenericTest.java @@ -5,12 +5,12 @@ import java.lang.annotation.Annotation; import java.util.Optional; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/GenericProducerHierarchyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/GenericProducerHierarchyTest.java index faf086924a312..c94ee3a408928 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/GenericProducerHierarchyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/GenericProducerHierarchyTest.java @@ -5,9 +5,9 @@ import java.util.Optional; import java.util.function.Function; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/MutuallyRecursiveGenericTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/MutuallyRecursiveGenericTest.java index 2af37a49e6e71..a1eb3fa93a9a6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/MutuallyRecursiveGenericTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/MutuallyRecursiveGenericTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericInvalidTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericInvalidTest.java index a59453e540b08..b787cd82f9f66 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericInvalidTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericInvalidTest.java @@ -6,10 +6,10 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericTest.java index 29df72f2d3c15..5f1552a7ca87b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/generic/RecursiveGenericTest.java @@ -5,11 +5,11 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/IllegalProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/IllegalProducerTest.java index c55ac3e81fa05..343fbc14cded7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/IllegalProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/IllegalProducerTest.java @@ -5,10 +5,10 @@ import java.io.Serializable; import java.time.temporal.Temporal; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.IllegalProductException; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.IllegalProductException; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/ProducerFieldWithInjectTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/ProducerFieldWithInjectTest.java index 39a1ef2b985ad..4ffb9285bb217 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/ProducerFieldWithInjectTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/illegal/ProducerFieldWithInjectTest.java @@ -5,10 +5,10 @@ import java.time.temporal.Temporal; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java index bc762a2193c0f..4f57e02389260 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveProducerTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveWrapperProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveWrapperProducerTest.java index 4987f93f79d0c..088c4c66d2814 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveWrapperProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/primitive/PrimitiveWrapperProducerTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java index dee3671884dac..8b08ae36c271b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerFieldTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java index 92c07219f72b3..b79de8551c2fa 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/privatemember/PrivateProducerMethodTest.java @@ -2,9 +2,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/staticProducers/StaticMethodProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/staticProducers/StaticMethodProducerTest.java index dc959ae0fe887..d8a68b307a4eb 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/staticProducers/StaticMethodProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/producer/staticProducers/StaticMethodProducerTest.java @@ -5,10 +5,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/Location.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/Location.java index 266d953d31741..30986e8f6628c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/Location.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/Location.java @@ -11,8 +11,8 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Qualifier; +import jakarta.enterprise.util.AnnotationLiteral; +import jakarta.inject.Qualifier; @Qualifier @Inherited diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierClassTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierClassTest.java index 922c0f057a507..35ab3d1e42763 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierClassTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierClassTest.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.qualifiers; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierObserverTest.java index 3710b4fa912bf..aca50bdfd3ff0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierObserverTest.java @@ -3,9 +3,9 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.enterprise.event.Observes; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierProducerTest.java index 0dbe9dd1bd604..1d49b61d9b454 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/RepeatingQualifierProducerTest.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.qualifiers; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/AnimalQualifier.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/AnimalQualifier.java index 8d54c2259c588..f12dc81fe6e2e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/AnimalQualifier.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/AnimalQualifier.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.inject.Qualifier; +import jakarta.inject.Qualifier; @Qualifier @Retention(RetentionPolicy.RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Cat.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Cat.java index 63365663fd64b..b4d7050375de2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Cat.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Cat.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.qualifiers.defaultvalues; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent @AnimalQualifier("cat") diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Owl.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Owl.java index 6bd5819732192..25c328bf1cc7e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Owl.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/Owl.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.qualifiers.defaultvalues; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent @AnimalQualifier diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/QualifierDefaultValuesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/QualifierDefaultValuesTest.java index 7fabbc0829ef5..6f77cfbe47119 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/QualifierDefaultValuesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/qualifiers/defaultvalues/QualifierDefaultValuesTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java index 94995ad1f743a..8cedf873baf52 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/RuntimeResolutionTest.java @@ -7,9 +7,9 @@ import java.util.AbstractList; import java.util.List; -import javax.enterprise.inject.Produces; -import javax.enterprise.util.TypeLiteral; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.util.TypeLiteral; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java index 309e2dd495d5d..42e8056c4b962 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/TypedTest.java @@ -8,11 +8,11 @@ import java.io.IOException; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; -import javax.enterprise.inject.spi.Bean; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedBeanTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedBeanTest.java index 44ecb8b991482..38c62b0d74532 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedBeanTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedBeanTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerFieldTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerFieldTest.java index 5eba9b2987cd8..5242638f6b5f7 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerFieldTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerFieldTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerMethodTest.java index b3710d0ca8337..1156d4101c0c6 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/BrokenTypedProducerMethodTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/FieldProducerBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/FieldProducerBean.java index e065239331c1e..82b17dcbe0b2a 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/FieldProducerBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/FieldProducerBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.resolution.broken; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; @Dependent public class FieldProducerBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MethodProducerBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MethodProducerBean.java index 4ee624d0be656..358dfa937210d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MethodProducerBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MethodProducerBean.java @@ -1,8 +1,8 @@ package io.quarkus.arc.test.resolution.broken; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Typed; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Typed; @Dependent public class MethodProducerBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyBean.java index 6475ab23bf10e..0b9649894a2b0 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyBean.java @@ -1,7 +1,7 @@ package io.quarkus.arc.test.resolution.broken; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Typed; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Typed; @Dependent @Typed(value = MyOtherBean.class) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyOtherBean.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyOtherBean.java index 3f9907e05e9ed..ebe26f581d7f9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyOtherBean.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/resolution/broken/MyOtherBean.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.resolution.broken; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class MyOtherBean { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/MultipleStereotypeScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/MultipleStereotypeScopesTest.java index 2356f7e026d1b..5860f82791fab 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/MultipleStereotypeScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/MultipleStereotypeScopesTest.java @@ -10,10 +10,10 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Model; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Model; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java index d0032fa9a7587..c9b30f75cbf61 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleBinding.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java index 05c47fe1afc36..a48c3f7122a77 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/SimpleInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.stereotypes; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @SimpleBinding @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeArcPriorityTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeArcPriorityTest.java index 037098c99020f..f29115abf3be3 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeArcPriorityTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeArcPriorityTest.java @@ -11,9 +11,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Stereotype; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java index c3d7483d4ddb6..92811a9072bb8 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeAlternativeTest.java @@ -11,10 +11,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Stereotype; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Stereotype; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInheritanceTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInheritanceTest.java index 20b772d85ebcd..0615f059d7f78 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInheritanceTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInheritanceTest.java @@ -14,11 +14,11 @@ import java.util.Set; import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java index 8db333459c8af..14d7f05325d03 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeInterceptorTest.java @@ -8,9 +8,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.BeanManager; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.CDI; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java index a7474a1192a75..5e0f8dbdb340d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeNamedTest.java @@ -7,9 +7,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Stereotype; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeOnProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeOnProducerTest.java index f9aec4a03e664..c81ee89f736ab 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeOnProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeOnProducerTest.java @@ -7,10 +7,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Stereotype; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Stereotype; +import jakarta.inject.Named; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java index 052ed0664a0ef..19d55618676cf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/StereotypeScopeTest.java @@ -5,10 +5,10 @@ import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Model; -import javax.enterprise.inject.Typed; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Model; +import jakarta.enterprise.inject.Typed; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/TransitiveStereotypeTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/TransitiveStereotypeTest.java index b195a02cc4736..2732f9b804f2d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/TransitiveStereotypeTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/stereotypes/TransitiveStereotypeTest.java @@ -13,11 +13,11 @@ import java.util.Set; import java.util.UUID; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/transientreference/TransientReferenceDestroyedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/transientreference/TransientReferenceDestroyedTest.java index a78d8d1b95c80..940ae53da59af 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/transientreference/TransientReferenceDestroyedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/transientreference/TransientReferenceDestroyedTest.java @@ -8,16 +8,16 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.TransientReference; -import javax.enterprise.inject.spi.AnnotatedField; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.TransientReference; +import jakarta.enterprise.inject.spi.AnnotatedField; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Alpha.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Alpha.java index 62c4030d78082..8d2dd5e3ab5cf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Alpha.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Alpha.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/AlphaInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/AlphaInterceptor.java index 45356b22e6375..500616662293b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/AlphaInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/AlphaInterceptor.java @@ -1,10 +1,10 @@ package io.quarkus.arc.test.unused; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Alpha @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Bravo.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Bravo.java index 02fab14a65e04..fdc748df9a772 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Bravo.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Bravo.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/BravoInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/BravoInterceptor.java index f1fa2e03e5393..9e4c2a4de0f6e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/BravoInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/BravoInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.unused; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Alpha @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Counter.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Counter.java index df54d4ddf683b..3fd4dbabdfd45 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Counter.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/Counter.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Bravo // Intercepted by Bravo, injected in Alpha! @Singleton diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedBeansTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedBeansTest.java index 89c12cf726f8a..5de6b95a640bd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedBeansTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedBeansTest.java @@ -7,17 +7,17 @@ import java.math.BigDecimal; import java.math.BigInteger; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Named; -import javax.inject.Provider; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.inject.Provider; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedDecoratorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedDecoratorTest.java index e3edf75dd84a7..a694815d69bbd 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedDecoratorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedDecoratorTest.java @@ -4,12 +4,12 @@ import java.util.Set; -import javax.annotation.Priority; -import javax.decorator.Decorator; -import javax.decorator.Delegate; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.annotation.Priority; +import jakarta.decorator.Decorator; +import jakarta.decorator.Delegate; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedInterceptorTest.java index be8971eda0a91..31cc03a480fc9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedInterceptorTest.java @@ -2,10 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.InterceptionType; -import javax.enterprise.util.AnnotationLiteral; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.InterceptionType; +import jakarta.enterprise.util.AnnotationLiteral; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/AbstractNormalScopedFinalTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/AbstractNormalScopedFinalTest.java index a091442f73623..2fbb9a066578e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/AbstractNormalScopedFinalTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/AbstractNormalScopedFinalTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Vetoed; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorFinalTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorFinalTest.java index ee195e8bca5c5..89b3391b49427 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorFinalTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorFinalTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorPrivateNoArgsConstructorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorPrivateNoArgsConstructorTest.java index 00999bfd34412..7f62d688dfca2 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorPrivateNoArgsConstructorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/BoundInterceptorPrivateNoArgsConstructorTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java index c0c47f3fd430f..edfee0c34414b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ClassBeanMultipleScopesTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Singleton; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Singleton; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedAsyncObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedAsyncObserverTest.java index 968c141e564c5..148d8a38fd1bf 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedAsyncObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedAsyncObserverTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.ObservesAsync; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.ObservesAsync; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedDisposerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedDisposerTest.java index a4e0bcfab8f4a..5fd439a1ff593 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedDisposerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedDisposerTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedObserverTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedObserverTest.java index f4f4b64243637..7f6c8034df706 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedObserverTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedObserverTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedProducerTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedProducerTest.java index 338b56a4fb96e..39529f391879b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedProducerTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InitializerMethodMarkedProducerTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DefinitionException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DefinitionException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructTest.java index 0994fc10c014d..333784b69af00 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructWithParametersTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructWithParametersTest.java index cab640a82436a..22670f7406192 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructWithParametersTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPostConstructWithParametersTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPreDestroyTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPreDestroyTest.java index 26e2b7a46fcb0..e966915d3108e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPreDestroyTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/InvalidPreDestroyTest.java @@ -3,9 +3,9 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedConstructorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedConstructorTest.java index 125cd7685198d..3c769f0bcba2c 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedConstructorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedConstructorTest.java @@ -3,10 +3,10 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.DeploymentException; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedPrivateNoArgsConstructorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedPrivateNoArgsConstructorTest.java index 6c32c5ac71ea7..3e78e6f1c9f0d 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedPrivateNoArgsConstructorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/NormalScopedPrivateNoArgsConstructorTest.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.spi.DeploymentException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.spi.DeploymentException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java index caf2308068e8d..068cf4585e1ef 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerFieldMultipleScopesTest.java @@ -5,11 +5,11 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java index 85f6ac327d5e9..5933da009511e 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/ProducerMethodMultipleScopesTest.java @@ -5,11 +5,11 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java index 036466f573e96..324e6432f2c55 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/Simple.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java index dba0728e1995a..8ff47300ef92b 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/SimpleInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.arc.test.validation; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple @Priority(1) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnFieldTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnFieldTest.java index 92da8e090f1f2..b0022da642897 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnFieldTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnFieldTest.java @@ -8,9 +8,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnMethodTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnMethodTest.java index 320c0d2bbfa9d..9a7ec7486aa3f 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnMethodTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/validation/StereotypeOnMethodTest.java @@ -8,9 +8,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Stereotype; -import javax.enterprise.inject.spi.DefinitionException; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.spi.DefinitionException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/Logging.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/Logging.java index 1525641c2855a..eac4de9fdab13 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/Logging.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/Logging.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Target({ TYPE, METHOD }) @Retention(RUNTIME) diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java index 71cc95a8f0369..02ed2be953f40 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/VetoedTest.java @@ -7,12 +7,12 @@ import java.util.AbstractList; import java.util.concurrent.atomic.AtomicBoolean; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Vetoed; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Vetoed; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/PackageVetoed.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/PackageVetoed.java index ba5fad7a05341..39cd0544c4e32 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/PackageVetoed.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/PackageVetoed.java @@ -1,6 +1,6 @@ package io.quarkus.arc.test.vetoed.subpkg; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class PackageVetoed { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/package-info.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/package-info.java index d71de85769d4d..0cf08ed790016 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/package-info.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/vetoed/subpkg/package-info.java @@ -1,4 +1,4 @@ @Vetoed package io.quarkus.arc.test.vetoed.subpkg; -import javax.enterprise.inject.Vetoed; \ No newline at end of file +import jakarta.enterprise.inject.Vetoed; diff --git a/independent-projects/bootstrap/bom/pom.xml b/independent-projects/bootstrap/bom/pom.xml index 105d6b2fff944..67df74fdc018c 100644 --- a/independent-projects/bootstrap/bom/pom.xml +++ b/independent-projects/bootstrap/bom/pom.xml @@ -71,16 +71,6 @@ org.apache.maven maven-plugin-api ${maven-core.version} - - - javax.annotation - javax.annotation-api - - - javax.inject - javax.inject - -
    org.apache.maven @@ -118,10 +108,6 @@ maven-core ${maven-core.version} - - javax.inject - javax.inject - org.checkerframework checker-qual @@ -145,19 +131,12 @@ org.sonatype.plexus plexus-cipher - - javax.annotation - javax.annotation-api - - - javax.inject - javax.inject - org.slf4j slf4j-api - + + org.codehaus.plexus plexus-utils @@ -198,15 +177,21 @@ jakarta.inject-api ${jakarta.inject-api.version} + + javax.annotation + javax.annotation-api + ${javax.annotation-api.version} + + + javax.inject + javax.inject + ${javax.inject.version} + org.apache.maven maven-resolver-provider ${maven-core.version} - - javax.inject - javax.inject - org.slf4j slf4j-api @@ -218,10 +203,6 @@ maven-settings-builder ${maven-core.version} - - javax.inject - javax.inject - org.codehaus.plexus plexus-utils diff --git a/independent-projects/bootstrap/pom.xml b/independent-projects/bootstrap/pom.xml index b16f12e073273..d7ae1cbad26ba 100644 --- a/independent-projects/bootstrap/pom.xml +++ b/independent-projects/bootstrap/pom.xml @@ -30,6 +30,10 @@ HEAD + 1.0.0 + 5.0.0 + 1.3.2 + 1 UTF-8 11 11 @@ -52,9 +56,9 @@ 4.4.16 1.0.0.Final 2.14.2 - 1.3.5 - 2.0.2 - 1.0 + 2.1.1 + 4.0.1 + 2.0.1 2.11.0 3.12.0 31.1-jre @@ -65,7 +69,7 @@ 1.7.36 22.3.0 2.6.0 - 1.13.2 + 2.0.0 7.5.1 0.0.9 0.1.3 diff --git a/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml b/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml index 0e95dae390b0c..ecca017d9cca1 100644 --- a/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml +++ b/independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml @@ -17,18 +17,20 @@ org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec --> - jakarta.xml.bind:jakarta.xml.bind-api - jakarta.ws.rs:jakarta.ws.rs-api + org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec + org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_3.0_spec + org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec javax.activation:activation javax.activation:javax.activation-api - javax.annotation:javax.annotation-api + javax.enterprise:cdi-api - javax.inject:javax.inject + javax.json:javax.json-api javax.json.bind:javax.json.bind-api org.glassfish:javax.json org.glassfish:javax.el + org.glassfish:jakarta.el javax.persistence:javax.persistence-api javax.persistence:persistence-api javax.security.enterprise:javax.security.enterprise-api @@ -40,8 +42,8 @@ javax.xml.bind:jaxb-api javax.websocket:javax.websocket-api javax.ws.rs:javax.ws.rs-api - - jakarta.activation:jakarta.activation-api + + com.sun.activation:jakarta.activation org.jboss.logging:jboss-logmanager org.jboss.logging:jboss-logging-jdk @@ -51,8 +53,8 @@ org.wildfly.client:wildfly-client-config org.jboss.marshalling:jboss-marshalling-osgi org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec - - jakarta.json:jakarta.json-api + org.glassfish:jakarta.json + org.eclipse.parsson:jakarta.json io.netty:netty-all diff --git a/independent-projects/extension-maven-plugin/pom.xml b/independent-projects/extension-maven-plugin/pom.xml index d54a66351ebe5..29ce4f5a25cfa 100644 --- a/independent-projects/extension-maven-plugin/pom.xml +++ b/independent-projects/extension-maven-plugin/pom.xml @@ -29,6 +29,10 @@ HEAD + 1.0.0 + 5.0.0 + 1.3.2 + 1 UTF-8 11 11 diff --git a/independent-projects/resteasy-reactive/build-support/src/main/java/org/jboss/resteasy/reactive/build/support/AllWriteableMessageBodyWriterByteBuddyPlugin.java b/independent-projects/resteasy-reactive/build-support/src/main/java/org/jboss/resteasy/reactive/build/support/AllWriteableMessageBodyWriterByteBuddyPlugin.java index 40495c4ac1100..d9405232cdf91 100644 --- a/independent-projects/resteasy-reactive/build-support/src/main/java/org/jboss/resteasy/reactive/build/support/AllWriteableMessageBodyWriterByteBuddyPlugin.java +++ b/independent-projects/resteasy-reactive/build-support/src/main/java/org/jboss/resteasy/reactive/build/support/AllWriteableMessageBodyWriterByteBuddyPlugin.java @@ -9,8 +9,8 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicBoolean; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.types.AllWriteableMarker; diff --git a/independent-projects/resteasy-reactive/client/processor/pom.xml b/independent-projects/resteasy-reactive/client/processor/pom.xml index 98a7ae2206e86..bf6cbab1028db 100644 --- a/independent-projects/resteasy-reactive/client/processor/pom.xml +++ b/independent-projects/resteasy-reactive/client/processor/pom.xml @@ -31,8 +31,8 @@ resteasy-reactive-common-processor - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.enterprise diff --git a/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParser.java b/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParser.java index 1325f3ad1f793..d56ce79303f9a 100644 --- a/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParser.java +++ b/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParser.java @@ -20,7 +20,7 @@ import java.util.function.BiFunction; import java.util.stream.Collectors; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/scanning/ClientEndpointIndexer.java b/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/scanning/ClientEndpointIndexer.java index 6d7951ed1f80d..e390280be4816 100644 --- a/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/scanning/ClientEndpointIndexer.java +++ b/independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/scanning/ClientEndpointIndexer.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.client.processor.scanning; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.JSONP_JSON_ARRAY; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.JSONP_JSON_NUMBER; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.JSONP_JSON_OBJECT; @@ -13,7 +13,7 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; @@ -195,13 +195,13 @@ private void addReaderWriterForType(AdditionalReaderWriter additionalReaderWrite if (dotName.equals(JSONP_JSON_NUMBER) || dotName.equals(JSONP_JSON_VALUE) || dotName.equals(JSONP_JSON_STRING)) { - additionalReaderWriter.add(JsonValueHandler.class, APPLICATION_JSON, javax.json.JsonValue.class); + additionalReaderWriter.add(JsonValueHandler.class, APPLICATION_JSON, jakarta.json.JsonValue.class); } else if (dotName.equals(JSONP_JSON_ARRAY)) { - additionalReaderWriter.add(JsonArrayHandler.class, APPLICATION_JSON, javax.json.JsonArray.class); + additionalReaderWriter.add(JsonArrayHandler.class, APPLICATION_JSON, jakarta.json.JsonArray.class); } else if (dotName.equals(JSONP_JSON_OBJECT)) { - additionalReaderWriter.add(JsonObjectHandler.class, APPLICATION_JSON, javax.json.JsonObject.class); + additionalReaderWriter.add(JsonObjectHandler.class, APPLICATION_JSON, jakarta.json.JsonObject.class); } else if (dotName.equals(JSONP_JSON_STRUCTURE)) { - additionalReaderWriter.add(JsonStructureHandler.class, APPLICATION_JSON, javax.json.JsonStructure.class); + additionalReaderWriter.add(JsonStructureHandler.class, APPLICATION_JSON, jakarta.json.JsonStructure.class); } } diff --git a/independent-projects/resteasy-reactive/client/processor/src/test/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParserTest.java b/independent-projects/resteasy-reactive/client/processor/src/test/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParserTest.java index 12ea91cd1b266..7a74f7a4337d5 100644 --- a/independent-projects/resteasy-reactive/client/processor/src/test/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParserTest.java +++ b/independent-projects/resteasy-reactive/client/processor/src/test/java/org/jboss/resteasy/reactive/client/processor/beanparam/BeanParamParserTest.java @@ -9,12 +9,12 @@ import java.util.List; import java.util.function.Consumer; -import javax.ws.rs.BeanParam; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.jboss.jandex.DotName; import org.jboss.jandex.Index; diff --git a/independent-projects/resteasy-reactive/client/runtime/pom.xml b/independent-projects/resteasy-reactive/client/runtime/pom.xml index 54ab535945c1b..9855adf1df501 100644 --- a/independent-projects/resteasy-reactive/client/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/client/runtime/pom.xml @@ -27,8 +27,8 @@ jakarta.enterprise.cdi-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/api/WebClientApplicationException.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/api/WebClientApplicationException.java index e23fb895f248a..fe90b5243317a 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/api/WebClientApplicationException.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/api/WebClientApplicationException.java @@ -7,14 +7,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.ResteasyReactiveClientProblem; import org.jboss.resteasy.reactive.common.jaxrs.StatusTypeImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientRequestFilterRestHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientRequestFilterRestHandler.java index fef67327899ca..c369e987ca940 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientRequestFilterRestHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientRequestFilterRestHandler.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.client.handlers; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.client.ClientRequestFilter; import org.jboss.resteasy.reactive.client.impl.ClientRequestContextImpl; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseCompleteRestHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseCompleteRestHandler.java index 44a28a884cbbb..873bb8fd62d19 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseCompleteRestHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseCompleteRestHandler.java @@ -10,10 +10,10 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.client.impl.ClientResponseBuilderImpl; import org.jboss.resteasy.reactive.client.impl.ClientResponseContextImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseFilterRestHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseFilterRestHandler.java index 2a31416e2444b..b5c8db5a7b1b9 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseFilterRestHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientResponseFilterRestHandler.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.client.handlers; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.ClientResponseFilter; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSendRequestHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSendRequestHandler.java index 8d1d7d62c3cbb..f4c0d51855917 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSendRequestHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSendRequestHandler.java @@ -14,13 +14,13 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Variant; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.AsyncResultUni; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSetResponseEntityRestHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSetResponseEntityRestHandler.java index 2b3ccf504efcb..4e4f5745ad57e 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSetResponseEntityRestHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/handlers/ClientSetResponseEntityRestHandler.java @@ -3,11 +3,11 @@ import java.io.ByteArrayInputStream; import java.io.IOException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.StatusType; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.StatusType; import org.jboss.resteasy.reactive.client.api.WebClientApplicationException; import org.jboss.resteasy.reactive.client.impl.ClientRequestContextImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractClientInterceptorContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractClientInterceptorContextImpl.java index 69143868b9737..67f475bda7920 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractClientInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractClientInterceptorContextImpl.java @@ -7,8 +7,8 @@ import java.util.Map; import java.util.Objects; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.InterceptorContext; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.InterceptorContext; public abstract class AbstractClientInterceptorContextImpl implements InterceptorContext { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractRxInvoker.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractRxInvoker.java index 91f4cefe15dcf..422695cea5844 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractRxInvoker.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AbstractRxInvoker.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.client.impl; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.RxInvoker; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.RxInvoker; +import jakarta.ws.rs.core.GenericType; public abstract class AbstractRxInvoker implements RxInvoker { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AsyncInvokerImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AsyncInvokerImpl.java index 8708360ffce7a..83129607a2bde 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AsyncInvokerImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/AsyncInvokerImpl.java @@ -10,13 +10,13 @@ import java.util.function.BiConsumer; import java.util.function.Function; -import javax.ws.rs.client.AsyncInvoker; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.InvocationCallback; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.AsyncInvoker; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.InvocationCallback; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientBuilderImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientBuilderImpl.java index 2c51b18d2dd3f..90bccd8b89c26 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientBuilderImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientBuilderImpl.java @@ -19,11 +19,12 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; + +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.api.ClientLogger; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientImpl.java index a7ea3759d8a86..f985b1772c884 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientImpl.java @@ -20,13 +20,14 @@ import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriBuilder; + +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriBuilder; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.api.ClientLogger; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientProxies.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientProxies.java index 88be8ed791c17..02208bffab490 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientProxies.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientProxies.java @@ -5,8 +5,8 @@ import java.util.Map; import java.util.function.BiFunction; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.client.api.InvalidRestClientDefinitionException; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java index f8ccc56bbcefa..200f0c5bcc8eb 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientReaderInterceptorContextImpl.java @@ -10,14 +10,14 @@ import java.util.Map; import java.util.ServiceLoader; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.ReaderInterceptorContext; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.ReaderInterceptorContext; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; import org.jboss.resteasy.reactive.client.spi.MissingMessageBodyReaderErrorMessageContextualizer; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestContextImpl.java index 486e7e3d00dd4..fcd63ed74d957 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestContextImpl.java @@ -22,16 +22,16 @@ import java.util.TreeSet; import java.util.concurrent.atomic.AtomicBoolean; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; import org.jboss.resteasy.reactive.common.NotImplementedYet; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestHeaders.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestHeaders.java index 57502bcd796af..9206508372bc0 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestHeaders.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRequestHeaders.java @@ -6,11 +6,11 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseBuilderImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseBuilderImpl.java index d67012b3d084b..52a953b6035ea 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseBuilderImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseBuilderImpl.java @@ -3,7 +3,7 @@ import java.io.InputStream; import java.net.URI; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.NotImplementedYet; import org.jboss.resteasy.reactive.common.jaxrs.AbstractResponseBuilder; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseContextImpl.java index 4c8694d0f5bad..ca04826b1e2ad 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseContextImpl.java @@ -8,14 +8,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Link.Builder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response.StatusType; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Link.Builder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response.StatusType; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.common.headers.LinkHeaders; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseImpl.java index 7c04c7e329a49..7a31e3421077d 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientResponseImpl.java @@ -5,8 +5,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl; import org.jboss.resteasy.reactive.common.util.EmptyInputStream; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRestResponseImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRestResponseImpl.java index a20995e83766b..c8c0630dbbb7e 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRestResponseImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientRestResponseImpl.java @@ -5,8 +5,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.jaxrs.RestResponseImpl; import org.jboss.resteasy.reactive.common.util.EmptyInputStream; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientSerialisers.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientSerialisers.java index 8a5b331cc04c8..fc837e422aae4 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientSerialisers.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientSerialisers.java @@ -10,19 +10,19 @@ import java.util.Collections; import java.util.Map; -import javax.json.JsonArray; -import javax.json.JsonObject; -import javax.json.JsonValue; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.json.JsonArray; +import jakarta.json.JsonObject; +import jakarta.json.JsonValue; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.providers.serialisers.ClientDefaultTextPlainBodyHandler; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientWriterInterceptorContextImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientWriterInterceptorContextImpl.java index 56f636562aee9..72ca6b69d29a0 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientWriterInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/ClientWriterInterceptorContextImpl.java @@ -8,13 +8,13 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.WriterInterceptorContext; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; import org.jboss.resteasy.reactive.common.core.Serialisers; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java index 7a36da34f33dd..edb308bd79a2b 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.function.Supplier; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; import org.jboss.resteasy.reactive.client.spi.ClientContext; import org.jboss.resteasy.reactive.client.spi.ClientContextResolver; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/HandlerChain.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/HandlerChain.java index 55d448d7725fc..c518a68c629aa 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/HandlerChain.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/HandlerChain.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseFilter; import org.jboss.resteasy.reactive.client.api.ClientLogger; import org.jboss.resteasy.reactive.client.api.LoggingScope; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InboundSseEventImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InboundSseEventImpl.java index 947097eed0841..80c90ee0c0446 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InboundSseEventImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InboundSseEventImpl.java @@ -7,10 +7,10 @@ import java.nio.charset.StandardCharsets; import java.util.Objects; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEvent; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEvent; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationBuilderImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationBuilderImpl.java index e83834eb45dce..15e334dba600e 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationBuilderImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationBuilderImpl.java @@ -9,20 +9,20 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.CompletionStageRxInvoker; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.RxInvoker; -import javax.ws.rs.client.RxInvokerProvider; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.CompletionStageRxInvoker; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.RxInvoker; +import jakarta.ws.rs.client.RxInvokerProvider; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.core.BlockingNotAllowedException; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationImpl.java index b243a03d4053a..a46f0fa19d633 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/InvocationImpl.java @@ -3,13 +3,13 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.InvocationCallback; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.InvocationCallback; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; public class InvocationImpl implements Invocation { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/MultiInvoker.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/MultiInvoker.java index aa4129bbd27b3..ead3b0a0ef12a 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/MultiInvoker.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/MultiInvoker.java @@ -5,10 +5,10 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl; import org.jboss.resteasy.reactive.common.util.RestMediaType; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java index 47dcf87d950ff..2923c9f8c092b 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/RestClientRequestContext.java @@ -16,17 +16,17 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executor; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.ClientWebApplicationException; import org.jboss.resteasy.reactive.RestResponse; @@ -72,7 +72,7 @@ public class RestClientRequestContext extends AbstractResteasyReactiveContext result; private final ClientRestHandler[] abortHandlerChainWithoutResponseFilters; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceBuilderImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceBuilderImpl.java index 932fd7971039d..2b3018c4a1399 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceBuilderImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceBuilderImpl.java @@ -3,9 +3,9 @@ import java.util.Objects; import java.util.concurrent.TimeUnit; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; -import javax.ws.rs.sse.SseEventSource.Builder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.sse.SseEventSource.Builder; public class SseEventSourceBuilderImpl extends SseEventSource.Builder { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceImpl.java index 4e667efd06451..86ce7c526591c 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseEventSourceImpl.java @@ -6,11 +6,11 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.sse.InboundSseEvent; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.sse.InboundSseEvent; +import jakarta.ws.rs.sse.SseEventSource; import org.jboss.resteasy.reactive.common.util.CommonSseUtil; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseParser.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseParser.java index 47b8e54957a69..039d339d7b962 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseParser.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/SseParser.java @@ -2,8 +2,8 @@ import java.nio.charset.StandardCharsets; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.SseEvent; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.SseEvent; import io.vertx.core.Handler; import io.vertx.core.buffer.Buffer; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java index 020d0d42f6fcd..6d5713e139f83 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java @@ -3,10 +3,10 @@ import java.net.URI; import java.net.URISyntaxException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/UniInvoker.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/UniInvoker.java index 927262a55d57f..dc71c5101ed92 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/UniInvoker.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/UniInvoker.java @@ -3,9 +3,9 @@ import java.util.concurrent.CompletionStage; import java.util.function.Supplier; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Response; import io.smallrye.mutiny.Uni; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/WebTargetImpl.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/WebTargetImpl.java index 2a4989df8ea5e..db696b30fe8f8 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/WebTargetImpl.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/WebTargetImpl.java @@ -7,12 +7,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.client.spi.ClientRestHandler; import org.jboss.resteasy.reactive.common.core.Serialisers; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/QuarkusMultipartForm.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/QuarkusMultipartForm.java index 026c96dbd6861..2a082ffa09edb 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/QuarkusMultipartForm.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/QuarkusMultipartForm.java @@ -8,11 +8,11 @@ import java.util.Iterator; import java.util.List; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.client.impl.ClientSerialisers; import org.jboss.resteasy.reactive.client.impl.RestClientRequestContext; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/providers/serialisers/ClientDefaultTextPlainBodyHandler.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/providers/serialisers/ClientDefaultTextPlainBodyHandler.java index 35f6cca4ec511..e81ecc7a0f46a 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/providers/serialisers/ClientDefaultTextPlainBodyHandler.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/providers/serialisers/ClientDefaultTextPlainBodyHandler.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.client.providers.serialisers; -import javax.ws.rs.Consumes; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.NoContentException; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.NoContentException; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.common.providers.serialisers.DefaultTextPlainBodyHandler; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/FieldFiller.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/FieldFiller.java index 133b89dc5d3ce..53346c2f068b3 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/FieldFiller.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/FieldFiller.java @@ -3,7 +3,7 @@ import java.io.File; import java.nio.file.Path; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.core.GenericType; import org.jboss.resteasy.reactive.multipart.FileDownload; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java index fc374f98f848e..fc731c895f04d 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/MissingMessageBodyReaderErrorMessageContextualizer.java @@ -3,12 +3,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; public interface MissingMessageBodyReaderErrorMessageContextualizer { /** - * Takes the same input as {@link javax.ws.rs.ext.MessageBodyReader#isReadable(Class, Type, Annotation[], MediaType)} + * Takes the same input as {@link jakarta.ws.rs.ext.MessageBodyReader#isReadable(Class, Type, Annotation[], MediaType)} * and returns a {@code String} that contextualizes the error message. * The result can be null if this class is not able to provide any useful context information. */ diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestContext.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestContext.java index ddc89f45029ab..b1cbc2e7809e5 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestContext.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestContext.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.client.spi; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.core.GenericType; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.core.GenericType; import io.smallrye.stork.api.ServiceInstance; import io.vertx.core.Context; diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestFilter.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestFilter.java index 684f27c144285..d4ca467842f8b 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestFilter.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientRequestFilter.java @@ -2,8 +2,8 @@ import java.io.IOException; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; public interface ResteasyReactiveClientRequestFilter extends ClientRequestFilter { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientResponseFilter.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientResponseFilter.java index a641f2768ff30..112620fd9b588 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientResponseFilter.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/spi/ResteasyReactiveClientResponseFilter.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.client.spi; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; public interface ResteasyReactiveClientResponseFilter extends ClientResponseFilter { diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.client.ClientBuilder b/independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.client.ClientBuilder similarity index 100% rename from independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.client.ClientBuilder rename to independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.client.ClientBuilder diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.sse.SseEventSource$Builder b/independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.sse.SseEventSource$Builder similarity index 100% rename from independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.sse.SseEventSource$Builder rename to independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.sse.SseEventSource$Builder diff --git a/independent-projects/resteasy-reactive/client/runtime/src/test/java/org/jboss/resteasy/reactive/client/impl/HandlerChainTest.java b/independent-projects/resteasy-reactive/client/runtime/src/test/java/org/jboss/resteasy/reactive/client/impl/HandlerChainTest.java index 529ad6ce5078d..db1dda6733303 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/test/java/org/jboss/resteasy/reactive/client/impl/HandlerChainTest.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/test/java/org/jboss/resteasy/reactive/client/impl/HandlerChainTest.java @@ -5,9 +5,9 @@ import java.util.Collections; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseFilter; import org.jboss.resteasy.reactive.client.api.LoggingScope; import org.jboss.resteasy.reactive.client.logging.DefaultClientLogger; diff --git a/independent-projects/resteasy-reactive/common/processor/pom.xml b/independent-projects/resteasy-reactive/common/processor/pom.xml index e67cc7816daf5..6f185848d2939 100644 --- a/independent-projects/resteasy-reactive/common/processor/pom.xml +++ b/independent-projects/resteasy-reactive/common/processor/pom.xml @@ -28,8 +28,8 @@ resteasy-reactive-common - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.enterprise diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriter.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriter.java index 99e95734367b9..693085cc6f3db 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriter.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriter.java @@ -2,7 +2,7 @@ import java.util.Objects; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; public interface AdditionalReaderWriter { diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriterCommon.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriterCommon.java index 251d019e22986..38f435afe66df 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriterCommon.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalReaderWriterCommon.java @@ -3,7 +3,7 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.RuntimeType; @SuppressWarnings({ "rawtypes" }) abstract class AdditionalReaderWriterCommon implements AdditionalReaderWriter { diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/DefaultProducesHandler.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/DefaultProducesHandler.java index 701260d3ae8f7..71d7978d3e7d0 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/DefaultProducesHandler.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/DefaultProducesHandler.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Objects; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.DotName; import org.jboss.jandex.IndexView; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java index 9ce1793c43fc5..86008ba946ea9 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java @@ -97,10 +97,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.SseEventSink; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java index 8aff857a22989..a80eba40712df 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java @@ -22,61 +22,61 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Typed; -import javax.enterprise.inject.Vetoed; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.BeanParam; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.Consumes; -import javax.ws.rs.CookieParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.Encoded; -import javax.ws.rs.FormParam; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.MatrixParam; -import javax.ws.rs.NameBinding; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.InvocationCallback; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Typed; +import jakarta.enterprise.inject.Vetoed; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.Encoded; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.MatrixParam; +import jakarta.ws.rs.NameBinding; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.InvocationCallback; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.jandex.DotName; import org.jboss.resteasy.reactive.DummyElementType; @@ -140,14 +140,14 @@ public final class ResteasyReactiveDotNames { public static final DotName SEPARATOR = DotName.createSimple(Separator.class.getName()); public static final DotName REST_MATRIX_PARAM = DotName.createSimple(RestMatrix.class.getName()); public static final DotName REST_COOKIE_PARAM = DotName.createSimple(RestCookie.class.getName()); - public static final DotName GET = DotName.createSimple(javax.ws.rs.GET.class.getName()); - public static final DotName HEAD = DotName.createSimple(javax.ws.rs.HEAD.class.getName()); - public static final DotName DELETE = DotName.createSimple(javax.ws.rs.DELETE.class.getName()); - public static final DotName OPTIONS = DotName.createSimple(javax.ws.rs.OPTIONS.class.getName()); - public static final DotName PATCH = DotName.createSimple(javax.ws.rs.PATCH.class.getName()); - public static final DotName POST = DotName.createSimple(javax.ws.rs.POST.class.getName()); - public static final DotName PUT = DotName.createSimple(javax.ws.rs.PUT.class.getName()); - public static final DotName HTTP_METHOD = DotName.createSimple(javax.ws.rs.HttpMethod.class.getName()); + public static final DotName GET = DotName.createSimple(jakarta.ws.rs.GET.class.getName()); + public static final DotName HEAD = DotName.createSimple(jakarta.ws.rs.HEAD.class.getName()); + public static final DotName DELETE = DotName.createSimple(jakarta.ws.rs.DELETE.class.getName()); + public static final DotName OPTIONS = DotName.createSimple(jakarta.ws.rs.OPTIONS.class.getName()); + public static final DotName PATCH = DotName.createSimple(jakarta.ws.rs.PATCH.class.getName()); + public static final DotName POST = DotName.createSimple(jakarta.ws.rs.POST.class.getName()); + public static final DotName PUT = DotName.createSimple(jakarta.ws.rs.PUT.class.getName()); + public static final DotName HTTP_METHOD = DotName.createSimple(jakarta.ws.rs.HttpMethod.class.getName()); public static final DotName APPLICATION_PATH = DotName.createSimple(ApplicationPath.class.getName()); public static final DotName PATH = DotName.createSimple(Path.class.getName()); public static final DotName PARAM_CONVERTER_PROVIDER = DotName.createSimple(ParamConverterProvider.class.getName()); @@ -182,7 +182,7 @@ public final class ResteasyReactiveDotNames { public static final DotName NON_BLOCKING = DotName.createSimple(NonBlocking.class.getName()); public static final DotName SUSPENDED = DotName.createSimple(Suspended.class.getName()); public static final DotName PRE_MATCHING = DotName.createSimple(PreMatching.class.getName()); - public static final DotName TRANSACTIONAL = DotName.createSimple("javax.transaction.Transactional"); + public static final DotName TRANSACTIONAL = DotName.createSimple("jakarta.transaction.Transactional"); public static final DotName COLLECTION = DotName.createSimple(Collection.class.getName()); public static final DotName LIST = DotName.createSimple(List.class.getName()); @@ -231,12 +231,12 @@ public final class ResteasyReactiveDotNames { public static final DotName OUTPUT_STREAM = DotName.createSimple(OutputStream.class.getName()); public static final DotName THROWABLE = DotName.createSimple(Throwable.class.getName()); - public static final DotName JSONP_JSON_OBJECT = DotName.createSimple(javax.json.JsonObject.class.getName()); - public static final DotName JSONP_JSON_ARRAY = DotName.createSimple(javax.json.JsonArray.class.getName()); - public static final DotName JSONP_JSON_STRUCTURE = DotName.createSimple(javax.json.JsonStructure.class.getName()); - public static final DotName JSONP_JSON_NUMBER = DotName.createSimple(javax.json.JsonNumber.class.getName()); - public static final DotName JSONP_JSON_VALUE = DotName.createSimple(javax.json.JsonValue.class.getName()); - public static final DotName JSONP_JSON_STRING = DotName.createSimple(javax.json.JsonString.class.getName()); + public static final DotName JSONP_JSON_OBJECT = DotName.createSimple(jakarta.json.JsonObject.class.getName()); + public static final DotName JSONP_JSON_ARRAY = DotName.createSimple(jakarta.json.JsonArray.class.getName()); + public static final DotName JSONP_JSON_STRUCTURE = DotName.createSimple(jakarta.json.JsonStructure.class.getName()); + public static final DotName JSONP_JSON_NUMBER = DotName.createSimple(jakarta.json.JsonNumber.class.getName()); + public static final DotName JSONP_JSON_VALUE = DotName.createSimple(jakarta.json.JsonValue.class.getName()); + public static final DotName JSONP_JSON_STRING = DotName.createSimple(jakarta.json.JsonString.class.getName()); public static final DotName CONTAINER_REQUEST_CONTEXT = DotName.createSimple(ContainerRequestContext.class.getName()); public static final DotName CONTAINER_RESPONSE_CONTEXT = DotName.createSimple(ContainerResponseContext.class.getName()); @@ -278,20 +278,20 @@ public final class ResteasyReactiveDotNames { public static final DotName OBJECT_NAME = DotName.createSimple(Object.class.getName()); // Types ignored for reflection used by the RESTEasy and SmallRye REST client extensions. private static final Set TYPES_IGNORED_FOR_REFLECTION = new HashSet<>(Arrays.asList( - // javax.json - DotName.createSimple("javax.json.JsonObject"), - DotName.createSimple("javax.json.JsonArray"), - DotName.createSimple("javax.json.JsonValue"), + // jakarta.json + DotName.createSimple("jakarta.json.JsonObject"), + DotName.createSimple("jakarta.json.JsonArray"), + DotName.createSimple("jakarta.json.JsonValue"), // Jackson DotName.createSimple("com.fasterxml.jackson.databind.JsonNode"), // JAX-RS - DotName.createSimple("javax.ws.rs.core.Response"), - DotName.createSimple("javax.ws.rs.container.AsyncResponse"), - DotName.createSimple("javax.ws.rs.core.StreamingOutput"), - DotName.createSimple("javax.ws.rs.core.Form"), - DotName.createSimple("javax.ws.rs.core.MultivaluedMap"), + DotName.createSimple("jakarta.ws.rs.core.Response"), + DotName.createSimple("jakarta.ws.rs.container.AsyncResponse"), + DotName.createSimple("jakarta.ws.rs.core.StreamingOutput"), + DotName.createSimple("jakarta.ws.rs.core.Form"), + DotName.createSimple("jakarta.ws.rs.core.MultivaluedMap"), // RESTEasy DotName.createSimple("org.jboss.resteasy.plugins.providers.multipart.MultipartInput"), diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ApplicationScanningResult.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ApplicationScanningResult.java index ad8efda09f9af..a881ada5317a2 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ApplicationScanningResult.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ApplicationScanningResult.java @@ -2,7 +2,7 @@ import java.util.Set; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.jandex.ClassInfo; import org.jboss.resteasy.reactive.common.processor.BlockingDefault; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveInterceptorScanner.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveInterceptorScanner.java index 3af6649616ca5..a0d59b90321dc 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveInterceptorScanner.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveInterceptorScanner.java @@ -11,8 +11,8 @@ import java.util.Set; import java.util.function.Function; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveScanner.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveScanner.java index 834d2092b84ba..2b757040a0e11 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveScanner.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ResteasyReactiveScanner.java @@ -24,10 +24,10 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.Application; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.Application; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ScannedSerializer.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ScannedSerializer.java index bc7f752edea1e..900513163de66 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ScannedSerializer.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/scanning/ScannedSerializer.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; public class ScannedSerializer { diff --git a/independent-projects/resteasy-reactive/common/runtime/pom.xml b/independent-projects/resteasy-reactive/common/runtime/pom.xml index b31fdda3d497b..69002f5afe25b 100644 --- a/independent-projects/resteasy-reactive/common/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/common/runtime/pom.xml @@ -27,16 +27,16 @@ smallrye-common-annotation - org.glassfish - jakarta.json + org.eclipse.parsson + parsson jakarta.enterprise jakarta.enterprise.cdi-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ClientWebApplicationException.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ClientWebApplicationException.java index 3183791deb504..33f61c2a57769 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ClientWebApplicationException.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ClientWebApplicationException.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; public class ClientWebApplicationException extends WebApplicationException implements ResteasyReactiveClientProblem { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/MultipartForm.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/MultipartForm.java index 514940670f7ae..eff37c1585331 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/MultipartForm.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/MultipartForm.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.BeanParam; +import jakarta.ws.rs.BeanParam; /** * Annotation to be used on POJOs meant to map to the various parts diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseHeader.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseHeader.java index ab22ae902963a..18bb9eca53848 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseHeader.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseHeader.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; /** * When placed on a resource method, then RESTEasy Reactive will the specified HTTP response headers, diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseStatus.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseStatus.java index 78e25f00d3c56..ae481c21d1f45 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseStatus.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/ResponseStatus.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; /** * When placed on a resource method, then RESTEasy Reactive will set the HTTP status to the specified value, diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/RestResponse.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/RestResponse.java index b1412b20a4e29..539a295d74e72 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/RestResponse.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/RestResponse.java @@ -9,25 +9,25 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.NoContentException; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status.Family; -import javax.ws.rs.core.Response.StatusType; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.core.Variant; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.NoContentException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status.Family; +import jakarta.ws.rs.core.Response.StatusType; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.Variant; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.RuntimeDelegate; /** * Defines the contract between a returned instance and the runtime when @@ -86,7 +86,7 @@ protected RestResponse() { /** * Read the message entity input stream as an instance of specified Java type - * using a {@link javax.ws.rs.ext.MessageBodyReader} that supports mapping the + * using a {@link jakarta.ws.rs.ext.MessageBodyReader} that supports mapping the * message entity stream onto the requested type. *

    * Method throws an {@link ProcessingException} if the content of the @@ -117,13 +117,13 @@ protected RestResponse() { * the response has been {@link #close() closed} already, * or if the entity input stream has been fully consumed already and has * not been buffered prior consuming. - * @see javax.ws.rs.ext.MessageBodyReader + * @see jakarta.ws.rs.ext.MessageBodyReader */ public abstract OtherT readEntity(Class entityType); /** * Read the message entity input stream as an instance of specified Java type - * using a {@link javax.ws.rs.ext.MessageBodyReader} that supports mapping the + * using a {@link jakarta.ws.rs.ext.MessageBodyReader} that supports mapping the * message entity stream onto the requested type. *

    * Method throws an {@link ProcessingException} if the content of the @@ -154,13 +154,13 @@ protected RestResponse() { * the response has been {@link #close() closed} already, * or if the entity input stream has been fully consumed already and has * not been buffered prior consuming. - * @see javax.ws.rs.ext.MessageBodyReader + * @see jakarta.ws.rs.ext.MessageBodyReader */ public abstract OtherT readEntity(GenericType entityType); /** * Read the message entity input stream as an instance of specified Java type - * using a {@link javax.ws.rs.ext.MessageBodyReader} that supports mapping the + * using a {@link jakarta.ws.rs.ext.MessageBodyReader} that supports mapping the * message entity stream onto the requested type. *

    * Method throws an {@link ProcessingException} if the content of the @@ -192,13 +192,13 @@ protected RestResponse() { * the response has been {@link #close() closed} already, * or if the entity input stream has been fully consumed already and has * not been buffered prior consuming. - * @see javax.ws.rs.ext.MessageBodyReader + * @see jakarta.ws.rs.ext.MessageBodyReader */ public abstract OtherT readEntity(Class entityType, Annotation[] annotations); /** * Read the message entity input stream as an instance of specified Java type - * using a {@link javax.ws.rs.ext.MessageBodyReader} that supports mapping the + * using a {@link jakarta.ws.rs.ext.MessageBodyReader} that supports mapping the * message entity stream onto the requested type. *

    * Method throws an {@link ProcessingException} if the content of the @@ -230,7 +230,7 @@ protected RestResponse() { * the response has been {@link #close() closed} already, * or if the entity input stream has been fully consumed already and has * not been buffered prior consuming. - * @see javax.ws.rs.ext.MessageBodyReader + * @see jakarta.ws.rs.ext.MessageBodyReader */ public abstract OtherT readEntity(GenericType entityType, Annotation[] annotations); @@ -239,8 +239,8 @@ protected RestResponse() { * {@code true} if the entity is present, returns {@code false} otherwise. *

    * Note that the method may return {@code true} also for response messages with - * a zero-length content, in case the {@value javax.ws.rs.core.HttpHeaders#CONTENT_LENGTH} and - * {@value javax.ws.rs.core.HttpHeaders#CONTENT_TYPE} headers are specified in the message. + * a zero-length content, in case the {@value jakarta.ws.rs.core.HttpHeaders#CONTENT_LENGTH} and + * {@value jakarta.ws.rs.core.HttpHeaders#CONTENT_TYPE} headers are specified in the message. * In such case, an attempt to read the entity using one of the {@code readEntity(...)} * methods will return a corresponding instance representing a zero-length entity for a * given Java type or produce a {@link ProcessingException} in case no such instance @@ -443,8 +443,8 @@ protected RestResponse() { * server side. Changes in the underlying header data are reflected in this view. *

    * On the server-side, when the message is sent, the non-string values will be serialized - * using a {@link javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if one is available via - * {@link javax.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} for the + * using a {@link jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if one is available via + * {@link jakarta.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} for the * class of the value or using the values {@code toString} method if a header delegate is * not available. *

    @@ -477,8 +477,8 @@ public MultivaluedMap getHeaders() { * Get a message header as a single string value. * * Each single header value is converted to String using a - * {@link javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if one is available - * via {@link javax.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} + * {@link jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if one is available + * via {@link jakarta.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} * for the header value class or using its {@code toString} method if a header * delegate is not available. * @@ -931,7 +931,7 @@ public ResponseBuilder status(Status status) { * @param entity the request entity. * @return updated response builder instance. * @see #entity(java.lang.Object, java.lang.annotation.Annotation[]) - * @see #type(javax.ws.rs.core.MediaType) + * @see #type(jakarta.ws.rs.core.MediaType) * @see #type(java.lang.String) */ public abstract ResponseBuilder entity(T entity); @@ -954,7 +954,7 @@ public ResponseBuilder status(Status status) { * method that returns the built response). * @return updated response builder instance. * @see #entity(java.lang.Object) - * @see #type(javax.ws.rs.core.MediaType) + * @see #type(jakarta.ws.rs.core.MediaType) * @see #type(java.lang.String) */ public abstract ResponseBuilder entity(T entity, Annotation[] annotations); @@ -1002,8 +1002,8 @@ public ResponseBuilder status(Status status) { * * @param name the name of the header * @param value the value of the header, the header will be serialized - * using a {@link javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if - * one is available via {@link javax.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} + * using a {@link jakarta.ws.rs.ext.RuntimeDelegate.HeaderDelegate} if + * one is available via {@link jakarta.ws.rs.ext.RuntimeDelegate#createHeaderDelegate(java.lang.Class)} * for the class of {@code value} or using its {@code toString} method * if a header delegate is not available. If {@code value} is {@code null} * then all current headers of the same name will be removed. @@ -1067,7 +1067,7 @@ public ResponseBuilder status(Status status) { * @return the updated response builder. * @see #encoding(java.lang.String) * @see #language(java.util.Locale) - * @see #type(javax.ws.rs.core.MediaType) + * @see #type(jakarta.ws.rs.core.MediaType) */ public abstract ResponseBuilder variant(Variant variant); diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java index 92d82baf594a8..7b57c785c0b94 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/AbstractResteasyReactiveContext.java @@ -11,8 +11,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.container.ConnectionCallback; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.ConnectionCallback; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.PreserveTargetException; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/GenericTypeMapping.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/GenericTypeMapping.java index 957d9f1db49e8..c2d39f2c4dc67 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/GenericTypeMapping.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/GenericTypeMapping.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.client.InvocationCallback; +import jakarta.ws.rs.client.InvocationCallback; public class GenericTypeMapping { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResponseBuilderFactory.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResponseBuilderFactory.java index b6578c524df0a..475988d448e06 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResponseBuilderFactory.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResponseBuilderFactory.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.common.core; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResteasyReactiveCallbackContext.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResteasyReactiveCallbackContext.java index 364601cd03c23..ec453a8c26e0c 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResteasyReactiveCallbackContext.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/ResteasyReactiveCallbackContext.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.common.core; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.container.ConnectionCallback; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.ConnectionCallback; public interface ResteasyReactiveCallbackContext { public void registerCompletionCallback(CompletionCallback callback); diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java index 1f5020bae6a4b..9daa23b1097ff 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/Serialisers.java @@ -12,14 +12,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; import org.jboss.resteasy.reactive.common.model.ResourceReader; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/UnwrappableException.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/UnwrappableException.java index 450c73f39c024..b0bb50baf98a2 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/UnwrappableException.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/core/UnwrappableException.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.common.core; -import javax.ws.rs.ProcessingException; +import jakarta.ws.rs.ProcessingException; public class UnwrappableException extends ProcessingException { public UnwrappableException(Throwable cause) { super(cause); } -} \ No newline at end of file +} diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CacheControlDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CacheControlDelegate.java index 904a8010b2a48..3cf3f681f1c06 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CacheControlDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CacheControlDelegate.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.ExtendedCacheControl; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CookieHeaderDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CookieHeaderDelegate.java index eed42b0f1658b..443baeec0b5da 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CookieHeaderDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/CookieHeaderDelegate.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.common.headers; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.CookieParser; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/DateDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/DateDelegate.java index ff0f26ff762df..87fa210488d0d 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/DateDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/DateDelegate.java @@ -2,7 +2,7 @@ import java.util.Date; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.DateUtil; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/EntityTagDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/EntityTagDelegate.java index 6510d625e2b3c..74afe0a9fbcda 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/EntityTagDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/EntityTagDelegate.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.common.headers; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.ext.RuntimeDelegate; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/HeaderUtil.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/HeaderUtil.java index 7d07da8ecaff8..28d078838e5fb 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/HeaderUtil.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/HeaderUtil.java @@ -14,13 +14,13 @@ import java.util.Set; import java.util.StringTokenizer; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.CookieParser; import org.jboss.resteasy.reactive.common.util.DateUtil; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkDelegate.java index dc33bf02f41a0..5179d876e1c5a 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkDelegate.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.jaxrs.LinkBuilderImpl; import org.jboss.resteasy.reactive.common.util.QuarkusMultivaluedHashMap; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkHeaders.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkHeaders.java index 901076b74aea8..c9d66cd7b9038 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkHeaders.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LinkHeaders.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MultivaluedMap; public class LinkHeaders { private final Map linksByRelationship = new HashMap<>(); diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LocaleDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LocaleDelegate.java index 63184f7bc908a..857e292fab7ad 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LocaleDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/LocaleDelegate.java @@ -2,7 +2,7 @@ import java.util.Locale; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.LocaleHelper; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/MediaTypeHeaderDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/MediaTypeHeaderDelegate.java index 0441048397da8..88977f12023af 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/MediaTypeHeaderDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/MediaTypeHeaderDelegate.java @@ -4,8 +4,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.HeaderParameterParser; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/NewCookieHeaderDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/NewCookieHeaderDelegate.java index 67eb1a4c8c0c8..36278874b05af 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/NewCookieHeaderDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/NewCookieHeaderDelegate.java @@ -6,8 +6,8 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.DateUtil; import org.jboss.resteasy.reactive.common.util.OrderedParameterParser; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/ObjectToStringDelegate.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/ObjectToStringDelegate.java index d9cddc7dea2ae..4a44995e36055 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/ObjectToStringDelegate.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/headers/ObjectToStringDelegate.java @@ -2,7 +2,7 @@ import java.util.Objects; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.ext.RuntimeDelegate; public class ObjectToStringDelegate implements RuntimeDelegate.HeaderDelegate { public static final ObjectToStringDelegate INSTANCE = new ObjectToStringDelegate(); diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractResponseBuilder.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractResponseBuilder.java index 27a43da67ef28..add1a29f5cf13 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractResponseBuilder.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractResponseBuilder.java @@ -12,15 +12,15 @@ import java.util.Set; import java.util.TimeZone; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractRestResponseBuilder.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractRestResponseBuilder.java index 62bf5678b37e1..df0fe3a826d7a 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractRestResponseBuilder.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/AbstractRestResponseBuilder.java @@ -13,14 +13,14 @@ import java.util.Set; import java.util.TimeZone; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.RestResponse.ResponseBuilder; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ConfigurationImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ConfigurationImpl.java index f8985ea9c5dea..33f06b164fd69 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ConfigurationImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ConfigurationImpl.java @@ -11,25 +11,25 @@ import java.util.Map; import java.util.Set; -import javax.annotation.Priority; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.Consumes; -import javax.ws.rs.Priorities; -import javax.ws.rs.Produces; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseFilter; -import javax.ws.rs.client.RxInvokerProvider; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.RxInvokerProvider; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.common.core.UnmanagedBeanFactory; import org.jboss.resteasy.reactive.common.model.ResourceReader; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkBuilderImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkBuilderImpl.java index 1c2ed3ed16851..8e72cbc792c89 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkBuilderImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkBuilderImpl.java @@ -4,9 +4,9 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriBuilderException; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriBuilderException; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkImpl.java index 6c0fb23e6b593..aaaddaab6950d 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/LinkImpl.java @@ -7,9 +7,9 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.ext.RuntimeDelegate; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ResponseImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ResponseImpl.java index 5d9adc0bfda10..b35ef6614dd65 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ResponseImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/ResponseImpl.java @@ -16,16 +16,16 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Link.Builder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Link.Builder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.common.headers.LinkHeaders; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RestResponseImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RestResponseImpl.java index c6c3ff28e9593..142ebb122bc2c 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RestResponseImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RestResponseImpl.java @@ -16,16 +16,16 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Link.Builder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Link.Builder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java index 7381900547fc5..50bb0723098ad 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java @@ -4,17 +4,17 @@ import java.util.Locale; import java.util.ServiceLoader; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.Variant; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.Variant; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.RestResponse.ResponseBuilder; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImpl.java index 4364ff3a840cf..9ff93681c58d4 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImpl.java @@ -2,9 +2,9 @@ import java.util.Objects; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status.Family; -import javax.ws.rs.core.Response.StatusType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status.Family; +import jakarta.ws.rs.core.Response.StatusType; public class StatusTypeImpl implements StatusType { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/UriBuilderImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/UriBuilderImpl.java index 5a08cdc9a4672..710bff12906e2 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/UriBuilderImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/UriBuilderImpl.java @@ -10,11 +10,11 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.ws.rs.Path; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriBuilderException; -import javax.ws.rs.ext.RuntimeDelegate; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriBuilderException; +import jakarta.ws.rs.ext.RuntimeDelegate; import org.jboss.resteasy.reactive.common.util.Encode; import org.jboss.resteasy.reactive.common.util.PathHelper; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/VariantListBuilderImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/VariantListBuilderImpl.java index 523d1318719b0..96526e2efa8e6 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/VariantListBuilderImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/VariantListBuilderImpl.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Locale; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Variant; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceClass.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceClass.java index aaf593e8ac8b3..6da737d42835a 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceClass.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceClass.java @@ -9,7 +9,7 @@ import java.util.Set; import java.util.function.Supplier; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.resteasy.reactive.common.core.LazyUnmanagedBeanFactory; import org.jboss.resteasy.reactive.common.util.URLUtils; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceContextResolver.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceContextResolver.java index 5651b4d38dae0..9002592b67333 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceContextResolver.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceContextResolver.java @@ -4,8 +4,8 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceDynamicFeature.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceDynamicFeature.java index 4d011392619f5..e82b8ecf04891 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceDynamicFeature.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceDynamicFeature.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.common.model; -import javax.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.DynamicFeature; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceExceptionMapper.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceExceptionMapper.java index 705e560e66530..ef7a63e365e37 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceExceptionMapper.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceExceptionMapper.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.ExceptionMapper; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceFeature.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceFeature.java index 93c30f86187ce..071f191f88573 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceFeature.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceFeature.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.common.model; -import javax.ws.rs.core.Feature; +import jakarta.ws.rs.core.Feature; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptor.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptor.java index 146b956b24fee..ab224307bcd25 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptor.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptor.java @@ -4,7 +4,7 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptors.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptors.java index b864cf146b2e3..0e0c2954364e7 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptors.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceInterceptors.java @@ -2,10 +2,10 @@ import java.util.function.Function; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceMethod.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceMethod.java index 54463c2a191fa..37baf4b5c0d4f 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceMethod.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceMethod.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; import org.jboss.resteasy.reactive.RestSseElementType; import org.jboss.resteasy.reactive.RestStreamElementType; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceParamConverterProvider.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceParamConverterProvider.java index 075203646d35c..1c22143d99364 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceParamConverterProvider.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceParamConverterProvider.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.common.model; -import javax.ws.rs.Priorities; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceReader.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceReader.java index aed58a6bbf319..538c6194e5a48 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceReader.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceReader.java @@ -5,10 +5,10 @@ import java.util.Comparator; import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyReader; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceWriter.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceWriter.java index be8d9dd5a1e00..dae02708bc64e 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceWriter.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/model/ResourceWriter.java @@ -6,10 +6,10 @@ import java.util.Comparator; import java.util.List; -import javax.ws.rs.Priorities; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; import org.jboss.resteasy.reactive.common.util.ServerMediaType; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/AbstractJsonMessageBodyReader.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/AbstractJsonMessageBodyReader.java index 165817e5eff28..50bf2637442e4 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/AbstractJsonMessageBodyReader.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/AbstractJsonMessageBodyReader.java @@ -3,8 +3,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyReader; public abstract class AbstractJsonMessageBodyReader implements MessageBodyReader { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/BooleanMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/BooleanMessageBodyHandler.java index ef6abaa701d69..c183238e3fcaa 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/BooleanMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/BooleanMessageBodyHandler.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; public class BooleanMessageBodyHandler extends PrimitiveBodyHandler implements MessageBodyReader { public Boolean readFrom(Class type, Type genericType, Annotation[] annotations, MediaType mediaType, diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ByteArrayMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ByteArrayMessageBodyHandler.java index abb3a72d04745..5799cbed44471 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ByteArrayMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ByteArrayMessageBodyHandler.java @@ -6,11 +6,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class ByteArrayMessageBodyHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharArrayMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharArrayMessageBodyHandler.java index a745668295661..c52b6a4220352 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharArrayMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharArrayMessageBodyHandler.java @@ -7,11 +7,11 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class CharArrayMessageBodyHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharacterMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharacterMessageBodyHandler.java index b645ded0b5b81..7eb90bc8c0fdc 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharacterMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/CharacterMessageBodyHandler.java @@ -5,11 +5,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; public class CharacterMessageBodyHandler extends PrimitiveBodyHandler implements MessageBodyReader { public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/DefaultTextPlainBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/DefaultTextPlainBodyHandler.java index a5dfea4312a8e..ab3b3c25dc0b6 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/DefaultTextPlainBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/DefaultTextPlainBodyHandler.java @@ -5,11 +5,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; import org.jboss.resteasy.reactive.common.util.TypeConverter; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java index 04d1f9fbfa4c9..82d2045179024 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FileBodyHandler.java @@ -12,11 +12,11 @@ import java.lang.reflect.Type; import java.nio.file.Files; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FilePartBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FilePartBodyHandler.java index 77bd8fe70ecbf..7f3bceec30062 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FilePartBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FilePartBodyHandler.java @@ -7,10 +7,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.FilePart; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FormUrlEncodedProvider.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FormUrlEncodedProvider.java index d2df81406562d..7c409cd8d2b1c 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FormUrlEncodedProvider.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/FormUrlEncodedProvider.java @@ -10,12 +10,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.Encode; import org.jboss.resteasy.reactive.common.util.QuarkusMultivaluedHashMap; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/InputStreamMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/InputStreamMessageBodyHandler.java index fe1465847e923..f8e926f74628b 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/InputStreamMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/InputStreamMessageBodyHandler.java @@ -6,11 +6,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class InputStreamMessageBodyHandler implements MessageBodyWriter, MessageBodyReader { public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/JsonMessageBodyWriterUtil.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/JsonMessageBodyWriterUtil.java index b663ea75cc706..039a8936286f9 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/JsonMessageBodyWriterUtil.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/JsonMessageBodyWriterUtil.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.common.providers.serialisers; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; public class JsonMessageBodyWriterUtil { public static void setContentTypeIfNecessary(MultivaluedMap httpHeaders) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MapAsFormUrlEncodedProvider.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MapAsFormUrlEncodedProvider.java index 2ca465a244bb1..a5121d01055b4 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MapAsFormUrlEncodedProvider.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MapAsFormUrlEncodedProvider.java @@ -10,11 +10,11 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.Encode; import org.jboss.resteasy.reactive.common.util.QuarkusMultivaluedHashMap; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MessageReaderUtil.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MessageReaderUtil.java index c2707999f0aa8..4be10c5d524b3 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MessageReaderUtil.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/MessageReaderUtil.java @@ -4,7 +4,7 @@ import java.io.InputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; public class MessageReaderUtil { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/NumberMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/NumberMessageBodyHandler.java index e5ea969392294..a8215292d5c13 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/NumberMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/NumberMessageBodyHandler.java @@ -7,10 +7,10 @@ import java.math.BigDecimal; import java.math.BigInteger; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; public class NumberMessageBodyHandler extends PrimitiveBodyHandler implements MessageBodyReader { public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathBodyHandler.java index 9e3153fe490f0..2341ae5b0eff9 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathBodyHandler.java @@ -6,10 +6,10 @@ import java.lang.reflect.Type; import java.nio.file.Files; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; public class PathBodyHandler implements MessageBodyWriter { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathPartBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathPartBodyHandler.java index 0fc70f05f2626..ad7e6611262f9 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathPartBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PathPartBodyHandler.java @@ -7,10 +7,10 @@ import java.lang.reflect.Type; import java.nio.file.Files; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.PathPart; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PrimitiveBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PrimitiveBodyHandler.java index c72228d0e4414..da5518ed34b24 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PrimitiveBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/PrimitiveBodyHandler.java @@ -6,7 +6,7 @@ import java.io.InputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.core.NoContentException; +import jakarta.ws.rs.core.NoContentException; public abstract class PrimitiveBodyHandler { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ReaderBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ReaderBodyHandler.java index 21077e042d7dc..b550fb38e6e6f 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ReaderBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/ReaderBodyHandler.java @@ -8,10 +8,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class ReaderBodyHandler implements MessageBodyWriter, MessageBodyReader { public boolean isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/StringMessageBodyHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/StringMessageBodyHandler.java index 3b1f261ac9413..fb8dfb85f8000 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/StringMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/StringMessageBodyHandler.java @@ -7,11 +7,11 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class StringMessageBodyHandler extends PrimitiveBodyHandler implements MessageBodyReader, MessageBodyWriter { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonArrayHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonArrayHandler.java index 21b104506dab1..75da99da4609d 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonArrayHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonArrayHandler.java @@ -6,13 +6,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.json.JsonArray; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.json.JsonArray; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class JsonArrayHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonObjectHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonObjectHandler.java index 8741492eeced6..b704cf56dc497 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonObjectHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonObjectHandler.java @@ -6,13 +6,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.json.JsonObject; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.json.JsonObject; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class JsonObjectHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonStructureHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonStructureHandler.java index 16b9b29735125..92c4d966ebd0a 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonStructureHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonStructureHandler.java @@ -6,14 +6,14 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.json.JsonObject; -import javax.json.JsonStructure; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.json.JsonObject; +import jakarta.json.JsonStructure; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class JsonStructureHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonValueHandler.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonValueHandler.java index 42c0d670a2bd6..62e99ddd18f0d 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonValueHandler.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonValueHandler.java @@ -6,13 +6,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.json.JsonValue; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.json.JsonValue; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; public class JsonValueHandler implements MessageBodyReader, MessageBodyWriter { public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonpUtil.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonpUtil.java index 71df60d2e6440..a2bf5953771a3 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonpUtil.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/providers/serialisers/jsonp/JsonpUtil.java @@ -4,12 +4,12 @@ import java.io.OutputStream; import java.nio.charset.Charset; -import javax.json.Json; -import javax.json.JsonReader; -import javax.json.JsonReaderFactory; -import javax.json.JsonWriter; -import javax.json.JsonWriterFactory; -import javax.ws.rs.core.MediaType; +import jakarta.json.Json; +import jakarta.json.JsonReader; +import jakarta.json.JsonReaderFactory; +import jakarta.json.JsonWriter; +import jakarta.json.JsonWriterFactory; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/CookieParser.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/CookieParser.java index cea93637af53f..38cb2bc82c895 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/CookieParser.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/CookieParser.java @@ -3,7 +3,7 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.core.Cookie; +import jakarta.ws.rs.core.Cookie; public class CookieParser { public static List parseCookies(String cookieHeader) { diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/Encode.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/Encode.java index cb171a629f86d..17726659e418b 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/Encode.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/Encode.java @@ -13,7 +13,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ExtendedCacheControl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ExtendedCacheControl.java index af14d0935ef13..97431df190514 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ExtendedCacheControl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ExtendedCacheControl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.common.util; -import javax.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.CacheControl; /** * Adds support for the public directive which is not supported by {@link CacheControl} for some reason. diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MediaTypeHelper.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MediaTypeHelper.java index df5d50ab6f21d..eeea0e58cfd2a 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MediaTypeHelper.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MediaTypeHelper.java @@ -8,9 +8,9 @@ import java.util.Map; import java.util.regex.Pattern; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MultivaluedTreeMap.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MultivaluedTreeMap.java index 47cce256d5087..85d5b75d6f359 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MultivaluedTreeMap.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/MultivaluedTreeMap.java @@ -10,7 +10,7 @@ import java.util.TreeMap; import java.util.function.BiConsumer; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/PathSegmentImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/PathSegmentImpl.java index d354ec8261946..b8ac4d7e170b5 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/PathSegmentImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/PathSegmentImpl.java @@ -3,8 +3,8 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.PathSegment; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedHashMap.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedHashMap.java index 328b4ae2112c5..d9046681b8291 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedHashMap.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedHashMap.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.MultivaluedHashMap; +import jakarta.ws.rs.core.MultivaluedHashMap; /** * QuarkusMultivaluedHashMap without the bug in put/putAll that leaks external mutable storage into our storage. diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedMap.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedMap.java index 501b2914a0bce..aa9b25c19b829 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedMap.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/QuarkusMultivaluedMap.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** * MultivaluedMap with extra operations diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/RestMediaType.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/RestMediaType.java index 215fa1b28aad7..b2bd923af2233 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/RestMediaType.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/RestMediaType.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.common.util; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; /** * Extended media types in Resteasy Reactive. diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ServerMediaType.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ServerMediaType.java index 226c05613a608..9b34b68e1caaa 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ServerMediaType.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/ServerMediaType.java @@ -8,7 +8,7 @@ import java.util.Map; import java.util.Objects; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; /** * A representation of a server side media type. diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/URLUtils.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/URLUtils.java index a23cc99023ec5..f3cd5b114b0e1 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/URLUtils.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/URLUtils.java @@ -23,7 +23,7 @@ import java.util.Set; import java.util.regex.Pattern; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** * Utilities for dealing with URLs diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/UnmodifiableMultivaluedMap.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/UnmodifiableMultivaluedMap.java index a7b67dbbe998f..1bea68f3f5a35 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/UnmodifiableMultivaluedMap.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/UnmodifiableMultivaluedMap.java @@ -7,10 +7,10 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** - * Unmodifiable implementation of {@link javax.ws.rs.core.MultivaluedMap} interface + * Unmodifiable implementation of {@link jakarta.ws.rs.core.MultivaluedMap} interface * * @author Martin Stefanko * @version $Revision: 1 $ diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/WeightedLanguage.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/WeightedLanguage.java index 279bdccb98ebf..431afbc3f7964 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/WeightedLanguage.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/util/WeightedLanguage.java @@ -4,8 +4,8 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; /** * @author Bill Burke diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.RuntimeDelegate b/independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate similarity index 100% rename from independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.RuntimeDelegate rename to independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/jakarta.ws.rs.ext.RuntimeDelegate diff --git a/independent-projects/resteasy-reactive/common/runtime/src/test/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImplTest.java b/independent-projects/resteasy-reactive/common/runtime/src/test/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImplTest.java index 41bde08867470..aec7374b98d36 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/test/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImplTest.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/test/java/org/jboss/resteasy/reactive/common/jaxrs/StatusTypeImplTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/common/types/pom.xml b/independent-projects/resteasy-reactive/common/types/pom.xml index 640cff7c72218..b7f19951dc69c 100644 --- a/independent-projects/resteasy-reactive/common/types/pom.xml +++ b/independent-projects/resteasy-reactive/common/types/pom.xml @@ -15,8 +15,8 @@ - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index 2d95530ce9c29..df3d4d1aad2ea 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -35,37 +35,40 @@ + 1.0.0 + 5.0.0 + 2.1.1 + 3.1.0 + 4.0.0 + 1.1.1 UTF-8 11 11 11 - 2.0.2 + 4.0.1 3.0.5 1.12.12 5.9.2 3.8.7 3.24.2 3.5.0.Final - 1.3.5 + 2.1.1 1.6.0.Final - 2.2.3 + 3.0.0 3.0.0-M8 1.6.8 - 2.0.1.Final - 1.1.6 1.9.0 1.13.2 4.3.5 4.5.1 1.0.0.Final - 2.0.0.Final 2.14.2 1.3.0 - 2.0.2 - 1.0.11 - 1.0.2 + 3.0.2 + 3.0.2 + 3.0.0 4.2.0 2.25.0 @@ -155,6 +158,11 @@ jakarta.enterprise.cdi-api ${jakarta.enterprise.cdi-api.version} + + jakarta.json + jakarta.json-api + ${jakarta.json-api.version} + io.smallrye @@ -184,25 +192,14 @@ ${yasson.version} - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec - ${jboss-jaxrs-api_2.1_spec.version} - - - org.glassfish - jakarta.json - ${jakarta.json.version} + org.eclipse.parsson + parsson + ${parsson.version} jakarta.json.bind jakarta.json.bind-api ${jakarta.json.bind-api.version} - - - jakarta.json - jakarta.json-api - - io.vertx @@ -352,16 +349,21 @@ pom import - - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec - ${jboss-jaxb-api_2.3_spec.version} - jakarta.validation jakarta.validation-api ${jakarta.validation-api.version} + + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api.version} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${jakarta.xml.bind-api.version} + diff --git a/independent-projects/resteasy-reactive/server/jackson/pom.xml b/independent-projects/resteasy-reactive/server/jackson/pom.xml index 742656d2106aa..152416c4b6f01 100644 --- a/independent-projects/resteasy-reactive/server/jackson/pom.xml +++ b/independent-projects/resteasy-reactive/server/jackson/pom.xml @@ -58,8 +58,8 @@ commons-logging-jboss-logging - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api jakarta.validation diff --git a/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonBasicMessageBodyReader.java b/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonBasicMessageBodyReader.java index dbf2cd8b8b91c..831a80d23490d 100644 --- a/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonBasicMessageBodyReader.java +++ b/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonBasicMessageBodyReader.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader; import org.jboss.resteasy.reactive.common.util.EmptyInputStream; diff --git a/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonMessageBodyWriterUtil.java b/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonMessageBodyWriterUtil.java index 4b84d785a6c03..d5e9f631a2b17 100644 --- a/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonMessageBodyWriterUtil.java +++ b/independent-projects/resteasy-reactive/server/jackson/src/main/java/org/jboss/resteasy/reactive/server/jackson/JacksonMessageBodyWriterUtil.java @@ -7,7 +7,7 @@ import java.lang.annotation.Annotation; import java.nio.charset.StandardCharsets; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.server.StreamingOutputStream; diff --git a/independent-projects/resteasy-reactive/server/jsonb/pom.xml b/independent-projects/resteasy-reactive/server/jsonb/pom.xml index 61859d2038764..5084266ca6829 100644 --- a/independent-projects/resteasy-reactive/server/jsonb/pom.xml +++ b/independent-projects/resteasy-reactive/server/jsonb/pom.xml @@ -22,27 +22,10 @@ org.eclipse yasson - - - - org.glassfish - jakarta.json - - - jakarta.json - jakarta.json-api - - jakarta.json.bind jakarta.json.bind-api - - - jakarta.json - jakarta.json-api - - org.jboss.shrinkwrap @@ -79,8 +62,8 @@ commons-logging-jboss-logging - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api jakarta.validation diff --git a/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyReader.java b/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyReader.java index 196fb2cd05b2b..02e018b22c155 100644 --- a/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyReader.java +++ b/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyReader.java @@ -5,12 +5,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.inject.Inject; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.inject.Inject; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.providers.serialisers.AbstractJsonMessageBodyReader; import org.jboss.resteasy.reactive.common.util.StreamUtil; diff --git a/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyWriter.java index e4ce7e30f5e4d..4c75ad78f294b 100644 --- a/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/jsonb/src/main/java/org/jboss/resteasy/reactive/server/jsonb/JsonbMessageBodyWriter.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.inject.Inject; -import javax.json.bind.Jsonb; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.inject.Inject; +import jakarta.json.bind.Jsonb; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.providers.serialisers.JsonMessageBodyWriterUtil; import org.jboss.resteasy.reactive.server.NoopCloseAndFlushOutputStream; diff --git a/independent-projects/resteasy-reactive/server/processor/pom.xml b/independent-projects/resteasy-reactive/server/processor/pom.xml index e98a6d4058c3a..6eee986b3064e 100644 --- a/independent-projects/resteasy-reactive/server/processor/pom.xml +++ b/independent-projects/resteasy-reactive/server/processor/pom.xml @@ -32,8 +32,8 @@ resteasy-reactive-common-processor - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.enterprise diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ResteasyReactiveDeploymentManager.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ResteasyReactiveDeploymentManager.java index 0463895218832..b93204e85a9c9 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ResteasyReactiveDeploymentManager.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ResteasyReactiveDeploymentManager.java @@ -17,7 +17,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ServerEndpointIndexer.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ServerEndpointIndexer.java index cae5bc7227def..155c8f6f04f76 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ServerEndpointIndexer.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/ServerEndpointIndexer.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.processor; -import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.DATE_FORMAT; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.INSTANT; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.JAX_RS_ANNOTATIONS_FOR_FIELDS; @@ -37,9 +37,9 @@ import java.util.function.Supplier; import java.util.regex.PatternSyntaxException; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.PathSegment; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.PathSegment; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; @@ -120,13 +120,13 @@ protected void addWriterForType(AdditionalWriters additionalWriters, Type paramT if (dotName.equals(JSONP_JSON_VALUE) || dotName.equals(JSONP_JSON_NUMBER) || dotName.equals(JSONP_JSON_STRING)) { - additionalWriters.add(ServerJsonValueHandler.class, APPLICATION_JSON, javax.json.JsonValue.class); + additionalWriters.add(ServerJsonValueHandler.class, APPLICATION_JSON, jakarta.json.JsonValue.class); } else if (dotName.equals(JSONP_JSON_ARRAY)) { - additionalWriters.add(ServerJsonArrayHandler.class, APPLICATION_JSON, javax.json.JsonArray.class); + additionalWriters.add(ServerJsonArrayHandler.class, APPLICATION_JSON, jakarta.json.JsonArray.class); } else if (dotName.equals(JSONP_JSON_OBJECT)) { - additionalWriters.add(ServerJsonObjectHandler.class, APPLICATION_JSON, javax.json.JsonObject.class); + additionalWriters.add(ServerJsonObjectHandler.class, APPLICATION_JSON, jakarta.json.JsonObject.class); } else if (dotName.equals(JSONP_JSON_STRUCTURE)) { - additionalWriters.add(ServerJsonStructureHandler.class, APPLICATION_JSON, javax.json.JsonStructure.class); + additionalWriters.add(ServerJsonStructureHandler.class, APPLICATION_JSON, jakarta.json.JsonStructure.class); } } @@ -135,13 +135,13 @@ protected void addReaderForType(AdditionalReaders additionalReaders, Type paramT if (dotName.equals(JSONP_JSON_NUMBER) || dotName.equals(JSONP_JSON_VALUE) || dotName.equals(JSONP_JSON_STRING)) { - additionalReaders.add(ServerJsonValueHandler.class, APPLICATION_JSON, javax.json.JsonValue.class); + additionalReaders.add(ServerJsonValueHandler.class, APPLICATION_JSON, jakarta.json.JsonValue.class); } else if (dotName.equals(JSONP_JSON_ARRAY)) { - additionalReaders.add(ServerJsonArrayHandler.class, APPLICATION_JSON, javax.json.JsonArray.class); + additionalReaders.add(ServerJsonArrayHandler.class, APPLICATION_JSON, jakarta.json.JsonArray.class); } else if (dotName.equals(JSONP_JSON_OBJECT)) { - additionalReaders.add(ServerJsonObjectHandler.class, APPLICATION_JSON, javax.json.JsonObject.class); + additionalReaders.add(ServerJsonObjectHandler.class, APPLICATION_JSON, jakarta.json.JsonObject.class); } else if (dotName.equals(JSONP_JSON_STRUCTURE)) { - additionalReaders.add(ServerJsonStructureHandler.class, APPLICATION_JSON, javax.json.JsonStructure.class); + additionalReaders.add(ServerJsonStructureHandler.class, APPLICATION_JSON, jakarta.json.JsonStructure.class); } else if (dotName.equals(MULTI_VALUED_MAP)) { additionalReaders.add(ServerFormUrlEncodedProvider.class, APPLICATION_FORM_URLENCODED, MultivaluedMap.class); diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/exceptionmappers/ServerExceptionMapperGenerator.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/exceptionmappers/ServerExceptionMapperGenerator.java index 60ddd874a0b23..878d38bfadaa6 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/exceptionmappers/ServerExceptionMapperGenerator.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/exceptionmappers/ServerExceptionMapperGenerator.java @@ -26,11 +26,11 @@ import java.util.function.BiFunction; import java.util.function.Predicate; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Response; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.AnnotationValue; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/CustomFilterGenerator.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/CustomFilterGenerator.java index 2c99a7eaac714..0758a7ae43b2a 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/CustomFilterGenerator.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/CustomFilterGenerator.java @@ -19,17 +19,17 @@ import java.util.Set; import java.util.function.Predicate; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; @@ -172,7 +172,7 @@ private String generateRequestFilterForSuspendedMethod(MethodInfo targetMethod, } /** - * Generates an implementation of {@link javax.ws.rs.container.ContainerRequestFilter} that delegates to the method + * Generates an implementation of {@link jakarta.ws.rs.container.ContainerRequestFilter} that delegates to the method * annotated with {@code @ServerRequestFilter}. *

    * An example of the generated code is: @@ -409,7 +409,7 @@ private String generateResponseFilterForSuspendedMethod(MethodInfo targetMethod, } /** - * Generates an implementation of {@link javax.ws.rs.container.ContainerResponseFilter} that delegates to the method + * Generates an implementation of {@link jakarta.ws.rs.container.ContainerResponseFilter} that delegates to the method * annotated with {@code @ServerResponseFilter}. *

    * An example of the generated code is: diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/FilterFeature.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/FilterFeature.java index afdbe40f27d42..2b09394400c7c 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/FilterFeature.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/filters/FilterFeature.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; import org.jboss.jandex.DotName; import org.jboss.jandex.IndexView; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/FormDataOutputMapperGenerator.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/FormDataOutputMapperGenerator.java index b011d4e002eec..89e7a3a547d32 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/FormDataOutputMapperGenerator.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/FormDataOutputMapperGenerator.java @@ -6,7 +6,7 @@ import java.lang.reflect.Modifier; import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationValue; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/GeneratedHandlerMultipartReturnTypeIndexerExtension.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/GeneratedHandlerMultipartReturnTypeIndexerExtension.java index 629d204176390..ee673fe40e8ad 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/GeneratedHandlerMultipartReturnTypeIndexerExtension.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/generation/multipart/GeneratedHandlerMultipartReturnTypeIndexerExtension.java @@ -3,7 +3,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.IndexView; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java index ae69d399728f5..fc21e1cdb1398 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ClassInjectorTransformer.java @@ -9,10 +9,10 @@ import java.util.Map.Entry; import java.util.function.BiFunction; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.FieldInfo; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveExceptionMappingScanner.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveExceptionMappingScanner.java index 44d5ebdf54a0b..4c982d005a34b 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveExceptionMappingScanner.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveExceptionMappingScanner.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.function.Function; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveFeatureScanner.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveFeatureScanner.java index 503fe2bda9b91..7cfd3f09e6b0b 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveFeatureScanner.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveFeatureScanner.java @@ -5,8 +5,8 @@ import java.util.Set; import java.util.function.Function; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.core.Feature; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.core.Feature; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.IndexView; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveParamConverterScanner.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveParamConverterScanner.java index 648ff420151dc..2c6f8e2654396 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveParamConverterScanner.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/ResteasyReactiveParamConverterScanner.java @@ -3,7 +3,7 @@ import java.util.Collection; import java.util.function.Function; -import javax.ws.rs.Priorities; +import jakarta.ws.rs.Priorities; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/util/ResteasyReactiveServerDotNames.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/util/ResteasyReactiveServerDotNames.java index bf6706327c8fb..e39eec64cc929 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/util/ResteasyReactiveServerDotNames.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/util/ResteasyReactiveServerDotNames.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.processor.util; -import javax.ws.rs.core.Context; +import jakarta.ws.rs.core.Context; import org.jboss.jandex.DotName; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/runtime/pom.xml b/independent-projects/resteasy-reactive/server/runtime/pom.xml index d4b3ef4d74279..0e8f945c40561 100644 --- a/independent-projects/resteasy-reactive/server/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/server/runtime/pom.xml @@ -24,8 +24,8 @@ jakarta.enterprise.cdi-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerExceptionMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerExceptionMapper.java index 00744a8ba2dd1..b7c32871c1607 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerExceptionMapper.java @@ -5,15 +5,15 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.UriInfo; /** - * When used on a method, then an implementation of {@link javax.ws.rs.ext.ExceptionMapper} is generated + * When used on a method, then an implementation of {@link jakarta.ws.rs.ext.ExceptionMapper} is generated * that calls the annotated method with the proper arguments. * * When the annotation is placed on a method that is not a JAX-RS Resource class, the method handles exceptions in global @@ -24,7 +24,7 @@ * that JAX-RS Resource class. * Methods in a JAX-RS class annotated with this annotation will be used first when determining how to handle a thrown * exception. - * This means that these methods take precedence over the global {@link javax.ws.rs.ext.ExceptionMapper} classes. + * This means that these methods take precedence over the global {@link jakarta.ws.rs.ext.ExceptionMapper} classes. * * In addition to the exception being handled, an annotated method can also declare any of the following * parameters (in any order): diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerRequestFilter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerRequestFilter.java index 8e60ebb805a6d..168378e52f6ba 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerRequestFilter.java @@ -5,18 +5,18 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.UriInfo; import io.smallrye.common.annotation.Blocking; /** - * When used on a method, then an implementation of {@link javax.ws.rs.container.ContainerRequestFilter} is generated + * When used on a method, then an implementation of {@link jakarta.ws.rs.container.ContainerRequestFilter} is generated * that calls the annotated method with the proper arguments *

    * The idea behind using this is to make it much to write a {@code ServerRequestFilter} as all the necessary information diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerResponseFilter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerResponseFilter.java index 79058d909f7d4..a12043ec3a75f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/ServerResponseFilter.java @@ -5,14 +5,14 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.UriInfo; /** - * When used on a method, then an implementation of {@link javax.ws.rs.container.ContainerResponseContext} is generated + * When used on a method, then an implementation of {@link jakarta.ws.rs.container.ContainerResponseContext} is generated * that calls the annotated method with the proper arguments * * The idea behind using this is to make it much to write a {@code ServerResponseFilter} as all the necessary information diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/SimpleResourceInfo.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/SimpleResourceInfo.java index 0077806d0053c..a9fb649604aa7 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/SimpleResourceInfo.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/SimpleResourceInfo.java @@ -2,7 +2,7 @@ import java.lang.reflect.Method; -import javax.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.ResourceInfo; /** * Type that can be injected into places where ResourceInfo can. diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/AsyncExceptionMapperContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/AsyncExceptionMapperContextImpl.java index e621d5d8b0bde..c2cdb33951052 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/AsyncExceptionMapperContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/AsyncExceptionMapperContextImpl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.spi.AsyncExceptionMapperContext; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/Deployment.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/Deployment.java index 1764ea2834e35..364cd328eb911 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/Deployment.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/Deployment.java @@ -9,9 +9,9 @@ import java.util.List; import java.util.function.Supplier; -import javax.ws.rs.core.Application; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.common.ResteasyReactiveConfig; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/DeploymentInfo.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/DeploymentInfo.java index 94de9f5156324..043ba32cad7c2 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/DeploymentInfo.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/DeploymentInfo.java @@ -5,7 +5,7 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.resteasy.reactive.common.ResteasyReactiveConfig; import org.jboss.resteasy.reactive.common.model.ResourceClass; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/EncodedMediaType.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/EncodedMediaType.java index e033783ef1d5e..c219865d5efa8 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/EncodedMediaType.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/EncodedMediaType.java @@ -3,7 +3,7 @@ import java.nio.charset.StandardCharsets; import java.util.Objects; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.spi.ContentType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/LazyResponse.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/LazyResponse.java index 82ad1634b37a5..0203556f372e9 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/LazyResponse.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/LazyResponse.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; public interface LazyResponse { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ResteasyReactiveRequestContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ResteasyReactiveRequestContext.java index 81847f39a140d..7e777846d6f50 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ResteasyReactiveRequestContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ResteasyReactiveRequestContext.java @@ -17,16 +17,16 @@ import java.util.concurrent.Executor; import java.util.regex.Matcher; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.common.NotImplementedYet; import org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/RuntimeExceptionMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/RuntimeExceptionMapper.java index a72022cea3288..2812005bc17ec 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/RuntimeExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/RuntimeExceptionMapper.java @@ -13,9 +13,9 @@ import java.util.function.Predicate; import java.util.stream.Collectors; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.ResteasyReactiveClientProblem; @@ -76,11 +76,11 @@ public void mapException(Throwable throwable, ResteasyReactiveRequestContext con } // we match superclasses only if not a WebApplicationException according to spec 3.3.4 Exceptions - Map.Entry> entry = getExceptionMapper( + Map.Entry> entry = getExceptionMapper( (Class) klass, context, throwable); if (entry != null) { - javax.ws.rs.ext.ExceptionMapper exceptionMapper = entry.getValue(); + jakarta.ws.rs.ext.ExceptionMapper exceptionMapper = entry.getValue(); Throwable mappedException = entry.getKey(); context.requireCDIRequestScope(); if (exceptionMapper instanceof ResteasyReactiveAsyncExceptionMapper) { @@ -201,14 +201,14 @@ public void addExceptionMapper(Class exceptionClass, Re * application * has been configured to unwrap certain exceptions. */ - public Map.Entry> getExceptionMapper( + public Map.Entry> getExceptionMapper( Class clazz, ResteasyReactiveRequestContext context, T throwable) { Map, ResourceExceptionMapper> classExceptionMappers = getClassExceptionMappers( context); if ((classExceptionMappers != null) && !classExceptionMappers.isEmpty()) { - Map.Entry> result = doGetExceptionMapper(clazz, + Map.Entry> result = doGetExceptionMapper(clazz, classExceptionMappers, throwable); if (result != null) { return result; @@ -226,7 +226,7 @@ private Map, ResourceExceptionMapper Map.Entry> doGetExceptionMapper( + private Map.Entry> doGetExceptionMapper( Class clazz, Map, ResourceExceptionMapper> mappers, Throwable throwable) { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerResponseBuilderFactory.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerResponseBuilderFactory.java index 37ed188de5536..96bfe273a3767 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerResponseBuilderFactory.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerResponseBuilderFactory.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.core.ResponseBuilderFactory; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java index 6123dde7cbed3..bd093f5c242fd 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java @@ -21,16 +21,16 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.FilePart; import org.jboss.resteasy.reactive.PathPart; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/SseUtil.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/SseUtil.java index 24de690d468c9..200dc82a38748 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/SseUtil.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/SseUtil.java @@ -9,12 +9,12 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.SseEvent; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.SseEvent; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.common.util.CommonSseUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/StreamingUtil.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/StreamingUtil.java index 8f31bd6bbbe4e..ecd59301f757b 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/StreamingUtil.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/StreamingUtil.java @@ -7,11 +7,11 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.server.StreamingOutputStream; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/DefaultFileUpload.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/DefaultFileUpload.java index 39016664ea194..27671954e1295 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/DefaultFileUpload.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/DefaultFileUpload.java @@ -3,7 +3,7 @@ import java.io.IOException; import java.nio.file.Path; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.multipart.FileUpload; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/FormEncodedDataDefinition.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/FormEncodedDataDefinition.java index 39e499454e13d..15e9e7436f4a8 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/FormEncodedDataDefinition.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/FormEncodedDataDefinition.java @@ -7,9 +7,9 @@ import java.nio.charset.StandardCharsets; import java.util.Set; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java index 9d3465317a90d..b368678792aa8 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java @@ -20,10 +20,10 @@ import java.util.concurrent.Executor; import java.util.function.Supplier; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartMessageBodyWriter.java index 3855132e4fdc4..870a8732c7839 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartMessageBodyWriter.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core.multipart; -import static javax.ws.rs.core.HttpHeaders.CONTENT_TYPE; +import static jakarta.ws.rs.core.HttpHeaders.CONTENT_TYPE; import java.io.File; import java.io.IOException; @@ -15,12 +15,12 @@ import java.util.UUID; import java.util.stream.Collectors; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.core.Serialisers; import org.jboss.resteasy.reactive.common.reflection.ReflectionBeanFactoryCreator; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartSupport.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartSupport.java index 34cb6b8582cc4..9f8371d33bd1f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartSupport.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultipartSupport.java @@ -17,11 +17,11 @@ import java.util.Deque; import java.util.List; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.NotSupportedException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.NotSupportedException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyReader; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.util.Encode; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/ContextParamExtractor.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/ContextParamExtractor.java index 501f9fda27b0b..515af349d12e1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/ContextParamExtractor.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/ContextParamExtractor.java @@ -1,19 +1,19 @@ package org.jboss.resteasy.reactive.server.core.parameters; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.Providers; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.Providers; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/CookieParamExtractor.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/CookieParamExtractor.java index f2daaadc2bcb9..9143960034c72 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/CookieParamExtractor.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/CookieParamExtractor.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core.parameters; -import javax.ws.rs.core.Cookie; +import jakarta.ws.rs.core.Cookie; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/InjectParamExtractor.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/InjectParamExtractor.java index d641487472487..ee4502358afe1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/InjectParamExtractor.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/InjectParamExtractor.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core.parameters; -import javax.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.CompletionCallback; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.injection.ResteasyReactiveInjectionTarget; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/MultipartFormParamExtractor.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/MultipartFormParamExtractor.java index 3b2a4b0473963..bad25c138ad2f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/MultipartFormParamExtractor.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/MultipartFormParamExtractor.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.multipart.FileUpload; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeParameterConverter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeParameterConverter.java index c80d860de8eb7..36af230ace81a 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeParameterConverter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeParameterConverter.java @@ -3,7 +3,7 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; import org.jboss.resteasy.reactive.server.model.ParamConverterProviders; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeResolvedConverter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeResolvedConverter.java index abecc2bfad6c0..84f9e793affce 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeResolvedConverter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/parameters/converters/RuntimeResolvedConverter.java @@ -3,8 +3,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.common.model.ResourceParamConverterProvider; import org.jboss.resteasy.reactive.server.model.ParamConverterProviders; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/reflection/ReflectiveContextInjectedBeanFactory.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/reflection/ReflectiveContextInjectedBeanFactory.java index 0ec8ebb55c27b..e3da35de242c6 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/reflection/ReflectiveContextInjectedBeanFactory.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/reflection/ReflectiveContextInjectedBeanFactory.java @@ -14,10 +14,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.inject.Inject; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; +import jakarta.inject.Inject; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; import org.jboss.resteasy.reactive.server.core.parameters.ContextParamExtractor; @@ -82,7 +82,7 @@ public ReflectiveContextInjectedBeanFactory(Constructor constructor) { constructorParams = new ArrayList<>(); for (var i : constructor.getParameterTypes()) { //assume @Contextual object - if (i.isInterface() && (i.getName().startsWith("javax.ws.rs") || i.getName().startsWith("jakarta.ws.rs"))) { + if (i.isInterface() && (i.getName().startsWith("jakarta.ws.rs") || i.getName().startsWith("jakarta.ws.rs"))) { var val = extractContextParam(i); constructorParams.add(() -> val); } else if (i.isAnnotationPresent(QueryParam.class)) { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/AcceptHeaders.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/AcceptHeaders.java index 81d5a538ef116..b36ff839e34ca 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/AcceptHeaders.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/AcceptHeaders.java @@ -6,8 +6,8 @@ import java.util.Map; import java.util.Map.Entry; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.core.MediaType; /** * @author Pascal S. de Kloe diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/QualityValue.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/QualityValue.java index 2a6055b1ce441..13cd925089ae1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/QualityValue.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/QualityValue.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.core.request; -import javax.ws.rs.BadRequestException; +import jakarta.ws.rs.BadRequestException; /** * @author Pascal S. de Kloe diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/ServerDrivenNegotiation.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/ServerDrivenNegotiation.java index 5619f2d2515ba..28f8cb5ba0bc5 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/ServerDrivenNegotiation.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/ServerDrivenNegotiation.java @@ -5,8 +5,8 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Variant; /** * {@link Variant} selection. diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/VariantQuality.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/VariantQuality.java index 3c33a226520b4..9984cff1b76b9 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/VariantQuality.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/request/VariantQuality.java @@ -3,7 +3,7 @@ import java.math.BigDecimal; import java.math.MathContext; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; /** * A individual variant quality bean for the RVSA (Remote Variant Selection Algorithm). diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/DynamicEntityWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/DynamicEntityWriter.java index 46660abb8a303..452a083fce005 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/DynamicEntityWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/DynamicEntityWriter.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.List; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; import org.jboss.resteasy.reactive.server.core.EncodedMediaType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/EntityWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/EntityWriter.java index 48c1e7ee3bb9b..2fe7811f81e9c 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/EntityWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/EntityWriter.java @@ -7,7 +7,7 @@ /** * An interface that can be used to write out an entity. * - * In practical terms these represent a set of {@link javax.ws.rs.ext.MessageBodyWriter} + * In practical terms these represent a set of {@link jakarta.ws.rs.ext.MessageBodyWriter} * implementations. As must as possible the implementations are resolved at build time, however * the spec does allow for dynamic behaviour, which is abstracted behind this interface. * diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriter.java index 6a8559633eeb2..f54c8b9ff6272 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.core.ServerSerialisers; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriterArray.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriterArray.java index 8aa3d27ab8f9a..ba43b12513abf 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriterArray.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/FixedEntityWriterArray.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.core.ServerSerialisers; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/MediaTypeDelegatingEntityWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/MediaTypeDelegatingEntityWriter.java index 7e1704ccb9c1f..a7f438a74b650 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/MediaTypeDelegatingEntityWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/MediaTypeDelegatingEntityWriter.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.util.Map; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/TypeDelegatingEntityWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/TypeDelegatingEntityWriter.java index 397abf08f071f..dd961026e73ef 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/TypeDelegatingEntityWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/serialization/TypeDelegatingEntityWriter.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.util.Map; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java index 9206d4f93e0b8..9cd376ea8f7af 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeDeploymentManager.java @@ -13,10 +13,10 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Feature; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Feature; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; import org.jboss.resteasy.reactive.common.model.ResourceClass; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeInterceptorDeployment.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeInterceptorDeployment.java index 89775a73b4620..4ff5dc74e2c2a 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeInterceptorDeployment.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeInterceptorDeployment.java @@ -10,11 +10,11 @@ import java.util.TreeMap; import java.util.function.Consumer; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; import org.jboss.resteasy.reactive.common.model.HasPriority; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeResourceDeployment.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeResourceDeployment.java index 39fc1b4836e3c..9de762ffa31ec 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeResourceDeployment.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/startup/RuntimeResourceDeployment.java @@ -25,11 +25,11 @@ import java.util.concurrent.Executor; import java.util.function.Supplier; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.ResteasyReactiveConfig; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/exceptionmappers/AsyncExceptionMappingUtil.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/exceptionmappers/AsyncExceptionMappingUtil.java index d24d14efad005..e9976d54e82e6 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/exceptionmappers/AsyncExceptionMappingUtil.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/exceptionmappers/AsyncExceptionMappingUtil.java @@ -3,7 +3,7 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.RestResponse; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/FilterUtil.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/FilterUtil.java index 14d71f7c9b4e3..135fe4f9c2b36 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/FilterUtil.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/FilterUtil.java @@ -4,7 +4,7 @@ import java.util.function.Consumer; import java.util.function.Function; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/PreventAbortResteasyReactiveContainerRequestContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/PreventAbortResteasyReactiveContainerRequestContext.java index 31addad5355cf..db5760e53b71f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/PreventAbortResteasyReactiveContainerRequestContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/filters/PreventAbortResteasyReactiveContainerRequestContext.java @@ -8,14 +8,14 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; /** * This class is used to prevent calls to 'abortWith' which could lead to unexpected results in generated diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/CacheControlHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/CacheControlHandler.java index 305a344bf062d..fc31b9390cc37 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/CacheControlHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/CacheControlHandler.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.handlers; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.common.util.ExtendedCacheControl; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ClassRoutingHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ClassRoutingHandler.java index 7ebef12cfbdba..d7b04843a9240 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ClassRoutingHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ClassRoutingHandler.java @@ -8,14 +8,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.HttpMethod; -import javax.ws.rs.NotAcceptableException; -import javax.ws.rs.NotAllowedException; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.NotSupportedException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.NotAcceptableException; +import jakarta.ws.rs.NotAllowedException; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.NotSupportedException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.headers.MediaTypeHeaderDelegate; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/FixedProducesHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/FixedProducesHandler.java index 361ae89e90315..78ca786ccef8d 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/FixedProducesHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/FixedProducesHandler.java @@ -3,11 +3,11 @@ import java.util.List; import java.util.Locale; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.server.core.EncodedMediaType; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InputHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InputHandler.java index 8b1aa72fb1502..74c78b2d61bc8 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InputHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InputHandler.java @@ -7,7 +7,7 @@ import java.util.concurrent.Executor; import java.util.function.Supplier; -import javax.ws.rs.HttpMethod; +import jakarta.ws.rs.HttpMethod; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ServerHttpRequest; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InterceptorHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InterceptorHandler.java index af3635aa26a7b..1fa795c529bc5 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InterceptorHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InterceptorHandler.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.handlers; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ServerRestHandler; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/MediaTypeMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/MediaTypeMapper.java index 383b95b3931b6..f29905d2a194b 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/MediaTypeMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/MediaTypeMapper.java @@ -7,10 +7,10 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; import org.jboss.resteasy.reactive.common.util.ServerMediaType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ParameterHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ParameterHandler.java index 37e6dbf5ec419..0e7bb9105a22e 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ParameterHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ParameterHandler.java @@ -3,9 +3,9 @@ import java.util.Collection; import java.util.function.BiConsumer; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.WebApplicationException; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.model.ParameterType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PerRequestInstanceHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PerRequestInstanceHandler.java index 46518a452d4af..5003c814a9f6f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PerRequestInstanceHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PerRequestInstanceHandler.java @@ -2,7 +2,7 @@ import java.util.function.Function; -import javax.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.CompletionCallback; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.injection.ResteasyReactiveInjectionTarget; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java index 45389d6c2ca0e..c06a031fe7713 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java @@ -10,8 +10,8 @@ import java.util.function.BiFunction; import java.util.function.Consumer; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.OutboundSseEvent; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.util.RestMediaType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java index 701946a95ca5c..768e1612ab778 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RequestDeserializeHandler.java @@ -6,16 +6,16 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.NotSupportedException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.NoContentException; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.NotSupportedException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.NoContentException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.ReaderInterceptor; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceLocatorHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceLocatorHandler.java index 3ce59903c08d5..0b3529f4f539d 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceLocatorHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceLocatorHandler.java @@ -9,9 +9,9 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.mapping.RequestMapper; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceRequestFilterHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceRequestFilterHandler.java index 6e19c70d8ae4a..a2863b4cc8f6f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceRequestFilterHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceRequestFilterHandler.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.handlers; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerRequestFilter; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.jaxrs.ContainerRequestContextImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceResponseFilterHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceResponseFilterHandler.java index f98b0238e65f3..a7a678527e228 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceResponseFilterHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResourceResponseFilterHandler.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.handlers; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.jaxrs.ContainerRequestContextImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseHandler.java index 09b1e06eb60d7..8542d3cf330f9 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseHandler.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseWriterHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseWriterHandler.java index bfbd917ee9547..6f554602ac65f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseWriterHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/ResponseWriterHandler.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.handlers; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.util.ServerMediaType; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RestInitialHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RestInitialHandler.java index 4754a7fd54e46..447b4a792f617 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RestInitialHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/RestInitialHandler.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.NotFoundException; +import jakarta.ws.rs.NotFoundException; import org.jboss.resteasy.reactive.server.core.Deployment; import org.jboss.resteasy.reactive.server.core.RequestContextFactory; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/VariableProducesHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/VariableProducesHandler.java index 90b717466b668..6c1e712350e67 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/VariableProducesHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/VariableProducesHandler.java @@ -2,14 +2,14 @@ import java.util.List; -import javax.ws.rs.NotAcceptableException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.NotAcceptableException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; import org.jboss.resteasy.reactive.common.util.ServerMediaType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/injection/ContextProducers.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/injection/ContextProducers.java index 829306f0baa60..a096e6a21257f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/injection/ContextProducers.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/injection/ContextProducers.java @@ -1,19 +1,19 @@ package org.jboss.resteasy.reactive.server.injection; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.sse.Sse; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.sse.Sse; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AbstractInterceptorContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AbstractInterceptorContext.java index 34d606c08fcb6..a28c2e17b1e1d 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AbstractInterceptorContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AbstractInterceptorContext.java @@ -5,8 +5,8 @@ import java.util.Collection; import java.util.Objects; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.InterceptorContext; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.InterceptorContext; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.core.ServerSerialisers; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AsyncResponseImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AsyncResponseImpl.java index 07ababd9e8ad0..23f4964be8ea0 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AsyncResponseImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/AsyncResponseImpl.java @@ -10,14 +10,14 @@ import java.util.Objects; import java.util.concurrent.TimeUnit; -import javax.ws.rs.ServiceUnavailableException; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.CompletionCallback; -import javax.ws.rs.container.ConnectionCallback; -import javax.ws.rs.container.TimeoutHandler; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; +import jakarta.ws.rs.ServiceUnavailableException; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.CompletionCallback; +import jakarta.ws.rs.container.ConnectionCallback; +import jakarta.ws.rs.container.TimeoutHandler; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerRequestContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerRequestContextImpl.java index d893b93f6416e..8866918d4c8bb 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerRequestContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerRequestContextImpl.java @@ -8,13 +8,13 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerResponseContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerResponseContextImpl.java index 7c8cee24a508d..57429cd9d9be1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerResponseContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContainerResponseContextImpl.java @@ -9,16 +9,16 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.Link; -import javax.ws.rs.core.Link.Builder; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.StatusType; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.Link; +import jakarta.ws.rs.core.Link.Builder; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.StatusType; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContextResolverDelegate.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContextResolverDelegate.java index 2e575e65ba3f6..081bf97757a34 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContextResolverDelegate.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ContextResolverDelegate.java @@ -2,7 +2,7 @@ import java.util.Collection; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.ContextResolver; public class ContextResolverDelegate implements ContextResolver { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/DynamicFeatureContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/DynamicFeatureContext.java index a570e9d11b291..39cfbd45379f5 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/DynamicFeatureContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/DynamicFeatureContext.java @@ -2,8 +2,8 @@ import java.util.function.Function; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; import org.jboss.resteasy.reactive.common.model.InterceptorContainer; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/FeatureContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/FeatureContextImpl.java index 5142ed59ca227..1bbf12ffad539 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/FeatureContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/FeatureContextImpl.java @@ -8,16 +8,16 @@ import java.util.Set; import java.util.function.Function; -import javax.annotation.Priority; -import javax.ws.rs.NameBinding; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.WriterInterceptor; +import jakarta.annotation.Priority; +import jakarta.ws.rs.NameBinding; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.WriterInterceptor; import org.jboss.resteasy.reactive.common.core.UnmanagedBeanFactory; import org.jboss.resteasy.reactive.common.jaxrs.ConfigurationImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/HttpHeadersImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/HttpHeadersImpl.java index 8177b3e08c51c..b6cb4e3500d44 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/HttpHeadersImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/HttpHeadersImpl.java @@ -6,10 +6,10 @@ import java.util.Locale; import java.util.Map; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.headers.HeaderUtil; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/OutboundSseEventImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/OutboundSseEventImpl.java index 0b2705f1a2759..2960bd2dd9929 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/OutboundSseEventImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/OutboundSseEventImpl.java @@ -3,11 +3,11 @@ import java.lang.reflect.Type; import java.util.Objects; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.GenericType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.SseEvent; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.GenericType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.SseEvent; public class OutboundSseEventImpl implements OutboundSseEvent { private final String name; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ProvidersImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ProvidersImpl.java index ac7e8a9a4de4d..5ee55c58cd475 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ProvidersImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ProvidersImpl.java @@ -5,13 +5,13 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Providers; import org.jboss.resteasy.reactive.server.core.Deployment; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ReaderInterceptorContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ReaderInterceptorContextImpl.java index 26573557b73ae..6a8d90bab2d68 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ReaderInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ReaderInterceptorContextImpl.java @@ -6,14 +6,14 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.NotSupportedException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.ReaderInterceptor; -import javax.ws.rs.ext.ReaderInterceptorContext; +import jakarta.ws.rs.NotSupportedException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.ReaderInterceptor; +import jakarta.ws.rs.ext.ReaderInterceptorContext; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RequestImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RequestImpl.java index d00022cf00c00..9a33e0ea8c7e7 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RequestImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RequestImpl.java @@ -4,12 +4,12 @@ import java.util.Date; import java.util.List; -import javax.ws.rs.core.EntityTag; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.core.EntityTag; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.common.jaxrs.AbstractResponseBuilder; import org.jboss.resteasy.reactive.common.util.DateUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResourceContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResourceContextImpl.java index 6f9e1467390f3..74a4cc7e1f14c 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResourceContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResourceContextImpl.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.jaxrs; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.container.ResourceContext; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.container.ResourceContext; public class ResourceContextImpl implements ResourceContext { public static ResourceContextImpl INSTANCE = new ResourceContextImpl(); diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResponseBuilderImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResponseBuilderImpl.java index 1c63e1cd14415..c4c2847152c43 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResponseBuilderImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/ResponseBuilderImpl.java @@ -3,8 +3,8 @@ import java.net.URI; import java.net.URISyntaxException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.jaxrs.AbstractResponseBuilder; import org.jboss.resteasy.reactive.server.core.CurrentRequestManager; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RestResponseBuilderImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RestResponseBuilderImpl.java index 54aff4e66ecaf..21d74d4b9f828 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RestResponseBuilderImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/RestResponseBuilderImpl.java @@ -3,7 +3,7 @@ import java.net.URI; import java.net.URISyntaxException; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.jaxrs.AbstractRestResponseBuilder; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java index 1700f89b43a93..0d40b41f9af53 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java @@ -9,9 +9,9 @@ import java.util.function.BiConsumer; import java.util.function.Consumer; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.SseBroadcaster; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.SseEventSink; public class SseBroadcasterImpl implements SseBroadcaster { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java index faed79cdc9788..6b8080faeb067 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java @@ -4,8 +4,8 @@ import java.util.concurrent.CompletionStage; import java.util.function.Consumer; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.core.SseUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseImpl.java index 590fbac392cd3..18c9245b3e852 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseImpl.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.jaxrs; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseBroadcaster; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseBroadcaster; public class SseImpl implements Sse { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/UriInfoImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/UriInfoImpl.java index f6a55ea04f3cd..a470d07b61f76 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/UriInfoImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/UriInfoImpl.java @@ -8,10 +8,10 @@ import java.util.List; import java.util.Map.Entry; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.common.jaxrs.UriBuilderImpl; import org.jboss.resteasy.reactive.common.util.PathSegmentImpl; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/WriterInterceptorContextImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/WriterInterceptorContextImpl.java index f822e44002d6e..3e048db93f0f9 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/WriterInterceptorContextImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/WriterInterceptorContextImpl.java @@ -6,15 +6,15 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.WriterInterceptorContext; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RuntimeResource.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RuntimeResource.java index 1af8e2ef6c0bb..eb19586110723 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RuntimeResource.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/mapping/RuntimeResource.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.model.ResourceExceptionMapper; import org.jboss.resteasy.reactive.common.util.ServerMediaType; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ContextResolvers.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ContextResolvers.java index c67ade81d73af..8b6c672f0c955 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ContextResolvers.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ContextResolvers.java @@ -7,8 +7,8 @@ import java.util.Map; import java.util.function.Function; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; import org.jboss.resteasy.reactive.common.model.ResourceContextResolver; import org.jboss.resteasy.reactive.common.util.MediaTypeHelper; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/DynamicFeatures.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/DynamicFeatures.java index 930ec633e64ae..fc75b35d05289 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/DynamicFeatures.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/DynamicFeatures.java @@ -4,13 +4,13 @@ import java.util.List; import java.util.function.Function; -import javax.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.DynamicFeature; import org.jboss.resteasy.reactive.common.model.ResourceDynamicFeature; import org.jboss.resteasy.reactive.spi.BeanFactory; /** - * Container for {@link javax.ws.rs.container.DynamicFeature} + * Container for {@link jakarta.ws.rs.container.DynamicFeature} */ public class DynamicFeatures { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/Features.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/Features.java index bf46d48c59d3e..a8fbfc3cd476d 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/Features.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/Features.java @@ -4,7 +4,7 @@ import java.util.List; import java.util.function.Function; -import javax.ws.rs.core.Feature; +import jakarta.ws.rs.core.Feature; import org.jboss.resteasy.reactive.common.model.ResourceFeature; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/HandlerChainCustomizer.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/HandlerChainCustomizer.java index b86547d71ff15..e0339f7b43116 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/HandlerChainCustomizer.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/HandlerChainCustomizer.java @@ -4,8 +4,8 @@ import java.util.List; import java.util.function.Supplier; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.ResponseBuilder; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.ResponseBuilder; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.common.model.ResourceClass; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ParamConverterProviders.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ParamConverterProviders.java index e2b510467e183..b78950348b2b9 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ParamConverterProviders.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/model/ParamConverterProviders.java @@ -5,7 +5,7 @@ import java.util.List; import java.util.function.Function; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.jboss.resteasy.reactive.common.model.ResourceParamConverterProvider; import org.jboss.resteasy.reactive.spi.BeanFactory; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/FormValue.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/FormValue.java index 10f89cb450cf9..32c5a9672b5a1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/FormValue.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/FormValue.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.multipart; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MultivaluedMap; /** * Represents one part of a multipart request diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartFormDataOutput.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartFormDataOutput.java index d3e049028d4c0..98df68f045e4a 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartFormDataOutput.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartFormDataOutput.java @@ -4,7 +4,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; /** * Used when a Resource method needs to return a multipart output diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartPartReadingException.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartPartReadingException.java index fed9153cfd280..410fc4c3d335d 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartPartReadingException.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/MultipartPartReadingException.java @@ -1,11 +1,12 @@ package org.jboss.resteasy.reactive.server.multipart; -import javax.ws.rs.BadRequestException; +import jakarta.ws.rs.BadRequestException; /** * Exception thrown when some part of the multipart input cannot be read using the appropriate - * {@link javax.ws.rs.ext.MessageBodyReader}. - * This exception is useful to application because it can be by an {@link javax.ws.rs.ext.ExceptionMapper} in order to customize + * {@link jakarta.ws.rs.ext.MessageBodyReader}. + * This exception is useful to application because it can be by an {@link jakarta.ws.rs.ext.ExceptionMapper} in order to + * customize * the input error handling. */ public class MultipartPartReadingException extends BadRequestException { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/PartItem.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/PartItem.java index bcb20781354bc..d5d13518d6c8c 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/PartItem.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/multipart/PartItem.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.multipart; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.util.QuarkusMultivaluedHashMap; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerBooleanMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerBooleanMessageBodyHandler.java index 2be468dd0a7bf..6e185f3436020 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerBooleanMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerBooleanMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.BooleanMessageBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerByteArrayMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerByteArrayMessageBodyHandler.java index 1c1072159d824..ffb0b9f4e49c0 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerByteArrayMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerByteArrayMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.ByteArrayMessageBodyHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharArrayMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharArrayMessageBodyHandler.java index ce54d00bc73d6..839f18b2a6402 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharArrayMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharArrayMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.CharArrayMessageBodyHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharacterMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharacterMessageBodyHandler.java index e96f0c7d8dc7e..2c7bd368d02e6 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharacterMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerCharacterMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.CharacterMessageBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerDefaultTextPlainBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerDefaultTextPlainBodyHandler.java index 51779b09fe86e..862b2871b457a 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerDefaultTextPlainBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerDefaultTextPlainBodyHandler.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.Consumes; -import javax.ws.rs.ProcessingException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.ProcessingException; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.providers.serialisers.DefaultTextPlainBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFileBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFileBodyHandler.java index cb8fb60eca0a2..aa974beede41f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFileBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFileBodyHandler.java @@ -4,10 +4,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.FileBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFilePartBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFilePartBodyHandler.java index 6e820b21eab73..08d8b26e0b3e6 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFilePartBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFilePartBodyHandler.java @@ -3,10 +3,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.FilePart; import org.jboss.resteasy.reactive.common.providers.serialisers.FilePartBodyHandler; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFormUrlEncodedProvider.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFormUrlEncodedProvider.java index e5156e69a61c8..5462900467af4 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFormUrlEncodedProvider.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerFormUrlEncodedProvider.java @@ -4,13 +4,13 @@ import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; -import javax.ws.rs.ConstrainedTo; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.RuntimeType; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ConstrainedTo; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.common.providers.serialisers.MapAsFormUrlEncodedProvider; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerInputStreamMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerInputStreamMessageBodyHandler.java index e425943db55d2..8871210e400c3 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerInputStreamMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerInputStreamMessageBodyHandler.java @@ -5,8 +5,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.InputStreamMessageBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerNumberMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerNumberMessageBodyHandler.java index 260f7c985d808..09e4683b3149f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerNumberMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerNumberMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.NumberMessageBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathBodyHandler.java index 9978e13d19e60..0585d84426286 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathBodyHandler.java @@ -6,9 +6,9 @@ import java.lang.reflect.Type; import java.nio.file.Files; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.PathBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathPartBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathPartBodyHandler.java index 0e5fe867bef72..ee3d8b282ac5a 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathPartBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerPathPartBodyHandler.java @@ -6,9 +6,9 @@ import java.lang.reflect.Type; import java.nio.file.Files; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PathPart; import org.jboss.resteasy.reactive.common.providers.serialisers.PathPartBodyHandler; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerReaderBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerReaderBodyHandler.java index e1b6e2c8dc886..81d780b51b2a0 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerReaderBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerReaderBodyHandler.java @@ -6,8 +6,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; import org.jboss.resteasy.reactive.common.providers.serialisers.ReaderBodyHandler; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerStringMessageBodyHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerStringMessageBodyHandler.java index 45564ddd73973..904af68642e41 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerStringMessageBodyHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/ServerStringMessageBodyHandler.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.StringMessageBodyHandler; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonArrayHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonArrayHandler.java index bf05713943b1c..8ea6a5ec31d3f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonArrayHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonArrayHandler.java @@ -3,10 +3,10 @@ import java.io.ByteArrayOutputStream; import java.lang.reflect.Type; -import javax.json.JsonArray; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.json.JsonArray; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonArrayHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonpUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonObjectHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonObjectHandler.java index db5d1edac36cb..fcaa1d9091bc2 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonObjectHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonObjectHandler.java @@ -3,10 +3,10 @@ import java.io.ByteArrayOutputStream; import java.lang.reflect.Type; -import javax.json.JsonObject; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.json.JsonObject; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonObjectHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonpUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonStructureHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonStructureHandler.java index 02d18b294ac33..ef055f5905fe4 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonStructureHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonStructureHandler.java @@ -3,11 +3,11 @@ import java.io.ByteArrayOutputStream; import java.lang.reflect.Type; -import javax.json.JsonObject; -import javax.json.JsonStructure; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.json.JsonObject; +import jakarta.json.JsonStructure; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonStructureHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonpUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonValueHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonValueHandler.java index 0dfc64efef638..b75d0d68b8961 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonValueHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/jsonp/ServerJsonValueHandler.java @@ -3,10 +3,10 @@ import java.io.ByteArrayOutputStream; import java.lang.reflect.Type; -import javax.json.JsonValue; -import javax.json.JsonWriter; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.json.JsonValue; +import jakarta.json.JsonWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonValueHandler; import org.jboss.resteasy.reactive.common.providers.serialisers.jsonp.JsonpUtil; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/AsyncExceptionMapperContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/AsyncExceptionMapperContext.java index 4c33cbcf06391..310d15bdbd794 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/AsyncExceptionMapperContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/AsyncExceptionMapperContext.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; public interface AsyncExceptionMapperContext { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ContentType.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ContentType.java index 33b3ec14bcc3c..5691507b78297 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ContentType.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ContentType.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; public interface ContentType { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveAsyncExceptionMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveAsyncExceptionMapper.java index cfb95ad8bcb9e..9001c19be97c1 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveAsyncExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveAsyncExceptionMapper.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; /** * Allow ExceptionMapper classes that can use resume and suspend when attempting to convert diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestContext.java index 786d26a293796..e087f3e9719ef 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestContext.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestContext; public interface ResteasyReactiveContainerRequestContext extends ContainerRequestContext { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestFilter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestFilter.java index 0df3b8685329f..0ad89f9438264 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerRequestFilter.java @@ -2,8 +2,8 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; public interface ResteasyReactiveContainerRequestFilter extends ContainerRequestFilter { @Override diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerResponseFilter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerResponseFilter.java index 83c787552b729..80df206e19f4f 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveContainerResponseFilter.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; public interface ResteasyReactiveContainerResponseFilter extends ContainerResponseFilter { @Override diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveExceptionMapper.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveExceptionMapper.java index ddccb90e0785e..245b5404e85a6 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveExceptionMapper.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.spi; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; public interface ResteasyReactiveExceptionMapper extends ExceptionMapper { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveResourceInfo.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveResourceInfo.java index f0505af02c6dd..5e8b3377e4d77 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveResourceInfo.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ResteasyReactiveResourceInfo.java @@ -5,7 +5,7 @@ import java.lang.reflect.Type; import java.util.Set; -import javax.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.container.ResourceInfo; import org.jboss.resteasy.reactive.server.util.MethodId; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyReader.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyReader.java index 0a71553cda9a0..379086517d63e 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyReader.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyReader.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyReader; public interface ServerMessageBodyReader extends MessageBodyReader { diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyWriter.java index 2ed5d0a0bd9a4..df8fa18ff0bb7 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerMessageBodyWriter.java @@ -4,9 +4,9 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.types.AllWriteableMarker; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerRequestContext.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerRequestContext.java index 00b4b0afa342c..50fba8210e0da 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerRequestContext.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/spi/ServerRequestContext.java @@ -3,8 +3,8 @@ import java.io.InputStream; import java.io.OutputStream; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.common.core.ResteasyReactiveCallbackContext; diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/util/ScoreSystem.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/util/ScoreSystem.java index 99463f7a71be2..a4b001c8ded8b 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/util/ScoreSystem.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/util/ScoreSystem.java @@ -7,8 +7,8 @@ import java.util.Map; import java.util.Map.Entry; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.MessageBodyWriter; import org.jboss.resteasy.reactive.common.util.ServerMediaType; import org.jboss.resteasy.reactive.server.handlers.ResourceRequestFilterHandler; diff --git a/independent-projects/resteasy-reactive/server/vertx/pom.xml b/independent-projects/resteasy-reactive/server/vertx/pom.xml index 9de116c3a5e0f..c6f0e316761de 100644 --- a/independent-projects/resteasy-reactive/server/vertx/pom.xml +++ b/independent-projects/resteasy-reactive/server/vertx/pom.xml @@ -32,8 +32,8 @@ jakarta.enterprise.cdi-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api org.jboss.shrinkwrap @@ -81,8 +81,8 @@ commons-logging-jboss-logging - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api jakarta.validation diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/ResteasyReactiveOutputStream.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/ResteasyReactiveOutputStream.java index e3f9a68310b49..f1d7f01ddff7d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/ResteasyReactiveOutputStream.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/ResteasyReactiveOutputStream.java @@ -5,8 +5,8 @@ import java.io.InterruptedIOException; import java.io.OutputStream; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.core.LazyResponse; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/VertxResteasyReactiveRequestContext.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/VertxResteasyReactiveRequestContext.java index 084c6cf9f6153..a4f8ec0951bf4 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/VertxResteasyReactiveRequestContext.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/VertxResteasyReactiveRequestContext.java @@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit; import java.util.function.Consumer; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.common.util.CaseInsensitiveMap; import org.jboss.resteasy.reactive.server.core.Deployment; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyAsyncFileMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyAsyncFileMessageBodyWriter.java index 8b9f63fefff88..2262c937af40e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyAsyncFileMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyAsyncFileMessageBodyWriter.java @@ -5,11 +5,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyBufferMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyBufferMessageBodyWriter.java index e2fbfccb92c26..6d1a4413c255a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyBufferMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerMutinyBufferMessageBodyWriter.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxAsyncFileMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxAsyncFileMessageBodyWriter.java index b498dcbcd397b..5205794a96367 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxAsyncFileMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxAsyncFileMessageBodyWriter.java @@ -5,11 +5,11 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxBufferMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxBufferMessageBodyWriter.java index 91bd04e398a24..9f630716f4e7b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxBufferMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/main/java/org/jboss/resteasy/reactive/server/vertx/serializers/ServerVertxBufferMessageBodyWriter.java @@ -5,10 +5,10 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnApplicationTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnApplicationTest.java index 897194c8354e5..000b99cb11b9f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnApplicationTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnApplicationTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java index 8775571568798..3355182c2c51c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnMethodTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnMethodTest.java index 1e68cde0e3352..49202504cff91 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnMethodTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnMethodTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/HelloResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/HelloResource.java index cd6b1cd99b363..a7013e9c02601 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/HelloResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/HelloResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("/hello") public class HelloResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/InnerClassTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/InnerClassTest.java index 23df043ec3399..203872952890a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/InnerClassTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/InnerClassTest.java @@ -4,8 +4,8 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/MultipleHttpAnnotationsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/MultipleHttpAnnotationsTest.java index 558bbc21755ff..55d3b79b5640b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/MultipleHttpAnnotationsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/MultipleHttpAnnotationsTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnClassAndMethodsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnClassAndMethodsTest.java index 500d8d5f93573..7fb9cf737c61a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnClassAndMethodsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnClassAndMethodsTest.java @@ -5,8 +5,8 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.Cache; import org.jboss.resteasy.reactive.server.processor.ResteasyReactiveDeploymentManager; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnMethodsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnMethodsTest.java index c3f5930891abe..74dfab3cc48f3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnMethodsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/CacheOnMethodsTest.java @@ -6,8 +6,8 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.Cache; import org.jboss.resteasy.reactive.server.processor.ResteasyReactiveDeploymentManager; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnClassAndMethodsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnClassAndMethodsTest.java index 48afad37bc61a..a762f5a6de6da 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnClassAndMethodsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnClassAndMethodsTest.java @@ -5,8 +5,8 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; import org.jboss.resteasy.reactive.server.processor.ResteasyReactiveDeploymentManager; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnMethodsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnMethodsTest.java index 91b06978cd5dc..910245da3e124 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnMethodsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/cache/NoCacheOnMethodsTest.java @@ -6,8 +6,8 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.NoCache; import org.jboss.resteasy.reactive.server.processor.ResteasyReactiveDeploymentManager; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/FirstResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/FirstResource.java index 6f75fc56aafa6..955d3b97c51b2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/FirstResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/FirstResource.java @@ -2,14 +2,14 @@ import static org.jboss.resteasy.reactive.server.vertx.test.ExceptionUtil.removeStackTrace; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.RestQuery; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/GlobalThrowableExceptionMapperTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/GlobalThrowableExceptionMapperTest.java index 0761fa41eced3..fadb8a7f26b61 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/GlobalThrowableExceptionMapperTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/GlobalThrowableExceptionMapperTest.java @@ -5,10 +5,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/MyOtherExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/MyOtherExceptionMapper.java index 395e4ed0fb5d3..93474042f43ec 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/MyOtherExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/MyOtherExceptionMapper.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customexceptions; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/PerClassThrowableExceptionMapperTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/PerClassThrowableExceptionMapperTest.java index 69d01d4d2f750..f204496b13215 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/PerClassThrowableExceptionMapperTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/PerClassThrowableExceptionMapperTest.java @@ -4,10 +4,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; import org.jboss.resteasy.reactive.server.vertx.test.ExceptionUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SecondResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SecondResource.java index 792331c4202f6..39200e2ab8be2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SecondResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SecondResource.java @@ -2,9 +2,9 @@ import static org.jboss.resteasy.reactive.server.vertx.test.ExceptionUtil.removeStackTrace; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("second") public class SecondResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SomeBean.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SomeBean.java index 36c2c5ca6618b..182413b0f8805 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SomeBean.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/SomeBean.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customexceptions; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class SomeBean { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UniExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UniExceptionMapper.java index a7786814c3388..e56db2ec6a51d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UniExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UniExceptionMapper.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customexceptions; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UnwrappedExceptionTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UnwrappedExceptionTest.java index 143a827249bb2..9c3544823f9b9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UnwrappedExceptionTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customexceptions/UnwrappedExceptionTest.java @@ -6,8 +6,8 @@ import java.util.function.Consumer; import java.util.function.Supplier; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.jandex.IndexView; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AnotherValidNonBlockingFiltersTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AnotherValidNonBlockingFiltersTest.java index 5140a4f6cf344..ef90d48e4e903 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AnotherValidNonBlockingFiltersTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AnotherValidNonBlockingFiltersTest.java @@ -5,18 +5,18 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AssertContainerFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AssertContainerFilter.java index bf97b5eba3281..61bcbbe2acd22 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AssertContainerFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/AssertContainerFilter.java @@ -5,10 +5,10 @@ import java.util.List; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Request; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Request; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerRequestFilter.java index 21a320893f1bd..78102b4e4881e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerRequestFilter.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerResponseFilter.java index bb4d89f917e71..9783223c02523 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomContainerResponseFilter.java @@ -3,8 +3,8 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomFiltersResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomFiltersResource.java index 339b50492f863..c7b0c604031c5 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomFiltersResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/CustomFiltersResource.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; @Path("/custom") public class CustomFiltersResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/FilterWithPathParamsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/FilterWithPathParamsTest.java index 4c38e9a8e0eb3..fcfb3479e738e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/FilterWithPathParamsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/FilterWithPathParamsTest.java @@ -6,10 +6,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.ServerResponseFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/IllegalStateExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/IllegalStateExceptionMapper.java index e29c8c7d57e5b..290fceb3ab16f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/IllegalStateExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/IllegalStateExceptionMapper.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class IllegalStateExceptionMapper implements ExceptionMapper { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/InvalidNonBlockingFiltersTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/InvalidNonBlockingFiltersTest.java index 7e69adc59bd09..07752f8e92308 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/InvalidNonBlockingFiltersTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/InvalidNonBlockingFiltersTest.java @@ -5,14 +5,14 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/Metal.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/Metal.java index de598d5d4b31e..dd6b48d8249ed 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/Metal.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/Metal.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/MetalFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/MetalFilter.java index 29cdb516803ca..b5202102af420 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/MetalFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/MetalFilter.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestContext; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/NoTargetTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/NoTargetTest.java index 5c1933464c720..3ad8783475e50 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/NoTargetTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/NoTargetTest.java @@ -5,16 +5,16 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/OptionalRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/OptionalRequestFilter.java index c78781457f526..8c6e692c073eb 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/OptionalRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/OptionalRequestFilter.java @@ -2,8 +2,8 @@ import java.util.Optional; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ResponseFilter.java index 62931637e24df..b5427d82a6f75 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ResponseFilter.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/SomeBean.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/SomeBean.java index ae2ff9dadc58d..d0185cfa24726 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/SomeBean.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/SomeBean.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class SomeBean { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniExceptionMapper.java index 6b591507cba91..c2f4e10e0973d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniExceptionMapper.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class UniExceptionMapper implements ExceptionMapper { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniFiltersResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniFiltersResource.java index 9d518c417b432..c6f2aa0b48caa 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniFiltersResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniFiltersResource.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; @Path("uni") public class UniFiltersResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseFilter.java index 921b55283c692..c3e77d3b1319a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseFilter.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.resteasy.reactive.server.ServerResponseFilter; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseRequestFilter.java index baf0fe6fcace4..2e819706fe97a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniResponseRequestFilter.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniVoidRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniVoidRequestFilter.java index e07a5c1956d6a..57a479d54e365 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniVoidRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/UniVoidRequestFilter.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.customproviders; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.jboss.resteasy.reactive.server.ServerRequestFilter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ValidNonBlockingFiltersTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ValidNonBlockingFiltersTest.java index 5da56eba85a7b..812fba9a36c9d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ValidNonBlockingFiltersTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/customproviders/ValidNonBlockingFiltersTest.java @@ -5,17 +5,17 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.annotation.Priority; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/form/FormUrlencodedCorruptionTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/form/FormUrlencodedCorruptionTest.java index 7606472896cd1..ad33392585b5a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/form/FormUrlencodedCorruptionTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/form/FormUrlencodedCorruptionTest.java @@ -5,12 +5,12 @@ import java.net.URLEncoder; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.resteasy.reactive.RestForm; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/framework/ResteasyReactiveUnitTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/framework/ResteasyReactiveUnitTest.java index b996daf921ddc..ec50f18b9c567 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/framework/ResteasyReactiveUnitTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/framework/ResteasyReactiveUnitTest.java @@ -36,7 +36,7 @@ import java.util.logging.LogRecord; import java.util.logging.Logger; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.DotName; import org.jboss.jandex.IndexView; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ChunkedHeaderTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ChunkedHeaderTest.java index 3e94842869249..56e7365271623 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ChunkedHeaderTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ChunkedHeaderTest.java @@ -4,9 +4,9 @@ import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/CookiesTestResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/CookiesTestResource.java index 9b39209339342..928111eebfc28 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/CookiesTestResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/CookiesTestResource.java @@ -1,12 +1,12 @@ package org.jboss.resteasy.reactive.server.vertx.test.headers; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; @Path("/cookies") public class CookiesTestResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/Dummy.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/Dummy.java index 8538b75f860eb..cba856df7aef3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/Dummy.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/Dummy.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.headers; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseHeader; import org.jboss.resteasy.reactive.ResponseStatus; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ResponseHeaderTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ResponseHeaderTest.java index 0f178310db20d..92a42ddc12d86 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ResponseHeaderTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/headers/ResponseHeaderTest.java @@ -7,8 +7,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseHeader; import org.jboss.resteasy.reactive.ResponseStatus; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/EndingSlashTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/EndingSlashTest.java index 640d58e9a4704..178a09a9afdd9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/EndingSlashTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/EndingSlashTest.java @@ -5,10 +5,10 @@ import java.util.function.Supplier; -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; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/GeneralResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/GeneralResource.java index 7df30646bbb4d..19b93e6cdc5ca 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/GeneralResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/GeneralResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.matching; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GeneralResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/MultipleProducesTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/MultipleProducesTest.java index 6ebae6c90f795..04515573caab0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/MultipleProducesTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/MultipleProducesTest.java @@ -10,15 +10,15 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java index 7bada4e342a20..436f4d826c31e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/PathParamOverlapTest.java @@ -5,10 +5,10 @@ import java.util.function.Supplier; -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; import org.jboss.resteasy.reactive.RestPath; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/RegexResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/RegexResource.java index 98afa1a9d28d3..6eeed328d905d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/RegexResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/RegexResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.matching; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/regex") public class RegexResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java index b5ae2b66821cb..ce48b63fb8575 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/ResourceClassMergeTest.java @@ -5,12 +5,12 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SpecificResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SpecificResource.java index f0d750c167409..c63047dbddf73 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SpecificResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SpecificResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.matching; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello/{id}/bar") public class SpecificResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SubresourceCustomRegexTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SubresourceCustomRegexTest.java index ab9c9fd11b168..33caafc0416cd 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SubresourceCustomRegexTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/matching/SubresourceCustomRegexTest.java @@ -5,10 +5,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/CharsetTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/CharsetTest.java index e27abf4620632..6110352656512 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/CharsetTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/CharsetTest.java @@ -6,10 +6,10 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/ContentTypeCaseTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/ContentTypeCaseTest.java index cc6e1c4586653..355fab10257e7 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/ContentTypeCaseTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/ContentTypeCaseTest.java @@ -5,11 +5,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/InvalidContentTypeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/InvalidContentTypeTest.java index 148417f66a6d6..648fe613a186d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/InvalidContentTypeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/InvalidContentTypeTest.java @@ -6,9 +6,9 @@ import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/MessageBodyWriteTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/MessageBodyWriteTest.java index ad510c836e2d0..7060e02fce126 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/MessageBodyWriteTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/MessageBodyWriteTest.java @@ -11,14 +11,14 @@ import java.util.Map; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/NoAcceptMultipleProducesTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/NoAcceptMultipleProducesTest.java index 1a68b3cd6f8e8..0873e1688b1c7 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/NoAcceptMultipleProducesTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/mediatype/NoAcceptMultipleProducesTest.java @@ -12,13 +12,13 @@ import java.util.Map; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/EchoResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/EchoResource.java index 8afe63dd5133f..56dd88fe3b4ff 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/EchoResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/EchoResource.java @@ -2,11 +2,11 @@ import java.nio.charset.StandardCharsets; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.smallrye.common.annotation.NonBlocking; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormData.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormData.java index 5f57aa010d1ac..24c57c44d27b0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormData.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormData.java @@ -3,7 +3,7 @@ import java.io.File; import java.nio.file.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataBase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataBase.java index 0aa6e50467ae3..6a6f47966aaed 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataBase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataBase.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.multipart; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataSameFileName.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataSameFileName.java index d7c3580ce749e..9d9914f1732c2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataSameFileName.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataSameFileName.java @@ -4,7 +4,7 @@ import java.nio.file.Path; import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataWithAllUploads.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataWithAllUploads.java index 176a77b613273..3dae8dc21ad95 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataWithAllUploads.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/FormDataWithAllUploads.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/InvalidEncodingTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/InvalidEncodingTest.java index a5eaf0224fb79..77fe0766121f2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/InvalidEncodingTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/InvalidEncodingTest.java @@ -5,12 +5,12 @@ import java.net.URISyntaxException; import java.nio.charset.StandardCharsets; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.RestForm; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java index ed1183ce2a34d..afa75128a207b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/LargerThanDefaultFormAttributeMultipartFormInputTest.java @@ -9,13 +9,13 @@ import java.nio.file.Files; import java.util.function.Supplier; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartFileContentTypeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartFileContentTypeTest.java index 93c4771f78959..53d42b51ecbd9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartFileContentTypeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartFileContentTypeTest.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.function.Supplier; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.multipart.other.OtherPackageFormDataBase; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputFileResponse.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputFileResponse.java index e024c8c65da9a..f21ca7ad09aaf 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputFileResponse.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputFileResponse.java @@ -2,7 +2,7 @@ import java.io.File; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResource.java index f4377899bb62c..3e139767d31fa 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResource.java @@ -3,10 +3,10 @@ import java.io.File; import java.util.List; -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; import org.jboss.resteasy.reactive.server.multipart.MultipartFormDataOutput; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResponse.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResponse.java index e2ab7b14919cf..d9e5c3b7c20a2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResponse.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputResponse.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java index fc27042f39599..bb3036215c2c5 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingBlockingEndpointsTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.equalTo; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.multipart.other.OtherPackageFormDataBase; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingReactiveEndpointTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingReactiveEndpointTest.java index f707508849656..dcee8d5296aea 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingReactiveEndpointTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartOutputUsingReactiveEndpointTest.java @@ -2,11 +2,11 @@ import static org.junit.jupiter.api.Assertions.fail; -import javax.enterprise.inject.spi.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.multipart.other.OtherPackageFormDataBase; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResource.java index 888aa1e0204dd..a2fea14336834 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResource.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.nio.file.Files; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.RestQuery; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResourceWithAllUploads.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResourceWithAllUploads.java index 379fd4a158926..01fa7e9e33bc2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResourceWithAllUploads.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/MultipartResourceWithAllUploads.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.multipart; -import javax.ws.rs.BeanParam; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.multipart.FileUpload; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherFormDataBase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherFormDataBase.java index 04235428c6185..fd9ac81a96e78 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherFormDataBase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherFormDataBase.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.multipart; -import javax.ws.rs.FormParam; +import jakarta.ws.rs.FormParam; public class OtherFormDataBase { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherMultipartResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherMultipartResource.java index ef632b8f8d15e..16bef8a3ed380 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherMultipartResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/OtherMultipartResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.multipart; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.MultipartForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java index 3935e4d6e3eaf..b2440505a49a4 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/TooLargeFormAttributeMultipartFormInputTest.java @@ -9,11 +9,11 @@ import java.nio.file.Paths; import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.MultipartForm; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/other/OtherPackageFormDataBase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/other/OtherPackageFormDataBase.java index d07ba706aebe7..921968b603c57 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/other/OtherPackageFormDataBase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/multipart/other/OtherPackageFormDataBase.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.multipart.other; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.PartType; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/HelloResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/HelloResource.java index d25c9babfb75b..6da4d6f995ee3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/HelloResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/HelloResource.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.PathSegment; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.PathSegment; /** * Per spec: diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/WhitespaceInPathTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/WhitespaceInPathTest.java index 2f4a928cd6749..73524b4a7c306 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/WhitespaceInPathTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/path/WhitespaceInPathTest.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.path; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileResource.java index eb8aa22d0608d..f64f237c5016d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileResource.java @@ -3,8 +3,8 @@ import java.io.File; import java.nio.file.Paths; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.FilePart; import org.jboss.resteasy.reactive.PathPart; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileTestCase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileTestCase.java index c0b98dbdb896f..f3b748c965244 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileTestCase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/FileTestCase.java @@ -6,7 +6,7 @@ import java.nio.file.Path; import java.nio.file.Paths; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.HttpHeaders; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.FilePart; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/InvalidFileResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/InvalidFileResource.java index 450b957d3ddf2..0da1a9f99f674 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/InvalidFileResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/InvalidFileResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.providers; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.file.AsyncFile; import io.vertx.ext.web.RoutingContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WithWriterInterceptor.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WithWriterInterceptor.java index 9e17b971fec0b..04f31490c086f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WithWriterInterceptor.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WithWriterInterceptor.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.METHOD, ElementType.TYPE }) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WriterInterceptor.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WriterInterceptor.java index 27ac91942b55a..a384af66a8691 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WriterInterceptor.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/WriterInterceptor.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.WriterInterceptorContext; @WithWriterInterceptor @Provider -public class WriterInterceptor implements javax.ws.rs.ext.WriterInterceptor { +public class WriterInterceptor implements jakarta.ws.rs.ext.WriterInterceptor { @Override public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortFilterWithLargePayloadTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortFilterWithLargePayloadTest.java index 6b93f16015512..4c1c6a96a8b64 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortFilterWithLargePayloadTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortFilterWithLargePayloadTest.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortingRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortingRequestFilter.java index 2b744118207eb..c6bb422b7a21f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortingRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/AbortingRequestFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; @Provider public class AbortingRequestFilter implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/BasicGenericTypesHandlingTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/BasicGenericTypesHandlingTest.java index e78e3bb05f348..4d9e2aae2be34 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/BasicGenericTypesHandlingTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/BasicGenericTypesHandlingTest.java @@ -8,14 +8,14 @@ import java.nio.charset.StandardCharsets; import java.util.function.Supplier; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.common.providers.serialisers.MessageReaderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ClassLevelMediaTypeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ClassLevelMediaTypeTest.java index 03189c70debf2..59e7cfa17e21f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ClassLevelMediaTypeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ClassLevelMediaTypeTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.ClassLevelMediaTypeResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CollectionDefaultValueTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CollectionDefaultValueTest.java index 89d7caa9bf46e..e4fe138d6cf0d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CollectionDefaultValueTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CollectionDefaultValueTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.CollectionDefaultValueResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java index 5a543020896ba..2a2d4fda7fc59 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/CovariantReturnSubresourceLocatorsTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.CovariantReturnSubresourceLocatorsRootProxy; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/DefaultMediaTypeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/DefaultMediaTypeTest.java index f930b447f4c70..6373ed7ba9015 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/DefaultMediaTypeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/DefaultMediaTypeTest.java @@ -3,12 +3,12 @@ import java.io.ByteArrayOutputStream; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericEntityTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericEntityTest.java index 6af2b64a8a902..f57cd11223572 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericEntityTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericEntityTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.GenericEntityDoubleWriter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericResourceTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericResourceTest.java index 269fa72d3a05e..adc30b7e50e88 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericResourceTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/GenericResourceTest.java @@ -2,8 +2,8 @@ import java.util.function.Supplier; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.GenericResourceCrudResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/HttpHeadersTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/HttpHeadersTest.java index 3e415b6ae6267..03ef0a6103478 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/HttpHeadersTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/HttpHeadersTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.HttpHeadersResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/InheritanceTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/InheritanceTest.java index 90c0e09bb9573..a3854fd50c485 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/InheritanceTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/InheritanceTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.InheritenceParentResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MatchedResourceTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MatchedResourceTest.java index 827be5f0a9c1c..5292c8ceb37b0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MatchedResourceTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MatchedResourceTest.java @@ -2,11 +2,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.MatchedResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java index b900614da4a48..5ceb25edc40fe 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeFromMessageBodyWriterTestMultiple.java @@ -4,10 +4,10 @@ import java.util.Collection; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.MediaTypeFromMessageBodyWriterListAsText; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationClientQualityTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationClientQualityTest.java index 2b1e344a39120..f4d8a680d5a46 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationClientQualityTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationClientQualityTest.java @@ -6,19 +6,19 @@ import java.lang.reflect.Type; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.simple.PortProviderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationServerQualityTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationServerQualityTest.java index 43b81a7f448e8..9a2f47221f2e1 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationServerQualityTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MediaTypeNegotiationServerQualityTest.java @@ -6,21 +6,21 @@ import java.lang.reflect.Type; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Invocation; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.simple.PortProviderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultiInterfaceResLocatorTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultiInterfaceResLocatorTest.java index f144f5188f657..4b970fb638eb3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultiInterfaceResLocatorTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultiInterfaceResLocatorTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.MultiInterfaceResLocatorIntf1; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultipleAcceptHeaderTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultipleAcceptHeaderTest.java index 2358d3fbb6c14..1d6fa1471847d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultipleAcceptHeaderTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/MultipleAcceptHeaderTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.client.ClientBuilder; import org.jboss.resteasy.reactive.client.impl.ClientImpl; import org.jboss.resteasy.reactive.client.impl.WebTargetImpl; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ParameterSubResTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ParameterSubResTest.java index 8bab7888cb7db..5f533daa56e6f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ParameterSubResTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ParameterSubResTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.ApplicationScopeObject; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ReponseInfoTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ReponseInfoTest.java index fc7123fba6ba3..be56524a378c0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ReponseInfoTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ReponseInfoTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.ResponseInfoResource; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/RequestFilterQueryParamsTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/RequestFilterQueryParamsTest.java index 130f8c79598bf..1c286fcd5422f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/RequestFilterQueryParamsTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/RequestFilterQueryParamsTest.java @@ -5,17 +5,17 @@ import java.io.IOException; import java.net.URI; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ResourceLocatorTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ResourceLocatorTest.java index 68f61411c14f2..f9d6e9bb7fa5f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ResourceLocatorTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/ResourceLocatorTest.java @@ -5,13 +5,13 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.Invocation.Builder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.Invocation.Builder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.ResourceLocatorAbstractAnnotationFreeResouce; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SpecialResourceTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SpecialResourceTest.java index f7e63ffb618b0..1c54c06781abe 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SpecialResourceTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SpecialResourceTest.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.Entity; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceLocatorTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceLocatorTest.java index df7be4a8892b8..7576a85277bdc 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceLocatorTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceLocatorTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.SubResourceLocatorBaseCrudService; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceRequestFilterTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceRequestFilterTest.java index 47b751960803c..635b1d3b6d859 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceRequestFilterTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/SubResourceRequestFilterTest.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestPath; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/UriInfoTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/UriInfoTest.java index 5fd078f5a8140..01a2e60f3264a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/UriInfoTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/UriInfoTest.java @@ -2,11 +2,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.hamcrest.Matchers; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/WiderMappingNegativeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/WiderMappingNegativeTest.java index ae5d749fc4926..bdcb758c0b833 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/WiderMappingNegativeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/WiderMappingNegativeTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource.WiderMappingDefaultOptions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ApplicationScopeObject.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ApplicationScopeObject.java index fc2a685a2ffb2..cee13ffce8b59 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ApplicationScopeObject.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ApplicationScopeObject.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ApplicationScopeObject { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ClassLevelMediaTypeResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ClassLevelMediaTypeResource.java index 7267d7946cf62..fdce12438f45f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ClassLevelMediaTypeResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ClassLevelMediaTypeResource.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -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("/test") @Produces(MediaType.APPLICATION_JSON) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CollectionDefaultValueResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CollectionDefaultValueResource.java index b9c14ee7090bf..2fd79cbe0674f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CollectionDefaultValueResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CollectionDefaultValueResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java index 520751225c131..9c21cd8aa317d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsRootProxy.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; public interface CovariantReturnSubresourceLocatorsRootProxy { @Path("sub/{path}") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java index 0c3f64a8901b4..eb6a9e2d1ea9b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxy.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface CovariantReturnSubresourceLocatorsSubProxy { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java index 3fc2d2cdb5bf2..eb145a5a6273a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/CovariantReturnSubresourceLocatorsSubProxyRootImpl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/path") public class CovariantReturnSubresourceLocatorsSubProxyRootImpl implements CovariantReturnSubresourceLocatorsRootProxy { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultCharsetResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultCharsetResource.java index 30244c098deb9..382cf6f77edef 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultCharsetResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultCharsetResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class DefaultCharsetResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultMediaTypeResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultMediaTypeResource.java index ba8f67206e065..f66860017c441 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultMediaTypeResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/DefaultMediaTypeResource.java @@ -2,14 +2,14 @@ import java.util.Date; -import javax.ws.rs.Consumes; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ExtensionResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ExtensionResource.java index 6039a0b417d94..40f981db45386 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ExtensionResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ExtensionResource.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.Locale; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -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.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityDoubleWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityDoubleWriter.java index b9358b474e4f9..d4f5e55e9f2ff 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityDoubleWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityDoubleWriter.java @@ -7,12 +7,12 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityFloatWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityFloatWriter.java index 70fc9b7f6d76f..7fa56e9cbd321 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityFloatWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityFloatWriter.java @@ -7,12 +7,12 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java index 21d7182c3f628..48e93d2a045e9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityIntegerServerMessageBodyWriter.java @@ -7,11 +7,11 @@ import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityResource.java index 98928024c5f40..cc24e67946064 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericEntityResource.java @@ -3,10 +3,10 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.GenericEntity; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.GenericEntity; +import jakarta.ws.rs.core.Response; @Path("/") public class GenericEntityResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceCrudResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceCrudResource.java index 1bb1610db34bb..1381d2e155f41 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceCrudResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceCrudResource.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; /** * This is a sample of a CRUD resource template which can be reused for different entities. diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentCrudResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentCrudResource.java index ddae9aceae291..234f0c06d2b7d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentCrudResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentCrudResource.java @@ -3,9 +3,9 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.Consumes; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; /** * RESTEasy should be able to use type parameter values (Student, Integer) for (de)marshalling parameters/entity body. diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentInterface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentInterface.java index 5626656da2cb2..9e7827b80df1d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentInterface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentInterface.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; /** * This interface is used on the client side only. diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentReader.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentReader.java index 0b6c6773903f8..b43f9154e9897 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentReader.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentReader.java @@ -7,12 +7,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; @Provider @Consumes("application/student") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentWriter.java index 4d365c5a7aa5c..b6226e7212b7e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GenericResourceStudentWriter.java @@ -6,12 +6,12 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces("application/student") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GetAbsolutePathResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GetAbsolutePathResource.java index f0e095c957b72..20711ae1ac4b5 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GetAbsolutePathResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/GetAbsolutePathResource.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; @Path("absolutePath") public class GetAbsolutePathResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/HttpHeadersResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/HttpHeadersResource.java index 180dc846a5144..5e4654e447215 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/HttpHeadersResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/HttpHeadersResource.java @@ -8,14 +8,14 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResource.java index 2efd28088a91c..86ffbf77d366c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface InheritenceParentResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResourceImpl.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResourceImpl.java index 1855d9ff1cb9d..6dac4909ecb83 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResourceImpl.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/InheritenceParentResourceImpl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path(value = "/InheritanceTest") public class InheritenceParentResourceImpl implements InheritenceParentResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MatchedResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MatchedResource.java index 5b6b3f317d493..860748b0fcc59 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MatchedResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MatchedResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class MatchedResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java index c24c12342c9a3..65a984692cd8d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsText.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.Collection; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.TEXT_PLAIN + "; charset=UTF-8") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java index 1bdb2e90346dd..be34246a65eca 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterListAsXML.java @@ -6,11 +6,11 @@ import java.lang.reflect.Type; import java.util.Collection; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.APPLICATION_XML + "; charset=UTF-8") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java index 641f53dfc5216..cf6c4b7e88a32 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MediaTypeFromMessageBodyWriterResource.java @@ -3,15 +3,15 @@ import java.util.Arrays; import java.util.List; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; @Path("/") public class MediaTypeFromMessageBodyWriterResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java index c9cca58e923d8..f33730c6e4c54 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf1.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public interface MultiInterfaceResLocatorIntf1 { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java index 266cf73c601df..865049193869a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorIntf2.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public interface MultiInterfaceResLocatorIntf2 { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorResource.java index c5761c50333d6..6772d23e48a25 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultiInterfaceResLocatorResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/") public class MultiInterfaceResLocatorResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultipleGetResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultipleGetResource.java index 379d0e99c2c47..8d032140ae69e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultipleGetResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/MultipleGetResource.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api") @Produces(MediaType.APPLICATION_JSON) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResClassSub.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResClassSub.java index 3ff891ae86fc2..e89319cefb098 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResClassSub.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResClassSub.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericInterface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericInterface.java index 33801508ac5a2..eed31404da8f6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericInterface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericInterface.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.QueryParam; public interface ParameterSubResGenericInterface { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericSub.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericSub.java index 5684b4c99166d..b10e593347fd7 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericSub.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResGenericSub.java @@ -5,7 +5,7 @@ import java.lang.reflect.Proxy; import java.util.List; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("generic") public class ParameterSubResGenericSub { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResInternalInterface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResInternalInterface.java index 8e20ea6e123c8..b85b7ce93119b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResInternalInterface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResInternalInterface.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.PUT; +import jakarta.ws.rs.PUT; public interface ParameterSubResInternalInterface { @PUT diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRoot.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRoot.java index c79cf57d1443c..24cfa2f28f787 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRoot.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRoot.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; public interface ParameterSubResRoot { @Path("sub/{path}") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRootImpl.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRootImpl.java index 7be6ce201c0f2..5d71bf2a46420 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRootImpl.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResRootImpl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/path") public class ParameterSubResRootImpl implements ParameterSubResRoot { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResSub.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResSub.java index 07b6eb79bcbfc..0f6ce45d414af 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResSub.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ParameterSubResSub.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; public interface ParameterSubResSub { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/RequestScopedObject.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/RequestScopedObject.java index 415a044b1cece..f68be89cfad43 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/RequestScopedObject.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/RequestScopedObject.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class RequestScopedObject { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceInfoInjectionFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceInfoInjectionFilter.java index c45e5aa2385ea..ee5691a6eab02 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceInfoInjectionFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceInfoInjectionFilter.java @@ -3,13 +3,13 @@ import java.io.IOException; import java.lang.reflect.Method; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.Provider; @Provider public class ResourceInfoInjectionFilter implements ContainerResponseFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorBaseResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorBaseResource.java index 17aa256b6b129..a50c6335a8231 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorBaseResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorBaseResource.java @@ -5,10 +5,10 @@ import java.lang.reflect.Proxy; import java.util.List; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorCollectionResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorCollectionResource.java index 5bafeb2f54675..72691ea43766f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorCollectionResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorCollectionResource.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("/collection") public class ResourceLocatorCollectionResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorDirectory.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorDirectory.java index a4f28c1cc9c90..ab57fd494a1e7 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorDirectory.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorDirectory.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/directory") public class ResourceLocatorDirectory { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorReceiver.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorReceiver.java index ae818ba0fcb57..087127fedc6f1 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorReceiver.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorReceiver.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; public class ResourceLocatorReceiver { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorRootInterface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorRootInterface.java index da0a1b73a01e4..6b34e0e0f86c4 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorRootInterface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorRootInterface.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Produces(MediaType.TEXT_PLAIN) public interface ResourceLocatorRootInterface { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubInterface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubInterface.java index 5f81b4432cbc2..580b845ad457d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubInterface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubInterface.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Produces(MediaType.TEXT_PLAIN) public interface ResourceLocatorSubInterface extends ResourceLocatorRootInterface { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource.java index b793f9dc6ea3f..dbf4b13b1c049 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.RestPath; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource2.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource2.java index 83206d4f57f83..b5c989ffb4223 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource2.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource2.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java index 1417ed22e3476..8cbb9981470bc 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResourceLocatorSubresource3Interface.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; public interface ResourceLocatorSubresource3Interface { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResponseInfoResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResponseInfoResource.java index b966fc7e5df27..1af968a207567 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResponseInfoResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ResponseInfoResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.vertx.test.simple.PortProviderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanProxy.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanProxy.java index 78fdf1b1b1a58..ac6f8f11990d6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanProxy.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanProxy.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/test") public interface ScanProxy { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanSubresource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanSubresource.java index 011f6f918d21f..e8aa6ca7f1fe3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanSubresource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/ScanSubresource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; public class ScanSubresource { @Path("doit") diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceApiResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceApiResource.java index 1d172f1ef20db..fb332d09edc16 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceApiResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceApiResource.java @@ -1,11 +1,11 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.logging.Logger; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceDeleteResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceDeleteResource.java index 2daf91d9b3b1a..33ad0fe1cb306 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceDeleteResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceDeleteResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.Path; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceStreamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceStreamResource.java index fdcd16ee35eb4..dea16bae4e321 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceStreamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SpecialResourceStreamResource.java @@ -3,9 +3,9 @@ import java.io.IOException; import java.io.InputStream; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/inputstream") public class SpecialResourceStreamResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java index 3875fd3e41edf..c15ff60a8f053 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseCrudService.java @@ -2,15 +2,15 @@ import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public interface SubResourceLocatorBaseCrudService { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseService.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseService.java index 3d5975e0b44b8..d874b83f2eb87 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseService.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorBaseService.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; public interface SubResourceLocatorBaseService extends SubResourceLocatorBaseCrudService { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorFoo.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorFoo.java index d492575bf224a..c57a3d5ecf544 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorFoo.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorFoo.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; public interface SubResourceLocatorFoo { @GET diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorImpFoo.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorImpFoo.java index ac2472f0d255a..d23d911523d79 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorImpFoo.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorImpFoo.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path("blah") public class SubResourceLocatorImpFoo implements SubResourceLocatorFoo { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java index aa85808cc854b..5418512b3da9e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceImpl.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; public class SubResourceLocatorPlatformServiceImpl implements SubResourceLocatorPlatformServiceResource { @Override diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java index 66b54f5ea66e0..6807485c25ae5 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorPlatformServiceResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/platform") public interface SubResourceLocatorPlatformServiceResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorUserResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorUserResource.java index a990b3c9b8045..a46ed1f269104 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorUserResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/SubResourceLocatorUserResource.java @@ -2,16 +2,16 @@ import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; @Path("/users") public interface SubResourceLocatorUserResource extends SubResourceLocatorBaseService { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedQueryResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedQueryResource.java index 1f01af4f575f4..95c484adeaf77 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedQueryResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedQueryResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedTemplateResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedTemplateResource.java index 58a7f6367e341..8e127e7d417ec 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedTemplateResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEncodedTemplateResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.PathSegment; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.PathSegment; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java index f091f0e2920f1..ca5dcceeab93d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoEscapedMatrParamResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.GET; -import javax.ws.rs.MatrixParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.MatrixParam; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoQueryParamsResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoQueryParamsResource.java index 660299d8c1eca..58c5df88dc9b5 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoQueryParamsResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoQueryParamsResource.java @@ -4,12 +4,12 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoRelativizeResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoRelativizeResource.java index a69feaa3d3e92..29ac78a230a35 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoRelativizeResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoRelativizeResource.java @@ -2,12 +2,12 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; @Path("/") public class UriInfoRelativizeResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoResolveResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoResolveResource.java index b2d9db1fdb3b8..06981e052dd40 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoResolveResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoResolveResource.java @@ -2,12 +2,12 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; @Path("/") public class UriInfoResolveResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleResource.java index 6465d1784a349..414bc684ef04d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.vertx.test.simple.PortProviderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleSingletonResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleSingletonResource.java index c556a3859fa10..b357deff8b907 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleSingletonResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/UriInfoSimpleSingletonResource.java @@ -2,11 +2,11 @@ import java.net.URI; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.vertx.test.simple.PortProviderUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingDefaultOptions.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingDefaultOptions.java index 24ff01f5f0976..b8923eff33930 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingDefaultOptions.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingDefaultOptions.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.Path; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.Path; @Path("{x:.*}") public class WiderMappingDefaultOptions { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingResource.java index f686a3de0209b..61f4672009770 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resource/basic/resource/WiderMappingResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resource.basic.resource; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/hello") public class WiderMappingResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ContentLengthTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ContentLengthTest.java index 2dd2b688a1896..d3422b07d712c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ContentLengthTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ContentLengthTest.java @@ -9,12 +9,12 @@ import java.util.Collections; import java.util.UUID; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/CustomHeadersAndWriterInterceptorTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/CustomHeadersAndWriterInterceptorTest.java index 902ca5da4688c..04a8b03e7aa9d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/CustomHeadersAndWriterInterceptorTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/CustomHeadersAndWriterInterceptorTest.java @@ -7,15 +7,15 @@ import java.io.IOException; import java.util.Date; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.WriterInterceptor; -import javax.ws.rs.ext.WriterInterceptorContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.WriterInterceptor; +import jakarta.ws.rs.ext.WriterInterceptorContext; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ExceptionInWriterTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ExceptionInWriterTest.java index d69d5180503c8..e56953e7ca045 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ExceptionInWriterTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ExceptionInWriterTest.java @@ -9,15 +9,15 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/NullHeaderTestCase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/NullHeaderTestCase.java index 7f12bf0d0d74d..14a70637f380b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/NullHeaderTestCase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/NullHeaderTestCase.java @@ -4,13 +4,13 @@ import java.io.IOException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ResponseTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ResponseTest.java index 93a4dcc19168d..40af3653860a6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ResponseTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/ResponseTest.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.response; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/RestResponseResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/RestResponseResource.java index 7a8c7079fe229..de79c0a6f427a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/RestResponseResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/response/RestResponseResource.java @@ -7,13 +7,13 @@ import java.util.Locale; import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.CacheControl; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Variant; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.CacheControl; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Variant; import org.jboss.resteasy.reactive.RestResponse; import org.jboss.resteasy.reactive.server.ServerExceptionMapper; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncFilterExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncFilterExceptionMapper.java index 0531ed3404de8..02cceb13a2343 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncFilterExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncFilterExceptionMapper.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class AsyncFilterExceptionMapper implements ExceptionMapper { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java index 5c09df2ce7eaa..d1d07a2c57c64 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter1.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(1) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java index 74064a3dbf1cf..53221b9ddb52c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter2.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(2) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java index 8bcc84c023f2b..884ebaadaa328 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncPreMatchRequestFilter3.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @PreMatching @Priority(3) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter.java index be081580ae35e..dd36c34f8d110 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter.java @@ -4,7 +4,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter1.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter1.java index 511ba873b0a9b..94937acc29499 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter1.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter1.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(1) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter2.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter2.java index e138e246b0aeb..1371657aa5015 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter2.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter2.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(2) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter3.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter3.java index 9083998cb1c59..58814fa126806 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter3.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilter3.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(3) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterResource.java index a19d730967ebb..d11ac82473f52 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterResource.java @@ -5,12 +5,12 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterTest.java index 96b53b1dcb39b..54e2679da9477 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncRequestFilterTest.java @@ -4,11 +4,11 @@ import java.util.function.Supplier; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.vertx.test.ExceptionUtil; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResource.java index def6ed60875af..3503107d3bb55 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResource.java @@ -4,13 +4,13 @@ import java.io.StringWriter; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.AsyncResponse; -import javax.ws.rs.container.Suspended; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter.java index 2bf66257f3d78..bf1d3fc101820 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter.java @@ -6,7 +6,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseContext; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveContainerRequestContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter1.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter1.java index b8f055e7c5280..7cf06e37098f0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter1.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter1.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(1) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter2.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter2.java index 068d933a400e9..9e9c8c3eb45ff 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter2.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter2.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(2) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter3.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter3.java index 75b475c524f55..66899eadf3f5e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter3.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/resteasy/async/filters/AsyncResponseFilter3.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.resteasy.async.filters; -import javax.annotation.Priority; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.ext.Provider; @Priority(3) @Provider diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationPathTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationPathTest.java index c72a8f849ae52..90dfd911a1cdb 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationPathTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationPathTest.java @@ -2,10 +2,10 @@ import java.util.function.Supplier; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationTest.java index fea2bd8580f0e..30f6b401fe370 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationTest.java @@ -9,19 +9,19 @@ import java.util.HashSet; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Application; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Application; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationWithBlockingTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationWithBlockingTest.java index b97ea03e1cd4d..cb90792e1b81a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationWithBlockingTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ApplicationWithBlockingTest.java @@ -2,9 +2,9 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Application; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Bar.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Bar.java index 0af26aa80a7f0..72d423df70047 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Bar.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Bar.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamEmptySubclassTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamEmptySubclassTest.java index 0b3eb2d21771c..6c0b993382863 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamEmptySubclassTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamEmptySubclassTest.java @@ -1,12 +1,12 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.BeanParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSubClass.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSubClass.java index e8c5d2107b79f..f6c4190a1fb63 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSubClass.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSubClass.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSuperClass.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSuperClass.java index fc087fbe35586..f05c72dea64b2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSuperClass.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamSuperClass.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamWithLocalDateTimeTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamWithLocalDateTimeTest.java index b321c2e34d0f6..74acf7d331e41 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamWithLocalDateTimeTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BeanParamWithLocalDateTimeTest.java @@ -3,10 +3,10 @@ import java.time.LocalDateTime; import java.util.function.Supplier; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BlockingWithFilterTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BlockingWithFilterTest.java index e969be0164cbe..5c77a829e26e8 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BlockingWithFilterTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/BlockingWithFilterTest.java @@ -6,11 +6,11 @@ import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; import org.jboss.resteasy.reactive.server.ServerRequestFilter; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/DynamicFeatureRequestFilterWithLowPriority.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/DynamicFeatureRequestFilterWithLowPriority.java index 345c04ef9027d..a11abd21bb520 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/DynamicFeatureRequestFilterWithLowPriority.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/DynamicFeatureRequestFilterWithLowPriority.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; @Priority(Priorities.USER + 1000) public class DynamicFeatureRequestFilterWithLowPriority implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureMappedExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureMappedExceptionMapper.java index 0e61faeea1e5e..80d36db83d4f9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureMappedExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureMappedExceptionMapper.java @@ -2,8 +2,8 @@ import java.io.Serializable; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; public class FeatureMappedExceptionMapper implements Cloneable, ExceptionMapper, Serializable { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithHighestPriority.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithHighestPriority.java index 0f1472dc7a1ff..192783581fadb 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithHighestPriority.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithHighestPriority.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; @Priority(Priorities.AUTHENTICATION) public class FeatureRequestFilterWithHighestPriority implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithNormalPriority.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithNormalPriority.java index 0853242d792a0..d0c51bbc071a8 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithNormalPriority.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureRequestFilterWithNormalPriority.java @@ -2,8 +2,8 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; public class FeatureRequestFilterWithNormalPriority implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureResponseFilter.java index 55eb704288fab..f9b29457d0185 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FeatureResponseFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; public class FeatureResponseFilter implements ContainerResponseFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedResource.java index e29f66774c765..12957d8d6a4af 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedResource.java @@ -1,12 +1,12 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedSubClassResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedSubClassResource.java index e0c9a2200d50c..803a2059e5e7d 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedSubClassResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/FieldInjectedSubClassResource.java @@ -1,13 +1,13 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.validation.constraints.NotNull; -import javax.ws.rs.BeanParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Foo.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Foo.java index f785a82655ee4..63b9d150d68a0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Foo.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Foo.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @NameBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HeaderParamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HeaderParamResource.java index 0545e4a35fd88..999f7f8b944bf 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HeaderParamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HeaderParamResource.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; @Path("/ctor-header") public class HeaderParamResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HelloService.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HelloService.java index 2d23570a5db03..93772258c288c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HelloService.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/HelloService.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.enterprise.context.RequestScoped; -import javax.ws.rs.core.Context; +import jakarta.enterprise.context.RequestScoped; +import jakarta.ws.rs.core.Context; import io.vertx.ext.web.RoutingContext; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/IllegalClassExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/IllegalClassExceptionMapper.java index c3dfbeb19f5aa..0e18a295eb4c6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/IllegalClassExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/IllegalClassExceptionMapper.java @@ -6,9 +6,9 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InstantParamTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InstantParamTest.java index f242b1186b784..220a56196ddd8 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InstantParamTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InstantParamTest.java @@ -3,8 +3,8 @@ import java.time.Duration; import java.time.Instant; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestQuery; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResource.java index b2f0a2afcdffc..35578d428a9aa 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResource.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -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("iface") public interface InterfaceResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResourceImpl.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResourceImpl.java index 738b98bf42212..da202de7ea19f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResourceImpl.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceResourceImpl.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.inject.Inject; +import jakarta.inject.Inject; public class InterfaceResourceImpl implements InterfaceResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceWithImplTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceWithImplTest.java index 34e8179df65f8..23320b20da352 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceWithImplTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/InterfaceWithImplTest.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -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; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.core.BlockingOperationSupport; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateCustomParamConverterProviderTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateCustomParamConverterProviderTest.java index 4a4afc2abba5d..742a213648bd0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateCustomParamConverterProviderTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateCustomParamConverterProviderTest.java @@ -5,13 +5,13 @@ import java.time.LocalDate; import java.time.format.DateTimeFormatter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateParamTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateParamTest.java index 6305daacea016..f3b59f8d673b8 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateParamTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateParamTest.java @@ -3,12 +3,12 @@ import java.time.LocalDate; import java.time.format.DateTimeFormatter; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.DateFormat; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateTimeParamTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateTimeParamTest.java index 3e79191243710..d69a18a11d5ba 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateTimeParamTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/LocalDateTimeParamTest.java @@ -4,10 +4,10 @@ import java.time.format.DateTimeFormatter; import java.util.Optional; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.DateFormat; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MultipleAcceptHeadersTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MultipleAcceptHeadersTest.java index 15830b6156107..390f46896edf2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MultipleAcceptHeadersTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MultipleAcceptHeadersTest.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.concurrent.TimeUnit; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterConverter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterConverter.java index ca395b50dbfac..39cc7443886c3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterConverter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterConverter.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; public class MyParameterConverter implements ParamConverter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterProvider.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterProvider.java index 355c66c89e04e..65c0433d857b3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterProvider.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/MyParameterProvider.java @@ -3,9 +3,9 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.Provider; @Provider public class MyParameterProvider implements ParamConverterProvider { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NameBindingWithInterfaceTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NameBindingWithInterfaceTest.java index 10661e08b36d2..4688d263ac87b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NameBindingWithInterfaceTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NameBindingWithInterfaceTest.java @@ -6,15 +6,15 @@ import java.io.IOException; import java.lang.annotation.Retention; -import javax.ws.rs.GET; -import javax.ws.rs.NameBinding; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NameBinding; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.Provider; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NewParamsRestResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NewParamsRestResource.java index 1756c42ad5e38..c4dda4a2c42d8 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NewParamsRestResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/NewParamsRestResource.java @@ -2,21 +2,21 @@ import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.container.ResourceContext; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Configuration; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.Providers; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.container.ResourceContext; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Configuration; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.Providers; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.reactive.RestCookie; import org.jboss.resteasy.reactive.RestForm; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherBeanParam.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherBeanParam.java index d30f1f3c04b88..0395552a037b9 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherBeanParam.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherBeanParam.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherJavaTimeParamTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherJavaTimeParamTest.java index c688200094073..a40df8c44d7dd 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherJavaTimeParamTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/OtherJavaTimeParamTest.java @@ -5,9 +5,9 @@ import java.time.OffsetTime; import java.time.ZonedDateTime; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Person.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Person.java index 21a167d2a6df0..30012ce66af12 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Person.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/Person.java @@ -1,6 +1,6 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotBlank; public class Person { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/QueryParamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/QueryParamResource.java index b92e76bfa1885..ef7a73be101d6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/QueryParamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/QueryParamResource.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; @Path("/ctor-query") public class QueryParamResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RawListQueryParamTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RawListQueryParamTest.java index b73d2ba238a53..081a51df804c7 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RawListQueryParamTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RawListQueryParamTest.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.RestQuery; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ResourceInfoInjectingFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ResourceInfoInjectingFilter.java index 7a3481e75e4ca..482cf5b09a60b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ResourceInfoInjectingFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/ResourceInfoInjectingFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; @Provider public class ResourceInfoInjectingFilter implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootAResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootAResource.java index fccba53949602..2bd0cd64c22bd 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootAResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootAResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/") public class RootAResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootBResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootBResource.java index 7017b1d2ebd51..aefa3a5a199c6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootBResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/RootBResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/") public class RootBResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleBeanParam.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleBeanParam.java index d8d72459a1d16..e12d4c7499a23 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleBeanParam.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleBeanParam.java @@ -3,10 +3,10 @@ import java.util.List; import java.util.Optional; -import javax.ws.rs.BeanParam; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.QueryParam; import org.junit.jupiter.api.Assertions; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleQuarkusRestResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleQuarkusRestResource.java index 5570f23f853ee..4af56218cbf7c 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleQuarkusRestResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SimpleQuarkusRestResource.java @@ -6,32 +6,32 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.json.JsonArray; -import javax.json.JsonObject; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HEAD; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.PATCH; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.core.Request; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.Providers; +import jakarta.inject.Inject; +import jakarta.json.JsonArray; +import jakarta.json.JsonObject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HEAD; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.PATCH; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.Request; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.Providers; import org.jboss.resteasy.reactive.RestHeader; import org.jboss.resteasy.reactive.server.SimpleResourceInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SubResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SubResource.java index 0ed36f8f934b4..4d42e113d11d2 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SubResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/SubResource.java @@ -1,7 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; public class SubResource { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TRACE.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TRACE.java index 72a5cc97b5f8a..a90186b912684 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TRACE.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TRACE.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.ws.rs.HttpMethod; +import jakarta.ws.rs.HttpMethod; @HttpMethod("TRACE") @Target(value = ElementType.METHOD) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarRequestFilter.java index 7a7ac0404cb63..b2ca393b08db0 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarRequestFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Bar diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarResponseFilter.java index b01c6c899748c..c4bd4d874ab28 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestBarResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Bar diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestDynamicFeature.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestDynamicFeature.java index 5f147f349db68..dfa6c21c2a184 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestDynamicFeature.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestDynamicFeature.java @@ -1,10 +1,10 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; @Provider public class TestDynamicFeature implements DynamicFeature { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestExceptionMapper.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestExceptionMapper.java index 5cf7150e0c9ad..39065d09799b4 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestExceptionMapper.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestExceptionMapper.java @@ -1,8 +1,8 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; @Provider public class TestExceptionMapper implements ExceptionMapper { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFeature.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFeature.java index efb8a5d95f6ca..ad58d8252472a 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFeature.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFeature.java @@ -1,9 +1,9 @@ package org.jboss.resteasy.reactive.server.vertx.test.simple; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Feature; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Feature; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; @Provider public class TestFeature implements Feature { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarRequestFilter.java index de56a4975e195..50416c2365581 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarRequestFilter.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarResponseFilter.java index a5791a67f9f72..53239a3e71dba 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooBarResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooRequestFilter.java index 572df6cec0011..93a883b9fc1d3 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooRequestFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import io.vertx.core.http.HttpServerRequest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooResponseFilter.java index 64a9a724ab824..d26bf29fe329e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestFooResponseFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Foo diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestPreMatchRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestPreMatchRequestFilter.java index eef9f625b140f..d964247ce1e55 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestPreMatchRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestPreMatchRequestFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.ext.Provider; @Provider @PreMatching diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilter.java index ed1bb1ca467de..ccb74229b83d6 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilter.java @@ -2,9 +2,9 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider public class TestRequestFilter implements ContainerRequestFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighPriority.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighPriority.java index de12212bb6902..1af358d136ddc 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighPriority.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighPriority.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Priority(Priorities.AUTHORIZATION) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighestPriority.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighestPriority.java index b7b5ba0aa0378..34562be09d153 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighestPriority.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestRequestFilterWithHighestPriority.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Priority(Priorities.AUTHENTICATION) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestResponseFilter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestResponseFilter.java index 32ff944a251a8..7d88b62c3948e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestResponseFilter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestResponseFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; +import jakarta.ws.rs.ext.Provider; @Provider public class TestResponseFilter implements ContainerResponseFilter { diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestUtil.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestUtil.java index 1d869c71a6e08..b04a67e75ca84 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestUtil.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestUtil.java @@ -11,7 +11,7 @@ import java.util.Map; import java.util.Set; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.core.Application; import org.jboss.logging.Logger; import org.jboss.shrinkwrap.api.Archive; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestWriter.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestWriter.java index 18f8a2194846f..bedb354add483 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestWriter.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/simple/TestWriter.java @@ -6,12 +6,12 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces(MediaType.TEXT_PLAIN) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/status/ResponseStatusTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/status/ResponseStatusTest.java index 8a06ff17841bf..cc1460f2d2874 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/status/ResponseStatusTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/status/ResponseStatusTest.java @@ -3,8 +3,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.reactive.ResponseStatus; import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java index ce95c5eccc8c6..17d71f5f4bc5f 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java @@ -5,10 +5,10 @@ import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; -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; import org.jboss.resteasy.reactive.common.util.MultiCollectors; import org.reactivestreams.Publisher; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java index 70a59d21cde79..10ff84498cda4 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java @@ -9,10 +9,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import org.hamcrest.Matchers; import org.jboss.resteasy.reactive.client.impl.MultiInvoker; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stress/SuspendResumeStressTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stress/SuspendResumeStressTest.java index 4d83f9a4e9015..56953ea56191e 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stress/SuspendResumeStressTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stress/SuspendResumeStressTest.java @@ -8,8 +8,8 @@ import java.util.concurrent.Executors; import java.util.function.Consumer; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.jandex.ClassInfo; diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/transformation/AnnotationTransformationTest.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/transformation/AnnotationTransformationTest.java index 135afcafb34e8..f1c215f1e59cd 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/transformation/AnnotationTransformationTest.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/transformation/AnnotationTransformationTest.java @@ -12,8 +12,8 @@ import java.util.Collections; import java.util.function.Consumer; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.Path; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.Path; import org.hamcrest.Matchers; import org.jboss.jandex.AnnotationInstance; diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/integration-tests/java/integration-tests/src/main/java/{package-name.dir}/it/{class-name-base}Resource.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/integration-tests/java/integration-tests/src/main/java/{package-name.dir}/it/{class-name-base}Resource.tpl.qute.java index 82751b9072276..99eb1068ffda3 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/integration-tests/java/integration-tests/src/main/java/{package-name.dir}/it/{class-name-base}Resource.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/integration-tests/java/integration-tests/src/main/java/{package-name.dir}/it/{class-name-base}Resource.tpl.qute.java @@ -16,9 +16,9 @@ */ package {package-name}.it; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/{extension.id}") @ApplicationScoped diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-jbang/code/jbang-resteasy-code/java/src/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-jbang/code/jbang-resteasy-code/java/src/{resource.class-name}.tpl.qute.java index 1ccb2b7eff1fa..615b3616e2bd8 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-jbang/code/jbang-resteasy-code/java/src/{resource.class-name}.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-jbang/code/jbang-resteasy-code/java/src/{resource.class-name}.tpl.qute.java @@ -7,9 +7,9 @@ {/for} import io.quarkus.runtime.Quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("{resource.path}") @ApplicationScoped @@ -23,4 +23,4 @@ public String sayHello() { public static void main(String[] args) { Quarkus.run(args); } -} \ No newline at end of file +} diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle-kotlin-dsl/kotlin/build.tpl.qute.gradle.kts b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle-kotlin-dsl/kotlin/build.tpl.qute.gradle.kts index 044ac95a86bd6..a5b4296979942 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle-kotlin-dsl/kotlin/build.tpl.qute.gradle.kts +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle-kotlin-dsl/kotlin/build.tpl.qute.gradle.kts @@ -9,8 +9,8 @@ plugins { {/include} allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle/kotlin/build.tpl.qute.gradle b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle/kotlin/build.tpl.qute.gradle index 6c51b5039f488..dc49170064537 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle/kotlin/build.tpl.qute.gradle +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/gradle/kotlin/build.tpl.qute.gradle @@ -9,8 +9,8 @@ plugins { {/include} allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/kotlin/pom.tpl.qute.xml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/kotlin/pom.tpl.qute.xml index 303e11409fcc7..0532b34698708 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/kotlin/pom.tpl.qute.xml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/buildtool/maven/kotlin/pom.tpl.qute.xml @@ -48,8 +48,8 @@ - - + + diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 769ac7eccf80a..720033d91c9f2 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -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("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index 6cf3f82e70791..c406ce55ca1f1 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -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("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index 9c1d477333e38..dc1b6cda15acb 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.\{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.\{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 769ac7eccf80a..720033d91c9f2 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -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("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index 6cf3f82e70791..c406ce55ca1f1 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -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("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index 9c1d477333e38..dc1b6cda15acb 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.\{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.\{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/java/src/main/java/org/acme/MyHelloExample.java b/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/java/src/main/java/org/acme/MyHelloExample.java index d62649d8e0f0a..8b1af68449c77 100644 --- a/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/java/src/main/java/org/acme/MyHelloExample.java +++ b/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/java/src/main/java/org/acme/MyHelloExample.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyHelloExample { diff --git a/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/kotlin/src/main/kotlin/org/acme/MyHelloExample.kt b/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/kotlin/src/main/kotlin/org/acme/MyHelloExample.kt index c6ee2362989d2..4ac07ff305bb0 100644 --- a/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/kotlin/src/main/kotlin/org/acme/MyHelloExample.kt +++ b/independent-projects/tools/codestarts/examples/quarkus/my-extension-codestart/kotlin/src/main/kotlin/org/acme/MyHelloExample.kt @@ -1,6 +1,6 @@ package org.acme -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class MyHelloExample { diff --git a/independent-projects/tools/codestarts/src/test/java/io/quarkus/devtools/codestarts/core/strategy/SmartPackageFileStrategyHandlerTest.java b/independent-projects/tools/codestarts/src/test/java/io/quarkus/devtools/codestarts/core/strategy/SmartPackageFileStrategyHandlerTest.java index 5af617e2e7a55..b39f76f5c33e7 100644 --- a/independent-projects/tools/codestarts/src/test/java/io/quarkus/devtools/codestarts/core/strategy/SmartPackageFileStrategyHandlerTest.java +++ b/independent-projects/tools/codestarts/src/test/java/io/quarkus/devtools/codestarts/core/strategy/SmartPackageFileStrategyHandlerTest.java @@ -9,24 +9,24 @@ class SmartPackageFileStrategyHandlerTest { @Test void testRefactorJava() { assertThat(SmartPackageFileStrategyHandler.refactorPackage( - "package org.acme.qute;\n\nimport org.acme.qute.Something\nimport javax.ws.rs.core.MediaType\n", + "package org.acme.qute;\n\nimport org.acme.qute.Something\nimport jakarta.ws.rs.core.MediaType\n", "my.java.app")).isEqualTo( - "package my.java.app.qute;\n\nimport my.java.app.qute.Something\nimport javax.ws.rs.core.MediaType\n"); + "package my.java.app.qute;\n\nimport my.java.app.qute.Something\nimport jakarta.ws.rs.core.MediaType\n"); } @Test void testRefactorKotlin() { assertThat(SmartPackageFileStrategyHandler.refactorPackage( - "package org.acme.qute\n\nimport org.acme.qute.Something\nimport javax.ws.rs.core.MediaType\n", + "package org.acme.qute\n\nimport org.acme.qute.Something\nimport jakarta.ws.rs.core.MediaType\n", "my.kotlin.app")).isEqualTo( - "package my.kotlin.app.qute\n\nimport my.kotlin.app.qute.Something\nimport javax.ws.rs.core.MediaType\n"); + "package my.kotlin.app.qute\n\nimport my.kotlin.app.qute.Something\nimport jakarta.ws.rs.core.MediaType\n"); } @Test void testRefactorScala() { assertThat(SmartPackageFileStrategyHandler.refactorPackage( - "package org.acme.qute\n\nimport org.acme.qute.Something\nimport org.acme.qute.\\{GET, Path, Produces}\nimport javax.ws.rs.core.MediaType\n", + "package org.acme.qute\n\nimport org.acme.qute.Something\nimport org.acme.qute.\\{GET, Path, Produces}\nimport jakarta.ws.rs.core.MediaType\n", "my.scala.app")).isEqualTo( - "package my.scala.app.qute\n\nimport my.scala.app.qute.Something\nimport my.scala.app.qute.\\{GET, Path, Produces}\nimport javax.ws.rs.core.MediaType\n"); + "package my.scala.app.qute\n\nimport my.scala.app.qute.Something\nimport my.scala.app.qute.\\{GET, Path, Produces}\nimport jakarta.ws.rs.core.MediaType\n"); } } diff --git a/independent-projects/tools/devtools-common/pom.xml b/independent-projects/tools/devtools-common/pom.xml index 974af9b668fd1..c2805f5cac5db 100644 --- a/independent-projects/tools/devtools-common/pom.xml +++ b/independent-projects/tools/devtools-common/pom.xml @@ -66,18 +66,10 @@ org.apache.maven maven-plugin-api - - javax.annotation - javax.annotation-api - javax.enterprise cdi-api - - javax.inject - javax.inject - org.codehaus.plexus plexus-classworlds @@ -88,10 +80,6 @@ org.apache.maven maven-core - - javax.inject - javax.inject - org.checkerframework checker-qual diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java index 2a175fd5de8df..6938062ec8ff7 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello from RESTEasy Reactive"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java index 055f53c6fe033..f9eea334cb1e1 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello RESTEasy"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java index b9958edbb5b23..830a8f41aaade 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java @@ -1,9 +1,9 @@ package com.andy; -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("/bonjour") public class BonjourResource { @@ -13,4 +13,4 @@ public class BonjourResource { public String hello() { return "Hello RESTEasy"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt index 8ec4180e042ff..81e6f54370526 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt @@ -1,9 +1,9 @@ package com.andy -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("/bonjour") class BonjourResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala index 57cdbdd8c7829..7adb6da83ba38 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala @@ -1,7 +1,7 @@ package com.andy -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("/bonjour") class BonjourResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusJBangCodestartGenerationTest/generateDefaultProject/src_main.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusJBangCodestartGenerationTest/generateDefaultProject/src_main.java index cc7da00033efe..c209baedcff55 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusJBangCodestartGenerationTest/generateDefaultProject/src_main.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusJBangCodestartGenerationTest/generateDefaultProject/src_main.java @@ -5,9 +5,9 @@ //DEPS io.quarkus:quarkus-resteasy import io.quarkus.runtime.Quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello-resteasy") @ApplicationScoped @@ -21,4 +21,4 @@ public String sayHello() { public static void main(String[] args) { Quarkus.run(args); } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java index ff566718859d8..a2e055db4a534 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java @@ -1,9 +1,9 @@ package ilove.quark.us; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello RESTEasy"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt index b014bba668107..7887add443d06 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt @@ -1,9 +1,9 @@ package ilove.quark.us -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("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala index 7d287aeb54226..6810956e6c2c0 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala @@ -1,7 +1,7 @@ package ilove.quark.us -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java index c65c013da3d95..382f19a13488c 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java @@ -1,9 +1,9 @@ package ilove.quark.us; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello from RESTEasy Reactive"; } -} \ No newline at end of file +} diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt index 142f19634d0b4..14985fe82c9f0 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt @@ -1,9 +1,9 @@ package ilove.quark.us -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("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala index 138be700d17be..0977b35dab1ce 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala @@ -1,7 +1,7 @@ package ilove.quark.us -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType @Path("/hello") class GreetingResource { diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 84eb09de2fe9d..3a23177e80ffb 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -30,6 +30,10 @@ HEAD + 1.0.0 + 5.0.0 + 1.3.2 + 1 UTF-8 11 11 @@ -50,7 +54,7 @@ 3.24.2 2.14.2 - 2.0.2 + 4.0.1 5.9.2 1.22 3.5.0.Final @@ -176,6 +180,16 @@ jakarta.enterprise.cdi-api ${jakarta.enterprise.cdi-api.version} + + javax.annotation + javax.annotation-api + ${javax.annotation-api.version} + + + javax.inject + javax.inject + ${javax.inject.version} + org.apache.maven maven-core diff --git a/integration-tests/amazon-lambda-http-resteasy-reactive/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java b/integration-tests/amazon-lambda-http-resteasy-reactive/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java index 932821299adc5..1fdb7abe63123 100644 --- a/integration-tests/amazon-lambda-http-resteasy-reactive/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java +++ b/integration-tests/amazon-lambda-http-resteasy-reactive/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.amazon.lambda; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/integration-tests/amazon-lambda-http-resteasy-reactive/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java b/integration-tests/amazon-lambda-http-resteasy-reactive/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java index 2e52b4688c9b4..5ba4a9862a420 100644 --- a/integration-tests/amazon-lambda-http-resteasy-reactive/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java +++ b/integration-tests/amazon-lambda-http-resteasy-reactive/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java @@ -7,7 +7,7 @@ import java.util.Arrays; import java.util.HashMap; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/CustomSecurityProvider.java b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/CustomSecurityProvider.java index 208bba8b908bd..d7242cd8b9f69 100644 --- a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/CustomSecurityProvider.java +++ b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/CustomSecurityProvider.java @@ -2,7 +2,7 @@ import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java index 52d3274a8acaa..9f5ec03c02ea5 100644 --- a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java +++ b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.amazon.lambda; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java index 73ebc7aa50f56..4555a180b4653 100644 --- a/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java +++ b/integration-tests/amazon-lambda-http-resteasy/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.amazon.lambda; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("security") public class SecurityCheckResource { diff --git a/integration-tests/amazon-lambda-http-resteasy/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java b/integration-tests/amazon-lambda-http-resteasy/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java index b69b2b6a3ac8d..e5b8b7c4eef36 100644 --- a/integration-tests/amazon-lambda-http-resteasy/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java +++ b/integration-tests/amazon-lambda-http-resteasy/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java @@ -2,7 +2,7 @@ import java.util.HashMap; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.apache.commons.codec.binary.Base64; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java index 36a740f406dac..cdbedd366a89f 100644 --- a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java +++ b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingResource.java @@ -1,14 +1,14 @@ package io.quarkus.it.amazon.lambda; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent; diff --git a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingServlet.java b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingServlet.java index bd3d1de8a2537..1cad6cfd42a89 100644 --- a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingServlet.java +++ b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java index 4bc39d2c7ba45..e08696b40a2a1 100644 --- a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java +++ b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityCheckResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.amazon.lambda; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("security") public class SecurityCheckResource { diff --git a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityServlet.java b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityServlet.java index 8926090982cbd..eece2a14dbe3d 100644 --- a/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityServlet.java +++ b/integration-tests/amazon-lambda-http/src/main/java/io/quarkus/it/amazon/lambda/SecurityServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletSecurity", urlPatterns = "/servlet/security") public class SecurityServlet extends HttpServlet { diff --git a/integration-tests/amazon-lambda-http/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java b/integration-tests/amazon-lambda-http/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java index dbba308709465..043aa3b7142a2 100644 --- a/integration-tests/amazon-lambda-http/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java +++ b/integration-tests/amazon-lambda-http/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaSimpleTestCase.java @@ -7,7 +7,7 @@ import java.util.Arrays; import java.util.HashMap; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingResource.java b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingResource.java index b973990d8f39f..f41f8a578986f 100644 --- a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingResource.java +++ b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.amazon.lambda.v1; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import io.quarkus.amazon.lambda.http.model.AwsProxyRequest; import io.quarkus.amazon.lambda.http.model.AwsProxyRequestContext; diff --git a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingServlet.java b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingServlet.java index c883fc8be27ec..3414d2f2b09ab 100644 --- a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingServlet.java +++ b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityCheckResource.java b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityCheckResource.java index 50933d9043889..66299971cf2a6 100644 --- a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityCheckResource.java +++ b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityCheckResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.amazon.lambda.v1; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("security") public class SecurityCheckResource { diff --git a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityServlet.java b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityServlet.java index 06b27d1504543..bfcba67a1e6a6 100644 --- a/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityServlet.java +++ b/integration-tests/amazon-lambda-rest/src/main/java/io/quarkus/it/amazon/lambda/v1/SecurityServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletSecurity", urlPatterns = "/servlet/security") public class SecurityServlet extends HttpServlet { diff --git a/integration-tests/amazon-lambda-rest/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaV1SimpleTestCase.java b/integration-tests/amazon-lambda-rest/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaV1SimpleTestCase.java index be421d69cc8fc..bb61c2ee49d0c 100644 --- a/integration-tests/amazon-lambda-rest/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaV1SimpleTestCase.java +++ b/integration-tests/amazon-lambda-rest/src/test/java/io/quarkus/it/amazon/lambda/AmazonLambdaV1SimpleTestCase.java @@ -7,7 +7,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.apache.commons.codec.binary.Base64; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/amazon-lambda-stream-handler/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java b/integration-tests/amazon-lambda-stream-handler/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java index 93c3536afa97e..1aa91a16be9de 100644 --- a/integration-tests/amazon-lambda-stream-handler/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java +++ b/integration-tests/amazon-lambda-stream-handler/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java @@ -4,7 +4,7 @@ import java.io.InputStream; import java.io.OutputStream; -import javax.inject.Named; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestStreamHandler; diff --git a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/Count.java b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/Count.java index 263fbcb6d1e3f..1476f9777c489 100644 --- a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/Count.java +++ b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/Count.java @@ -8,7 +8,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Documented diff --git a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/CounterInterceptor.java b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/CounterInterceptor.java index cfc33c93a2178..463637a38f71a 100644 --- a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/CounterInterceptor.java +++ b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/CounterInterceptor.java @@ -2,10 +2,10 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Priority(1) @Count diff --git a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/ProcessingService.java b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/ProcessingService.java index c4b39501fe109..6c347f8cd914a 100644 --- a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/ProcessingService.java +++ b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/ProcessingService.java @@ -1,6 +1,6 @@ package io.quarkus.it.amazon.lambda; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ProcessingService { diff --git a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java index 2462d3d54068d..c3f737c6bbc7a 100644 --- a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java +++ b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/TestLambda.java @@ -1,7 +1,7 @@ package io.quarkus.it.amazon.lambda; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; diff --git a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/UnusedLambda.java b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/UnusedLambda.java index c7e8f0933e7ad..fb241b632a1a9 100644 --- a/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/UnusedLambda.java +++ b/integration-tests/amazon-lambda/src/main/java/io/quarkus/it/amazon/lambda/UnusedLambda.java @@ -1,7 +1,7 @@ package io.quarkus.it.amazon.lambda; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; diff --git a/integration-tests/avro-reload/src/test/java/io/quarkus/avro/deployment/AvroReloadResource.java b/integration-tests/avro-reload/src/test/java/io/quarkus/avro/deployment/AvroReloadResource.java index 810c2bc7d6ae0..944475e3d8e47 100644 --- a/integration-tests/avro-reload/src/test/java/io/quarkus/avro/deployment/AvroReloadResource.java +++ b/integration-tests/avro-reload/src/test/java/io/quarkus/avro/deployment/AvroReloadResource.java @@ -4,8 +4,8 @@ import java.util.Arrays; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import test.Level; import test.PrivacyImport; diff --git a/integration-tests/awt/src/main/java/io/quarkus/awt/it/Application.java b/integration-tests/awt/src/main/java/io/quarkus/awt/it/Application.java index a244461d038ab..d1bf3c62b3da9 100644 --- a/integration-tests/awt/src/main/java/io/quarkus/awt/it/Application.java +++ b/integration-tests/awt/src/main/java/io/quarkus/awt/it/Application.java @@ -30,11 +30,12 @@ import java.util.Locale; import java.util.Objects; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; import javax.imageio.spi.IIORegistry; import javax.imageio.spi.ImageReaderSpi; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; + import org.jboss.logging.Logger; import io.quarkus.runtime.Startup; diff --git a/integration-tests/awt/src/main/java/io/quarkus/awt/it/ImageResource.java b/integration-tests/awt/src/main/java/io/quarkus/awt/it/ImageResource.java index 78b4ae491f595..f9b42202e1ea3 100644 --- a/integration-tests/awt/src/main/java/io/quarkus/awt/it/ImageResource.java +++ b/integration-tests/awt/src/main/java/io/quarkus/awt/it/ImageResource.java @@ -35,15 +35,16 @@ import javax.imageio.plugins.tiff.TIFFField; import javax.imageio.plugins.tiff.TIFFTag; import javax.imageio.stream.ImageOutputStream; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; + +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; diff --git a/integration-tests/bootstrap-config/application/src/main/java/io/quarkus/it/bootstrap/config/ConfigResource.java b/integration-tests/bootstrap-config/application/src/main/java/io/quarkus/it/bootstrap/config/ConfigResource.java index 1617c7cee9390..255f008a1f7eb 100644 --- a/integration-tests/bootstrap-config/application/src/main/java/io/quarkus/it/bootstrap/config/ConfigResource.java +++ b/integration-tests/bootstrap-config/application/src/main/java/io/quarkus/it/bootstrap/config/ConfigResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.bootstrap.config; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.runtime.annotations.RegisterForReflection; import io.smallrye.config.SmallRyeConfig; diff --git a/integration-tests/bootstrap-config/application/src/test/java/io/quarkus/it/bootstrap/config/ConfigResourceTest.java b/integration-tests/bootstrap-config/application/src/test/java/io/quarkus/it/bootstrap/config/ConfigResourceTest.java index 32eac7eef4f93..b78cdb8fe9113 100644 --- a/integration-tests/bootstrap-config/application/src/test/java/io/quarkus/it/bootstrap/config/ConfigResourceTest.java +++ b/integration-tests/bootstrap-config/application/src/test/java/io/quarkus/it/bootstrap/config/ConfigResourceTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.bootstrap.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/bouncycastle-fips-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsJsseEndpoint.java b/integration-tests/bouncycastle-fips-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsJsseEndpoint.java index bf79098f66c7d..0ff2850bcb0ed 100644 --- a/integration-tests/bouncycastle-fips-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsJsseEndpoint.java +++ b/integration-tests/bouncycastle-fips-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsJsseEndpoint.java @@ -4,8 +4,8 @@ import java.util.Arrays; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/jsse") public class BouncyCastleFipsJsseEndpoint { diff --git a/integration-tests/bouncycastle-fips/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsEndpoint.java b/integration-tests/bouncycastle-fips/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsEndpoint.java index e7731b43ea9b7..b1b2024b8208d 100644 --- a/integration-tests/bouncycastle-fips/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsEndpoint.java +++ b/integration-tests/bouncycastle-fips/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleFipsEndpoint.java @@ -5,8 +5,8 @@ import java.util.Arrays; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/jca") public class BouncyCastleFipsEndpoint { diff --git a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleJsseEndpoint.java b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleJsseEndpoint.java index 301407e748ce9..16a3f3b88e0a8 100644 --- a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleJsseEndpoint.java +++ b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleJsseEndpoint.java @@ -4,9 +4,9 @@ import java.util.Arrays; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java index 076df4ca65a37..a42f30dc3256a 100644 --- a/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java +++ b/integration-tests/bouncycastle-jsse/src/main/java/io/quarkus/it/bouncycastle/SecretProvider.java @@ -3,8 +3,8 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import io.quarkus.arc.Unremovable; import io.quarkus.credentials.CredentialsProvider; diff --git a/integration-tests/bouncycastle/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleEndpoint.java b/integration-tests/bouncycastle/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleEndpoint.java index 2fc505394367b..e0a3f0e3d7055 100644 --- a/integration-tests/bouncycastle/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleEndpoint.java +++ b/integration-tests/bouncycastle/src/main/java/io/quarkus/it/bouncycastle/BouncyCastleEndpoint.java @@ -11,8 +11,9 @@ import java.util.stream.Collectors; import javax.crypto.Cipher; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey; import org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateKey; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/CaffeineResource.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/CaffeineResource.java index 10192b5053112..3e3390bc345f5 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/CaffeineResource.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/CaffeineResource.java @@ -5,9 +5,9 @@ import java.util.Map; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import com.github.benmanes.caffeine.cache.CacheLoader; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/ExpensiveResource.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/ExpensiveResource.java index 8339b5b616a81..8efdcf9abfdc0 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/ExpensiveResource.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/ExpensiveResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import io.quarkus.cache.CacheKey; import io.quarkus.cache.CacheResult; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/RestClientResource.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/RestClientResource.java index 77e2e9dc96e41..0d697777b53ed 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/RestClientResource.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/RestClientResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.cache; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestClient.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestClient.java index 22c905b761737..e4d73bf1e0214 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestClient.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestClient.java @@ -1,8 +1,8 @@ package io.quarkus.it.cache; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestServerResource.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestServerResource.java index 15555ec0fb19c..88f33b77cfd25 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestServerResource.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/SunriseRestServerResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.cache; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.resteasy.annotations.jaxrs.PathParam; import org.jboss.resteasy.annotations.jaxrs.QueryParam; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/Tree.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/Tree.java index 73ca662df9abd..e82cff4118232 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/Tree.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/Tree.java @@ -1,8 +1,8 @@ package io.quarkus.it.cache; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/cache/src/main/java/io/quarkus/it/cache/TreeResource.java b/integration-tests/cache/src/main/java/io/quarkus/it/cache/TreeResource.java index baf07146277a3..1b46322905c07 100644 --- a/integration-tests/cache/src/main/java/io/quarkus/it/cache/TreeResource.java +++ b/integration-tests/cache/src/main/java/io/quarkus/it/cache/TreeResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/class-transformer/deployment/pom.xml b/integration-tests/class-transformer/deployment/pom.xml index 7db6d7a0ec6cf..c3b09d8bfe0c9 100644 --- a/integration-tests/class-transformer/deployment/pom.xml +++ b/integration-tests/class-transformer/deployment/pom.xml @@ -22,8 +22,8 @@ quarkus-integration-test-class-transformer - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java index d927c394a3204..0591954128500 100644 --- a/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java +++ b/integration-tests/class-transformer/deployment/src/main/java/io/quarkus/it/classtransformer/ClassTransformerProcessor.java @@ -6,8 +6,8 @@ import java.util.Set; import java.util.function.BiFunction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; diff --git a/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java b/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java index a442bd4b374f9..535828d4f2617 100644 --- a/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java +++ b/integration-tests/common-jpa-entities/src/main/java/io/quarkus/it/common/Clown.java @@ -1,8 +1,8 @@ package io.quarkus.it.common; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; /** * @author Emmanuel Bernard emmanuel@hibernate.org diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-docker/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-docker/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-docker/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-docker/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-appcds/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-inherit/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-inherit/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-inherit/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-inherit/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/Fruit.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/Fruit.java index bd63d09a4fc25..72dd4c602d87e 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/Fruit.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/Fruit.java @@ -1,14 +1,14 @@ package org.acme; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/FruitResource.java index 9e87f700cfcee..06404ceee72c6 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-db2/src/main/java/org/acme/FruitResource.java @@ -2,10 +2,10 @@ import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.GET; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.persistence.EntityManager; import java.util.List; @Path("fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaEndpoint.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaEndpoint.java index 4d5b30997aca2..d6ecb92655a2a 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaEndpoint.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaEndpoint.java @@ -9,15 +9,15 @@ import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerRecord; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import java.time.Duration; import java.util.Collections; import java.util.Set; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaProviders.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaProviders.java index 80dee3d42776e..fa7abe8af2049 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaProviders.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-kafka/src/main/java/org/acme/kafka/KafkaProviders.java @@ -9,9 +9,9 @@ import org.apache.kafka.common.serialization.StringDeserializer; import org.apache.kafka.common.serialization.StringSerializer; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import java.util.HashMap; import java.util.Map; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/Fruit.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/Fruit.java index bd63d09a4fc25..72dd4c602d87e 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/Fruit.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/Fruit.java @@ -1,14 +1,14 @@ package org.acme; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/FruitResource.java index 9e87f700cfcee..06404ceee72c6 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mariadb/src/main/java/org/acme/FruitResource.java @@ -2,10 +2,10 @@ import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.GET; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.persistence.EntityManager; import java.util.List; @Path("fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mongo/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mongo/src/main/java/org/acme/FruitResource.java index fc153bd9be5e8..3275c95b152fc 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mongo/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mongo/src/main/java/org/acme/FruitResource.java @@ -2,9 +2,9 @@ import io.smallrye.mutiny.Uni; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.util.List; import org.bson.Document; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/Fruit.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/Fruit.java index bd63d09a4fc25..72dd4c602d87e 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/Fruit.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/Fruit.java @@ -1,14 +1,14 @@ package org.acme; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/FruitResource.java index 9e87f700cfcee..06404ceee72c6 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mssql/src/main/java/org/acme/FruitResource.java @@ -2,10 +2,10 @@ import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.GET; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.persistence.EntityManager; import java.util.List; @Path("fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/Fruit.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/Fruit.java index bd63d09a4fc25..72dd4c602d87e 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/Fruit.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/Fruit.java @@ -1,14 +1,14 @@ package org.acme; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/FruitResource.java index 9e87f700cfcee..06404ceee72c6 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-mysql/src/main/java/org/acme/FruitResource.java @@ -2,10 +2,10 @@ import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.GET; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.persistence.EntityManager; import java.util.List; @Path("fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/Fruit.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/Fruit.java index bd63d09a4fc25..72dd4c602d87e 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/Fruit.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/Fruit.java @@ -1,14 +1,14 @@ package org.acme; -import javax.persistence.Cacheable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/FruitResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/FruitResource.java index 9e87f700cfcee..06404ceee72c6 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/FruitResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib-with-postgresql/src/main/java/org/acme/FruitResource.java @@ -2,10 +2,10 @@ import io.smallrye.common.annotation.Blocking; -import javax.inject.Inject; -import javax.ws.rs.Path; -import javax.ws.rs.GET; -import javax.persistence.EntityManager; +import jakarta.inject.Inject; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.persistence.EntityManager; import java.util.List; @Path("fruits") diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-jib/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-docker/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-docker/src/main/java/org/acme/Hello.java index ecb6d4d3010cb..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-docker/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-docker/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-jib/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-jib/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-jib/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-multiple-tags-jib/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/AdminResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/AdminResource.java index ab489210e5802..1665732feafe8 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/AdminResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/AdminResource.java @@ -1,10 +1,10 @@ package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.security.Authenticated; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/UsersResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/UsersResource.java index 0c1eb33448194..99178c08db7d7 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/UsersResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak-default-realm/src/main/java/org/acme/security/openid/connect/UsersResource.java @@ -1,11 +1,11 @@ package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.NoCache; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/AdminResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/AdminResource.java index ab489210e5802..1665732feafe8 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/AdminResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/AdminResource.java @@ -1,10 +1,10 @@ package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.security.Authenticated; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/UsersResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/UsersResource.java index 0c1eb33448194..99178c08db7d7 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/UsersResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-build-with-keycloak/src/main/java/org/acme/security/openid/connect/UsersResource.java @@ -1,11 +1,11 @@ package org.acme.security.openid.connect; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.NoCache; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementResource.java b/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementResource.java index 04cfebfe66532..92cf7e5cb4a08 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementResource.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementResource.java @@ -1,15 +1,15 @@ package org.acme.redis; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.PathParam; -import javax.ws.rs.PUT; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.Path; -import javax.ws.rs.POST; -import javax.ws.rs.DELETE; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.core.MediaType; import java.util.List; import io.smallrye.common.annotation.Blocking; diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementService.java b/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementService.java index ddc2124a95162..07b09d0ae4674 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementService.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-image-jib-with-redis/src/main/java/org/acme/redis/IncrementService.java @@ -4,7 +4,7 @@ import io.quarkus.redis.datasource.keys.KeyCommands; import io.quarkus.redis.datasource.value.ValueCommands; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import java.util.List; @Singleton diff --git a/integration-tests/container-image/maven-invoker-way/src/it/container-image-push/src/main/java/org/acme/Hello.java b/integration-tests/container-image/maven-invoker-way/src/it/container-image-push/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/container-image/maven-invoker-way/src/it/container-image-push/src/main/java/org/acme/Hello.java +++ b/integration-tests/container-image/maven-invoker-way/src/it/container-image-push/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/container-image/quarkus-standard-way/src/main/java/io/quarkus/it/container/image/GreetingResource.java b/integration-tests/container-image/quarkus-standard-way/src/main/java/io/quarkus/it/container/image/GreetingResource.java index 0c661214e9855..ea03190819fa1 100644 --- a/integration-tests/container-image/quarkus-standard-way/src/main/java/io/quarkus/it/container/image/GreetingResource.java +++ b/integration-tests/container-image/quarkus-standard-way/src/main/java/io/quarkus/it/container/image/GreetingResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.container.image; -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("/greeting") public class GreetingResource { diff --git a/integration-tests/csrf-reactive/src/main/java/io/quarkus/it/csrf/TestResource.java b/integration-tests/csrf-reactive/src/main/java/io/quarkus/it/csrf/TestResource.java index d882897fcb82f..c509b97cfe6b5 100644 --- a/integration-tests/csrf-reactive/src/main/java/io/quarkus/it/csrf/TestResource.java +++ b/integration-tests/csrf-reactive/src/main/java/io/quarkus/it/csrf/TestResource.java @@ -2,16 +2,16 @@ import java.io.File; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.resteasy.reactive.RestForm; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleArcSmokeTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleArcSmokeTest.java index 4bf054ae3ec32..d8957571d7a18 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleArcSmokeTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleArcSmokeTest.java @@ -1,8 +1,8 @@ package io.quarkus.test.devconsole; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Named; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleCacheSmokeTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleCacheSmokeTest.java index 1ecfb64229cb0..b61ed568f08d1 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleCacheSmokeTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DevConsoleCacheSmokeTest.java @@ -1,6 +1,6 @@ package io.quarkus.test.devconsole; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.hamcrest.Matchers; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DummyConnector.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DummyConnector.java index 000b708afaccc..2bc3f3688b065 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DummyConnector.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/DummyConnector.java @@ -1,6 +1,6 @@ package io.quarkus.test.devconsole; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyEntity.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyEntity.java index 7ab8614f558e3..02e4de6f0fd29 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyEntity.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyEntity.java @@ -1,8 +1,8 @@ package io.quarkus.test.devconsole; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyEntity { diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyIndexedEntity.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyIndexedEntity.java index 4b6cc44b50908..8919ea3a6f784 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyIndexedEntity.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyIndexedEntity.java @@ -1,7 +1,7 @@ package io.quarkus.test.devconsole; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java index e6da780f8ef52..affecb9fdf6c6 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java @@ -1,9 +1,9 @@ package io.quarkus.test.devconsole; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyResource.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyResource.java index d372752abd26b..0c25eb057a8cb 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyResource.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyResource.java @@ -1,9 +1,9 @@ package io.quarkus.test.devconsole; -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("/me") public class MyResource { diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuEntity.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuEntity.java index cb718cb0d24eb..203edc992a168 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuEntity.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuEntity.java @@ -1,7 +1,7 @@ package io.quarkus.test.devconsole.namedpu; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class MyNamedPuEntity { diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuIndexedEntity.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuIndexedEntity.java index 396bae2917a38..3bb2b7aa182e7 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuIndexedEntity.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/namedpu/MyNamedPuIndexedEntity.java @@ -1,7 +1,7 @@ package io.quarkus.test.devconsole.namedpu; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/no/src/main/NoSrcMainResource.java b/integration-tests/devmode/src/test/java/io/quarkus/test/no/src/main/NoSrcMainResource.java index 238dead94184f..9941538139290 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/no/src/main/NoSrcMainResource.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/no/src/main/NoSrcMainResource.java @@ -1,9 +1,9 @@ package io.quarkus.test.no.src.main; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/qute/QuteErrorPageTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/qute/QuteErrorPageTest.java index effa9b27abe78..87a02b2865aba 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/qute/QuteErrorPageTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/qute/QuteErrorPageTest.java @@ -2,7 +2,7 @@ import static org.hamcrest.CoreMatchers.containsString; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/reload/AdditionalWatchedResourcesResource.java b/integration-tests/devmode/src/test/java/io/quarkus/test/reload/AdditionalWatchedResourcesResource.java index c79c65bb6945f..ac6f540a72c31 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/reload/AdditionalWatchedResourcesResource.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/reload/AdditionalWatchedResourcesResource.java @@ -6,12 +6,12 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.commons.io.IOUtils; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/security/DisabledAuthorizationTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/security/DisabledAuthorizationTest.java index f2ef5d1775d63..0f7c81aacc0e6 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/security/DisabledAuthorizationTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/security/DisabledAuthorizationTest.java @@ -2,10 +2,10 @@ import static org.hamcrest.CoreMatchers.equalTo; -import javax.annotation.security.DenyAll; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.DenyAll; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/ConsumeUuidEventHotReloadTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/ConsumeUuidEventHotReloadTest.java index 06c2752684d2c..dfeb168f986ea 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/ConsumeUuidEventHotReloadTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/ConsumeUuidEventHotReloadTest.java @@ -3,9 +3,9 @@ import java.util.UUID; import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleClassnameHotReloadTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleClassnameHotReloadTest.java index 595d107b438d6..8b5f068de4d54 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleClassnameHotReloadTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleClassnameHotReloadTest.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleInstanceHotReloadTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleInstanceHotReloadTest.java index 37ed36b3ecec5..028a6624b70c0 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleInstanceHotReloadTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/MutinyVerticleInstanceHotReloadTest.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/UuidMessageConsumer.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/UuidMessageConsumer.java index 37ccb06b7111d..56588ed9cada9 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/UuidMessageConsumer.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/UuidMessageConsumer.java @@ -2,7 +2,7 @@ import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.ConsumeEvent; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleClassnameHotReloadTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleClassnameHotReloadTest.java index d3fceb2cdaa0f..9f61f921bcd0f 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleClassnameHotReloadTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleClassnameHotReloadTest.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleInstanceHotReloadTest.java b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleInstanceHotReloadTest.java index 40eb5642ff1cd..2a120f11fa56d 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleInstanceHotReloadTest.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/vertx/VerticleInstanceHotReloadTest.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/devtools-registry-client/src/main/java/io/quarkus/registry/RegistryConfigResource.java b/integration-tests/devtools-registry-client/src/main/java/io/quarkus/registry/RegistryConfigResource.java index 1e7a1c246258a..ca4892f343670 100644 --- a/integration-tests/devtools-registry-client/src/main/java/io/quarkus/registry/RegistryConfigResource.java +++ b/integration-tests/devtools-registry-client/src/main/java/io/quarkus/registry/RegistryConfigResource.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.io.StringWriter; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.registry.config.RegistriesConfigMapperHelper; import io.quarkus.registry.config.RegistryConfig; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java index 28e657f4b17cd..9e5fe1dea467f 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctions.java @@ -1,6 +1,6 @@ package ilove.quark.us.funqygooglecloudfunctions; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingService.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingService.java index 282f37dba7833..366d98b341341 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingService.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_funqygooglecloudfunctions_GreetingService.java @@ -1,6 +1,6 @@ package ilove.quark.us.funqygooglecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunction.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunction.java index 85f58424c8f2f..d0f03f37bcadc 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunction.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunction.java @@ -1,6 +1,6 @@ package ilove.quark.us.googlecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.BackgroundFunction; import com.google.cloud.functions.Context; @@ -16,4 +16,4 @@ public void accept(StorageEvent event, Context context) throws Exception { public static class StorageEvent { public String name; } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunction.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunction.java index e2228257ce100..322009f06137f 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunction.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunction.java @@ -1,6 +1,6 @@ package ilove.quark.us.googlecloudfunctions; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.CloudEventsFunction; @@ -16,4 +16,4 @@ public void accept(CloudEvent cloudEvent) throws Exception { System.out.println("Receive event Type: " + cloudEvent.getType()); System.out.println("Receive event Data: " + new String(cloudEvent.getData().toBytes())); } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunction.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunction.java index c03a2b50b7603..85af3718f9c0e 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunction.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunction.java @@ -2,7 +2,7 @@ import java.io.Writer; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.cloud.functions.HttpFunction; import com.google.cloud.functions.HttpRequest; @@ -16,4 +16,4 @@ public void service(HttpRequest httpRequest, HttpResponse httpResponse) throws E Writer writer = httpResponse.getWriter(); writer.write("Hello World"); } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingResource.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingResource.java index 8c8ceaa674cba..e95daab189afc 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingResource.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingResource.java @@ -1,11 +1,11 @@ package ilove.quark.us.googlecloudfunctionshttp; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingServlet.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingServlet.java index 03abceccb3b90..207cf28c54446 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingServlet.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsHttpCodestartTest/testContent/src_main_java_ilove_quark_us_googlecloudfunctions_GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java index 09329e1879b2b..16a147f0dba93 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java @@ -1,8 +1,8 @@ package ilove.quark.us; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; /** * Example JPA entity. diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt index ae6ca99d523eb..738ea41f68c91 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt @@ -1,8 +1,8 @@ package ilove.quark.us -import javax.persistence.Entity -import javax.persistence.GeneratedValue -import javax.persistence.Id +import jakarta.persistence.Entity +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id /** * Example JPA entity. diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java index 7af15a045441e..e75f117fb82b2 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheCodestartIT/testContent/src_main_java_ilove_quark_us_MyEntity.java @@ -1,7 +1,7 @@ package ilove.quark.us; import io.quarkus.hibernate.orm.panache.PanacheEntity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheKotlinCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheKotlinCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt index 0c21af1ce75f3..f5213796f3478 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheKotlinCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/HibernateOrmPanacheKotlinCodestartIT/testContent/src_main_kotlin_ilove_quark_us_MyKotlinEntity.kt @@ -2,7 +2,7 @@ package ilove.quark.us import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion -import javax.persistence.Entity +import jakarta.persistence.Entity /** * Example JPA entity defined as a Kotlin Panache Entity. diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_java_ilove_quark_us_MyRemoteService.java b/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_java_ilove_quark_us_MyRemoteService.java index e29ea39c21821..242a4e69e8b56 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_java_ilove_quark_us_MyRemoteService.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_java_ilove_quark_us_MyRemoteService.java @@ -2,9 +2,9 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import java.util.List; import java.util.Set; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyRemoteService.kt b/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyRemoteService.kt index dfa6647a35370..dacb1f3671c37 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyRemoteService.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyRemoteService.kt @@ -1,9 +1,9 @@ package ilove.quark.us import org.eclipse.microprofile.rest.client.inject.RegisterRestClient -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.QueryParam +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.QueryParam /** * To use it via injection. diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java index b51406a5360dd..de2099eb4096a 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_java_ilove_quark_us_SomePage.java @@ -2,11 +2,11 @@ import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -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.QueryParam; +import jakarta.ws.rs.core.MediaType; import static java.util.Objects.requireNonNull; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt index 6b3690d2666a9..f0a8fc03e6e4c 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyQuteCodestartTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt @@ -2,11 +2,11 @@ package ilove.quark.us import io.quarkus.qute.Template import io.quarkus.qute.TemplateInstance -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -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.QueryParam +import jakarta.ws.rs.core.MediaType @Path("/some-page") class SomePage(val page: Template) { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java index c65c013da3d95..382f19a13488c 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java @@ -1,9 +1,9 @@ package ilove.quark.us; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello from RESTEasy Reactive"; } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_SomePage.java b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_SomePage.java index ef4e4eee16f73..737419067e74c 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_SomePage.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_java_ilove_quark_us_SomePage.java @@ -3,11 +3,11 @@ import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -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.QueryParam; +import jakarta.ws.rs.core.MediaType; import static java.util.Objects.requireNonNull; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt index 142f19634d0b4..14985fe82c9f0 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt @@ -1,9 +1,9 @@ package ilove.quark.us -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("/hello") class GreetingResource { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt index 82cca6e2d376d..fa99b22b3668e 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/RESTEasyReactiveCodestartsTest/testContent/src_main_kotlin_ilove_quark_us_SomePage.kt @@ -2,11 +2,11 @@ package ilove.quark.us import io.quarkus.qute.Template import io.quarkus.qute.TemplateInstance -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -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.QueryParam +import jakarta.ws.rs.core.MediaType @Path("/some-page") class SomePage(val page: Template) { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java index 7e428ad3806fb..1b6e4b05161cf 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java @@ -3,9 +3,9 @@ import io.quarkus.runtime.StartupEvent; import org.eclipse.microprofile.reactive.messaging.*; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import java.util.stream.Stream; @ApplicationScoped diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java index 557c9bfcf685e..6f0a5ac2895ca 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testAMQPContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java @@ -7,7 +7,7 @@ import org.eclipse.microprofile.reactive.messaging.Message; import org.junit.jupiter.api.Test; -import javax.inject.Inject; +import jakarta.inject.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -22,4 +22,4 @@ void test() { assertEquals("HELLO", application.toUpperCase(Message.of("Hello")).getPayload()); assertEquals("BONJOUR", application.toUpperCase(Message.of("bonjour")).getPayload()); } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java index 7e428ad3806fb..1b6e4b05161cf 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_main_java_ilove_quark_us_MyReactiveMessagingApplication.java @@ -3,9 +3,9 @@ import io.quarkus.runtime.StartupEvent; import org.eclipse.microprofile.reactive.messaging.*; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import java.util.stream.Stream; @ApplicationScoped diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java index 557c9bfcf685e..6f0a5ac2895ca 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveMessagingCodestartIT/testKafkaContent/src_test_java_ilove_quark_us_MyReactiveMessagingApplicationTest.java @@ -7,7 +7,7 @@ import org.eclipse.microprofile.reactive.messaging.Message; import org.junit.jupiter.api.Test; -import javax.inject.Inject; +import jakarta.inject.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -22,4 +22,4 @@ void test() { assertEquals("HELLO", application.toUpperCase(Message.of("Hello")).getPayload()); assertEquals("BONJOUR", application.toUpperCase(Message.of("bonjour")).getPayload()); } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_java_ilove_quark_us_MyDeclarativeRoutes.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_java_ilove_quark_us_MyDeclarativeRoutes.java index 03909be4cc3e3..cfe26cfc4cacf 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_java_ilove_quark_us_MyDeclarativeRoutes.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_java_ilove_quark_us_MyDeclarativeRoutes.java @@ -1,6 +1,6 @@ package ilove.quark.us; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.web.Route; import io.quarkus.vertx.web.RoutingExchange; @@ -13,4 +13,4 @@ public class MyDeclarativeRoutes { void helloRoute(RoutingExchange ex) { ex.ok("Hello " + ex.getParam("name").orElse("Reactive Route") +" !!"); } -} \ No newline at end of file +} diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyDeclarativeRoutes.kt b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyDeclarativeRoutes.kt index 6e5f974dbba66..b4ddd041fa47d 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyDeclarativeRoutes.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyDeclarativeRoutes.kt @@ -3,7 +3,7 @@ package ilove.quark.us import io.quarkus.vertx.web.Route import io.quarkus.vertx.web.RoutingExchange import io.vertx.ext.web.RoutingContext -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class MyDeclarativeRoutes { diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_java_ilove_quark_us_StartWebSocket.java b/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_java_ilove_quark_us_StartWebSocket.java index f01294b0465de..6e4522574874c 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_java_ilove_quark_us_StartWebSocket.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_java_ilove_quark_us_StartWebSocket.java @@ -1,14 +1,14 @@ package ilove.quark.us; -import javax.enterprise.context.ApplicationScoped; -import javax.websocket.EncodeException; -import javax.websocket.OnClose; -import javax.websocket.OnError; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; -import javax.websocket.server.PathParam; -import javax.websocket.server.ServerEndpoint; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.websocket.EncodeException; +import jakarta.websocket.OnClose; +import jakarta.websocket.OnError; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; +import jakarta.websocket.server.PathParam; +import jakarta.websocket.server.ServerEndpoint; import java.io.IOException; import static java.util.Objects.requireNonNull; diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_kotlin_ilove_quark_us_StartWebSocket.kt b/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_kotlin_ilove_quark_us_StartWebSocket.kt index a738cb3e8a5eb..9af11d1d7b25d 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_kotlin_ilove_quark_us_StartWebSocket.kt +++ b/integration-tests/devtools/src/test/resources/__snapshots__/WebSocketsCodestartTest/testContent/src_main_kotlin_ilove_quark_us_StartWebSocket.kt @@ -1,9 +1,9 @@ package ilove.quark.us -import javax.enterprise.context.ApplicationScoped -import javax.websocket.* -import javax.websocket.server.PathParam -import javax.websocket.server.ServerEndpoint +import jakarta.enterprise.context.ApplicationScoped +import jakarta.websocket.* +import jakarta.websocket.server.PathParam +import jakarta.websocket.server.ServerEndpoint @ApplicationScoped @ServerEndpoint("/start-websocket/{name}") diff --git a/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitResource.java b/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitResource.java index 268f7a1ca07af..4cec914a9ae37 100644 --- a/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitResource.java +++ b/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitResource.java @@ -5,14 +5,14 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; @Path("/fruits") public class FruitResource { diff --git a/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitService.java b/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitService.java index fe5140c6c6136..aba58dad86b04 100644 --- a/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitService.java +++ b/integration-tests/elasticsearch-rest-client/src/main/java/io/quarkus/it/elasticsearch/FruitService.java @@ -4,8 +4,8 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.apache.http.util.EntityUtils; import org.elasticsearch.client.Request; diff --git a/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitResource.java b/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitResource.java index fe4bbd3c8d46b..559dad17d1043 100644 --- a/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitResource.java +++ b/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitResource.java @@ -5,14 +5,14 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; @Path("/fruits") public class FruitResource { diff --git a/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitService.java b/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitService.java index bb1c7c2566fcb..b00f350b555ac 100644 --- a/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitService.java +++ b/integration-tests/elasticsearch-rest-high-level-client/src/main/java/io/quarkus/it/elasticsearch/highlevel/FruitService.java @@ -4,8 +4,8 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.elasticsearch.action.get.GetRequest; import org.elasticsearch.action.get.GetResponse; diff --git a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/AuthenticationFailedExceptionMapper.java b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/AuthenticationFailedExceptionMapper.java index 798301535e71d..71eb58267b2ee 100644 --- a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/AuthenticationFailedExceptionMapper.java +++ b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/AuthenticationFailedExceptionMapper.java @@ -1,10 +1,10 @@ package io.quarkus.it.resteasy.reactive.elytron; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.AuthenticationFailedException; diff --git a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/FruitResource.java b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/FruitResource.java index ec1ba83150f91..ce9a8b7a8d7e4 100644 --- a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/FruitResource.java +++ b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/FruitResource.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.resteasy.reactive.jackson.DisableSecureSerialization; diff --git a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/RootResource.java b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/RootResource.java index 5cf108735b179..23bd635a83635 100644 --- a/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/RootResource.java +++ b/integration-tests/elytron-resteasy-reactive/src/main/java/io/quarkus/it/resteasy/reactive/elytron/RootResource.java @@ -3,16 +3,16 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/AuthFailedExceptionMapper.java b/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/AuthFailedExceptionMapper.java index 3cb80fe37991a..c4b2505b703ad 100644 --- a/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/AuthFailedExceptionMapper.java +++ b/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/AuthFailedExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.it.resteasy.elytron; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.AuthenticationFailedException; diff --git a/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/RootResource.java b/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/RootResource.java index 02a1cf2d25f77..11e6a1d3675b7 100644 --- a/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/RootResource.java +++ b/integration-tests/elytron-resteasy/src/main/java/io/quarkus/it/resteasy/elytron/RootResource.java @@ -4,16 +4,16 @@ import java.util.Map; import java.util.stream.Collectors; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/elytron-security-jdbc/src/main/java/io/quarkus/elytron/security/jdbc/it/ElytronSecurityJdbcResource.java b/integration-tests/elytron-security-jdbc/src/main/java/io/quarkus/elytron/security/jdbc/it/ElytronSecurityJdbcResource.java index 09f1bc9c14a20..e32af89f9e29e 100644 --- a/integration-tests/elytron-security-jdbc/src/main/java/io/quarkus/elytron/security/jdbc/it/ElytronSecurityJdbcResource.java +++ b/integration-tests/elytron-security-jdbc/src/main/java/io/quarkus/elytron/security/jdbc/it/ElytronSecurityJdbcResource.java @@ -16,10 +16,10 @@ */ package io.quarkus.elytron.security.jdbc.it; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/api") @ApplicationScoped diff --git a/integration-tests/elytron-security-ldap/src/main/java/io/quarkus/elytron/security/ldap/it/ElytronSecurityLdapResource.java b/integration-tests/elytron-security-ldap/src/main/java/io/quarkus/elytron/security/ldap/it/ElytronSecurityLdapResource.java index 52c5726f6027c..17ca851fdd315 100644 --- a/integration-tests/elytron-security-ldap/src/main/java/io/quarkus/elytron/security/ldap/it/ElytronSecurityLdapResource.java +++ b/integration-tests/elytron-security-ldap/src/main/java/io/quarkus/elytron/security/ldap/it/ElytronSecurityLdapResource.java @@ -16,10 +16,10 @@ */ package io.quarkus.elytron.security.ldap.it; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/api") @ApplicationScoped diff --git a/integration-tests/elytron-security-oauth2/src/main/java/io/quarkus/it/elytron/oauth2/ElytronOauth2ExtensionResource.java b/integration-tests/elytron-security-oauth2/src/main/java/io/quarkus/it/elytron/oauth2/ElytronOauth2ExtensionResource.java index f1acf2fa1934a..ba38280e9358c 100644 --- a/integration-tests/elytron-security-oauth2/src/main/java/io/quarkus/it/elytron/oauth2/ElytronOauth2ExtensionResource.java +++ b/integration-tests/elytron-security-oauth2/src/main/java/io/quarkus/it/elytron/oauth2/ElytronOauth2ExtensionResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.elytron.oauth2; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/api") public class ElytronOauth2ExtensionResource { diff --git a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/KeyFactoryEndpoint.java b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/KeyFactoryEndpoint.java index fe4e491ea085d..9e52a3963606e 100644 --- a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/KeyFactoryEndpoint.java +++ b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/KeyFactoryEndpoint.java @@ -8,9 +8,9 @@ import java.security.spec.X509EncodedKeySpec; import java.util.Base64; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.jboss.logging.Logger; diff --git a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalEndpoint.java b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalEndpoint.java index e78ccbb4d7535..dc34b19fe9350 100644 --- a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalEndpoint.java +++ b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalEndpoint.java @@ -1,11 +1,12 @@ package io.quarkus.it.elytron; -import javax.inject.Inject; import javax.security.auth.x500.X500Principal; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/x500") public class X500PrincipalEndpoint { diff --git a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalUtilUser.java b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalUtilUser.java index 3a645352644a5..a24ee64659dd8 100644 --- a/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalUtilUser.java +++ b/integration-tests/elytron-security/src/main/java/io/quarkus/it/elytron/X500PrincipalUtilUser.java @@ -2,10 +2,11 @@ import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; import javax.security.auth.x500.X500Principal; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; + import org.wildfly.security.x500.util.X500PrincipalUtil; /** diff --git a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/AnnotationSecurityServlet.java b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/AnnotationSecurityServlet.java index 5b92bee086db2..83de1d64f8f39 100644 --- a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/AnnotationSecurityServlet.java +++ b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/AnnotationSecurityServlet.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.HttpMethodConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.HttpMethodConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "AnnotationSecurityServlet", urlPatterns = "/annotation-secure") @ServletSecurity(value = @HttpConstraint(rolesAllowed = "managers"), httpMethodConstraints = { diff --git a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/GreetingServlet.java b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/GreetingServlet.java index d8ee67439d697..c74c7f591023e 100644 --- a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/GreetingServlet.java +++ b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/*") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java index 0f14f12cf336a..c15c8c3a58342 100644 --- a/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java +++ b/integration-tests/elytron-undertow/src/main/java/io/quarkus/it/undertow/elytron/RootResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.undertow.elytron; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; @Path("/rest") public class RootResource { diff --git a/integration-tests/elytron-undertow/src/main/resources/META-INF/web.xml b/integration-tests/elytron-undertow/src/main/resources/META-INF/web.xml index 33a8ec5f2053e..e4040e6d2096e 100644 --- a/integration-tests/elytron-undertow/src/main/resources/META-INF/web.xml +++ b/integration-tests/elytron-undertow/src/main/resources/META-INF/web.xml @@ -6,7 +6,7 @@ metadata-complete="false"> - javax.ws.rs.core.Application + jakarta.ws.rs.core.Application /mapped/* diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java index ee2446424124e..36853f22d76d2 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/AppEntity.java @@ -2,9 +2,9 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * Entity used within tests diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java index a6f43273a9ce6..3e0ced6494a5f 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayApp.java @@ -1,7 +1,7 @@ package io.quarkus.it.flyway; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/flyway") public class FlywayApp extends Application { diff --git a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java index 7661d9bc90ff3..5c72b0b721dad 100644 --- a/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java +++ b/integration-tests/flyway/src/main/java/io/quarkus/it/flyway/FlywayFunctionalityResource.java @@ -3,10 +3,10 @@ import java.util.Map; import java.util.Objects; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.flywaydb.core.Flyway; import org.flywaydb.core.api.MigrationVersion; diff --git a/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingFunctions.java b/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingFunctions.java index e860c7a2c4c21..eeb69c7123d54 100644 --- a/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingFunctions.java +++ b/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingFunctions.java @@ -4,7 +4,7 @@ import java.util.Timer; import java.util.TimerTask; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.funqy.Funq; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingService.java b/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingService.java index 5f20bdb0a7ab0..3ad7c6dc10bd5 100644 --- a/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingService.java +++ b/integration-tests/funqy-amazon-lambda/src/main/java/io/quarkus/funqy/test/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingFunctions.java b/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingFunctions.java index c7e1bb98ad909..6a1f8b11e802b 100644 --- a/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingFunctions.java +++ b/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingFunctions.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.gcp.functions.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.cloudevents.CloudEvent; import io.quarkus.funqy.Funq; diff --git a/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingService.java b/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingService.java index 5d6d0f329c6b4..91b69ae789bc3 100644 --- a/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingService.java +++ b/integration-tests/funqy-google-cloud-functions/src/main/java/io/quarkus/funqy/gcp/functions/test/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.funqy.gcp.functions.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java b/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java index e506bc37f7e49..4104e5f596ad3 100644 --- a/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java +++ b/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.gcp.functions.http; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingServlet.java b/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingServlet.java index 1065e3f6499e0..4b84cba5aaca8 100644 --- a/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingServlet.java +++ b/integration-tests/google-cloud-functions-http/src/main/java/io/quarkus/it/gcp/functions/http/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/BackgroundFunctionStorageTest.java b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/BackgroundFunctionStorageTest.java index f6b438d5012b6..43bbd33bd4466 100644 --- a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/BackgroundFunctionStorageTest.java +++ b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/BackgroundFunctionStorageTest.java @@ -1,8 +1,8 @@ package io.quarkus.gcp.function.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.BackgroundFunction; import com.google.cloud.functions.Context; diff --git a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/CloudEventStorageTest.java b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/CloudEventStorageTest.java index 9d2c358600ffb..99b6d5eec97e0 100644 --- a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/CloudEventStorageTest.java +++ b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/CloudEventStorageTest.java @@ -1,8 +1,8 @@ package io.quarkus.gcp.function.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.CloudEventsFunction; diff --git a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/HttpFunctionTest.java b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/HttpFunctionTest.java index 39afcad2d34c3..df1d82b64ade8 100644 --- a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/HttpFunctionTest.java +++ b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/HttpFunctionTest.java @@ -2,9 +2,9 @@ import java.io.Writer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.HttpFunction; import com.google.cloud.functions.HttpRequest; diff --git a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/RawBackgroundFunctionPubSubTest.java b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/RawBackgroundFunctionPubSubTest.java index 7f5a6d27ef729..c761d259ba5f0 100644 --- a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/RawBackgroundFunctionPubSubTest.java +++ b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/RawBackgroundFunctionPubSubTest.java @@ -1,8 +1,8 @@ package io.quarkus.gcp.function.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import com.google.cloud.functions.Context; import com.google.cloud.functions.RawBackgroundFunction; diff --git a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/service/GreetingService.java b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/service/GreetingService.java index e2fa6596f31a1..81b8bed85ab85 100644 --- a/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/service/GreetingService.java +++ b/integration-tests/google-cloud-functions/src/main/java/io/quarkus/gcp/function/test/service/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.gcp.function.test.service; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/add-extension-multi-module-kts/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/add-extension-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/add-extension-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/add-extension-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/add-extension-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/add-extension-multi-module/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/add-extension-multi-module/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/add-extension-multi-module/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/add-extension-multi-module/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/add-remove-extension-single-module-kts/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/add-remove-extension-single-module-kts/src/main/java/org/acme/ExampleResource.java index a4df5d8d739aa..681d44e012b3c 100644 --- a/integration-tests/gradle/src/main/resources/add-remove-extension-single-module-kts/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/add-remove-extension-single-module-kts/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { @@ -14,4 +14,4 @@ public class ExampleResource { public String hello() { return "Hello from Test"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/add-remove-extension-single-module/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/add-remove-extension-single-module/src/main/java/org/acme/ExampleResource.java index a4df5d8d739aa..681d44e012b3c 100644 --- a/integration-tests/gradle/src/main/resources/add-remove-extension-single-module/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/add-remove-extension-single-module/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { @@ -14,4 +14,4 @@ public class ExampleResource { public String hello() { return "Hello from Test"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/additional-source-sets/src/funcTest/java/ft/SimpleBeanTest.java b/integration-tests/gradle/src/main/resources/additional-source-sets/src/funcTest/java/ft/SimpleBeanTest.java index a8a62620dd554..18886ea098262 100644 --- a/integration-tests/gradle/src/main/resources/additional-source-sets/src/funcTest/java/ft/SimpleBeanTest.java +++ b/integration-tests/gradle/src/main/resources/additional-source-sets/src/funcTest/java/ft/SimpleBeanTest.java @@ -1,6 +1,6 @@ package ft; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/gradle/src/main/resources/additional-source-sets/src/main/java/ft/SimpleBean.java b/integration-tests/gradle/src/main/resources/additional-source-sets/src/main/java/ft/SimpleBean.java index 7dbf40c55c6a6..d39a079c2a48c 100644 --- a/integration-tests/gradle/src/main/resources/additional-source-sets/src/main/java/ft/SimpleBean.java +++ b/integration-tests/gradle/src/main/resources/additional-source-sets/src/main/java/ft/SimpleBean.java @@ -1,6 +1,6 @@ package ft; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SimpleBean { diff --git a/integration-tests/gradle/src/main/resources/annotation-processor-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/annotation-processor-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 742b10f2bbc60..dfb3fec894c1f 100644 --- a/integration-tests/gradle/src/main/resources/annotation-processor-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/annotation-processor-multi-module/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,9 +1,9 @@ package org.acme.quarkus.sample; -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; import org.acme.common.CarMapper; import org.acme.common.domain.Car; @@ -18,4 +18,4 @@ public CarDTO hello() { Car car = new Car("foo", 4); return CarMapper.INSTANCE.carToCarDTO(car); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/annotation-processor-simple-module/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/annotation-processor-simple-module/src/main/java/org/acme/quarkus/sample/HelloResource.java index 42d1a37e426f4..b4ea8f6b626cf 100644 --- a/integration-tests/gradle/src/main/resources/annotation-processor-simple-module/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/annotation-processor-simple-module/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,9 +1,9 @@ package org.acme.quarkus.sample; -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; import org.acme.quarkus.CarMapper; import org.acme.quarkus.domain.Car; @@ -18,4 +18,4 @@ public CarDTO hello() { Car car = new Car("foo", 4); return CarMapper.INSTANCE.carToCarDTO(car); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/avro-simple-project/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/avro-simple-project/src/main/java/org/acme/quarkus/sample/HelloResource.java index b885722662d1c..304b951fe17bc 100644 --- a/integration-tests/gradle/src/main/resources/avro-simple-project/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/avro-simple-project/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -4,10 +4,10 @@ import java.util.Arrays; -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; import org.acme.quarkus.hello.Provider; @@ -19,4 +19,4 @@ public class HelloResource { public String providerValues() { return Arrays.stream(Provider.values()).map(String::valueOf).collect(joining(",")); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 6034c1428940e..69c983c7cdfa3 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.libb.LibB; import org.acme.liba.LibA; @@ -26,4 +26,4 @@ public class HelloResource { public String hello() { return "hello from " + libB.getName()+" and "+libA.getName()+" extension enabled: "+config.enabled; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java index eb5be23dd06a4..c53c4b62666a1 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java @@ -1,6 +1,6 @@ package org.acme.liba; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class LibA{ @@ -9,4 +9,4 @@ public String getName(){ return "LibA"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java index 0ca86ba004a60..b84b4a9ae4eb8 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-extension-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java @@ -1,7 +1,7 @@ package org.acme.libb; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class LibB{ @@ -9,4 +9,4 @@ public class LibB{ public String getName(){ return "LibB"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/basic-composite-build-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 6aa57377be8c1..b2675f57c1d9b 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.libb.LibB; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + libB.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java b/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java index eb5be23dd06a4..c53c4b62666a1 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryA/src/main/java/org/acme/liba/LibA.java @@ -1,6 +1,6 @@ package org.acme.liba; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class LibA{ @@ -9,4 +9,4 @@ public String getName(){ return "LibA"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java b/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java index fc97d2cb388c8..ac30ed8897ccb 100644 --- a/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java +++ b/integration-tests/gradle/src/main/resources/basic-composite-build-project/libraries/libraryB/src/main/java/org/acme/libb/LibB.java @@ -1,8 +1,8 @@ package org.acme.libb; import org.acme.liba.LibA; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class LibB{ @@ -13,4 +13,4 @@ public class LibB{ public String getName(){ return libA.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-java-application-project/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/basic-java-application-project/src/main/java/org/acme/ExampleResource.java index 69a905bf38a8f..94ec314e98050 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-application-project/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/basic-java-application-project/src/main/java/org/acme/ExampleResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ApplicationConfigResource.java b/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ApplicationConfigResource.java index ca578869780f9..82145f3a5c3d7 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ApplicationConfigResource.java +++ b/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ApplicationConfigResource.java @@ -3,10 +3,10 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -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("/app-config") public class ApplicationConfigResource { diff --git a/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ExampleResource.java index 4e1fe19332924..bf843c8b43bb3 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/basic-java-library-module/application/src/main/java/org/acme/ExampleResource.java @@ -2,11 +2,11 @@ import io.fabric8.kubernetes.client.KubernetesClient; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/basic-java-library-module/library/src/main/java/org/acme/BeanWithInjection.java b/integration-tests/gradle/src/main/resources/basic-java-library-module/library/src/main/java/org/acme/BeanWithInjection.java index 0811596b41712..cffcb9c789129 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-library-module/library/src/main/java/org/acme/BeanWithInjection.java +++ b/integration-tests/gradle/src/main/resources/basic-java-library-module/library/src/main/java/org/acme/BeanWithInjection.java @@ -2,8 +2,8 @@ import io.fabric8.kubernetes.client.KubernetesClient; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class BeanWithInjection { diff --git a/integration-tests/gradle/src/main/resources/basic-java-native-module/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/basic-java-native-module/src/main/java/org/acme/HelloResource.java index 89804c62b5e24..fbb27b57b28fc 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-native-module/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/basic-java-native-module/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { @@ -13,4 +13,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-java-platform-module/application/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/basic-java-platform-module/application/src/main/java/org/acme/ExampleResource.java index ba3a5b31b8f14..0626a88a027ed 100644 --- a/integration-tests/gradle/src/main/resources/basic-java-platform-module/application/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/basic-java-platform-module/application/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/basic-kotlin-application-project/src/main/kotlin/org/acme/GreetingResource.kt b/integration-tests/gradle/src/main/resources/basic-kotlin-application-project/src/main/kotlin/org/acme/GreetingResource.kt index 7634ba1421904..184166010098e 100644 --- a/integration-tests/gradle/src/main/resources/basic-kotlin-application-project/src/main/kotlin/org/acme/GreetingResource.kt +++ b/integration-tests/gradle/src/main/resources/basic-kotlin-application-project/src/main/kotlin/org/acme/GreetingResource.kt @@ -1,9 +1,9 @@ package org.acme -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("/hello") class GreetingResource { diff --git a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/application/src/main/java/com/demo/application/Application.java b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/application/src/main/java/com/demo/application/Application.java index 86b1890203d40..cc7db59db6c0e 100644 --- a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/application/src/main/java/com/demo/application/Application.java +++ b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/application/src/main/java/com/demo/application/Application.java @@ -1,9 +1,9 @@ package com.demo.application; import com.demo.common.base.model.BaseEntity; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.inject.Inject; @ApplicationScoped public class Application { diff --git a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-one/src/main/java/com/demo/common/one/model/SharedModelOne.java b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-one/src/main/java/com/demo/common/one/model/SharedModelOne.java index 869e28ae85d55..d6e820e9472e1 100644 --- a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-one/src/main/java/com/demo/common/one/model/SharedModelOne.java +++ b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-one/src/main/java/com/demo/common/one/model/SharedModelOne.java @@ -2,9 +2,9 @@ import com.demo.common.base.model.BaseEntity; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; @Alternative @Priority(1) diff --git a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-two/src/main/java/com/demo/common/two/model/SharedModelTwo.java b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-two/src/main/java/com/demo/common/two/model/SharedModelTwo.java index 8318fecb54696..b1dca8b06c419 100644 --- a/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-two/src/main/java/com/demo/common/two/model/SharedModelTwo.java +++ b/integration-tests/gradle/src/main/resources/basic-multi-module-project-test-setup/common-two/src/main/java/com/demo/common/two/model/SharedModelTwo.java @@ -2,9 +2,9 @@ import com.demo.common.base.model.BaseEntity; -import javax.annotation.Priority; -import javax.enterprise.inject.Alternative; -import javax.inject.Singleton; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Singleton; @Singleton public class SharedModelTwo implements BaseEntity { diff --git a/integration-tests/gradle/src/main/resources/basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/build.gradle b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/build.gradle index f1918d0e21491..00c07225c882a 100644 --- a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/build.gradle +++ b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/build.gradle @@ -27,8 +27,8 @@ group 'org.acme' version '1.0.0-SNAPSHOT' allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/main/java/org/acme/ExampleResource.java index a4df5d8d739aa..681d44e012b3c 100644 --- a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { @@ -14,4 +14,4 @@ public class ExampleResource { public String hello() { return "Hello from Test"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/test/kotlin/org/acme/test/TestExampleResource.kt b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/test/kotlin/org/acme/test/TestExampleResource.kt index 83d18985d4fd4..afd349a1ca1ff 100644 --- a/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/test/kotlin/org/acme/test/TestExampleResource.kt +++ b/integration-tests/gradle/src/main/resources/bean-in-testsources-project/src/test/kotlin/org/acme/test/TestExampleResource.kt @@ -1,9 +1,9 @@ package org.acme.test -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("/test-resources") class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/build-configuration/with-application-properties/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/build-configuration/with-application-properties/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/build-configuration/with-application-properties/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/build-configuration/with-application-properties/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/build-configuration/with-build-configuration/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/build-configuration/with-build-configuration/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/build-configuration/with-build-configuration/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/build-configuration/with-build-configuration/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/build-configuration/without-configuration/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/build-configuration/without-configuration/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/build-configuration/without-configuration/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/build-configuration/without-configuration/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/HelloResource.java b/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/HelloResource.java index 6a80730c76ac6..8d13680c2d1cf 100644 --- a/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/HelloResource.java @@ -1,10 +1,10 @@ package io.playground; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { @@ -17,4 +17,4 @@ public class HelloResource { public String hello() { return "hello " + myData.getMessage(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/MyDataProducer.java b/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/MyDataProducer.java index ed89e60c1720a..2832664cd9b62 100644 --- a/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/MyDataProducer.java +++ b/integration-tests/gradle/src/main/resources/compile-only-lombok/src/main/java/io/playground/MyDataProducer.java @@ -1,7 +1,7 @@ package io.playground; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; @Singleton public class MyDataProducer { diff --git a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/Product.java b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/Product.java index df2c4cb2cc3ad..c712bf9fa6b4f 100644 --- a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/Product.java +++ b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/Product.java @@ -1,9 +1,9 @@ package org.acme.gradle.multi.dao; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.NamedQuery; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "Product.findAll", query = "SELECT p FROM Product p ORDER BY p.name") diff --git a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/ProductService.java b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/ProductService.java index 11e56c22ded60..b01ccaea1d9bc 100644 --- a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/ProductService.java +++ b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/ProductService.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; @ApplicationScoped public class ProductService { diff --git a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-rest/src/main/java/org/acme/gradle/multi/rest/ProductResource.java b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-rest/src/main/java/org/acme/gradle/multi/rest/ProductResource.java index 46e6bfa31d142..25880ed3cba05 100644 --- a/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-rest/src/main/java/org/acme/gradle/multi/rest/ProductResource.java +++ b/integration-tests/gradle/src/main/resources/composite-project-with-dependencies/gradle-rest/src/main/java/org/acme/gradle/multi/rest/ProductResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.gradle.multi.dao.Product; import org.acme.gradle.multi.dao.ProductService; @@ -22,4 +22,4 @@ public class ProductResource { public List list() { return productService.getProducts(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts index 065ace8968752..bb69c02f58958 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts @@ -38,8 +38,8 @@ java { } allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/AdminResource.kt b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/AdminResource.kt index 735dc2f9b7f75..7ed836b71ea97 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/AdminResource.kt +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/AdminResource.kt @@ -1,9 +1,9 @@ package org.acme import org.acme.api.AdminAPI -import javax.enterprise.context.ApplicationScoped -import javax.ws.rs.core.Response -import javax.ws.rs.core.UriInfo +import jakarta.enterprise.context.ApplicationScoped +import jakarta.ws.rs.core.Response +import jakarta.ws.rs.core.UriInfo @ApplicationScoped diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/api/API.kt b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/api/API.kt index 65df7a54c03d2..cc34c773b8738 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/api/API.kt +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/src/main/kotlin/org/acme/api/API.kt @@ -1,10 +1,10 @@ package org.acme.api -import javax.validation.Valid -import javax.ws.rs.* -import javax.ws.rs.core.Context -import javax.ws.rs.core.Response -import javax.ws.rs.core.UriInfo +import jakarta.validation.Valid +import jakarta.ws.rs.* +import jakarta.ws.rs.core.Context +import jakarta.ws.rs.core.Response +import jakarta.ws.rs.core.UriInfo @Path(value = "/admin/api/v1.0") @Produces(value = ["application/json"]) diff --git a/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-exclude/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-exclude/src/main/java/org/acme/HelloResource.java index cdfa5a40b1f83..9b81f9385f088 100644 --- a/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-exclude/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-exclude/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-explicit-import/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-explicit-import/src/main/java/org/acme/HelloResource.java index cdfa5a40b1f83..9b81f9385f088 100644 --- a/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-explicit-import/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/conditional-test-project/runner-with-explicit-import/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/conditional-test-project/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/conditional-test-project/runner/src/main/java/org/acme/HelloResource.java index cdfa5a40b1f83..9b81f9385f088 100644 --- a/integration-tests/gradle/src/main/resources/conditional-test-project/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/conditional-test-project/runner/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/conditional-test-project/scenario-two/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/conditional-test-project/scenario-two/src/main/java/org/acme/HelloResource.java index cdfa5a40b1f83..9b81f9385f088 100644 --- a/integration-tests/gradle/src/main/resources/conditional-test-project/scenario-two/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/conditional-test-project/scenario-two/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/configuration-inheritance-project/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/configuration-inheritance-project/src/main/java/org/acme/quarkus/sample/HelloResource.java index e3d045c22fe83..645014ecc74cd 100644 --- a/integration-tests/gradle/src/main/resources/configuration-inheritance-project/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/configuration-inheritance-project/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { @@ -14,4 +14,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/custom-config-java-module/src/main/java/org/acme/WorkingDirResource.java b/integration-tests/gradle/src/main/resources/custom-config-java-module/src/main/java/org/acme/WorkingDirResource.java index 4d4c2b7f18e88..95dd884a91613 100644 --- a/integration-tests/gradle/src/main/resources/custom-config-java-module/src/main/java/org/acme/WorkingDirResource.java +++ b/integration-tests/gradle/src/main/resources/custom-config-java-module/src/main/java/org/acme/WorkingDirResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/working-dir") public class WorkingDirResource { @@ -13,4 +13,4 @@ public class WorkingDirResource { public String hello() { return java.nio.file.Paths.get(".").toAbsolutePath().toString(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/custom-filesystem-provider/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/custom-filesystem-provider/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index ca1cb06998ba3..a7fce2a4ffbe9 100644 --- a/integration-tests/gradle/src/main/resources/custom-filesystem-provider/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/custom-filesystem-provider/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") @@ -15,4 +15,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/custom-filesystem-provider/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/custom-filesystem-provider/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/custom-filesystem-provider/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/custom-filesystem-provider/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/custom-java-native-sourceset-module/src/main/java/org/acme/HelloResource.java b/integration-tests/gradle/src/main/resources/custom-java-native-sourceset-module/src/main/java/org/acme/HelloResource.java index 89804c62b5e24..fbb27b57b28fc 100644 --- a/integration-tests/gradle/src/main/resources/custom-java-native-sourceset-module/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/custom-java-native-sourceset-module/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { @@ -13,4 +13,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/custom-working-dir-app/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/custom-working-dir-app/src/main/java/org/acme/quarkus/sample/HelloResource.java index 683bcd110f6e9..5e3963793b04a 100644 --- a/integration-tests/gradle/src/main/resources/custom-working-dir-app/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/custom-working-dir-app/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,9 +1,9 @@ package org.acme.quarkus.sample; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -18,4 +18,4 @@ public class HelloResource { public String hello() { return message; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/dependency-constraints-project/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/dependency-constraints-project/src/main/java/org/acme/quarkus/sample/HelloResource.java index e3d045c22fe83..645014ecc74cd 100644 --- a/integration-tests/gradle/src/main/resources/dependency-constraints-project/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/dependency-constraints-project/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { @@ -14,4 +14,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/dotenv-config-java-module/src/main/java/org/acme/GreetingResource.java b/integration-tests/gradle/src/main/resources/dotenv-config-java-module/src/main/java/org/acme/GreetingResource.java index 6ac027d26dc65..f5340c3b81447 100644 --- a/integration-tests/gradle/src/main/resources/dotenv-config-java-module/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/gradle/src/main/resources/dotenv-config-java-module/src/main/java/org/acme/GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/gradle/src/main/resources/extensions/simple-extension/runtime/src/main/java/org/acme/extension/MyExtensionServlet.java b/integration-tests/gradle/src/main/resources/extensions/simple-extension/runtime/src/main/java/org/acme/extension/MyExtensionServlet.java index 9938bb037f255..523a6f0d91222 100644 --- a/integration-tests/gradle/src/main/resources/extensions/simple-extension/runtime/src/main/java/org/acme/extension/MyExtensionServlet.java +++ b/integration-tests/gradle/src/main/resources/extensions/simple-extension/runtime/src/main/java/org/acme/extension/MyExtensionServlet.java @@ -1,9 +1,9 @@ package org.acme.extension; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import java.io.IOException; @WebServlet diff --git a/integration-tests/gradle/src/main/resources/grpc-include-project/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/grpc-include-project/src/main/java/org/acme/quarkus/sample/HelloResource.java index 140a8a6b9d6f0..e5c864ff6be0e 100644 --- a/integration-tests/gradle/src/main/resources/grpc-include-project/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/grpc-include-project/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.example.HelloMsg; @@ -18,4 +18,4 @@ public String hello() { // return a thing from proto file (for devmode test) return "hello " + number; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/grpc-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/grpc-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 9f2ed900a48d8..ef4ad4d067d2e 100644 --- a/integration-tests/gradle/src/main/resources/grpc-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/grpc-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import devmodetest.v1.Devmodetest; @@ -23,4 +23,4 @@ public String hello() { // return a thing from proto file (for devmode test) return "hello " + number; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/grpc-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/grpc-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/grpc-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/grpc-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/implementation-files/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/implementation-files/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/implementation-files/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/implementation-files/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/implementation-files/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/implementation-files/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/implementation-files/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/implementation-files/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/main/java/org/acme/ExampleResource.java index 02f4f004570f4..1831319034d72 100644 --- a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/test/java/org/acme/ExampleResourceTest.java b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/test/java/org/acme/ExampleResourceTest.java index 0da2d3773c53b..9e48573de4616 100644 --- a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/test/java/org/acme/ExampleResourceTest.java +++ b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/application/src/test/java/org/acme/ExampleResourceTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.common.QuarkusTestResource; @@ -28,4 +28,4 @@ public void testHelloEndpoint() { assertEquals("test", libraryBean.getValue()); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/main/java/org/acme/LibraryBean.java b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/main/java/org/acme/LibraryBean.java index c91d351a56f0d..4db74274e4a1b 100644 --- a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/main/java/org/acme/LibraryBean.java +++ b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/main/java/org/acme/LibraryBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class LibraryBean implements LibraryBeanInterface { diff --git a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestBean.java b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestBean.java index 7bed6eaeac600..86cd576b9e696 100644 --- a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestBean.java +++ b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestBean.java @@ -1,7 +1,7 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class LibraryTestBean implements LibraryBeanInterface { diff --git a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestDepBean.java b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestDepBean.java index 25aee2b5dd033..45dc1eeff1c3d 100644 --- a/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestDepBean.java +++ b/integration-tests/gradle/src/main/resources/inject-bean-from-test-config/library/src/test/java/org/acme/LibraryTestDepBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class LibraryTestDepBean { diff --git a/integration-tests/gradle/src/main/resources/inject-quarkus-app-properties/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/inject-quarkus-app-properties/src/main/java/org/acme/ExampleResource.java index d01ef472250e2..6c5d17ce93457 100644 --- a/integration-tests/gradle/src/main/resources/inject-quarkus-app-properties/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/inject-quarkus-app-properties/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -21,4 +21,4 @@ public class ExampleResource { public String hello() { return appName + " " + appVersion; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/it-test-basic-project/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/it-test-basic-project/src/main/java/org/acme/ExampleResource.java index dfb8c96404500..e57af7ebdd1f8 100644 --- a/integration-tests/gradle/src/main/resources/it-test-basic-project/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/it-test-basic-project/src/main/java/org/acme/ExampleResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class ExampleResource { @@ -14,4 +14,4 @@ public class ExampleResource { public String hello() { return "Hello World"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/jandex-basic-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/gradle/src/main/resources/kotlin-grpc-project/build.gradle b/integration-tests/gradle/src/main/resources/kotlin-grpc-project/build.gradle index cd1ce8f44ed0d..cba597a34e794 100644 --- a/integration-tests/gradle/src/main/resources/kotlin-grpc-project/build.gradle +++ b/integration-tests/gradle/src/main/resources/kotlin-grpc-project/build.gradle @@ -29,8 +29,8 @@ group 'org.acme' version '1.0.0-SNAPSHOT' allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/integration-tests/gradle/src/main/resources/kotlin-grpc-project/src/main/kotlin/org/acme/ExampleResource.kt b/integration-tests/gradle/src/main/resources/kotlin-grpc-project/src/main/kotlin/org/acme/ExampleResource.kt index 00c3c4f2a15c0..e1ee93710f419 100644 --- a/integration-tests/gradle/src/main/resources/kotlin-grpc-project/src/main/kotlin/org/acme/ExampleResource.kt +++ b/integration-tests/gradle/src/main/resources/kotlin-grpc-project/src/main/kotlin/org/acme/ExampleResource.kt @@ -1,9 +1,9 @@ package org.acme -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 import io.quarkus.example.HelloMsg diff --git a/integration-tests/gradle/src/main/resources/list-extension-single-module/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/list-extension-single-module/src/main/java/org/acme/ExampleResource.java index d01ef472250e2..6c5d17ce93457 100644 --- a/integration-tests/gradle/src/main/resources/list-extension-single-module/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/list-extension-single-module/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -21,4 +21,4 @@ public class ExampleResource { public String hello() { return appName + " " + appVersion; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/multi-module-included-build/app/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/multi-module-included-build/app/src/main/java/org/acme/ExampleResource.java index 4a05673847be1..1a06a08fd6898 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-included-build/app/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/multi-module-included-build/app/src/main/java/org/acme/ExampleResource.java @@ -2,11 +2,11 @@ import org.acme.lib.LibService; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { @@ -19,4 +19,4 @@ public class ExampleResource { public String hello() { return "foo " + libService.bar(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/multi-module-included-build/external-library/src/main/java/org/acme/lib/LibService.java b/integration-tests/gradle/src/main/resources/multi-module-included-build/external-library/src/main/java/org/acme/lib/LibService.java index 5f872ecd6a32f..c1713c632ef0a 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-included-build/external-library/src/main/java/org/acme/lib/LibService.java +++ b/integration-tests/gradle/src/main/resources/multi-module-included-build/external-library/src/main/java/org/acme/lib/LibService.java @@ -1,6 +1,6 @@ package org.acme.lib; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class LibService { diff --git a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/build.gradle b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/build.gradle index 709e93ba9f217..41271ff4b8d01 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/build.gradle +++ b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/build.gradle @@ -11,8 +11,8 @@ dependencies { } allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/domain/src/main/kotlin/com/example/quarkusmm/domain/CustomerServiceImpl.kt b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/domain/src/main/kotlin/com/example/quarkusmm/domain/CustomerServiceImpl.kt index 5e83e3344a77b..bc4e3777ec75a 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/domain/src/main/kotlin/com/example/quarkusmm/domain/CustomerServiceImpl.kt +++ b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/domain/src/main/kotlin/com/example/quarkusmm/domain/CustomerServiceImpl.kt @@ -1,7 +1,7 @@ package com.example.quarkusmm.domain import com.example.quarkusmm.port.CustomerService -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class CustomerServiceImpl : CustomerService { diff --git a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/src/main/kotlin/com/example/quarkusmm/ExampleResource.kt b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/src/main/kotlin/com/example/quarkusmm/ExampleResource.kt index db7ae49bbeaab..2ab9c5ffff058 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/src/main/kotlin/com/example/quarkusmm/ExampleResource.kt +++ b/integration-tests/gradle/src/main/resources/multi-module-kotlin-project/web/src/main/kotlin/com/example/quarkusmm/ExampleResource.kt @@ -1,11 +1,11 @@ package com.example.quarkusmm import com.example.quarkusmm.port.CustomerService -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType @Path("/hello") class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/multi-module-named-injection/common/src/main/java/org/acme/common/health/HealthStatusProducer.java b/integration-tests/gradle/src/main/resources/multi-module-named-injection/common/src/main/java/org/acme/common/health/HealthStatusProducer.java index a1b9db0155ba8..ec36454b9203c 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-named-injection/common/src/main/java/org/acme/common/health/HealthStatusProducer.java +++ b/integration-tests/gradle/src/main/resources/multi-module-named-injection/common/src/main/java/org/acme/common/health/HealthStatusProducer.java @@ -1,8 +1,8 @@ package org.acme.common.health; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; @ApplicationScoped public class HealthStatusProducer { diff --git a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/ExampleResource.java b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/ExampleResource.java index 302703b7559a1..a34bd3ae98b67 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme.app; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service1.java b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service1.java index 04720a883bb90..b4137b1a72a07 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service1.java +++ b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service1.java @@ -3,9 +3,9 @@ import org.acme.common.health.HealthStatus; import org.acme.common.health.HealthStatusProducer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; @ApplicationScoped public class Service1 { diff --git a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service2.java b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service2.java index b4aed632d56dc..ba06039d069b4 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service2.java +++ b/integration-tests/gradle/src/main/resources/multi-module-named-injection/quarkus/src/main/java/org/acme/app/Service2.java @@ -3,9 +3,9 @@ import org.acme.common.health.HealthStatus; import org.acme.common.health.HealthStatusProducer; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; @ApplicationScoped public class Service2 { diff --git a/integration-tests/gradle/src/main/resources/multi-module-parent-dependency/app/src/main/java/io/quarkus/reproducer/ExampleResource.java b/integration-tests/gradle/src/main/resources/multi-module-parent-dependency/app/src/main/java/io/quarkus/reproducer/ExampleResource.java index 4886d12bc53a1..8c399680dd69b 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-parent-dependency/app/src/main/java/io/quarkus/reproducer/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/multi-module-parent-dependency/app/src/main/java/io/quarkus/reproducer/ExampleResource.java @@ -1,9 +1,9 @@ package io.quarkus.reproducer; -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("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/multi-module-with-empty-module/modB/src/main/java/org/acme/GreetingResource.java b/integration-tests/gradle/src/main/resources/multi-module-with-empty-module/modB/src/main/java/org/acme/GreetingResource.java index 979ba0554baaa..e5f5b6ca5694b 100644 --- a/integration-tests/gradle/src/main/resources/multi-module-with-empty-module/modB/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/gradle/src/main/resources/multi-module-with-empty-module/modB/src/main/java/org/acme/GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "foo bar"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/multi-source-project/build.gradle b/integration-tests/gradle/src/main/resources/multi-source-project/build.gradle index 194197f15b314..913eeee87ee60 100644 --- a/integration-tests/gradle/src/main/resources/multi-source-project/build.gradle +++ b/integration-tests/gradle/src/main/resources/multi-source-project/build.gradle @@ -28,8 +28,8 @@ group 'org.acme' version '1.0.0-SNAPSHOT' allOpen { - annotation("javax.ws.rs.Path") - annotation("javax.enterprise.context.ApplicationScoped") + annotation("jakarta.ws.rs.Path") + annotation("jakarta.enterprise.context.ApplicationScoped") annotation("io.quarkus.test.junit.QuarkusTest") } diff --git a/integration-tests/gradle/src/main/resources/multi-source-project/src/main/java/org/acme/service/SimpleService.java b/integration-tests/gradle/src/main/resources/multi-source-project/src/main/java/org/acme/service/SimpleService.java index 433b9aeb179ec..b8df650a668c1 100644 --- a/integration-tests/gradle/src/main/resources/multi-source-project/src/main/java/org/acme/service/SimpleService.java +++ b/integration-tests/gradle/src/main/resources/multi-source-project/src/main/java/org/acme/service/SimpleService.java @@ -2,7 +2,7 @@ import org.jetbrains.annotations.NotNull; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SimpleService { diff --git a/integration-tests/gradle/src/main/resources/multi-source-project/src/main/kotlin/org/acme/ExampleResource.kt b/integration-tests/gradle/src/main/resources/multi-source-project/src/main/kotlin/org/acme/ExampleResource.kt index c488bc2a37e42..6521244b6a46a 100644 --- a/integration-tests/gradle/src/main/resources/multi-source-project/src/main/kotlin/org/acme/ExampleResource.kt +++ b/integration-tests/gradle/src/main/resources/multi-source-project/src/main/kotlin/org/acme/ExampleResource.kt @@ -1,10 +1,10 @@ package org.acme -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType import org.acme.service.SimpleService diff --git a/integration-tests/gradle/src/main/resources/mutable-jar/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/mutable-jar/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/mutable-jar/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/mutable-jar/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/ExampleResource.java index 2193180639cb9..cdc31a7b81860 100644 --- a/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/ExampleResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/Project.java b/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/Project.java index c8740c90b3d9d..b01c6ddb2d4d7 100644 --- a/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/Project.java +++ b/integration-tests/gradle/src/main/resources/quarkus-dev-dependency/src/main/java/org/acme/Project.java @@ -1,13 +1,13 @@ package org.acme; -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; import io.quarkus.hibernate.orm.panache.PanacheEntity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Project extends PanacheEntity { diff --git a/integration-tests/gradle/src/main/resources/spring-dependency-plugin-project/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/spring-dependency-plugin-project/src/main/java/org/acme/ExampleResource.java index 68cdb11d9e67d..413f41422ff5d 100644 --- a/integration-tests/gradle/src/main/resources/spring-dependency-plugin-project/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/spring-dependency-plugin-project/src/main/java/org/acme/ExampleResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class ExampleResource { diff --git a/integration-tests/gradle/src/main/resources/test-fixtures-module/src/main/java/org.my.group/MyResource.java b/integration-tests/gradle/src/main/resources/test-fixtures-module/src/main/java/org.my.group/MyResource.java index acdf0d34ab5bb..7c2bd7fa9fccf 100644 --- a/integration-tests/gradle/src/main/resources/test-fixtures-module/src/main/java/org.my.group/MyResource.java +++ b/integration-tests/gradle/src/main/resources/test-fixtures-module/src/main/java/org.my.group/MyResource.java @@ -1,9 +1,9 @@ package org.my.group; -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("/hello") public class MyResource { @@ -13,4 +13,4 @@ public class MyResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-resources-in-build-steps/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/test-resources-in-build-steps/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index e3d045c22fe83..645014ecc74cd 100644 --- a/integration-tests/gradle/src/main/resources/test-resources-in-build-steps/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/test-resources-in-build-steps/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { @@ -14,4 +14,4 @@ public class HelloResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/ExampleResource.java index 65b2e2dedb582..35f468a85b354 100644 --- a/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class ExampleResource { @@ -17,4 +17,4 @@ public class ExampleResource { public String hello() { return config.message; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/TestOnlyResource.java b/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/TestOnlyResource.java index f6a5b6aeabba9..228eb76086464 100644 --- a/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/TestOnlyResource.java +++ b/integration-tests/gradle/src/main/resources/test-resources-vs-main-resources/src/main/java/org/acme/TestOnlyResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -19,4 +19,4 @@ public class TestOnlyResource { public String hello() { return testOnly; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-that-fast-jar-format-works/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/test-that-fast-jar-format-works/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/test-that-fast-jar-format-works/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/test-that-fast-jar-format-works/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-that-legacy-jar-format-works/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/test-that-legacy-jar-format-works/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/test-that-legacy-jar-format-works/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/test-that-legacy-jar-format-works/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/test-uber-jar-format-works/src/main/java/org/acme/ExampleResource.java b/integration-tests/gradle/src/main/resources/test-uber-jar-format-works/src/main/java/org/acme/ExampleResource.java index 2cd1720641843..5003ae0339598 100644 --- a/integration-tests/gradle/src/main/resources/test-uber-jar-format-works/src/main/java/org/acme/ExampleResource.java +++ b/integration-tests/gradle/src/main/resources/test-uber-jar-format-works/src/main/java/org/acme/ExampleResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; @@ -16,4 +16,4 @@ public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java index 092d251dc1ebb..1d723a4410ac0 100644 --- a/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/application/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.common.CommonBean; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "hello " + common.getName(); } -} \ No newline at end of file +} diff --git a/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java b/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java index ace88a5b0e415..d7b2f0a5501eb 100644 --- a/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java +++ b/integration-tests/gradle/src/main/resources/uber-jar-for-multi-module-project/common/src/main/java/org/acme/common/CommonBean.java @@ -1,6 +1,6 @@ package org.acme.common; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class CommonBean { diff --git a/integration-tests/grpc-health/src/test/java/io/quarkus/grpc/health/MicroProfileHealthEnabledTest.java b/integration-tests/grpc-health/src/test/java/io/quarkus/grpc/health/MicroProfileHealthEnabledTest.java index e3978a085556b..597e5f4ef8d43 100644 --- a/integration-tests/grpc-health/src/test/java/io/quarkus/grpc/health/MicroProfileHealthEnabledTest.java +++ b/integration-tests/grpc-health/src/test/java/io/quarkus/grpc/health/MicroProfileHealthEnabledTest.java @@ -11,8 +11,8 @@ import java.util.concurrent.TimeUnit; import java.util.function.Function; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.hamcrest.Matchers; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ContextChecker.java b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ContextChecker.java index 3ab8366bd47b0..979506cdff658 100644 --- a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ContextChecker.java +++ b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ContextChecker.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class ContextChecker { diff --git a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/Item.java b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/Item.java index 667250ca300cc..17e4e1d50558f 100644 --- a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/Item.java +++ b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/Item.java @@ -1,6 +1,6 @@ package com.example.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java index 99a786917ac14..4ef14e229842d 100644 --- a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java +++ b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.annotation.PostConstruct; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/RequestScopeBean.java b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/RequestScopeBean.java index 7391f27d9bac9..7fbce3e2b48f0 100644 --- a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/RequestScopeBean.java +++ b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/RequestScopeBean.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; import io.smallrye.common.vertx.ContextLocals; diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ContextChecker.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ContextChecker.java index 44f4e121e7124..23f083071e29b 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ContextChecker.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ContextChecker.java @@ -3,8 +3,8 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @ApplicationScoped public class ContextChecker { diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/Item.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/Item.java index 3c8d49b654313..ff2e1faf76461 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/Item.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/Item.java @@ -1,8 +1,8 @@ package com.example.grpc.hibernate; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity(name = "Item") public class Item { @@ -19,4 +19,4 @@ public String toString() { ", text='" + text + '\'' + '}'; } -} \ No newline at end of file +} diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ItemDao.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ItemDao.java index c3b63700cd91d..db4dcf9717099 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ItemDao.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/ItemDao.java @@ -1,9 +1,9 @@ package com.example.grpc.hibernate; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; @ApplicationScoped public class ItemDao { diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RawTestService.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RawTestService.java index 406675b93728d..35f7e26fe8cca 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RawTestService.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RawTestService.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logging.Logger; diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RequestScopeBean.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RequestScopeBean.java index 7666a7868d7d6..67343bb53fc71 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RequestScopeBean.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/RequestScopeBean.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.RequestScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class RequestScopeBean { diff --git a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/TestService.java b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/TestService.java index b765f59a2ec69..9fbb71473c879 100644 --- a/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/TestService.java +++ b/integration-tests/grpc-hibernate/src/main/java/com/example/grpc/hibernate/TestService.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import org.jboss.logging.Logger; diff --git a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderClientInterceptor.java b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderClientInterceptor.java index abf1d9e231120..c6dcea58ef74f 100644 --- a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderClientInterceptor.java +++ b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderClientInterceptor.java @@ -2,7 +2,7 @@ import java.util.logging.Logger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderServerInterceptor.java b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderServerInterceptor.java index e04db0ea0e080..82bb2ed772852 100644 --- a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderServerInterceptor.java +++ b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HeaderServerInterceptor.java @@ -2,7 +2,7 @@ import java.util.logging.Logger; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import com.google.common.annotations.VisibleForTesting; diff --git a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloExceptionHandlerProvider.java b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloExceptionHandlerProvider.java index 29728b52e5d95..ab7d87e42788c 100644 --- a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloExceptionHandlerProvider.java +++ b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloExceptionHandlerProvider.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.interceptors; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloWorldEndpoint.java b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloWorldEndpoint.java index f29b8f2530552..45a7e12e70ca3 100644 --- a/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloWorldEndpoint.java +++ b/integration-tests/grpc-interceptors/src/main/java/io/quarkus/grpc/examples/interceptors/HelloWorldEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.grpc.examples.interceptors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-interceptors/src/test/java/io/quarkus/grpc/example/interceptors/HelloWorldServiceVertxTest.java b/integration-tests/grpc-interceptors/src/test/java/io/quarkus/grpc/example/interceptors/HelloWorldServiceVertxTest.java index 5d7ff3402ae5a..7665e277b2412 100644 --- a/integration-tests/grpc-interceptors/src/test/java/io/quarkus/grpc/example/interceptors/HelloWorldServiceVertxTest.java +++ b/integration-tests/grpc-interceptors/src/test/java/io/quarkus/grpc/example/interceptors/HelloWorldServiceVertxTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.example.interceptors; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-mutual-auth/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java b/integration-tests/grpc-mutual-auth/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java index 7db3cfbd4b4d5..34a6038954b0a 100644 --- a/integration-tests/grpc-mutual-auth/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java +++ b/integration-tests/grpc-mutual-auth/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.examples.hello; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsEndpointTest.java b/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsEndpointTest.java index a390b602c10cd..2bdd006abdedc 100644 --- a/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsEndpointTest.java +++ b/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsEndpointTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Disabled; diff --git a/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsServiceTest.java b/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsServiceTest.java index f211a3aa3c8ed..6ad308b2db07b 100644 --- a/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsServiceTest.java +++ b/integration-tests/grpc-mutual-auth/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldMutualTlsServiceTest.java @@ -2,7 +2,7 @@ import java.io.InputStream; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; diff --git a/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HeaderCollectingInterceptor.java b/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HeaderCollectingInterceptor.java index 2cc764be04501..2af85b4c0b612 100644 --- a/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HeaderCollectingInterceptor.java +++ b/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HeaderCollectingInterceptor.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.CallOptions; import io.grpc.Channel; diff --git a/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java b/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java index f20b1db3e23a3..42ef2d5d38c19 100644 --- a/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java +++ b/integration-tests/grpc-plain-text-gzip/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java @@ -1,10 +1,10 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-plain-text-gzip/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java b/integration-tests/grpc-plain-text-gzip/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java index f614b842e8ab9..119965b40ef24 100644 --- a/integration-tests/grpc-plain-text-gzip/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java +++ b/integration-tests/grpc-plain-text-gzip/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java b/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java index c7d566b4a2807..ee57fe8db2b80 100644 --- a/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java +++ b/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java @@ -6,14 +6,14 @@ import java.util.Map; -import javax.inject.Inject; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import examples.Greeter; import examples.GreeterGrpc; diff --git a/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/IncomingInterceptor.java b/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/IncomingInterceptor.java index 6b7f5a626250e..83a235ef080f5 100644 --- a/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/IncomingInterceptor.java +++ b/integration-tests/grpc-plain-text-mutiny/src/main/java/io/quarkus/grpc/examples/hello/IncomingInterceptor.java @@ -5,7 +5,7 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.grpc.Metadata; import io.grpc.ServerCall; diff --git a/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/GrpcMockTest.java b/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/GrpcMockTest.java index 266af61ab131c..468d7fe59d995 100644 --- a/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/GrpcMockTest.java +++ b/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/GrpcMockTest.java @@ -1,7 +1,7 @@ package io.quarkus.grpc.examples.hello; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java b/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java index f3c2e9df7ffd8..38d88beabaf97 100644 --- a/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java +++ b/integration-tests/grpc-plain-text-mutiny/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Disabled; diff --git a/integration-tests/grpc-proto-v2/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java b/integration-tests/grpc-proto-v2/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java index 1e077c7dcf71e..4922f5e81e09e 100644 --- a/integration-tests/grpc-proto-v2/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java +++ b/integration-tests/grpc-proto-v2/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.examples.hello; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-proto-v2/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java b/integration-tests/grpc-proto-v2/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java index f614b842e8ab9..119965b40ef24 100644 --- a/integration-tests/grpc-proto-v2/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java +++ b/integration-tests/grpc-proto-v2/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcCallingResource.java b/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcCallingResource.java index ed8a889460830..6e342afcdaa13 100644 --- a/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcCallingResource.java +++ b/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcCallingResource.java @@ -1,9 +1,9 @@ package io.quarkus.grpc.examples.hello; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import examples.Greeter; import examples.HelloReply; diff --git a/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcServices.java b/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcServices.java index 199ed1dade05d..5ecab65a7fac5 100644 --- a/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcServices.java +++ b/integration-tests/grpc-stork-response-time/src/main/java/io/quarkus/grpc/examples/hello/GrpcServices.java @@ -6,9 +6,9 @@ import java.util.concurrent.ExecutionException; import java.util.function.Supplier; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-streaming/src/main/java/io/quarkus/grpc/example/streaming/StreamingEndpoint.java b/integration-tests/grpc-streaming/src/main/java/io/quarkus/grpc/example/streaming/StreamingEndpoint.java index 5c8e496e28a58..5b2bcc52e2850 100644 --- a/integration-tests/grpc-streaming/src/main/java/io/quarkus/grpc/example/streaming/StreamingEndpoint.java +++ b/integration-tests/grpc-streaming/src/main/java/io/quarkus/grpc/example/streaming/StreamingEndpoint.java @@ -1,10 +1,10 @@ package io.quarkus.grpc.example.streaming; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.grpc.examples.streaming.Empty; import io.grpc.examples.streaming.Item; diff --git a/integration-tests/grpc-streaming/src/test/java/io/quarkus/grpc/example/streaming/VertxStreamingServiceTest.java b/integration-tests/grpc-streaming/src/test/java/io/quarkus/grpc/example/streaming/VertxStreamingServiceTest.java index 5b708c3cc6770..2f49c34e01639 100644 --- a/integration-tests/grpc-streaming/src/test/java/io/quarkus/grpc/example/streaming/VertxStreamingServiceTest.java +++ b/integration-tests/grpc-streaming/src/test/java/io/quarkus/grpc/example/streaming/VertxStreamingServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.example.streaming; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-tls/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java b/integration-tests/grpc-tls/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java index 7db3cfbd4b4d5..34a6038954b0a 100644 --- a/integration-tests/grpc-tls/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java +++ b/integration-tests/grpc-tls/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldTlsEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.examples.hello; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-tls/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldTlsServiceTest.java b/integration-tests/grpc-tls/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldTlsServiceTest.java index 7ed76c01788a5..695568a38d678 100644 --- a/integration-tests/grpc-tls/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldTlsServiceTest.java +++ b/integration-tests/grpc-tls/src/test/java/io/quarkus/grpc/examples/hello/VertxHelloWorldTlsServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-vertx/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldNewEndpoint.java b/integration-tests/grpc-vertx/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldNewEndpoint.java index e8babc54aa55b..e7bc4959a9caa 100644 --- a/integration-tests/grpc-vertx/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldNewEndpoint.java +++ b/integration-tests/grpc-vertx/src/main/java/io/quarkus/grpc/examples/hello/HelloWorldNewEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.grpc.examples.hello; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import examples.GreeterGrpc; import examples.HelloReply; diff --git a/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldN2OServiceTest.java b/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldN2OServiceTest.java index 3926f8ef9ac38..a168b8da36a6d 100644 --- a/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldN2OServiceTest.java +++ b/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldN2OServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.N2OGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldVertxServiceTest.java b/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldVertxServiceTest.java index 26fbf94b45ad2..cc4f2e51b59b6 100644 --- a/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldVertxServiceTest.java +++ b/integration-tests/grpc-vertx/src/test/java/io/quarkus/grpc/examples/hello/HelloWorldVertxServiceTest.java @@ -1,6 +1,6 @@ package io.quarkus.grpc.examples.hello; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.grpc.test.utils.VertxGRPCTestProfile; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/Project.java b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/Project.java index 023933ad3f1d3..748a32c716cdb 100644 --- a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/Project.java +++ b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/Project.java @@ -1,11 +1,11 @@ package io.quarkus.it.envers; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; import org.hibernate.envers.Audited; diff --git a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectApplication.java b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectApplication.java index 406706633bb3b..5bea27e317d82 100644 --- a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectApplication.java +++ b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectApplication.java @@ -1,7 +1,7 @@ package io.quarkus.it.envers; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/jpa-envers-test") public class ProjectApplication extends Application { diff --git a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectResource.java b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectResource.java index 5d1550e89e09e..2a34092009b25 100644 --- a/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectResource.java +++ b/integration-tests/hibernate-orm-envers/src/main/java/io/quarkus/it/envers/ProjectResource.java @@ -1,14 +1,14 @@ package io.quarkus.it.envers; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.envers.AuditReaderFactory; import org.hibernate.envers.query.AuditEntity; diff --git a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Author.java b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Author.java index 952f7062fd7c5..0e8ce19a4ada3 100644 --- a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Author.java +++ b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Author.java @@ -2,7 +2,7 @@ import java.time.LocalDate; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Book.java b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Book.java index 1a636496400c1..0445ecfc9d64f 100644 --- a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Book.java +++ b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/Book.java @@ -1,10 +1,10 @@ package io.quarkus.it.hibertnate.orm.graphql.panache; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.validation.constraints.NotBlank; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.validation.constraints.NotBlank; @Entity public class Book { diff --git a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/BookRepository.java b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/BookRepository.java index 35052b9b0976a..f4b7863253249 100644 --- a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/BookRepository.java +++ b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/BookRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibertnate.orm.graphql.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/GraphQLResource.java b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/GraphQLResource.java index a3e8b1d1a1e31..56533d5641c50 100644 --- a/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/GraphQLResource.java +++ b/integration-tests/hibernate-orm-graphql-panache/src/main/java/io/quarkus/it/hibertnate/orm/graphql/panache/GraphQLResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.Description; import org.eclipse.microprofile.graphql.GraphQLApi; diff --git a/integration-tests/hibernate-orm-graphql-panache/src/test/java/io/quarkus/it/hibertnate/orm/graphql/panache/PayloadCreator.java b/integration-tests/hibernate-orm-graphql-panache/src/test/java/io/quarkus/it/hibertnate/orm/graphql/panache/PayloadCreator.java index 47682edf351ac..0dd50058291b0 100644 --- a/integration-tests/hibernate-orm-graphql-panache/src/test/java/io/quarkus/it/hibertnate/orm/graphql/panache/PayloadCreator.java +++ b/integration-tests/hibernate-orm-graphql-panache/src/test/java/io/quarkus/it/hibertnate/orm/graphql/panache/PayloadCreator.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibertnate.orm.graphql.panache; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; public class PayloadCreator { diff --git a/integration-tests/hibernate-orm-panache-kotlin/pom.xml b/integration-tests/hibernate-orm-panache-kotlin/pom.xml index 4b604856a3010..bbffc72296c1f 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/pom.xml +++ b/integration-tests/hibernate-orm-panache-kotlin/pom.xml @@ -224,7 +224,7 @@ all-open - + diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AccessorEntity.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AccessorEntity.kt index b7b122564d0d3..28f558cf07bf7 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AccessorEntity.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AccessorEntity.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.kotlin -import javax.persistence.Entity -import javax.persistence.Transient +import jakarta.persistence.Entity +import jakarta.persistence.Transient @Entity open class AccessorEntity : GenericEntity() { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Address.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Address.kt index 15f7b66eca9c7..7122d2951e013 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Address.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Address.kt @@ -2,9 +2,9 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanionBase import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase -import javax.persistence.Entity -import javax.persistence.GeneratedValue -import javax.persistence.Id +import jakarta.persistence.Entity +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id @Entity open class Address : PanacheEntityBase { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AddressDao.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AddressDao.kt index f10ac5da7b6e5..af5e4bf2ec608 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AddressDao.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/AddressDao.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheRepositoryBase -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class AddressDao(private val dummyService: DummyService) : PanacheRepositoryBase { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5274EntityRepository.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5274EntityRepository.kt index 9d0ea8e8a5a38..6be41ebf47e6a 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5274EntityRepository.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5274EntityRepository.kt @@ -1,6 +1,6 @@ package io.quarkus.it.panache.kotlin -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class Bug5274EntityRepository : AbstractRepository() diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5885EntityRepository.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5885EntityRepository.kt index 84dfb0cae5a35..577b9c5ebc37e 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5885EntityRepository.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Bug5885EntityRepository.kt @@ -1,6 +1,6 @@ package io.quarkus.it.panache.kotlin -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class Bug5885EntityRepository : Bug5885AbstractRepository() diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Dog.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Dog.kt index 6f2f6a5770eb2..da3aaefd70bc7 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Dog.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Dog.kt @@ -3,10 +3,10 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase -import javax.persistence.Entity -import javax.persistence.GeneratedValue -import javax.persistence.Id -import javax.persistence.ManyToOne +import jakarta.persistence.Entity +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id +import jakarta.persistence.ManyToOne @Entity open class Dog() : PanacheEntityBase { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DogDao.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DogDao.kt index 670e5153bfce0..c0b6d134b1ddb 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DogDao.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DogDao.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheRepositoryBase -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class DogDao : PanacheRepositoryBase diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DummyService.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DummyService.kt index 40b0146b30502..7a6bb427be791 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DummyService.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/DummyService.kt @@ -1,6 +1,6 @@ package io.quarkus.it.panache.kotlin -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped // used only to validate that we can inject CDI beans into Panache repositories written in Kotlin @ApplicationScoped diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/GenericEntity.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/GenericEntity.kt index 54cc789609506..e37791bf53237 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/GenericEntity.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/GenericEntity.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.MappedSuperclass +import jakarta.persistence.MappedSuperclass @MappedSuperclass abstract class GenericEntity : PanacheEntity() { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/JAXBEntity.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/JAXBEntity.kt index a606084a010ea..23ef8c39ca239 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/JAXBEntity.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/JAXBEntity.kt @@ -1,14 +1,14 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Entity -import javax.xml.bind.annotation.XmlAccessType -import javax.xml.bind.annotation.XmlAccessorType -import javax.xml.bind.annotation.XmlAttribute -import javax.xml.bind.annotation.XmlElement -import javax.xml.bind.annotation.XmlElements -import javax.xml.bind.annotation.XmlRootElement -import javax.xml.bind.annotation.XmlTransient +import jakarta.persistence.Entity +import jakarta.xml.bind.annotation.XmlAccessType +import jakarta.xml.bind.annotation.XmlAccessorType +import jakarta.xml.bind.annotation.XmlAttribute +import jakarta.xml.bind.annotation.XmlElement +import jakarta.xml.bind.annotation.XmlElements +import jakarta.xml.bind.annotation.XmlRootElement +import jakarta.xml.bind.annotation.XmlTransient @Entity @XmlRootElement(name = "JAXBEntity") diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Person.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Person.kt index 5b65534854af8..69357581a3113 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Person.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/Person.kt @@ -2,22 +2,22 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity +import jakarta.persistence.CascadeType +import jakarta.persistence.Column +import jakarta.persistence.Entity +import jakarta.persistence.EnumType +import jakarta.persistence.Enumerated +import jakarta.persistence.FetchType +import jakarta.persistence.ManyToOne +import jakarta.persistence.OneToMany +import jakarta.persistence.Transient +import jakarta.xml.bind.annotation.XmlRootElement +import jakarta.xml.bind.annotation.XmlTransient import org.hibernate.annotations.Filter import org.hibernate.annotations.FilterDef import org.hibernate.annotations.FilterDefs import org.hibernate.annotations.Filters import org.hibernate.annotations.ParamDef -import javax.persistence.CascadeType -import javax.persistence.Column -import javax.persistence.Entity -import javax.persistence.EnumType -import javax.persistence.Enumerated -import javax.persistence.FetchType -import javax.persistence.ManyToOne -import javax.persistence.OneToMany -import javax.persistence.Transient -import javax.xml.bind.annotation.XmlRootElement -import javax.xml.bind.annotation.XmlTransient @XmlRootElement @Entity(name = "Person2") diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/PersonRepository.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/PersonRepository.kt index d3f7250972b08..240b0a1cf298d 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/PersonRepository.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/PersonRepository.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.kotlin import io.quarkus.hibernate.orm.panache.kotlin.PanacheRepository import io.quarkus.hibernate.orm.panache.kotlin.runtime.KotlinJpaOperations.Companion.INSTANCE -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class PersonRepository : PanacheRepository { diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/TestEndpoint.kt b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/TestEndpoint.kt index e97f685a1624f..fa1bb50df7c41 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/TestEndpoint.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/kotlin/TestEndpoint.kt @@ -5,6 +5,19 @@ import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.quarkus.panache.common.exception.PanacheQueryException +import jakarta.inject.Inject +import jakarta.persistence.LockModeType +import jakarta.persistence.NoResultException +import jakarta.persistence.NonUniqueResultException +import jakarta.persistence.PersistenceException +import jakarta.transaction.Transactional +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.xml.bind.annotation.XmlAttribute +import jakarta.xml.bind.annotation.XmlElements +import jakarta.xml.bind.annotation.XmlTransient import org.hibernate.engine.spi.SelfDirtinessTracker import org.hibernate.jpa.QueryHints import org.junit.jupiter.api.Assertions @@ -15,19 +28,6 @@ import java.lang.reflect.Method import java.util.UUID import java.util.stream.Collectors import java.util.stream.Stream -import javax.inject.Inject -import javax.persistence.LockModeType -import javax.persistence.NoResultException -import javax.persistence.NonUniqueResultException -import javax.persistence.PersistenceException -import javax.transaction.Transactional -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.xml.bind.annotation.XmlAttribute -import javax.xml.bind.annotation.XmlElements -import javax.xml.bind.annotation.XmlTransient /** * Various tests covering Panache functionality. All tests should work in both standard JVM and in native mode. diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/KotlinPanacheFunctionalityWithInjectTest.kt b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/KotlinPanacheFunctionalityWithInjectTest.kt index bc3585da41c43..98b80d2f2bbd1 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/KotlinPanacheFunctionalityWithInjectTest.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/KotlinPanacheFunctionalityWithInjectTest.kt @@ -3,10 +3,10 @@ package io.quarkus.it.panache import io.quarkus.it.panache.kotlin.Person import io.quarkus.it.panache.kotlin.PersonRepository import io.quarkus.test.junit.QuarkusTest +import jakarta.inject.Inject +import jakarta.transaction.Transactional import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test -import javax.inject.Inject -import javax.transaction.Transactional /** * Test Panache operations running in Quarkus using injected resources diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/MockPersonRepository.kt b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/MockPersonRepository.kt index 8c5cdc87db08e..0dd0d8a2b093b 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/MockPersonRepository.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/MockPersonRepository.kt @@ -1,9 +1,9 @@ package io.quarkus.it.panache import io.quarkus.it.panache.kotlin.PersonRepository -import javax.annotation.Priority -import javax.enterprise.context.ApplicationScoped -import javax.enterprise.inject.Alternative +import jakarta.annotation.Priority +import jakarta.enterprise.context.ApplicationScoped +import jakarta.enterprise.inject.Alternative /** * An alternate implementation of [PersonRepository] to demonstrate that Repository entity type can be retrieved diff --git a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/TestEndpointRunner.kt b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/TestEndpointRunner.kt index 99268af2ed28b..268f2672279dd 100644 --- a/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/TestEndpointRunner.kt +++ b/integration-tests/hibernate-orm-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/TestEndpointRunner.kt @@ -5,13 +5,13 @@ import io.quarkus.it.panache.kotlin.AddressDao import io.quarkus.it.panache.kotlin.Person import io.quarkus.it.panache.kotlin.TestEndpoint import io.quarkus.test.junit.QuarkusTest +import jakarta.inject.Inject +import jakarta.persistence.EntityManager import org.hibernate.internal.SessionImpl import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.fail import java.sql.ResultSet -import javax.inject.Inject -import javax.persistence.EntityManager @QuarkusTest class TestEndpointRunner { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java index b7d1063750b51..5925ada96e057 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AccessorEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.Transient; +import jakarta.persistence.Entity; +import jakarta.persistence.Transient; @Entity public class AccessorEntity extends GenericEntity { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java index e8467494e0b3c..9e4a0552d81cd 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Address.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AddressDao.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AddressDao.java index c39dabb1a9c4b..748552b781735 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AddressDao.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/AddressDao.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Beer.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Beer.java index 52cbe612ffa52..873ee9aadd6b3 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Beer.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Beer.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.transaction.Transactional; +import jakarta.persistence.Entity; +import jakarta.transaction.Transactional; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BeerRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BeerRepository.java index 973e1d20f8b60..a816a582c8f60 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BeerRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BeerRepository.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Book.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Book.java index 0553d9c403e21..a66e82f4cb062 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Book.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Book.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BookDao.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BookDao.java index 7c237ec801610..5cd8f6131e2ab 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BookDao.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/BookDao.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5274EntityRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5274EntityRepository.java index 19a55a5610c4d..e45eb251156d7 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5274EntityRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5274EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bug5274EntityRepository extends AbstractRepository { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5885EntityRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5885EntityRepository.java index be9d686c6adc0..3f16aa62a542c 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5885EntityRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug5885EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bug5885EntityRepository extends Bug5885AbstractRepository { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721Entity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721Entity.java index 2bd82fb8b591c..6f3bd9a4afb48 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721Entity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721Entity.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; @Entity public class Bug7721Entity extends Bug7721EntitySuperClass { diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721EntitySuperClass.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721EntitySuperClass.java index b4ab46b217486..cdfdab400efbd 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721EntitySuperClass.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721EntitySuperClass.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Column; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721OtherEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721OtherEntity.java index cf97f39581843..a63df847ce753 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721OtherEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Bug7721OtherEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Cat.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Cat.java index 312e0fbaccdcc..1c1021d3fc30d 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Cat.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Cat.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/CatOwner.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/CatOwner.java index be528ff381c54..1b2c50222b6b8 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/CatOwner.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/CatOwner.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Dog.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Dog.java index 6962f0d4d908a..f517180e048fd 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Dog.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Dog.java @@ -1,9 +1,9 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DogDao.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DogDao.java index 77ebcc97be3a1..073a6e9832d4c 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DogDao.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DogDao.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateEntity.java index 029da0506d444..86383e2e56464 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.panache.common.Parameters; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateRepository.java index d3bf3aabf5a66..fa780446eadd3 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/DuplicateRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Fruit.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Fruit.java index 6c57754512a6b..b64435f858be2 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Fruit.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java index 5c65b6ce2b6df..66d1840e05d58 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/GenericEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/JAXBEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/JAXBEntity.java index 80783566da025..88f79e4c2c1de 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/JAXBEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/JAXBEntity.java @@ -1,13 +1,13 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.Entity; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/MockablePersonRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/MockablePersonRepository.java index a83ca6dcecaa1..1b1e55e6544b6 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/MockablePersonRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/MockablePersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryEntity.java index 3e11525313c98..05121d2421d06 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "NamedQueryEntity.getAll", query = "from NamedQueryEntity") diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryMappedSuperClass.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryMappedSuperClass.java index 787dccf16f4ae..356118d6a38ad 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryMappedSuperClass.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryMappedSuperClass.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.MappedSuperclass; -import javax.persistence.NamedQuery; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.NamedQuery; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryRepository.java index 4b773f8a78951..f9f8d47b20d8b 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesEntity.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesEntity.java index a9398cba734b6..3d68bbd247dd2 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesEntity.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesRepository.java index f39419dcdf900..6f81290b2c487 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NamedQueryWith2QueriesRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NoPagingTestEndpoint.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NoPagingTestEndpoint.java index c4bc848df0160..d1f6c2af5c03e 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NoPagingTestEndpoint.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/NoPagingTestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * Run a simple, no paged PanacheQueryTest in order to log the generated SQL. diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithCompositeId.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithCompositeId.java index ded253d4994d9..9c56fb443a5a0 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithCompositeId.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithCompositeId.java @@ -3,9 +3,9 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithEmbeddableId.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithEmbeddableId.java index 28d3d869a3ab5..b566107a13838 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithEmbeddableId.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/ObjectWithEmbeddableId.java @@ -3,9 +3,9 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Embeddable; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; +import jakarta.persistence.Embeddable; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PageItem.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PageItem.java index 25208a3a85dae..d252519c32f77 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PageItem.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PageItem.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java index fa05d4d3ba69b..86d255da0e388 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/Person.java @@ -3,19 +3,19 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Transient; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Transient; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; import org.hibernate.annotations.Filter; import org.hibernate.annotations.FilterDef; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PersonRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PersonRepository.java index 805f66f4e3db9..8079899d72e23 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PersonRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/PersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java index 8b74ce145ad59..9e7a871452481 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/TestEndpoint.java @@ -14,19 +14,19 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.inject.Inject; -import javax.persistence.LockModeType; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; -import javax.persistence.PersistenceException; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.inject.Inject; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; +import jakarta.persistence.PersistenceException; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlTransient; import org.hibernate.engine.spi.SelfDirtinessTracker; import org.hibernate.jpa.QueryHints; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/User.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/User.java index 35d34cfb46dbb..c6013403f609d 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/User.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/User.java @@ -1,10 +1,10 @@ package io.quarkus.it.panache; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/UserRepository.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/UserRepository.java index 0f3919211d5ce..efc29128dc198 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/UserRepository.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/UserRepository.java @@ -2,8 +2,8 @@ import java.util.Optional; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/BookResource.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/BookResource.java index 3228b2af75cbc..9852323a15e5c 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/BookResource.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/BookResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.it.panache.Book; import io.quarkus.it.panache.BookDao; diff --git a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/UserResource.java b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/UserResource.java index 9758e67e051f7..0f307f61004cd 100644 --- a/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/UserResource.java +++ b/integration-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/UserResource.java @@ -1,14 +1,14 @@ package io.quarkus.it.panache.resources; -import static javax.ws.rs.core.Response.Status.NOT_FOUND; +import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.it.panache.UserRepository; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/PackagelessCat.java b/integration-tests/hibernate-orm-panache/src/test/java/PackagelessCat.java index 12ee2cbb26f8d..1de0447d00b45 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/PackagelessCat.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/PackagelessCat.java @@ -1,4 +1,4 @@ -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/DuplicateMethodTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/DuplicateMethodTest.java index 96427e8a295e9..f6bb30397318d 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/DuplicateMethodTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/DuplicateMethodTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatCode; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/MockPersonRepository.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/MockPersonRepository.java index b01f84db73618..8fafb7585a474 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/MockPersonRepository.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/MockPersonRepository.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; /** * An alternate implementation of {@link PersonRepository} to demonstrate that Repository entity type can be retrieved diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java index 74bd7aa1c7dd4..92aa37c3dccfe 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java @@ -6,12 +6,12 @@ import java.io.StringWriter; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; -import javax.transaction.Transactional; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; +import jakarta.transaction.Transactional; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheMockingTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheMockingTest.java index 8c0aeb9fa21dc..dc7e3ab03a255 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheMockingTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheMockingTest.java @@ -3,9 +3,9 @@ import java.util.Collections; import java.util.Optional; -import javax.inject.Inject; -import javax.persistence.LockModeType; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.persistence.LockModeType; +import jakarta.ws.rs.WebApplicationException; import org.hibernate.Session; import org.hibernate.query.Query; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestTransactionOnSingleMethodTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestTransactionOnSingleMethodTest.java index 53e8fa750b390..03a6bcc9c5ad7 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestTransactionOnSingleMethodTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TestTransactionOnSingleMethodTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.transaction.Transactional; +import jakarta.transaction.Transactional; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.MethodOrderer.MethodName; diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TransactionalRepositoryTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TransactionalRepositoryTest.java index ff83e310aef86..f72061a3a3a67 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TransactionalRepositoryTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/TransactionalRepositoryTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Author.java b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Author.java index 659d87e9b5edf..7de810fc82299 100644 --- a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Author.java +++ b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Author.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.orm.rest.data.panache; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Book.java b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Book.java index 8a39ac8fb4e33..8fd80eb337852 100644 --- a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Book.java +++ b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/Book.java @@ -1,10 +1,10 @@ package io.quarkus.it.hibernate.orm.rest.data.panache; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.validation.constraints.NotBlank; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.validation.constraints.NotBlank; @Entity public class Book { diff --git a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/BookRepository.java b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/BookRepository.java index 6a50d9474ac28..638a74329f10d 100644 --- a/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/BookRepository.java +++ b/integration-tests/hibernate-orm-rest-data-panache/src/main/java/io/quarkus/it/hibernate/orm/rest/data/panache/BookRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.orm.rest.data.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.orm.panache.PanacheRepository; diff --git a/integration-tests/hibernate-orm-rest-data-panache/src/test/java/io/quarkus/it/hibernate/orm/rest/data/panache/HibernateOrmRestDataPanacheTest.java b/integration-tests/hibernate-orm-rest-data-panache/src/test/java/io/quarkus/it/hibernate/orm/rest/data/panache/HibernateOrmRestDataPanacheTest.java index dfde1ed01c63e..4e926a5cf2d6a 100644 --- a/integration-tests/hibernate-orm-rest-data-panache/src/test/java/io/quarkus/it/hibernate/orm/rest/data/panache/HibernateOrmRestDataPanacheTest.java +++ b/integration-tests/hibernate-orm-rest-data-panache/src/test/java/io/quarkus/it/hibernate/orm/rest/data/panache/HibernateOrmRestDataPanacheTest.java @@ -8,8 +8,8 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java index fcd78dad5d5b9..72003f7382341 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java index 9daf91abe9f26..d25f847c67b84 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java @@ -1,11 +1,11 @@ package io.quarkus.it.hibernate.multitenancy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import io.quarkus.arc.Unremovable; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java index 7ba349289e117..45cf43533c932 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java index 24dc81505cc24..2d5e87ae053fd 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java @@ -1,14 +1,14 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java index a18b61a029f6f..44fb2aba771b0 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java @@ -2,24 +2,24 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java index 0c331ff2595f5..cc87aa657e18b 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java index 48f3919c68d1e..b54162ef3c73f 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java index 3c1f0f7b1995c..fbd349700b542 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java @@ -2,12 +2,12 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table(name = "plane") diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java index 08f7c0db057cb..8f877b3bf675f 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java @@ -8,7 +8,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java index 35e5de6513988..aeb0761160788 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.arrayContaining; import static org.hamcrest.Matchers.is; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java index fcd78dad5d5b9..72003f7382341 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/CustomTenantConnectionResolver.java @@ -5,7 +5,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.inject.Vetoed; +import jakarta.enterprise.inject.Vetoed; import org.hibernate.engine.jdbc.connections.spi.ConnectionProvider; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java index a6d2500f533c2..28aa28ba502eb 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/Producers.java @@ -1,10 +1,10 @@ package io.quarkus.it.hibernate.multitenancy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import io.quarkus.arc.Unremovable; import io.quarkus.hibernate.orm.PersistenceUnitExtension; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java index a45b5605fad5c..424bb8087c0c3 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java index 24dc81505cc24..2d5e87ae053fd 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java @@ -1,14 +1,14 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java index a18b61a029f6f..44fb2aba771b0 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java @@ -2,24 +2,24 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java index 0c331ff2595f5..cc87aa657e18b 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java index 1f561516419b2..3dc77844c3102 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java index 3c1f0f7b1995c..fbd349700b542 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java @@ -2,12 +2,12 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table(name = "plane") diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java index 08f7c0db057cb..8f877b3bf675f 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java @@ -8,7 +8,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java index 35e5de6513988..aeb0761160788 100644 --- a/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java +++ b/integration-tests/hibernate-orm-tenancy/connection-resolver/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.arrayContaining; import static org.hamcrest.Matchers.is; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java index a45b5605fad5c..424bb8087c0c3 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java index 24dc81505cc24..2d5e87ae053fd 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java @@ -1,14 +1,14 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java index a18b61a029f6f..44fb2aba771b0 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java @@ -2,24 +2,24 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java index 0c331ff2595f5..cc87aa657e18b 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java index 1f561516419b2..3dc77844c3102 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java index 3c1f0f7b1995c..fbd349700b542 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java @@ -2,12 +2,12 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table(name = "plane") diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java b/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java index 08f7c0db057cb..8f877b3bf675f 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java @@ -8,7 +8,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java b/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java index 35e5de6513988..aeb0761160788 100644 --- a/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java +++ b/integration-tests/hibernate-orm-tenancy/datasource/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.arrayContaining; import static org.hamcrest.Matchers.is; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java index a45b5605fad5c..424bb8087c0c3 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/CustomTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java index 24dc81505cc24..2d5e87ae053fd 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/Fruit.java @@ -1,14 +1,14 @@ package io.quarkus.it.hibernate.multitenancy.fruit; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java index a18b61a029f6f..44fb2aba771b0 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/fruit/FruitResource.java @@ -2,24 +2,24 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.jboss.logging.Logger; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java index 0c331ff2595f5..cc87aa657e18b 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java index 1f561516419b2..3dc77844c3102 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/InventoryTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.multitenancy.inventory; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java index 3c1f0f7b1995c..fbd349700b542 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/main/java/io/quarkus/it/hibernate/multitenancy/inventory/Plane.java @@ -2,12 +2,12 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table(name = "plane") diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java b/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java index 08f7c0db057cb..8f877b3bf675f 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/fruit/HibernateTenancyFunctionalityTest.java @@ -8,7 +8,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java b/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java index 35e5de6513988..aeb0761160788 100644 --- a/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java +++ b/integration-tests/hibernate-orm-tenancy/schema/src/test/java/io/quarkus/it/hibernate/multitenancy/inventory/HibernateNamedPersistenceUnitTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.arrayContaining; import static org.hamcrest.Matchers.is; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/GuineaPig.java b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/GuineaPig.java index c1b1e76a57a09..a0d95f29bf49d 100644 --- a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/GuineaPig.java +++ b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/GuineaPig.java @@ -2,9 +2,9 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "Pig") @@ -59,4 +59,4 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(name); } -} \ No newline at end of file +} diff --git a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2AlternativeTestEndpoint.java b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2AlternativeTestEndpoint.java index 6c6a4ed1364b8..aff8af60b2140 100644 --- a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2AlternativeTestEndpoint.java +++ b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2AlternativeTestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.db2; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2TestEndpoint.java b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2TestEndpoint.java index 3ca8020f2c8b3..00cb438fd2ac9 100644 --- a/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2TestEndpoint.java +++ b/integration-tests/hibernate-reactive-db2/src/main/java/io/quarkus/it/hibernate/reactive/db2/HibernateReactiveDB2TestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.db2; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/GuineaPig.java b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/GuineaPig.java index d2b45bb57214b..96309df01c236 100644 --- a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/GuineaPig.java +++ b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/GuineaPig.java @@ -2,9 +2,9 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "Pig") @@ -59,4 +59,4 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(name); } -} \ No newline at end of file +} diff --git a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLAlternativeTestEndpoint.java b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLAlternativeTestEndpoint.java index 1a8b7c51377b8..ae2cc3f1aaba2 100644 --- a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLAlternativeTestEndpoint.java +++ b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLAlternativeTestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.mysql; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLTestEndpoint.java b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLTestEndpoint.java index 84a90a6cd4ed8..360af9e0b2b52 100644 --- a/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLTestEndpoint.java +++ b/integration-tests/hibernate-reactive-mysql/src/main/java/io/quarkus/it/hibernate/reactive/mysql/HibernateReactiveMySQLTestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.mysql; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java index e9c44f954f041..9f9cf94e297c2 100644 --- a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java +++ b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java index 7aa0925ae9c23..b42a1fb9cae7f 100644 --- a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java +++ b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.reactive.panache.Panache; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-reactive-panache-kotlin/pom.xml b/integration-tests/hibernate-reactive-panache-kotlin/pom.xml index 76b1439c1afa1..ea4efbb98edb0 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/pom.xml +++ b/integration-tests/hibernate-reactive-panache-kotlin/pom.xml @@ -213,7 +213,7 @@ all-open - + diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Address.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Address.kt index c141dd7071399..7dfc6729c4e42 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Address.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Address.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class Address : PanacheEntity, Comparable

    { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/AddressDao.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/AddressDao.kt index 8a0ba6798268c..9b48dfe6db2ab 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/AddressDao.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/AddressDao.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class AddressDao : PanacheRepository
    diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5274EntityRepository.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5274EntityRepository.kt index a16f53a6de4be..ae17bc869149f 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5274EntityRepository.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5274EntityRepository.kt @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive.kotlin -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug5274EntityRepository : AbstractRepository() diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5885EntityRepository.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5885EntityRepository.kt index 55a1cef63d1a8..701eabbb238e8 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5885EntityRepository.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug5885EntityRepository.kt @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive.kotlin -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug5885EntityRepository : Bug5885AbstractRepository() diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721Entity.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721Entity.kt index c20ccb13884b7..28d6b41cefb40 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721Entity.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721Entity.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive.kotlin -import javax.persistence.Column -import javax.persistence.Entity +import jakarta.persistence.Column +import jakarta.persistence.Entity @Entity class Bug7721Entity : Bug7721EntitySuperClass() { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721EntitySuperClass.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721EntitySuperClass.kt index 5100b866b4d97..b88681a5bbd69 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721EntitySuperClass.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721EntitySuperClass.kt @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Column -import javax.persistence.MappedSuperclass +import jakarta.persistence.Column +import jakarta.persistence.MappedSuperclass @MappedSuperclass open class Bug7721EntitySuperClass : PanacheEntity() { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721OtherEntity.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721OtherEntity.kt index 48b9b3780d407..4fb1bf775e666 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721OtherEntity.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Bug7721OtherEntity.kt @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity +import jakarta.persistence.Entity import java.util.Locale -import javax.persistence.Entity @Entity class Bug7721OtherEntity : PanacheEntity() { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Cat.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Cat.kt index e3ff6574848e7..b253e14856670 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Cat.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Cat.kt @@ -2,8 +2,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity -import javax.persistence.ManyToOne +import jakarta.persistence.Entity +import jakarta.persistence.ManyToOne @Entity class Cat @JvmOverloads constructor( diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/CatOwner.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/CatOwner.kt index 0912b428e93b9..b17f37b023238 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/CatOwner.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/CatOwner.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class CatOwner @JvmOverloads constructor(var name: String? = null) : PanacheEntity() { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Dog.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Dog.kt index c9354758fad32..b14a1a732ff9f 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Dog.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Dog.kt @@ -2,10 +2,10 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanionBase import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntityBase -import javax.persistence.Entity -import javax.persistence.GeneratedValue -import javax.persistence.Id -import javax.persistence.ManyToOne +import jakarta.persistence.Entity +import jakarta.persistence.GeneratedValue +import jakarta.persistence.Id +import jakarta.persistence.ManyToOne @Entity class Dog() : PanacheEntityBase { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/DogDao.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/DogDao.kt index cd5eeb6632a2a..b1161352beb91 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/DogDao.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/DogDao.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheRepositoryBase -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class DogDao : PanacheRepositoryBase diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Fruit.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Fruit.kt index 5f81c7ff5a79a..8cd70426b640e 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Fruit.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Fruit.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class Fruit : PanacheEntity { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryEntity.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryEntity.kt index 54cde3a0b973b..2a89d8b611738 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryEntity.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryEntity.kt @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion -import javax.persistence.Entity -import javax.persistence.NamedQuery +import jakarta.persistence.Entity +import jakarta.persistence.NamedQuery @Entity @NamedQuery(name = "NamedQueryEntity.getAll", query = "from NamedQueryEntity") diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryMappedSuperClass.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryMappedSuperClass.kt index 48301fa69f690..1d6a1a03650d4 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryMappedSuperClass.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryMappedSuperClass.kt @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.MappedSuperclass -import javax.persistence.NamedQuery +import jakarta.persistence.MappedSuperclass +import jakarta.persistence.NamedQuery @MappedSuperclass @NamedQuery(name = "NamedQueryMappedSuperClass.getAll", query = "from NamedQueryEntity") diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryRepository.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryRepository.kt index 00ed1a2f452f6..4d105d1b25432 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryRepository.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class NamedQueryRepository : PanacheRepository diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesEntity.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesEntity.kt index 13bebb5fd4aae..3b21346727a94 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesEntity.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesEntity.kt @@ -2,8 +2,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity -import javax.persistence.NamedQuery +import jakarta.persistence.Entity +import jakarta.persistence.NamedQuery @Entity @NamedQuery(name = "NamedQueryWith2QueriesEntity.getAll1", query = "from NamedQueryWith2QueriesEntity") diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesRepository.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesRepository.kt index 166ed085bc5ac..d50271f096a84 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesRepository.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NamedQueryWith2QueriesRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class NamedQueryWith2QueriesRepository : PanacheRepository diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NoPagingTestEndpoint.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NoPagingTestEndpoint.kt index f6ab1c9db961d..28cc8944cfd8e 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NoPagingTestEndpoint.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/NoPagingTestEndpoint.kt @@ -2,8 +2,8 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.Panache import io.smallrye.mutiny.Uni -import javax.ws.rs.GET -import javax.ws.rs.Path +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path /** * Run a simple, no paged PanacheQueryTest in order to log the generated SQL. diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithCompositeId.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithCompositeId.kt index d04a48dd8135b..3e7ed9c7034d8 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithCompositeId.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithCompositeId.kt @@ -2,10 +2,10 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanionBase import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntityBase +import jakarta.persistence.Entity +import jakarta.persistence.Id +import jakarta.persistence.IdClass import java.io.Serializable -import javax.persistence.Entity -import javax.persistence.Id -import javax.persistence.IdClass @Entity @IdClass(ObjectWithCompositeId.ObjectKey::class) diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithEmbeddableId.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithEmbeddableId.kt index f6afb7f2fc02c..190d0d74ce935 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithEmbeddableId.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/ObjectWithEmbeddableId.kt @@ -2,11 +2,11 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanionBase import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntityBase +import jakarta.persistence.Embeddable +import jakarta.persistence.EmbeddedId +import jakarta.persistence.Entity import java.io.Serializable import java.util.Objects -import javax.persistence.Embeddable -import javax.persistence.EmbeddedId -import javax.persistence.Entity @Entity class ObjectWithEmbeddableId : PanacheEntityBase { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PageItem.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PageItem.kt index c61dc299990bb..3af905c77f056 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PageItem.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PageItem.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheCompanion import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity class PageItem : PanacheEntity() { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Person.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Person.kt index 707d3cc2c836f..fed249637b5c1 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Person.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/Person.kt @@ -6,22 +6,22 @@ import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity import io.quarkus.hibernate.reactive.panache.kotlin.PanacheQuery import io.quarkus.hibernate.reactive.panache.kotlin.runtime.KotlinJpaOperations.Companion.INSTANCE import io.smallrye.mutiny.Uni +import jakarta.persistence.CascadeType +import jakarta.persistence.Column +import jakarta.persistence.Entity +import jakarta.persistence.EnumType +import jakarta.persistence.Enumerated +import jakarta.persistence.FetchType +import jakarta.persistence.ManyToOne +import jakarta.persistence.NamedQueries +import jakarta.persistence.NamedQuery +import jakarta.persistence.OneToMany +import jakarta.persistence.Transient +import jakarta.xml.bind.annotation.XmlRootElement +import jakarta.xml.bind.annotation.XmlTransient import org.hibernate.annotations.Filter import org.hibernate.annotations.FilterDef import org.hibernate.annotations.ParamDef -import javax.persistence.CascadeType -import javax.persistence.Column -import javax.persistence.Entity -import javax.persistence.EnumType -import javax.persistence.Enumerated -import javax.persistence.FetchType -import javax.persistence.ManyToOne -import javax.persistence.NamedQueries -import javax.persistence.NamedQuery -import javax.persistence.OneToMany -import javax.persistence.Transient -import javax.xml.bind.annotation.XmlRootElement -import javax.xml.bind.annotation.XmlTransient @XmlRootElement @NamedQueries( diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PersonRepository.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PersonRepository.kt index 2da80ab1dcfa5..fb5043d4270bb 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PersonRepository.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/PersonRepository.kt @@ -2,7 +2,7 @@ package io.quarkus.it.panache.reactive.kotlin import io.quarkus.hibernate.reactive.panache.kotlin.PanacheRepository import io.smallrye.mutiny.Uni -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class PersonRepository : PanacheRepository { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt index 3baa653361614..f0cfc823de404 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt @@ -12,6 +12,12 @@ import io.quarkus.panache.common.Parameters.with import io.quarkus.panache.common.Sort import io.quarkus.panache.common.exception.PanacheQueryException import io.smallrye.mutiny.Uni +import jakarta.inject.Inject +import jakarta.persistence.LockModeType +import jakarta.persistence.NoResultException +import jakarta.persistence.NonUniqueResultException +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path import org.hibernate.engine.spi.SelfDirtinessTracker import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals @@ -19,12 +25,6 @@ import org.junit.jupiter.api.Assertions.assertFalse import org.junit.jupiter.api.Assertions.assertTrue import java.util.function.Supplier import java.util.stream.Stream -import javax.inject.Inject -import javax.persistence.LockModeType -import javax.persistence.NoResultException -import javax.persistence.NonUniqueResultException -import javax.ws.rs.GET -import javax.ws.rs.Path @Path("test") class TestEndpoint { diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/PackagelessCat.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/PackagelessCat.kt index 888a29f9e573e..72d6018cfd22e 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/PackagelessCat.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/PackagelessCat.kt @@ -1,5 +1,5 @@ import io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity open class PackagelessCat : PanacheEntity() diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt index 33bfe9ba61a94..a327e7222a566 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt @@ -12,6 +12,8 @@ import io.restassured.RestAssured.given import io.restassured.RestAssured.`when` import io.restassured.http.ContentType import io.smallrye.mutiny.Uni +import jakarta.json.bind.JsonbBuilder +import jakarta.persistence.PersistenceException import org.hamcrest.Matchers.`is` import org.hibernate.reactive.mutiny.Mutiny import org.junit.jupiter.api.Assertions @@ -20,8 +22,6 @@ import org.junit.jupiter.api.MethodOrderer import org.junit.jupiter.api.Order import org.junit.jupiter.api.Test import org.junit.jupiter.api.TestMethodOrder -import javax.json.bind.JsonbBuilder -import javax.persistence.PersistenceException import kotlin.time.Duration.Companion.minutes import kotlin.time.toJavaDuration diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AccessorEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AccessorEntity.java index 3515738e2fc39..e9167862e6230 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AccessorEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AccessorEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.Transient; +import jakarta.persistence.Entity; +import jakarta.persistence.Transient; @Entity public class AccessorEntity extends GenericEntity { diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Address.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Address.java index 9b82b52b19611..d1911ed6766d9 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Address.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Address.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AddressDao.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AddressDao.java index 1dc6e9172175f..caef08a2ab0ca 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AddressDao.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/AddressDao.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Beer.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Beer.java index 7d79a8b3d6f96..9c8901a608f45 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Beer.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Beer.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5274EntityRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5274EntityRepository.java index ee7338b415ce1..0b387c6a29ff7 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5274EntityRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5274EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bug5274EntityRepository extends AbstractRepository { diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5885EntityRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5885EntityRepository.java index ce6fb987c0d10..793c584da61ed 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5885EntityRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug5885EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bug5885EntityRepository extends Bug5885AbstractRepository { diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721Entity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721Entity.java index 635ff39bca71d..90f3613340bf6 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721Entity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721Entity.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Entity; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; @Entity public class Bug7721Entity extends Bug7721EntitySuperClass { diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721EntitySuperClass.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721EntitySuperClass.java index e5d991e1c1371..024f57a60e105 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721EntitySuperClass.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721EntitySuperClass.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Column; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721OtherEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721OtherEntity.java index b604bf73800d0..b8871e9746502 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721OtherEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Bug7721OtherEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Cat.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Cat.java index 131c750bcd7ba..a562c873bbcb3 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Cat.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Cat.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/CatOwner.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/CatOwner.java index de49ecd6eca4e..d9dadb7b26100 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/CatOwner.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/CatOwner.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Dog.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Dog.java index 1d385939b314d..9daf869ec3b0d 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Dog.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Dog.java @@ -1,9 +1,9 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DogDao.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DogDao.java index 269c337287a7d..dc6aa7517c032 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DogDao.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DogDao.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepositoryBase; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateEntity.java index 2a342cebae598..20cdd63472394 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; import io.quarkus.panache.common.Parameters; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateRepository.java index 67ac10d1ab825..c65e62e23a6d7 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/DuplicateRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepositoryBase; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Fruit.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Fruit.java index e9c44f954f041..9f9cf94e297c2 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Fruit.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/GenericEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/GenericEntity.java index 9a65589b56f4e..9a03c60d7c22b 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/GenericEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/GenericEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/MockablePersonRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/MockablePersonRepository.java index 0caef64c25583..82b11ad778d32 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/MockablePersonRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/MockablePersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryEntity.java index 5396e275d16dd..1b50c6332e23e 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "NamedQueryEntity.getAll", query = "from NamedQueryEntity") diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryMappedSuperClass.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryMappedSuperClass.java index 11aa2641c4875..8e6dc542eb2aa 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryMappedSuperClass.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryMappedSuperClass.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.MappedSuperclass; -import javax.persistence.NamedQuery; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.NamedQuery; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryRepository.java index 2cebb1bc1dcd0..3570cc2b6e572 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesEntity.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesEntity.java index 5e932b5b1040f..0af0c53f31294 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesEntity.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; -import javax.persistence.NamedQuery; +import jakarta.persistence.Entity; +import jakarta.persistence.NamedQuery; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesRepository.java index 68f9473190ff7..7393597dc8cd1 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NamedQueryWith2QueriesRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NoPagingTestEndpoint.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NoPagingTestEndpoint.java index 8af355617be51..3e44dc877fa66 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NoPagingTestEndpoint.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/NoPagingTestEndpoint.java @@ -1,7 +1,7 @@ package io.quarkus.it.panache.reactive; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.reactive.panache.Panache; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithCompositeId.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithCompositeId.java index 58f3b046b3297..a165684c815ec 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithCompositeId.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithCompositeId.java @@ -3,9 +3,9 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithEmbeddableId.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithEmbeddableId.java index 6c34b2abe72af..d55c200edc282 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithEmbeddableId.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/ObjectWithEmbeddableId.java @@ -3,9 +3,9 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Embeddable; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; +import jakarta.persistence.Embeddable; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PageItem.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PageItem.java index 29e16fce0a978..a4782c5c5dedc 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PageItem.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PageItem.java @@ -1,6 +1,6 @@ package io.quarkus.it.panache.reactive; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Person.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Person.java index 7482650a05f92..ac293dfbaa960 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Person.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/Person.java @@ -5,19 +5,19 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Transient; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQueries; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Transient; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlTransient; import org.hibernate.annotations.Filter; import org.hibernate.annotations.FilterDef; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PersonRepository.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PersonRepository.java index 2edc51fb9d021..5f029dc2ee741 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PersonRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/PersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.PanacheRepository; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java index 7046f84404eb3..e6c54a13562ae 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java @@ -11,12 +11,12 @@ import java.util.function.Supplier; import java.util.stream.Stream; -import javax.inject.Inject; -import javax.persistence.LockModeType; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.engine.spi.SelfDirtinessTracker; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/PackagelessCat.java b/integration-tests/hibernate-reactive-panache/src/test/java/PackagelessCat.java index 549b164ed917a..05351ab74cb88 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/PackagelessCat.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/PackagelessCat.java @@ -1,4 +1,4 @@ -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/DuplicateMethodTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/DuplicateMethodTest.java index 8419afeb68cd7..f97ff95d0000f 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/DuplicateMethodTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/DuplicateMethodTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/MockPersonRepository.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/MockPersonRepository.java index 7d5409009219a..6c34475cd9f51 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/MockPersonRepository.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/MockPersonRepository.java @@ -1,8 +1,8 @@ package io.quarkus.it.panache.reactive; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; /** * An alternate implementation of {@link PersonRepository} to demonstrate that Repository entity type can be retrieved diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java index 4fa2980e03c05..5efc721fa7777 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java @@ -3,9 +3,9 @@ import static org.hamcrest.Matchers.is; import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; -import javax.persistence.PersistenceException; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; +import jakarta.persistence.PersistenceException; import org.hibernate.reactive.mutiny.Mutiny.Transaction; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java index c780914895b0a..78931c8cdbc42 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java @@ -2,9 +2,9 @@ import java.util.Collections; -import javax.inject.Inject; -import javax.persistence.LockModeType; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.persistence.LockModeType; +import jakarta.ws.rs.WebApplicationException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Order; diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/FriesianCow.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/FriesianCow.java index f47fa0a8dfc8d..51054825cd74e 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/FriesianCow.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/FriesianCow.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.reactive.postgresql; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "Cow") diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/GuineaPig.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/GuineaPig.java index f045e2f8eb6e1..0ff88f16cb883 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/GuineaPig.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/GuineaPig.java @@ -2,9 +2,9 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "Pig") @@ -59,4 +59,4 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(name); } -} \ No newline at end of file +} diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpoint.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpoint.java index 6e9d059efaa5b..19aab4e624bd5 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpoint.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.postgresql; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointAlternative.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointAlternative.java index ec7542caea526..95dd3aa3ca721 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointAlternative.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointAlternative.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.reactive.postgresql; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointFetchLazy.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointFetchLazy.java index c0dcda200b2f5..ef84e12ef8de7 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointFetchLazy.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointFetchLazy.java @@ -2,11 +2,11 @@ import java.util.Collection; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointJoinedSubclass.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointJoinedSubclass.java index dc875d15d5a75..fbbbc4d8d5e99 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointJoinedSubclass.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/HibernateReactiveTestEndpointJoinedSubclass.java @@ -2,17 +2,17 @@ import java.util.Objects; -import javax.inject.Inject; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; -import javax.ws.rs.DELETE; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Author.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Author.java index ab67fc157c138..b5584282a7047 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Author.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Author.java @@ -1,15 +1,15 @@ package io.quarkus.it.hibernate.reactive.postgresql.lazy; -import static javax.persistence.CascadeType.PERSIST; +import static jakarta.persistence.CascadeType.PERSIST; import java.util.ArrayList; import java.util.Collection; import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity @Table diff --git a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Book.java b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Book.java index b0162376261b1..c495118326c1e 100644 --- a/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Book.java +++ b/integration-tests/hibernate-reactive-postgresql/src/main/java/io/quarkus/it/hibernate/reactive/postgresql/lazy/Book.java @@ -1,15 +1,15 @@ package io.quarkus.it.hibernate.reactive.postgresql.lazy; -import static javax.persistence.FetchType.LAZY; +import static jakarta.persistence.FetchType.LAZY; import java.util.Objects; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table diff --git a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/HibernateSearchOutboxPollingTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/HibernateSearchOutboxPollingTestResource.java index cbeaff615b7bb..97dcf76bcfa7f 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/HibernateSearchOutboxPollingTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/HibernateSearchOutboxPollingTestResource.java @@ -4,15 +4,15 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.search.mapper.orm.Search; import org.hibernate.search.mapper.orm.session.SearchSession; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/OutboxPollingTestUtils.java b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/OutboxPollingTestUtils.java index e6c6c557dc9ad..3391237bf34bc 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/OutboxPollingTestUtils.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/OutboxPollingTestUtils.java @@ -6,13 +6,13 @@ import java.time.Duration; import java.util.List; -import javax.persistence.EntityManager; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; +import jakarta.persistence.EntityManager; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; import org.hibernate.search.mapper.orm.coordination.outboxpolling.cluster.impl.Agent; import org.hibernate.search.mapper.orm.coordination.outboxpolling.cluster.impl.AgentState; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/Person.java b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/Person.java index 5c984c0021581..cf99665a808b8 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/Person.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-coordination-outbox-polling/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/coordination/outboxpolling/Person.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.coordination.outboxpolling; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.search.engine.backend.types.Sortable; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/CustomTenantResolver.java b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/CustomTenantResolver.java index 41b51af45942a..81ee28f55ed1e 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/CustomTenantResolver.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/CustomTenantResolver.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.multitenancy.fruit; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/Fruit.java b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/Fruit.java index 98e686121fb1f..bdd0990d5c3e1 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/Fruit.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/Fruit.java @@ -1,14 +1,14 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.multitenancy.fruit; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.xml.bind.annotation.XmlRootElement; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/FruitResource.java b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/FruitResource.java index 91dc15e76d69b..33411acc150d9 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/FruitResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/FruitResource.java @@ -2,21 +2,21 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Response; import org.hibernate.search.mapper.orm.session.SearchSession; import org.jboss.logging.Logger; diff --git a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/test/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/HibernateSearchTenancyFunctionalityTest.java b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/test/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/HibernateSearchTenancyFunctionalityTest.java index a2b864ee29643..b6c5e3c36b83d 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/test/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/HibernateSearchTenancyFunctionalityTest.java +++ b/integration-tests/hibernate-search-orm-elasticsearch-tenancy/src/test/java/io/quarkus/it/hibernate/search/orm/elasticsearch/multitenancy/fruit/HibernateSearchTenancyFunctionalityTest.java @@ -6,7 +6,7 @@ import java.util.List; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.Response.Status; import org.junit.jupiter.api.Test; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis0TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis0TestingEntity.java index 2910f17770c61..9c6f6d3c0864e 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis0TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis0TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis1TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis1TestingEntity.java index 1d0b4e827ff09..d06840de280a1 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis1TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis1TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis2TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis2TestingEntity.java index a4aaf1d66eeae..47097d6efc05a 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis2TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis2TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis3TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis3TestingEntity.java index bcb93acb4697d..f5dd0b02b33ac 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis3TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis3TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis4TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis4TestingEntity.java index 96be147fcf758..ef412b87b2abe 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis4TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis4TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis5TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis5TestingEntity.java index bdff671ec5337..f35e72fcc644c 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis5TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis5TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis6TestingEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis6TestingEntity.java index 96c2044e029af..ed08b2199b8e9 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis6TestingEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/Analysis6TestingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestResource.java index 71ad260639d3a..8860b69cf88e3 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestResource.java @@ -4,14 +4,14 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.search.mapper.orm.Search; import org.hibernate.search.mapper.orm.common.EntityReference; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestingEntityBase.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestingEntityBase.java index 25e641b3442f4..33895effa6551 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestingEntityBase.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/AnalysisTestingEntityBase.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public class AnalysisTestingEntityBase { diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/BackendAnalysisConfigurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/BackendAnalysisConfigurer.java index 2852e5a726e0b..209bb6fb7a8c5 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/BackendAnalysisConfigurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/BackendAnalysisConfigurer.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis1Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis1Configurer.java index 24dd389ad2980..7f5dd1a994994 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis1Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis1Configurer.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis2Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis2Configurer.java index 8b4bba0e21765..d0076170907bf 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis2Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis2Configurer.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis3Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis3Configurer.java index 4808662a4406c..67dc581be44a4 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis3Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis3Configurer.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis4Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis4Configurer.java index 84a9b891cfafd..640bb1bd60789 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis4Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis4Configurer.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis5Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis5Configurer.java index a7df2280090e7..505de64211b12 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis5Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis5Configurer.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis6Configurer.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis6Configurer.java index 50d27ac62c1bd..bac03b9504486 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis6Configurer.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/IndexAnalysis6Configurer.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.analysis; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/MyCdiContext.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/MyCdiContext.java index a5a5000b35ca4..1d2c9e432beb9 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/MyCdiContext.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/analysis/MyCdiContext.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyCdiContext { diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/client/ElasticsearchClientTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/client/ElasticsearchClientTestResource.java index 95e45db840872..2365e97cca170 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/client/ElasticsearchClientTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/client/ElasticsearchClientTestResource.java @@ -5,10 +5,10 @@ import java.nio.charset.StandardCharsets; import java.security.NoSuchAlgorithmException; -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; import org.apache.http.HttpHost; import org.elasticsearch.client.Request; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/HibernateSearchDevServicesTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/HibernateSearchDevServicesTestResource.java index 6e4dcadaca73b..2e270a3c6faa7 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/HibernateSearchDevServicesTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/HibernateSearchDevServicesTestResource.java @@ -2,13 +2,13 @@ import java.util.List; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.Session; import org.hibernate.SessionFactory; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/IndexedEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/IndexedEntity.java index 2b8ccd28a8657..a0a95ae424166 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/IndexedEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/devservices/IndexedEntity.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.devservices; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.search.engine.backend.types.Sortable; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/MethodAccessEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/MethodAccessEntity.java index efd1370c05ebf..2b609d982a2cb 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/MethodAccessEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/MethodAccessEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.propertyaccess; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PrivateFieldAccessEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PrivateFieldAccessEntity.java index 18e3e4cc67191..cad1bb43041a4 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PrivateFieldAccessEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PrivateFieldAccessEntity.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.propertyaccess; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; import org.hibernate.annotations.LazyGroup; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PropertyAccessTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PropertyAccessTestResource.java index 2ffa8c2fc7917..afde4c950809e 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PropertyAccessTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/PropertyAccessTestResource.java @@ -2,18 +2,18 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.HeuristicMixedException; -import javax.transaction.HeuristicRollbackException; -import javax.transaction.NotSupportedException; -import javax.transaction.RollbackException; -import javax.transaction.SystemException; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.HeuristicMixedException; +import jakarta.transaction.HeuristicRollbackException; +import jakarta.transaction.NotSupportedException; +import jakarta.transaction.RollbackException; +import jakarta.transaction.SystemException; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.Hibernate; import org.hibernate.search.mapper.orm.session.SearchSession; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/TransientMethodAccessEntity.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/TransientMethodAccessEntity.java index a4902da392326..32399bfbccb96 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/TransientMethodAccessEntity.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/propertyaccess/TransientMethodAccessEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.propertyaccess; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Transient; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Transient; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Address.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Address.java index dc2d1c507f3b9..61429b2db8d71 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Address.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Address.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/HibernateSearchTestResource.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/HibernateSearchTestResource.java index 9b6f19a7d644e..a0b0d5c4b1fe7 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/HibernateSearchTestResource.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/HibernateSearchTestResource.java @@ -4,14 +4,14 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.search.mapper.orm.Search; import org.hibernate.search.mapper.orm.session.SearchSession; diff --git a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Person.java b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Person.java index 1c8e7621f3cfb..ebea18d67cab8 100644 --- a/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Person.java +++ b/integration-tests/hibernate-search-orm-elasticsearch/src/main/java/io/quarkus/it/hibernate/search/orm/elasticsearch/search/Person.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.search.orm.elasticsearch.search; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import org.hibernate.search.engine.backend.types.ObjectStructure; import org.hibernate.search.engine.backend.types.Sortable; diff --git a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/analysis/BackendAnalysisConfigurer.java b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/analysis/BackendAnalysisConfigurer.java index f791fdae93e41..654172c9e7f60 100644 --- a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/analysis/BackendAnalysisConfigurer.java +++ b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/analysis/BackendAnalysisConfigurer.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.search.orm.opensearch.analysis; -import javax.enterprise.context.Dependent; -import javax.inject.Named; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Named; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurationContext; import org.hibernate.search.backend.elasticsearch.analysis.ElasticsearchAnalysisConfigurer; diff --git a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Address.java b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Address.java index 38d9b9da6be3b..9b6d023c365d1 100644 --- a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Address.java +++ b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Address.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField; import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed; diff --git a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/HibernateSearchTestResource.java b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/HibernateSearchTestResource.java index c9900f1934159..f1efb48a0e17c 100644 --- a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/HibernateSearchTestResource.java +++ b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/HibernateSearchTestResource.java @@ -4,14 +4,14 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.search.mapper.orm.Search; import org.hibernate.search.mapper.orm.session.SearchSession; diff --git a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Person.java b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Person.java index 1217305292787..aab987b7cfadd 100644 --- a/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Person.java +++ b/integration-tests/hibernate-search-orm-opensearch/src/main/java/io/quarkus/it/hibernate/search/orm/opensearch/search/Person.java @@ -1,12 +1,12 @@ package io.quarkus.it.hibernate.search.orm.opensearch.search; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import org.hibernate.search.engine.backend.types.ObjectStructure; import org.hibernate.search.engine.backend.types.Sortable; diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java index a63703882965e..a303234d932cd 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.validator; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; @Alternative @Priority(1) diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java index 99ab24f1d4980..2402201ed8172 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.validator; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.NotNull; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.NotNull; @ApplicationScoped @Priority(2) diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java index ada14f2cf6236..1e2a88aa3b3da 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java @@ -7,19 +7,19 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.validation.ConstraintViolation; -import javax.validation.Valid; -import javax.validation.Validator; -import javax.validation.constraints.DecimalMin; -import javax.validation.constraints.Digits; -import javax.validation.constraints.Email; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Valid; +import jakarta.validation.Validator; +import jakarta.validation.constraints.DecimalMin; +import jakarta.validation.constraints.Digits; +import jakarta.validation.constraints.Email; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.hibernate.validator.constraints.Length; import org.jboss.resteasy.reactive.RestPath; diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java index d2dfd4aa2222f..6b45a8986e34b 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; +import jakarta.validation.constraints.Digits; public interface HibernateValidatorTestResourceGenericInterface { diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java index fe76470c7c252..b2f7981deb95a 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java @@ -1,11 +1,11 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.validation.constraints.Digits; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public interface HibernateValidatorTestResourceInterface { diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/TextResource.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/TextResource.java index 9d7a173286183..7813814e53031 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/TextResource.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/TextResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.validation.constraints.Digits; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("text") public class TextResource { diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java index ad412dea04eb5..5e75b6cb98da1 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java @@ -5,10 +5,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.Payload; @Target({ ElementType.TYPE_USE, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/integration-tests/hibernate-validator-resteasy-reactive/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java b/integration-tests/hibernate-validator-resteasy-reactive/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java index 451c02b854216..c5db7e407f595 100644 --- a/integration-tests/hibernate-validator-resteasy-reactive/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java +++ b/integration-tests/hibernate-validator-resteasy-reactive/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java @@ -8,8 +8,8 @@ import java.util.logging.Level; import java.util.logging.LogManager; -import javax.validation.ConstraintViolationException; -import javax.ws.rs.core.Response; +import jakarta.validation.ConstraintViolationException; +import jakarta.ws.rs.core.Response; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.AfterEach; diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java index a63703882965e..a303234d932cd 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/EnhancedGreetingService.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.validator; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; @Alternative @Priority(1) diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java index 99ab24f1d4980..2402201ed8172 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/GreetingService.java @@ -1,8 +1,8 @@ package io.quarkus.it.hibernate.validator; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.validation.constraints.NotNull; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.validation.constraints.NotNull; @ApplicationScoped @Priority(2) diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java index ffba60c01f0ea..d286eeb5446d3 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResource.java @@ -11,31 +11,31 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.interceptor.InterceptorBinding; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.ConstraintViolation; -import javax.validation.ConstraintViolationException; -import javax.validation.Valid; -import javax.validation.Validator; -import javax.validation.constraints.DecimalMin; -import javax.validation.constraints.Digits; -import javax.validation.constraints.Email; -import javax.validation.constraints.Pattern; -import javax.validation.groups.ConvertGroup; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.interceptor.InterceptorBinding; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.ConstraintViolationException; +import jakarta.validation.Valid; +import jakarta.validation.Validator; +import jakarta.validation.constraints.DecimalMin; +import jakarta.validation.constraints.Digits; +import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.Pattern; +import jakarta.validation.groups.ConvertGroup; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.hibernate.validator.constraints.Length; diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java index d2dfd4aa2222f..6b45a8986e34b 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceGenericInterface.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; +import jakarta.validation.constraints.Digits; public interface HibernateValidatorTestResourceGenericInterface { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java index fe76470c7c252..b2f7981deb95a 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceInterface.java @@ -1,11 +1,11 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.validation.constraints.Digits; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public interface HibernateValidatorTestResourceInterface { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceSuperclass.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceSuperclass.java index 73b880e6345ce..d037654dc9eda 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceSuperclass.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/HibernateValidatorTestResourceSuperclass.java @@ -1,11 +1,11 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.Digits; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.validation.constraints.Digits; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; public class HibernateValidatorTestResourceSuperclass { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/Startup.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/Startup.java index f125580b52c46..139248b7d939f 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/Startup.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/Startup.java @@ -2,8 +2,8 @@ import java.util.Objects; -import javax.enterprise.event.Observes; -import javax.validation.Validation; +import jakarta.enterprise.event.Observes; +import jakarta.validation.Validation; import io.quarkus.runtime.StartupEvent; diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeService.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeService.java index 6e48a72dab3af..814cd2b591919 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeService.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeService.java @@ -1,7 +1,7 @@ package io.quarkus.it.hibernate.validator; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; public interface ZipCodeService { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeServiceImpl.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeServiceImpl.java index 75f93ba0e6176..55c99683fedb4 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeServiceImpl.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/ZipCodeServiceImpl.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ZipCodeServiceImpl implements ZipCodeService { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java index ad412dea04eb5..5e75b6cb98da1 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/custom/MyCustomConstraint.java @@ -5,10 +5,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.Payload; @Target({ ElementType.TYPE_USE, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/enums/MyEnumWithValidatorAnnotation.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/enums/MyEnumWithValidatorAnnotation.java index 4a701bb8345b6..364e87ef88997 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/enums/MyEnumWithValidatorAnnotation.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/enums/MyEnumWithValidatorAnnotation.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator.enums; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; /** * Simply adding this class to the code, without even referencing it from anywhere, @@ -14,4 +14,4 @@ public enum MyEnumWithValidatorAnnotation { public static MyEnumWithValidatorAnnotation fromCode(@NotNull String code) { return MyEnumWithValidatorAnnotation.valueOf(code); } -} \ No newline at end of file +} diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/MyBeanWithGroups.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/MyBeanWithGroups.java index 5faf3953390c0..f58b36217dffc 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/MyBeanWithGroups.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/MyBeanWithGroups.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.validator.groups; -import javax.validation.constraints.AssertFalse; -import javax.validation.constraints.AssertTrue; -import javax.validation.constraints.NotNull; -import javax.validation.constraints.Null; +import jakarta.validation.constraints.AssertFalse; +import jakarta.validation.constraints.AssertTrue; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Null; public class MyBeanWithGroups { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/ValidationGroups.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/ValidationGroups.java index 21ee13ff6c503..0ed9a34ef6e17 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/ValidationGroups.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/groups/ValidationGroups.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator.groups; -import javax.validation.groups.Default; +import jakarta.validation.groups.Default; public interface ValidationGroups { interface Post extends Default { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/BookResource.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/BookResource.java index bdf6a20ed0d91..c5fdf98202322 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/BookResource.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/BookResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.hibernate.validator.inheritance; -import javax.validation.constraints.NotNull; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; public interface BookResource { @@ -13,4 +13,4 @@ public interface BookResource { @GET @Produces(MediaType.TEXT_PLAIN) String hello(@NotNull @QueryParam("name") String name); -} \ No newline at end of file +} diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/ScienceBookResource.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/ScienceBookResource.java index 98c883f0ec957..0202c698dc19c 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/ScienceBookResource.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/inheritance/ScienceBookResource.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator.inheritance; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; @Path(ScienceBookResource.PATH) public interface ScienceBookResource extends BookResource { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidator.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidator.java index 2e2bf562a98c9..00288bff566e6 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidator.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidator.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.validator.injection; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; @ApplicationScoped public class InjectedConstraintValidator implements ConstraintValidator { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidatorConstraint.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidatorConstraint.java index ec7e836e197f0..749ec2470ba7b 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidatorConstraint.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/InjectedConstraintValidatorConstraint.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.Payload; @Target({ ElementType.TYPE_USE, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/MyService.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/MyService.java index bd0fd8baf3eca..fd9bdd94a5d2d 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/MyService.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/injection/MyService.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.validator.injection; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyService { diff --git a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/orm/TestEntity.java b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/orm/TestEntity.java index 25e0d77c20aa0..796c53c7f4e32 100644 --- a/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/orm/TestEntity.java +++ b/integration-tests/hibernate-validator/src/main/java/io/quarkus/it/hibernate/validator/orm/TestEntity.java @@ -1,9 +1,9 @@ package io.quarkus.it.hibernate.validator.orm; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.validation.constraints.NotNull; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.validation.constraints.NotNull; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/hibernate-validator/src/test/java/io/quarkus/hibernate/validator/runtime/ArcProxyBeanMetaDataClassNormalizerTest.java b/integration-tests/hibernate-validator/src/test/java/io/quarkus/hibernate/validator/runtime/ArcProxyBeanMetaDataClassNormalizerTest.java index b08b737fbbfae..03576025ba276 100644 --- a/integration-tests/hibernate-validator/src/test/java/io/quarkus/hibernate/validator/runtime/ArcProxyBeanMetaDataClassNormalizerTest.java +++ b/integration-tests/hibernate-validator/src/test/java/io/quarkus/hibernate/validator/runtime/ArcProxyBeanMetaDataClassNormalizerTest.java @@ -42,7 +42,7 @@ private static class Original { } /** - * Simulates an object injected through @{@link javax.inject.Inject}. + * Simulates an object injected through @{@link jakarta.inject.Inject}. */ private static class FirstSubclass extends Original implements Subclass { } diff --git a/integration-tests/hibernate-validator/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java b/integration-tests/hibernate-validator/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java index d995ca631e3c5..279d8d0370ff9 100644 --- a/integration-tests/hibernate-validator/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java +++ b/integration-tests/hibernate-validator/src/test/java/io/quarkus/it/hibernate/validator/HibernateValidatorFunctionalityTest.java @@ -8,8 +8,8 @@ import java.util.logging.Level; import java.util.logging.LogManager; -import javax.validation.ConstraintViolationException; -import javax.ws.rs.core.Response; +import jakarta.validation.ConstraintViolationException; +import jakarta.ws.rs.core.Response; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.AfterEach; diff --git a/integration-tests/ide-launcher/src/main/java/io/quarkus/it/ide/launcher/HelloResource.java b/integration-tests/ide-launcher/src/main/java/io/quarkus/it/ide/launcher/HelloResource.java index 41569e69e06c4..a9c5742248e5c 100644 --- a/integration-tests/ide-launcher/src/main/java/io/quarkus/it/ide/launcher/HelloResource.java +++ b/integration-tests/ide-launcher/src/main/java/io/quarkus/it/ide/launcher/HelloResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.ide.launcher; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello") public class HelloResource { diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Citizen.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Citizen.java index de173659b88b6..86e0441511639 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Citizen.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Citizen.java @@ -8,7 +8,7 @@ //$Id$ package io.quarkus.it.infinispan.cache.jpa; -import javax.persistence.*; +import jakarta.persistence.*; import org.hibernate.annotations.NaturalId; import org.hibernate.annotations.NaturalIdCache; diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Country.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Country.java index cde352f115d51..e8ea2bb39ecbf 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Country.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Country.java @@ -1,9 +1,9 @@ package io.quarkus.it.infinispan.cache.jpa; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/InfinispanCacheJPAFunctionalityTestEndpoint.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/InfinispanCacheJPAFunctionalityTestEndpoint.java index 063e247c99285..845306f73121e 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/InfinispanCacheJPAFunctionalityTestEndpoint.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/InfinispanCacheJPAFunctionalityTestEndpoint.java @@ -3,20 +3,20 @@ import java.time.Duration; import java.util.*; -import javax.enterprise.context.ApplicationScoped; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.NaturalIdLoadAccess; import org.hibernate.Session; diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Item.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Item.java index 05ca67055bb2b..c9baab9b847bd 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Item.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Item.java @@ -1,6 +1,6 @@ package io.quarkus.it.infinispan.cache.jpa; -import javax.persistence.*; +import jakarta.persistence.*; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Person.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Person.java index 815ff8cf57e4d..6baedfff8ac20 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Person.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Person.java @@ -1,6 +1,6 @@ package io.quarkus.it.infinispan.cache.jpa; -import javax.persistence.*; +import jakarta.persistence.*; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Pokemon.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Pokemon.java index ad4b0d0c82828..921195aeb7b31 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Pokemon.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Pokemon.java @@ -1,8 +1,8 @@ package io.quarkus.it.infinispan.cache.jpa; -import javax.persistence.Cacheable; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Cacheable; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity @Cacheable diff --git a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Trainer.java b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Trainer.java index 0ab0ca5e1b839..7a7af6ed27047 100644 --- a/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Trainer.java +++ b/integration-tests/infinispan-cache-jpa/src/main/java/io/quarkus/it/infinispan/cache/jpa/Trainer.java @@ -3,7 +3,7 @@ import java.util.Arrays; import java.util.List; -import javax.persistence.*; +import jakarta.persistence.*; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; diff --git a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/BookStoreService.java b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/BookStoreService.java index 39c36b9fef208..b5f6ce098d602 100644 --- a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/BookStoreService.java +++ b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/BookStoreService.java @@ -3,12 +3,12 @@ import java.math.BigDecimal; import java.util.Collections; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.infinispan.client.CacheInvalidate; import io.quarkus.infinispan.client.CacheInvalidateAll; diff --git a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/CacheSetup.java b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/CacheSetup.java index 95c378cafbb00..1e6329b1a8f05 100644 --- a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/CacheSetup.java +++ b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/CacheSetup.java @@ -10,9 +10,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.client.hotrod.RemoteCacheManager; diff --git a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/MarshallerConfiguration.java b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/MarshallerConfiguration.java index beead33aaa199..7e2a6b5d15bd6 100644 --- a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/MarshallerConfiguration.java +++ b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/MarshallerConfiguration.java @@ -1,7 +1,7 @@ package io.quarkus.it.infinispan.client; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.infinispan.protostream.FileDescriptorSource; import org.infinispan.protostream.MessageMarshaller; diff --git a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java index c75e6cf594091..24d2f9f63add0 100644 --- a/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java +++ b/integration-tests/infinispan-client/src/main/java/io/quarkus/it/infinispan/client/TestServlet.java @@ -8,17 +8,17 @@ import java.util.concurrent.CompletionStage; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.client.hotrod.Search; diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/AlphaObserver.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/AlphaObserver.java index 4c2d3ee1f8978..d9923371417ed 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/AlphaObserver.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/AlphaObserver.java @@ -3,8 +3,8 @@ import java.math.BigDecimal; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class AlphaObserver { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/BravoObserver.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/BravoObserver.java index 4e7bbb9b1d1e3..17c888357c929 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/BravoObserver.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/BravoObserver.java @@ -3,8 +3,8 @@ import java.math.BigDecimal; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class BravoObserver { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerService.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerService.java index 70fbe8edf55b9..601afef349965 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerService.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerService.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class CapitalizerService { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerServiceSingleton.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerServiceSingleton.java index 59bbf7dc93974..b31c6ffd6d094 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerServiceSingleton.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/CapitalizerServiceSingleton.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class CapitalizerServiceSingleton { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyResource.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyResource.java index 1344507b5672e..7a629fe4f0214 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyResource.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.mockbean; -import javax.inject.Inject; -import javax.inject.Named; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/dummy") public class DummyResource { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyService2.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyService2.java index 95c8ff9b9baa4..20eaaa793a8ff 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyService2.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyService2.java @@ -1,7 +1,7 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; @Named("second") @ApplicationScoped diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyServiceProducer.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyServiceProducer.java index aa6431c8b2d17..a7b066476d27d 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyServiceProducer.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/DummyServiceProducer.java @@ -1,8 +1,8 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Named; public class DummyServiceProducer { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooResource.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooResource.java index 17b8e97aa0973..6f17a44cf0b58 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooResource.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooResource.java @@ -2,9 +2,9 @@ import java.util.Collections; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("foo") public class FooResource { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooService.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooService.java index e3325af996cc0..698f7313e4568 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooService.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/FooService.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class FooService { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResource.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResource.java index d3f79c7348568..64c8a4396e9d3 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResource.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.mockbean; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("greeting") public class GreetingResource { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResourceSingleton.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResourceSingleton.java index 222cd8d532623..20d8f9827632c 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResourceSingleton.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/GreetingResourceSingleton.java @@ -1,8 +1,8 @@ package io.quarkus.it.mockbean; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("greetingSingleton") public class GreetingResourceSingleton { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceImpl.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceImpl.java index 8adaee0784bef..3af9671aa933d 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceImpl.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceImpl.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MessageServiceImpl implements MessageService { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceSingletonImpl.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceSingletonImpl.java index 7bc34b0d40a7f..03f130cc4b4ba 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceSingletonImpl.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/MessageServiceSingletonImpl.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class MessageServiceSingletonImpl implements MessageServiceSingleton { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/OtherUnusedService.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/OtherUnusedService.java index fbecc93edcd5f..4b1f0c3c50a2a 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/OtherUnusedService.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/OtherUnusedService.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * This gets removed removed by Arc since it's not being used in the application, diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SameBeanInstance.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SameBeanInstance.java index 622f331392b77..b9b6589d3ae67 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SameBeanInstance.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SameBeanInstance.java @@ -1,7 +1,7 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; public class SameBeanInstance { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixService.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixService.java index 9abe827814401..db0e150756832 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixService.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixService.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SuffixService { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixServiceSingletonProducer.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixServiceSingletonProducer.java index be30268dfdeab..7288856034311 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixServiceSingletonProducer.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/SuffixServiceSingletonProducer.java @@ -1,7 +1,7 @@ package io.quarkus.it.mockbean; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; public class SuffixServiceSingletonProducer { diff --git a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/UnusedService.java b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/UnusedService.java index c3902d2d17fb2..63206c28f4c5f 100644 --- a/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/UnusedService.java +++ b/integration-tests/injectmock/src/main/java/io/quarkus/it/mockbean/UnusedService.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; /** * This would normally have been removed by Arc since it's not being used in the application, diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/DummyResourceTest.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/DummyResourceTest.java index 2db26072ccdfc..1c4b942ed31eb 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/DummyResourceTest.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/DummyResourceTest.java @@ -4,7 +4,7 @@ import static org.hamcrest.Matchers.is; import static org.mockito.Mockito.when; -import javax.inject.Named; +import jakarta.inject.Named; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/GenericFieldsTest.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/GenericFieldsTest.java index dff578892827d..3cffaa136f972 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/GenericFieldsTest.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/GenericFieldsTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.mockbean; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MockedObserverTest.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MockedObserverTest.java index 7be20eb62196a..fb9075d9d22ff 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MockedObserverTest.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MockedObserverTest.java @@ -6,8 +6,8 @@ import java.math.BigDecimal; import java.util.concurrent.atomic.AtomicReference; -import javax.enterprise.event.Event; -import javax.inject.Inject; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.mockito.Mockito; diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerConsumer.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerConsumer.java index a1fe87b6b4710..be2b55e10e538 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerConsumer.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerConsumer.java @@ -3,7 +3,7 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Singleton; +import jakarta.inject.Singleton; @Singleton public class MyContainerConsumer { diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerProducer.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerProducer.java index 0311f40d6f959..b09ad08ef443a 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerProducer.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/MyContainerProducer.java @@ -1,8 +1,8 @@ package io.quarkus.it.mockbean; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Singleton; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Produces; @Singleton public class MyContainerProducer { diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/SameBeanInstanceTest.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/SameBeanInstanceTest.java index 4e3724e700143..8979dd408f102 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/SameBeanInstanceTest.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/SameBeanInstanceTest.java @@ -2,7 +2,7 @@ import static org.mockito.Mockito.*; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/WithSpiesTest.java b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/WithSpiesTest.java index 135213378ab4f..6392513c0440c 100644 --- a/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/WithSpiesTest.java +++ b/integration-tests/injectmock/src/test/java/io/quarkus/it/mockbean/WithSpiesTest.java @@ -3,7 +3,7 @@ import static io.restassured.RestAssured.given; import static org.hamcrest.Matchers.is; -import javax.inject.Named; +import jakarta.inject.Named; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/integration-tests/istio/maven-invoker-way/src/it/xds-grpc/src/main/java/org/acme/HelloEndpoint.java b/integration-tests/istio/maven-invoker-way/src/it/xds-grpc/src/main/java/org/acme/HelloEndpoint.java index 32d57f630205b..c5b7970070d74 100644 --- a/integration-tests/istio/maven-invoker-way/src/it/xds-grpc/src/main/java/org/acme/HelloEndpoint.java +++ b/integration-tests/istio/maven-invoker-way/src/it/xds-grpc/src/main/java/org/acme/HelloEndpoint.java @@ -1,9 +1,9 @@ package org.acme; -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; import examples.GreeterGrpc; import examples.HelloReply; @@ -34,4 +34,4 @@ public String hello() { } return response.getMessage(); } -} \ No newline at end of file +} diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/DateDeserializerPojoResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/DateDeserializerPojoResource.java index eef610aca91a8..d6ebd3c49a3f8 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/DateDeserializerPojoResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/DateDeserializerPojoResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/InheritedModelWithBuilderResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/InheritedModelWithBuilderResource.java index 401cbe0e0ad26..427c644fe3ec0 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/InheritedModelWithBuilderResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/InheritedModelWithBuilderResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.it.jackson.model.InheritedModelWithBuilder; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithBuilderResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithBuilderResource.java index ab68091944306..e9eaee1e55088 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithBuilderResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithBuilderResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.it.jackson.model.ModelWithBuilder; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonDeserializeUsingResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonDeserializeUsingResource.java index 78eaa6fb0f81b..6b8ffb6b655bd 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonDeserializeUsingResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonDeserializeUsingResource.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonNamingStrategyResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonNamingStrategyResource.java index 3fca6763547a8..0f78960a3c476 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonNamingStrategyResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonNamingStrategyResource.java @@ -2,10 +2,10 @@ import java.io.IOException; -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; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonTypeIdResolverResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonTypeIdResolverResource.java index e358cf1f716ff..92c4561af6686 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonTypeIdResolverResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithJsonTypeIdResolverResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithSerializerDeserializerOnFieldResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithSerializerDeserializerOnFieldResource.java index 7950042725348..9b0b91576ea61 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithSerializerDeserializerOnFieldResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/ModelWithSerializerDeserializerOnFieldResource.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/MyObjectMapperCustomizer.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/MyObjectMapperCustomizer.java index fe6e71ac479e2..0d8e6c96079e1 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/MyObjectMapperCustomizer.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/MyObjectMapperCustomizer.java @@ -1,6 +1,6 @@ package io.quarkus.it.jackson; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.DeserializationFeature; diff --git a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/RegisteredPojoModelResource.java b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/RegisteredPojoModelResource.java index 036bad701712d..1bc35797b8c18 100644 --- a/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/RegisteredPojoModelResource.java +++ b/integration-tests/jackson/src/main/java/io/quarkus/it/jackson/RegisteredPojoModelResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.it.jackson.model.RegisteredPojoModel; diff --git a/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/Person.java b/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/Person.java index e74e22b1a3994..c93442cdc243a 100644 --- a/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/Person.java +++ b/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/Person.java @@ -1,6 +1,6 @@ package io.quarkus.it.hibernate.panache.person; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/PersonResource.java b/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/PersonResource.java index 071c2679b7265..2744c1b059654 100644 --- a/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/PersonResource.java +++ b/integration-tests/java-17/src/main/java/io/quarkus/it/hibernate/panache/person/PersonResource.java @@ -3,11 +3,11 @@ import java.net.URI; import java.util.List; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/hibernate/persons") @Transactional diff --git a/integration-tests/java-17/src/main/java/io/quarkus/it/mongodb/panache/person/PersonResource.java b/integration-tests/java-17/src/main/java/io/quarkus/it/mongodb/panache/person/PersonResource.java index c6b5ddac8e229..f719d5800ecf1 100644 --- a/integration-tests/java-17/src/main/java/io/quarkus/it/mongodb/panache/person/PersonResource.java +++ b/integration-tests/java-17/src/main/java/io/quarkus/it/mongodb/panache/person/PersonResource.java @@ -3,10 +3,10 @@ import java.net.URI; import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/mongo/persons") public class PersonResource { diff --git a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/BaseObj.java b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/BaseObj.java index 8f1d7472ce401..cabd8df3dbbcd 100644 --- a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/BaseObj.java +++ b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/BaseObj.java @@ -7,10 +7,10 @@ package io.quarkus.it.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlType; /** *

    diff --git a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Book.java b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Book.java index a37cf99990e47..83ccdf0562e21 100644 --- a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Book.java +++ b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Book.java @@ -2,7 +2,7 @@ import java.awt.Image; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Book { diff --git a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/ExtensionOfBaseObj.java b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/ExtensionOfBaseObj.java index f56e2cc2b2a6d..e3e0378e60e7d 100644 --- a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/ExtensionOfBaseObj.java +++ b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/ExtensionOfBaseObj.java @@ -7,10 +7,10 @@ package io.quarkus.it.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlType; /** *

    diff --git a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/JaxbResource.java b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/JaxbResource.java index a4779e003641f..b03507a82089e 100644 --- a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/JaxbResource.java +++ b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/JaxbResource.java @@ -2,18 +2,18 @@ import java.io.StringWriter; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; import org.jboss.logging.Logger; diff --git a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Response.java b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Response.java index 256f81ae8694b..a93d8a474bc73 100644 --- a/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Response.java +++ b/integration-tests/jaxb/src/main/java/io/quarkus/it/jaxb/Response.java @@ -7,11 +7,11 @@ package io.quarkus.it.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; /** *

    diff --git a/integration-tests/jaxp/src/main/java/io/quarkus/it/jaxp/JaxpResource.java b/integration-tests/jaxp/src/main/java/io/quarkus/it/jaxp/JaxpResource.java index d6fe51caf9720..f366fb23ad931 100644 --- a/integration-tests/jaxp/src/main/java/io/quarkus/it/jaxp/JaxpResource.java +++ b/integration-tests/jaxp/src/main/java/io/quarkus/it/jaxp/JaxpResource.java @@ -5,14 +5,6 @@ import java.io.InputStream; import java.nio.charset.StandardCharsets; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; @@ -26,6 +18,15 @@ import javax.xml.xpath.XPathExpressionException; import javax.xml.xpath.XPathFactory; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; + import org.w3c.dom.Document; import org.xml.sax.InputSource; import org.xml.sax.SAXException; diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Address.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Address.java index a473d1cb87767..4c46410d857bb 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Address.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Address.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * This is an enmarked @Embeddable class. diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Customer.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Customer.java index b0ebf79488a49..09a1c5e09f043 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Customer.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Customer.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * Used to test reflection references for JPA diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Human.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Human.java index dddb023b353cc..98de61145d257 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Human.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Human.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; /** * Mapped superclass test diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/JPAFunctionalityTestEndpoint.java index 0169577b8fbb8..640c71d6bef9c 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/JPAFunctionalityTestEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Various tests covering JPA functionality. All tests should work in both standard JVM and native mode. diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Person.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Person.java index 340ee10a5edbc..48a27d4c91b51 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Person.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/Person.java @@ -1,13 +1,13 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "get_person_by_name", query = "select p from Person p where name = :name") diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/SequencedAddress.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/SequencedAddress.java index 73037d41250ae..1f83a5163f153 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/SequencedAddress.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/WorkAddress.java b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/WorkAddress.java index dadea80c1a306..41df906725024 100644 --- a/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/WorkAddress.java +++ b/integration-tests/jpa-db2/src/main/java/io/quarkus/it/jpa/db2/WorkAddress.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.db2; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * Class marked @Embeddable explicitly so it is picked up. diff --git a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/JPAFunctionalityTestEndpoint.java index 9a14a860708f7..a9af63f103299 100644 --- a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/JPAFunctionalityTestEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic test running JPA with the Derby database. diff --git a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/Person.java b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/Person.java index 282cb6c3826dd..89b009ddee04b 100644 --- a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/Person.java +++ b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/Person.java @@ -2,13 +2,13 @@ import java.util.UUID; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/SequencedAddress.java b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/SequencedAddress.java index e7281cdc3fda3..739fffd256b69 100644 --- a/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/SequencedAddress.java +++ b/integration-tests/jpa-derby/src/main/java/io/quarkus/it/jpa/derby/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.derby; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java index 1909d99cd6865..ae88d6721c91b 100644 --- a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java @@ -6,18 +6,18 @@ import java.util.UUID; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic test running JPA with the H2 database. diff --git a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/Person.java b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/Person.java index 2b32e4765b499..4c614be7dfdf8 100644 --- a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/Person.java +++ b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/Person.java @@ -2,13 +2,13 @@ import java.util.UUID; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java index 0e836a42bc192..05e88210bb1a6 100644 --- a/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java +++ b/integration-tests/jpa-h2-embedded/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/CompanyCustomer.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/CompanyCustomer.java index f1bbfa94a738e..7e03220c7a8e2 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/CompanyCustomer.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/CompanyCustomer.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * This entity is intentionally marked as final: diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Customer.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Customer.java index 0d8b419f7cde3..960a417b6bff1 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Customer.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Customer.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public abstract class Customer { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/DataIdentity.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/DataIdentity.java index 004718a1958cf..4567f659550a7 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/DataIdentity.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/DataIdentity.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.MappedSuperclass; /** * This entity isn't directly referenced: its mere presence is @@ -33,4 +33,4 @@ public Long getVersion() { public void setVersion(Long version) { this.version = version; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IdVersionPK.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IdVersionPK.java index a74f13922c70d..96cb9a5a6b33a 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IdVersionPK.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IdVersionPK.java @@ -3,7 +3,7 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Id; +import jakarta.persistence.Id; /** * This entity isn't directly referenced: its mere presence is diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IndividualCustomer.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IndividualCustomer.java index 9a2903cdb6f82..e76267b2e731b 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IndividualCustomer.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/IndividualCustomer.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class IndividualCustomer extends Customer { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java index 88dd1daa874cc..7bee0dee96928 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/JPAFunctionalityTestEndpoint.java @@ -6,18 +6,18 @@ import java.util.UUID; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.wildfly.common.Assert; diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/NormalPointEntity.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/NormalPointEntity.java index d96c491e22196..88eb48cbede94 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/NormalPointEntity.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/NormalPointEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * This entity isn't directly referenced: its mere presence is diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Person.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Person.java index 2b32e4765b499..4c614be7dfdf8 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Person.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Person.java @@ -2,13 +2,13 @@ import java.util.UUID; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/PointEntity.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/PointEntity.java index ad02db9bff5c9..eb6c753c619dc 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/PointEntity.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/PointEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * This entity isn't directly referenced: its mere presence is @@ -18,4 +18,4 @@ public String getName() { public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Project.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Project.java index e1da2220de493..b7ad744063c37 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Project.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Project.java @@ -1,11 +1,11 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; @Entity public class Project { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java index 0e836a42bc192..05e88210bb1a6 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.h2; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Timeslot.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Timeslot.java index 1223ec7dd3280..603a57c690738 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Timeslot.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/Timeslot.java @@ -3,10 +3,10 @@ import java.time.DayOfWeek; import java.time.LocalTime; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; /** * This entity is using a DynamicParameterizedType as it's using Enum fields. diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/AbstractEntity.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/AbstractEntity.java index f6cabfad73cca..4816191b0cba5 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/AbstractEntity.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/AbstractEntity.java @@ -3,11 +3,11 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "ENTITY") diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/BasicProxyTestEndpoint.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/BasicProxyTestEndpoint.java index 09f40f6444c4a..47a866369e6d5 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/BasicProxyTestEndpoint.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/BasicProxyTestEndpoint.java @@ -3,15 +3,15 @@ import java.io.IOException; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.transaction.Transactional; import io.quarkus.runtime.StartupEvent; diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/ConcreteEntity.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/ConcreteEntity.java index 8fe3af92cc995..ba1b07d4bac83 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/ConcreteEntity.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/basicproxy/ConcreteEntity.java @@ -1,7 +1,7 @@ package io.quarkus.it.jpa.h2.basicproxy; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("Concrete") @@ -11,4 +11,4 @@ public ConcreteEntity() { super(); } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/AbstractGenericMappedSuperType.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/AbstractGenericMappedSuperType.java index 684626b7f593e..d93b8d28d0a74 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/AbstractGenericMappedSuperType.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/AbstractGenericMappedSuperType.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.h2.generics; -import javax.persistence.Basic; -import javax.persistence.Lob; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Basic; +import jakarta.persistence.Lob; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractGenericMappedSuperType { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/IntermediateAbstractMapped.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/IntermediateAbstractMapped.java index 6dd5554e17324..fb1ca748d3671 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/IntermediateAbstractMapped.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/IntermediateAbstractMapped.java @@ -3,9 +3,9 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass @IdClass(IntermediateAbstractMapped.PK.class) diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/SnapshotEventEntry.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/SnapshotEventEntry.java index ea7f540582697..f44a4f87dc7b2 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/SnapshotEventEntry.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/generics/SnapshotEventEntry.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.h2.generics; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * This strange mapping is useful to verify that Hibernate ORM can diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Cat.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Cat.java index 8f807747976d3..b1ff52532b1e4 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Cat.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Cat.java @@ -1,7 +1,7 @@ package io.quarkus.it.jpa.h2.proxy; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("CAT") diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Dog.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Dog.java index 1118c107bb150..6be1e4e5ac330 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Dog.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Dog.java @@ -1,7 +1,7 @@ package io.quarkus.it.jpa.h2.proxy; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; import org.hibernate.annotations.Proxy; diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Pet.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Pet.java index 709ee34443aaf..fad96348116ea 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Pet.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/Pet.java @@ -1,10 +1,10 @@ package io.quarkus.it.jpa.h2.proxy; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; import org.hibernate.annotations.Proxy; diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/PetOwner.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/PetOwner.java index 3376ede10074d..93fe8efa7c6fb 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/PetOwner.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/PetOwner.java @@ -1,11 +1,11 @@ package io.quarkus.it.jpa.h2.proxy; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; @Entity public class PetOwner { diff --git a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/ProxyTestEndpoint.java b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/ProxyTestEndpoint.java index f9d23b81c847b..9e592ac9e98c8 100644 --- a/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/ProxyTestEndpoint.java +++ b/integration-tests/jpa-h2/src/main/java/io/quarkus/it/jpa/h2/proxy/ProxyTestEndpoint.java @@ -2,16 +2,16 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.transaction.Transactional; import io.quarkus.narayana.jta.runtime.TransactionConfiguration; import io.quarkus.runtime.StartupEvent; diff --git a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/DummyTransactionalService.java b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/DummyTransactionalService.java index 3c8b829c76164..58231f7118b63 100644 --- a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/DummyTransactionalService.java +++ b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/DummyTransactionalService.java @@ -1,7 +1,7 @@ package io.quarkus.it.jpa.h2; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import io.quarkus.narayana.jta.runtime.TransactionConfiguration; import io.quarkus.narayana.jta.runtime.interceptor.RunnableWithException; diff --git a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TransactionConfigurationTest.java b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TransactionConfigurationTest.java index 8a6c1eb3a4a7d..ed9ba744fb5c1 100644 --- a/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TransactionConfigurationTest.java +++ b/integration-tests/jpa-h2/src/test/java/io/quarkus/it/jpa/h2/TransactionConfigurationTest.java @@ -2,8 +2,8 @@ import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; -import javax.transaction.RollbackException; +import jakarta.inject.Inject; +import jakarta.transaction.RollbackException; import org.junit.jupiter.api.Test; diff --git a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/LegacyAppResource.java b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/LegacyAppResource.java index fa8ff32361490..afbfb9bfde09a 100644 --- a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/LegacyAppResource.java +++ b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/LegacyAppResource.java @@ -2,14 +2,14 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.PersistenceUnit; import io.quarkus.it.jpa.mapping.xml.legacy.library_a.LibraryAEntity; diff --git a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SchemaUtil.java b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SchemaUtil.java index 4910d1b0347fe..bf4ede5b91fe5 100644 --- a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SchemaUtil.java +++ b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SchemaUtil.java @@ -4,7 +4,7 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.persister.entity.AbstractEntityPersister; diff --git a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SmokeTestUtils.java b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SmokeTestUtils.java index a260bda3f1242..46bd3a5e36c6e 100644 --- a/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SmokeTestUtils.java +++ b/integration-tests/jpa-mapping-xml/legacy-app/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/app/SmokeTestUtils.java @@ -5,7 +5,7 @@ import java.util.function.BiConsumer; import java.util.function.Function; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * Very simple reusable tests that simply check that persistence doesn't seem to explode. diff --git a/integration-tests/jpa-mapping-xml/legacy-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_a/LibraryAEntity.java b/integration-tests/jpa-mapping-xml/legacy-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_a/LibraryAEntity.java index 2eb45ccff5fa4..4197e980c1cd6 100644 --- a/integration-tests/jpa-mapping-xml/legacy-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_a/LibraryAEntity.java +++ b/integration-tests/jpa-mapping-xml/legacy-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_a/LibraryAEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mapping.xml.legacy.library_a; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * An annotated entity whose mapping is overridden in orm.xml. @@ -39,4 +39,4 @@ public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-mapping-xml/legacy-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_b/LibraryBEntity.java b/integration-tests/jpa-mapping-xml/legacy-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_b/LibraryBEntity.java index ee1a06f9dd130..78530d30061b8 100644 --- a/integration-tests/jpa-mapping-xml/legacy-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_b/LibraryBEntity.java +++ b/integration-tests/jpa-mapping-xml/legacy-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/legacy/library_b/LibraryBEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mapping.xml.legacy.library_b; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * An annotated entity whose mapping is overridden in orm.xml. @@ -39,4 +39,4 @@ public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/ModernAppResource.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/ModernAppResource.java index 573cfa07c9c7f..c30406dccda1a 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/ModernAppResource.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/ModernAppResource.java @@ -2,14 +2,14 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.PersistenceUnit; import io.quarkus.it.jpa.mapping.xml.modern.library_a.LibraryAEntity; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SchemaUtil.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SchemaUtil.java index e880aebfa13bc..6a2bf1e9df028 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SchemaUtil.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SchemaUtil.java @@ -4,7 +4,7 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.persister.entity.AbstractEntityPersister; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SmokeTestUtils.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SmokeTestUtils.java index 02e30ffe1b262..3e5b0e76680d0 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SmokeTestUtils.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/SmokeTestUtils.java @@ -5,7 +5,7 @@ import java.util.function.BiConsumer; import java.util.function.Function; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * Very simple reusable tests that simply check that persistence doesn't seem to explode. diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyCdiContext.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyCdiContext.java index b0743f2b40915..d45cbb78e0c24 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyCdiContext.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyCdiContext.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyCdiContext { diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyConverter.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyConverter.java index c4a1496c54ae3..b085b41195359 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyConverter.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/MyConverter.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mapping.xml.modern.app.xmlmappingonly.attributeconverter; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.AttributeConverter; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.AttributeConverter; @ApplicationScoped public class MyConverter implements AttributeConverter { diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/XmlMappingOnlyAttributeConverterResource.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/XmlMappingOnlyAttributeConverterResource.java index 950f7e77fc6db..38a8e20f371d5 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/XmlMappingOnlyAttributeConverterResource.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/attributeconverter/XmlMappingOnlyAttributeConverterResource.java @@ -2,13 +2,13 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.Session; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/dirtychecking/XmlMappingOnlyDirtyCheckingResource.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/dirtychecking/XmlMappingOnlyDirtyCheckingResource.java index 3d1edf399174b..13baffeed1c70 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/dirtychecking/XmlMappingOnlyDirtyCheckingResource.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/dirtychecking/XmlMappingOnlyDirtyCheckingResource.java @@ -2,14 +2,14 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.hibernate.orm.PersistenceUnit; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/EntityWithListenerThroughInstanceMethods.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/EntityWithListenerThroughInstanceMethods.java index bf76fa8377bd8..18624d600edc3 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/EntityWithListenerThroughInstanceMethods.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/EntityWithListenerThroughInstanceMethods.java @@ -2,13 +2,13 @@ import java.lang.annotation.Annotation; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; public class EntityWithListenerThroughInstanceMethods { private Integer id; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyCdiContext.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyCdiContext.java index 22f6fd3ac1381..4ba45ca60df59 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyCdiContext.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyCdiContext.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyCdiContext { diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyListenerRequiringCdi.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyListenerRequiringCdi.java index f24241d6fd202..efcec301371c7 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyListenerRequiringCdi.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/MyListenerRequiringCdi.java @@ -3,15 +3,15 @@ import java.lang.annotation.Annotation; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; import io.quarkus.arc.ClientProxy; diff --git a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/XmlMappingOnlyEntityListenerResource.java b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/XmlMappingOnlyEntityListenerResource.java index d7ff74ed92d01..a12e4927c0fce 100644 --- a/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/XmlMappingOnlyEntityListenerResource.java +++ b/integration-tests/jpa-mapping-xml/modern-app/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/app/xmlmappingonly/entitylistener/XmlMappingOnlyEntityListenerResource.java @@ -6,21 +6,21 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.assertj.core.api.InstanceOfAssertFactories; import org.assertj.core.api.ListAssert; diff --git a/integration-tests/jpa-mapping-xml/modern-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_a/LibraryAEntity.java b/integration-tests/jpa-mapping-xml/modern-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_a/LibraryAEntity.java index fd9a7d2d6a15a..3f39b73e4a056 100644 --- a/integration-tests/jpa-mapping-xml/modern-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_a/LibraryAEntity.java +++ b/integration-tests/jpa-mapping-xml/modern-library-a/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_a/LibraryAEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mapping.xml.modern.library_a; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * An annotated entity whose mapping is overridden in orm.xml. @@ -39,4 +39,4 @@ public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-mapping-xml/modern-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_b/LibraryBEntity.java b/integration-tests/jpa-mapping-xml/modern-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_b/LibraryBEntity.java index 79eba14bed5bc..145c346d8fd82 100644 --- a/integration-tests/jpa-mapping-xml/modern-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_b/LibraryBEntity.java +++ b/integration-tests/jpa-mapping-xml/modern-library-b/src/main/java/io/quarkus/it/jpa/mapping/xml/modern/library_b/LibraryBEntity.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mapping.xml.modern.library_b; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * An annotated entity whose mapping is overridden in orm.xml. @@ -39,4 +39,4 @@ public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Address.java b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Address.java index fc56da5d3c8a1..c21e7b89ec6f5 100644 --- a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Address.java +++ b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Address.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mariadb; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Address { diff --git a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/JPAFunctionalityTestEndpoint.java index 21f6c11931ced..5ef902b81a532 100644 --- a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/JPAFunctionalityTestEndpoint.java @@ -8,21 +8,22 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + /** * Basic test running JPA with the MariaDB database. * The application can work in either standard JVM or in native mode. diff --git a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Person.java b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Person.java index c88c645e89721..6c9b119ea191d 100644 --- a/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Person.java +++ b/integration-tests/jpa-mariadb/src/main/java/io/quarkus/it/jpa/mariadb/Person.java @@ -1,12 +1,12 @@ package io.quarkus.it.jpa.mariadb; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "get_person_by_name", query = "select p from Person p where name = :name") diff --git a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/JPAFunctionalityTestEndpoint.java index a6688d1e92ec9..97742a9c07f6d 100644 --- a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/JPAFunctionalityTestEndpoint.java @@ -6,18 +6,18 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic test running JPA with the MS SQL database. diff --git a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/Person.java b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/Person.java index c88571ec5a38e..45d2d78f44389 100644 --- a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/Person.java +++ b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/Person.java @@ -1,13 +1,13 @@ package io.quarkus.it.jpa.mssql; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "get_person_by_name", query = "select p from Person p where name = :name") diff --git a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/SequencedAddress.java b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/SequencedAddress.java index 23fe24839efac..dc22c3badcf75 100644 --- a/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/SequencedAddress.java +++ b/integration-tests/jpa-mssql/src/main/java/io/quarkus/it/jpa/mssql/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.mssql; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Address.java b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Address.java index f7fc57544188e..be513a8c8e42b 100644 --- a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Address.java +++ b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Address.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.mysql; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Address { diff --git a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/JPAFunctionalityTestEndpoint.java index 4430f273794f3..bf56125c690db 100644 --- a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/JPAFunctionalityTestEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.PersistenceUnit; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.PersistenceUnit; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic test running JPA with the MySQL database. diff --git a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Person.java b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Person.java index 812ea9ceae5d2..8c9db2e3cc5b6 100644 --- a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Person.java +++ b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/Person.java @@ -1,12 +1,12 @@ package io.quarkus.it.jpa.mysql; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "get_person_by_name", query = "select p from Person p where name = :name") diff --git a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/XaConnectionsEndpoint.java b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/XaConnectionsEndpoint.java index c2b333c1731b9..d0598a29513f6 100644 --- a/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/XaConnectionsEndpoint.java +++ b/integration-tests/jpa-mysql/src/main/java/io/quarkus/it/jpa/mysql/XaConnectionsEndpoint.java @@ -4,11 +4,11 @@ import java.sql.Connection; import java.sql.SQLException; -import javax.inject.Inject; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.agroal.api.AgroalDataSource; import io.agroal.api.configuration.AgroalConnectionFactoryConfiguration; diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/JPAFunctionalityTestEndpoint.java index d0653dbd5494b..df7d6663dfa97 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/JPAFunctionalityTestEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic test running JPA with the Oracle database. diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/LdapUrlTestEndpoint.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/LdapUrlTestEndpoint.java index 6a63b9e4ffdbf..3d3b174e33818 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/LdapUrlTestEndpoint.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/LdapUrlTestEndpoint.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.sql.SQLException; -import javax.inject.Inject; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.jboss.logging.Logger; diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/Person.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/Person.java index 5fef60c433b03..65c44897f2bb6 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/Person.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/Person.java @@ -1,13 +1,13 @@ package io.quarkus.example.jpaoracle; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; @Entity @NamedQuery(name = "get_person_by_name", query = "select p from Person p where name = :name") diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SequencedAddress.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SequencedAddress.java index 8bd334f9f636a..2b5140b785cbc 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SequencedAddress.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.example.jpaoracle; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SerializationTestEndpoint.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SerializationTestEndpoint.java index f7ceff23e79ab..4b5f8c23ea238 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SerializationTestEndpoint.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/SerializationTestEndpoint.java @@ -6,10 +6,10 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "JPATestOracleSerialization", urlPatterns = "/jpa-oracle/testserialization") public class SerializationTestEndpoint extends HttpServlet { diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEndpoint.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEndpoint.java index 44bf23f487816..fd0d171782ad2 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEndpoint.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEndpoint.java @@ -8,16 +8,16 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.ParameterMode; -import javax.persistence.StoredProcedureQuery; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.transaction.Transactional; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.ParameterMode; +import jakarta.persistence.StoredProcedureQuery; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.transaction.Transactional; import io.agroal.api.AgroalDataSource; import io.quarkus.arc.Arc; diff --git a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEntity.java b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEntity.java index 8c6d94e3e8635..a1f4751196058 100644 --- a/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEntity.java +++ b/integration-tests/jpa-oracle/src/main/java/io/quarkus/example/jpaoracle/procedurecall/ProcedureCallEntity.java @@ -1,8 +1,8 @@ package io.quarkus.example.jpaoracle.procedurecall; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity(name = ProcedureCallEntity.NAME) public class ProcedureCallEntity { diff --git a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java index 148b96975e336..e8f1a786615cc 100644 --- a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java @@ -12,18 +12,6 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import javax.sql.DataSource; import javax.xml.transform.Result; import javax.xml.transform.Source; @@ -33,6 +21,19 @@ import javax.xml.transform.dom.DOMResult; import javax.xml.transform.stream.StreamSource; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + /** * First we run a smoke test for basic Hibernate ORM functionality, * then we specifically focus on supporting the PgSQLXML mapping abilities for XML types: diff --git a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/Person.java b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/Person.java index 9602f843afa0d..d43892763452c 100644 --- a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/Person.java +++ b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/Person.java @@ -1,14 +1,14 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table diff --git a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java index b61623640c53d..99a659838cd1a 100644 --- a/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java +++ b/integration-tests/jpa-postgresql-withxml/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java index 9c3827926e609..7da64d96144e6 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Address.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * This is an enmarked @Embeddable class. diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java index 0a25581c9b1f7..d61b16d528613 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Customer.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * Used to test reflection references for JPA diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java index a44faa216253e..0081919382064 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Human.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; /** * Mapped superclass test diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java index e2f391b29a036..6b2af30915ad4 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityTestEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Various tests covering JPA functionality. All tests should work in both standard JVM and in native mode. diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java index 33b118501a378..705eae8071dea 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/JPATestReflectionEndpoint.java @@ -5,10 +5,10 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Various tests for the JPA integration. diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java index 9d98e4201621c..0393fd951f115 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/Person.java @@ -1,14 +1,14 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQuery; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.Table; @Entity @Table(schema = "myschema") diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java index b61623640c53d..99a659838cd1a 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java index 33bae7211bb2a..b4aa1f46fd456 100644 --- a/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java +++ b/integration-tests/jpa-postgresql/src/main/java/io/quarkus/it/jpa/postgresql/WorkAddress.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.postgresql; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * Class marked @Embeddable explicitly so it is picked up. diff --git a/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/OverrideJdbcUrlBuildTimeConfigSource.java b/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/OverrideJdbcUrlBuildTimeConfigSource.java index 433c9737c0af2..464fde7db28d3 100644 --- a/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/OverrideJdbcUrlBuildTimeConfigSource.java +++ b/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/OverrideJdbcUrlBuildTimeConfigSource.java @@ -2,7 +2,7 @@ import java.util.HashMap; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.spi.ConfigSource; diff --git a/integration-tests/jpa-without-entity/src/main/java/org/test/HelloResource.java b/integration-tests/jpa-without-entity/src/main/java/org/test/HelloResource.java index a84aad8f378bc..a19d541b2433e 100644 --- a/integration-tests/jpa-without-entity/src/main/java/org/test/HelloResource.java +++ b/integration-tests/jpa-without-entity/src/main/java/org/test/HelloResource.java @@ -1,9 +1,9 @@ package org.test; -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("/jpa-without-entity") public class HelloResource { @@ -13,4 +13,4 @@ public class HelloResource { public String hello() { return "hello without jpa"; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/AttributeConverterResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/AttributeConverterResource.java index d3f8acf9a6f86..bcf2fdab0c75b 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/AttributeConverterResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/AttributeConverterResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.jpa.attributeconverter; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.jaxrs.QueryParam; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/EntityWithAttributeConverters.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/EntityWithAttributeConverters.java index 9261d9b662105..8fdc9445435cb 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/EntityWithAttributeConverters.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/EntityWithAttributeConverters.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.attributeconverter; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class EntityWithAttributeConverters { @@ -40,4 +40,4 @@ public MyDataNotRequiringCDI getMyDataNotRequiringCDI() { public void setMyDataNotRequiringCDI(MyDataNotRequiringCDI myDataNotRequiringCDI) { this.myDataNotRequiringCDI = myDataNotRequiringCDI; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyCdiContext.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyCdiContext.java index e1aadac6e2762..4870fec88ea6b 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyCdiContext.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyCdiContext.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyCdiContext { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataNotRequiringCDIConverter.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataNotRequiringCDIConverter.java index 49d88e5376fde..cbafae9fe3a2d 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataNotRequiringCDIConverter.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataNotRequiringCDIConverter.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.attributeconverter; -import javax.inject.Inject; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.inject.Inject; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; @Converter public class MyDataNotRequiringCDIConverter implements AttributeConverter { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataRequiringCDIConverter.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataRequiringCDIConverter.java index 59686baf68215..f7dd79f368f9a 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataRequiringCDIConverter.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/attributeconverter/MyDataRequiringCDIConverter.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.attributeconverter; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.AttributeConverter; -import javax.persistence.Converter; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Converter; @Converter @ApplicationScoped diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/CRUDResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/CRUDResource.java index f51b59dacb89f..80e484722e418 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/CRUDResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/CRUDResource.java @@ -3,15 +3,15 @@ import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.cache.spi.TimestampsCache; import org.hibernate.internal.SessionImpl; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Cake.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Cake.java index 25c68153e1b56..55afc4004de57 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Cake.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Cake.java @@ -1,11 +1,11 @@ package io.quarkus.it.jpa.configurationless; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; @Entity @Table(uniqueConstraints = @UniqueConstraint(name = "typeConstraint", columnNames = "type")) diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/ConfigurationlessApp.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/ConfigurationlessApp.java index d0c8f04159548..6c01cf18dc7c0 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/ConfigurationlessApp.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/ConfigurationlessApp.java @@ -1,7 +1,7 @@ package io.quarkus.it.jpa.configurationless; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; /** * @author Emmanuel Bernard emmanuel@hibernate.org diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Gift.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Gift.java index a3d125095ff0b..4c1eb86a84b3a 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Gift.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/Gift.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.configurationless; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; /** * @author Emmanuel Bernard emmanuel@hibernate.org diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/StartupCakeManager.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/StartupCakeManager.java index 5d310d66fd756..e81468c6ef35f 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/StartupCakeManager.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/configurationless/StartupCakeManager.java @@ -1,10 +1,10 @@ package io.quarkus.it.jpa.configurationless; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; import io.quarkus.runtime.StartupEvent; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/DefaultCatalogAndSchemaResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/DefaultCatalogAndSchemaResource.java index f24399e96fc45..eeb07ca0cdcd3 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/DefaultCatalogAndSchemaResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/DefaultCatalogAndSchemaResource.java @@ -4,13 +4,13 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.hibernate.Session; import org.hibernate.type.LongType; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/EntityWithDefaultCatalogAndSchema.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/EntityWithDefaultCatalogAndSchema.java index 3817e8fdf74fe..15ff265835220 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/EntityWithDefaultCatalogAndSchema.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/defaultcatalogandschema/EntityWithDefaultCatalogAndSchema.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa.defaultcatalogandschema; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity(name = EntityWithDefaultCatalogAndSchema.NAME) public class EntityWithDefaultCatalogAndSchema { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/ElementCollectionResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/ElementCollectionResource.java index 04d9e1d2c133e..a74cdc6dce768 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/ElementCollectionResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/ElementCollectionResource.java @@ -3,14 +3,14 @@ import java.time.DayOfWeek; import java.time.LocalTime; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/element-collection") @ApplicationScoped diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/OpeningTimes.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/OpeningTimes.java index c75a75fbc7353..e4351539b54c2 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/OpeningTimes.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/elementcollection/OpeningTimes.java @@ -12,11 +12,11 @@ import java.util.Set; import java.util.UUID; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.validation.constraints.NotNull; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.validation.constraints.NotNull; import org.hibernate.annotations.Cascade; import org.hibernate.annotations.GenericGenerator; @@ -125,4 +125,4 @@ public int hashCode() { return Objects.hash( getId(), getName(), getDescription(), getTimeFrom(), getTimeTo(), getDaysOfWeek()); } -} \ No newline at end of file +} diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/CustomEntityListenersAnnotation.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/CustomEntityListenersAnnotation.java index 08e34ff83b24b..c05e1c5bdabea 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/CustomEntityListenersAnnotation.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/CustomEntityListenersAnnotation.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa.entitylistener; -import javax.persistence.EntityListeners; +import jakarta.persistence.EntityListeners; @EntityListeners(MyListenerRequiringCdi.class) public @interface CustomEntityListenersAnnotation { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityListenerResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityListenerResource.java index 0a5f2066b2f9b..9e0484c14883b 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityListenerResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityListenerResource.java @@ -6,21 +6,21 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.assertj.core.api.InstanceOfAssertFactories; import org.assertj.core.api.ListAssert; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughEntityListenersAnnotation.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughEntityListenersAnnotation.java index a90ef7eb85554..588598015506b 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughEntityListenersAnnotation.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughEntityListenersAnnotation.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.entitylistener; -import javax.persistence.Entity; -import javax.persistence.EntityListeners; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.Id; @Entity @EntityListeners(MyListenerRequiringCdi.class) diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughInstanceMethods.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughInstanceMethods.java index 744c3d5c0e57e..d56b9dc08b098 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughInstanceMethods.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/EntityWithListenerThroughInstanceMethods.java @@ -2,15 +2,15 @@ import java.lang.annotation.Annotation; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; @Entity public class EntityWithListenerThroughInstanceMethods { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyCdiContext.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyCdiContext.java index e10d0a1a0ddb6..274b07e28637e 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyCdiContext.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyCdiContext.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MyCdiContext { diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyListenerRequiringCdi.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyListenerRequiringCdi.java index 141474b3fad00..939d3ccbcf6f3 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyListenerRequiringCdi.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/entitylistener/MyListenerRequiringCdi.java @@ -3,15 +3,15 @@ import java.lang.annotation.Annotation; import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.PostLoad; -import javax.persistence.PostPersist; -import javax.persistence.PostRemove; -import javax.persistence.PostUpdate; -import javax.persistence.PrePersist; -import javax.persistence.PreRemove; -import javax.persistence.PreUpdate; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.PostLoad; +import jakarta.persistence.PostPersist; +import jakarta.persistence.PostRemove; +import jakarta.persistence.PostUpdate; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreRemove; +import jakarta.persistence.PreUpdate; import io.quarkus.arc.ClientProxy; diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/integrator/IntegratorResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/integrator/IntegratorResource.java index 3490993b608b1..5cfbc191ece4f 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/integrator/IntegratorResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/integrator/IntegratorResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.jpa.integrator; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/integrator") @ApplicationScoped diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/EntityWithSequenceIdentityId.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/EntityWithSequenceIdentityId.java index 6426d90e3552f..ce2e938399b7b 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/EntityWithSequenceIdentityId.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/EntityWithSequenceIdentityId.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.jdbcmetadata; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; import org.hibernate.annotations.GenericGenerator; @@ -30,4 +30,4 @@ public String getName() { public void setName(String name) { this.name = name; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/JdbcMetadataRetrievalResource.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/JdbcMetadataRetrievalResource.java index 533c99cb10395..a6b0f56822e0d 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/JdbcMetadataRetrievalResource.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/jdbcmetadata/JdbcMetadataRetrievalResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.jpa.jdbcmetadata; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/jdbc-metadata-retrieval") @ApplicationScoped diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Child.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Child.java index 8a6853f9614b5..570da8b9ae80a 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Child.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Child.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa.orderbyfragment; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; @Entity public class Child { @@ -49,4 +49,4 @@ public void setFavoritePet(String favoritePet) { this.favoritePet = favoritePet; } -} \ No newline at end of file +} diff --git a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Parent.java b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Parent.java index e69aaa7eff656..c8930a8ecfe55 100644 --- a/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Parent.java +++ b/integration-tests/jpa/src/main/java/io/quarkus/it/jpa/orderbyfragment/Parent.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; @Entity public class Parent { @@ -33,4 +33,4 @@ public void setId(Long id) { this.id = id; } -} \ No newline at end of file +} diff --git a/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnField.java b/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnField.java index 9e7aef15ad725..ca13e2f3de83e 100644 --- a/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnField.java +++ b/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnField.java @@ -2,14 +2,14 @@ import java.lang.reflect.Type; -import javax.json.bind.annotation.JsonbTypeDeserializer; -import javax.json.bind.annotation.JsonbTypeSerializer; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.bind.serializer.JsonbSerializer; -import javax.json.bind.serializer.SerializationContext; -import javax.json.stream.JsonGenerator; -import javax.json.stream.JsonParser; +import jakarta.json.bind.annotation.JsonbTypeDeserializer; +import jakarta.json.bind.annotation.JsonbTypeSerializer; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.bind.serializer.JsonbSerializer; +import jakarta.json.bind.serializer.SerializationContext; +import jakarta.json.stream.JsonGenerator; +import jakarta.json.stream.JsonParser; import io.quarkus.runtime.annotations.RegisterForReflection; diff --git a/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerDeserializerOnFieldResource.java b/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerDeserializerOnFieldResource.java index ec7f0ffc1bfd6..c400dc1f3c349 100644 --- a/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerDeserializerOnFieldResource.java +++ b/integration-tests/jsonb/src/main/java/io/quarkus/it/jsonb/ModelWithSerializerDeserializerOnFieldResource.java @@ -2,14 +2,14 @@ import java.io.IOException; -import javax.json.bind.Jsonb; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.json.bind.Jsonb; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("fieldserder") public class ModelWithSerializerDeserializerOnFieldResource { diff --git a/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/JsonInStaticBlockTestCase.java b/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/JsonInStaticBlockTestCase.java index 94471081d26f7..fe0b7aa06370c 100644 --- a/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/JsonInStaticBlockTestCase.java +++ b/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/JsonInStaticBlockTestCase.java @@ -1,6 +1,6 @@ package io.quarkus.it.jsonb; -import javax.json.bind.spi.JsonbProvider; +import jakarta.json.bind.spi.JsonbProvider; import org.junit.jupiter.api.Test; @@ -16,4 +16,4 @@ class JsonInStaticBlockTestCase { void get() { } -} \ No newline at end of file +} diff --git a/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnFieldResourceTest.java b/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnFieldResourceTest.java index 05856fd416733..16f450a2c6418 100644 --- a/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnFieldResourceTest.java +++ b/integration-tests/jsonb/src/test/java/io/quarkus/it/jsonb/ModelWithSerializerAndDeserializerOnFieldResourceTest.java @@ -6,8 +6,8 @@ import java.io.IOException; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; import org.junit.jupiter.api.Test; diff --git a/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java b/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java index 1960ffe1df280..fc8148471aafa 100644 --- a/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java +++ b/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java @@ -2,10 +2,10 @@ import java.time.Duration; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.ConsumerRecords; diff --git a/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java b/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java index 8b7fc9bc2300b..bea7b82aee3f8 100644 --- a/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java +++ b/integration-tests/kafka-avro-apicurio2/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java @@ -4,7 +4,7 @@ import java.util.Properties; import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.consumer.KafkaConsumer; diff --git a/integration-tests/kafka-avro-apicurio2/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java b/integration-tests/kafka-avro-apicurio2/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java index 7aaeea67e39aa..4884d56422afe 100644 --- a/integration-tests/kafka-avro-apicurio2/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java +++ b/integration-tests/kafka-avro-apicurio2/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.it.kafka.avro.AvroKafkaCreator; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java index 1960ffe1df280..fc8148471aafa 100644 --- a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java +++ b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java @@ -2,10 +2,10 @@ import java.time.Duration; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.clients.consumer.ConsumerRecords; diff --git a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java index 2a6e9d809378d..e0bccff520cb1 100644 --- a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java +++ b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java @@ -4,7 +4,7 @@ import java.util.Properties; import java.util.UUID; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.clients.consumer.KafkaConsumer; diff --git a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java index 359b2fa7e7bca..8b4ff31181c2a 100644 --- a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java +++ b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaAdminManager.java b/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaAdminManager.java index 7ac165238105c..4646a438c80b9 100644 --- a/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaAdminManager.java +++ b/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaAdminManager.java @@ -7,9 +7,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; import org.apache.kafka.clients.admin.AdminClient; import org.apache.kafka.clients.admin.AdminClientConfig; diff --git a/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index 00b0c740d5e69..cf294ebd949b0 100644 --- a/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/kafka-devservices/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.it.kafka; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("/kafka") public class KafkaEndpoint { diff --git a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java index 28c8ab686c947..191cdf8cd8ca0 100644 --- a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java +++ b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.logging.Logger; diff --git a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java index 08676d4c4025c..f8ccd7c191d05 100644 --- a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java +++ b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.sasl; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java index 0b5a93284bf1a..c80264f17936d 100644 --- a/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java +++ b/integration-tests/kafka-oauth-keycloak/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/kafka") public class KafkaResource { @@ -19,4 +19,4 @@ public class KafkaResource { public List getValues() { return consumer.getValues(); } -} \ No newline at end of file +} diff --git a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java index 28c8ab686c947..191cdf8cd8ca0 100644 --- a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java +++ b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaConsumer.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.logging.Logger; diff --git a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java index 08676d4c4025c..f8ccd7c191d05 100644 --- a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java +++ b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.sasl; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java index 0b5a93284bf1a..c80264f17936d 100644 --- a/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java +++ b/integration-tests/kafka-sasl-elytron/src/main/java/io/quarkus/it/kafka/sasl/KafkaResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/kafka") public class KafkaResource { @@ -19,4 +19,4 @@ public class KafkaResource { public List getValues() { return consumer.getValues(); } -} \ No newline at end of file +} diff --git a/integration-tests/kafka-sasl/src/main/java/io/quarkus/it/kafka/sasl/SaslKafkaEndpoint.java b/integration-tests/kafka-sasl/src/main/java/io/quarkus/it/kafka/sasl/SaslKafkaEndpoint.java index 1b06fefe8b387..bcfb816d7ae13 100644 --- a/integration-tests/kafka-sasl/src/main/java/io/quarkus/it/kafka/sasl/SaslKafkaEndpoint.java +++ b/integration-tests/kafka-sasl/src/main/java/io/quarkus/it/kafka/sasl/SaslKafkaEndpoint.java @@ -4,10 +4,10 @@ import java.util.Collections; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.CommonClientConfigs; import org.apache.kafka.clients.consumer.Consumer; diff --git a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java index d8c0303af163b..46fccf49140ee 100644 --- a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java +++ b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java @@ -4,11 +4,11 @@ import java.util.Collections; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerConfig; diff --git a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index fd429d6fcd109..9020ceaa0b7d8 100644 --- a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.it.kafka; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/kafka") public class KafkaEndpoint { diff --git a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java index e1d61b1117dd4..41f0fd23563c4 100644 --- a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java +++ b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java @@ -2,11 +2,11 @@ import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.Producer; diff --git a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java index 2d5abbeb43db2..4aa610363f183 100644 --- a/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java +++ b/integration-tests/kafka-snappy/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java @@ -4,10 +4,10 @@ import java.util.Collections; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerConfig; diff --git a/integration-tests/kafka-ssl/src/main/java/io/quarkus/it/kafka/ssl/SslKafkaEndpoint.java b/integration-tests/kafka-ssl/src/main/java/io/quarkus/it/kafka/ssl/SslKafkaEndpoint.java index c424e779f8293..773fd8681bb51 100644 --- a/integration-tests/kafka-ssl/src/main/java/io/quarkus/it/kafka/ssl/SslKafkaEndpoint.java +++ b/integration-tests/kafka-ssl/src/main/java/io/quarkus/it/kafka/ssl/SslKafkaEndpoint.java @@ -5,10 +5,10 @@ import java.util.Collections; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.CommonClientConfigs; import org.apache.kafka.clients.consumer.Consumer; diff --git a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEndpoint.java b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEndpoint.java index 496a7329eefdb..38e5fbac605cd 100644 --- a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEndpoint.java +++ b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEndpoint.java @@ -1,11 +1,11 @@ package io.quarkus.it.kafka.streams; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.apache.kafka.streams.KafkaStreams; import org.apache.kafka.streams.StoreQueryParameters; diff --git a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEventCounter.java b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEventCounter.java index 6f312fde0fc9b..e7affadc599dd 100644 --- a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEventCounter.java +++ b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsEventCounter.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.LongAdder; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.apache.kafka.streams.KafkaStreams; diff --git a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsPipeline.java b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsPipeline.java index 9e1cbc002c452..ed932cb7a1771 100644 --- a/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsPipeline.java +++ b/integration-tests/kafka-streams/src/main/java/io/quarkus/it/kafka/streams/KafkaStreamsPipeline.java @@ -1,8 +1,8 @@ package io.quarkus.it.kafka.streams; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import org.apache.kafka.common.serialization.Serdes; import org.apache.kafka.streams.KafkaStreams.State; diff --git a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsCdiEventTest.java b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsCdiEventTest.java index 9600d651d60f0..8c7fffe1ff5b4 100644 --- a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsCdiEventTest.java +++ b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsCdiEventTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.streams; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsPropertiesTest.java b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsPropertiesTest.java index cb2f1550cbe13..8a56018dbeedb 100644 --- a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsPropertiesTest.java +++ b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsPropertiesTest.java @@ -3,7 +3,7 @@ import java.lang.reflect.Field; import java.util.Map; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.apache.kafka.common.config.SaslConfigs; import org.apache.kafka.streams.KafkaStreams; diff --git a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsStartupFailureTest.java b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsStartupFailureTest.java index 0f1fba2676d22..a68acba849e55 100644 --- a/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsStartupFailureTest.java +++ b/integration-tests/kafka-streams/src/test/java/io/quarkus/it/kafka/streams/KafkaStreamsStartupFailureTest.java @@ -7,7 +7,7 @@ import java.util.HashMap; import java.util.Map; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.apache.http.HttpStatus; import org.apache.kafka.streams.KafkaStreams; diff --git a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java index 3715bbd5df4ea..991af1eb4e430 100644 --- a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java +++ b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaConsumerManager.java @@ -4,11 +4,11 @@ import java.util.Collections; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerConfig; diff --git a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index fd429d6fcd109..9020ceaa0b7d8 100644 --- a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -1,9 +1,9 @@ package io.quarkus.it.kafka; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/kafka") public class KafkaEndpoint { diff --git a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java index b25e0b4822a7b..f41c832aab862 100644 --- a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java +++ b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/KafkaProducerManager.java @@ -2,11 +2,11 @@ import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Event; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Event; +import jakarta.inject.Inject; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.Producer; diff --git a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java index 904b0c028eac0..77d64269d6e4a 100644 --- a/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java +++ b/integration-tests/kafka/src/main/java/io/quarkus/it/kafka/codecs/CodecEndpoint.java @@ -5,10 +5,10 @@ import java.util.List; import java.util.Properties; -import javax.annotation.PostConstruct; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.ConsumerConfig; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/AdminClientResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/AdminClientResource.java index fa99da14b2a70..d5b379df18b34 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/AdminClientResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/AdminClientResource.java @@ -4,11 +4,11 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.keycloak.admin.client.Keycloak; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java index ccf7348b98213..7252dc38ca0d9 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index b79d66aa16b4d..98e033b2f14ae 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -5,15 +5,16 @@ import java.util.List; import java.util.Map; -import javax.inject.Inject; import javax.security.auth.AuthPermission; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; + +import jakarta.inject.Inject; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; import org.keycloak.authorization.client.AuthzClient; import org.keycloak.representations.idm.authorization.Permission; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java index ea5e91e9d4a26..04e782c18cd60 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedTenantResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedTenantResource.java index 8a59bee71de7e..02fba91c885e3 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedTenantResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedTenantResource.java @@ -2,11 +2,12 @@ import java.util.List; -import javax.inject.Inject; import javax.security.auth.AuthPermission; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.inject.Inject; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.keycloak.representations.idm.authorization.Permission; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedWebAppTenantResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedWebAppTenantResource.java index 4af71b4da7fef..c69579906e33b 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedWebAppTenantResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/ProtectedWebAppTenantResource.java @@ -2,11 +2,12 @@ import java.util.List; -import javax.inject.Inject; import javax.security.auth.AuthPermission; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.inject.Inject; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.keycloak.representations.idm.authorization.Permission; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/PublicResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/PublicResource.java index 2398c8b152da8..ba90d1c1ff618 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/PublicResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/PublicResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/api") public class PublicResource { diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/SnakeCaseObjectMapperCustomizer.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/SnakeCaseObjectMapperCustomizer.java index 56f297f6d39ef..89d5496cfdda0 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/SnakeCaseObjectMapperCustomizer.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/SnakeCaseObjectMapperCustomizer.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategies; diff --git a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/UsersResource.java b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/UsersResource.java index 9ac559a75da9a..59bd33c1d65c4 100644 --- a/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/UsersResource.java +++ b/integration-tests/keycloak-authorization/src/main/java/io/quarkus/it/keycloak/UsersResource.java @@ -3,9 +3,9 @@ import java.lang.reflect.Type; import java.util.function.BiFunction; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; diff --git a/integration-tests/kotlin-serialization/pom.xml b/integration-tests/kotlin-serialization/pom.xml index f1e96d4b05990..90395ea5a01ff 100644 --- a/integration-tests/kotlin-serialization/pom.xml +++ b/integration-tests/kotlin-serialization/pom.xml @@ -115,7 +115,7 @@ kotlinx-serialization - + diff --git a/integration-tests/kotlin-serialization/src/main/kotlin/io/quarkus/it/kotser/GreetingResource.kt b/integration-tests/kotlin-serialization/src/main/kotlin/io/quarkus/it/kotser/GreetingResource.kt index 9340add0ca808..5e7bf549507f3 100644 --- a/integration-tests/kotlin-serialization/src/main/kotlin/io/quarkus/it/kotser/GreetingResource.kt +++ b/integration-tests/kotlin-serialization/src/main/kotlin/io/quarkus/it/kotser/GreetingResource.kt @@ -3,16 +3,16 @@ package io.quarkus.it.kotser import io.quarkus.it.kotser.model.Person import io.quarkus.it.kotser.model.Person2 import io.quarkus.runtime.annotations.RegisterForReflection +import jakarta.ws.rs.Consumes +import jakarta.ws.rs.GET +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.Response import kotlinx.coroutines.flow.flowOf import org.jboss.resteasy.reactive.RestResponse import java.lang.reflect.Method -import javax.ws.rs.Consumes -import javax.ws.rs.GET -import javax.ws.rs.POST -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.Response import kotlin.reflect.jvm.javaMethod @Path("/") diff --git a/integration-tests/kotlin-serialization/src/test/kotlin/io/quarkus/it/kotser/ResourceTest.kt b/integration-tests/kotlin-serialization/src/test/kotlin/io/quarkus/it/kotser/ResourceTest.kt index b08196a95935d..a9a19e4a701b5 100644 --- a/integration-tests/kotlin-serialization/src/test/kotlin/io/quarkus/it/kotser/ResourceTest.kt +++ b/integration-tests/kotlin-serialization/src/test/kotlin/io/quarkus/it/kotser/ResourceTest.kt @@ -5,10 +5,10 @@ import io.restassured.http.ContentType.JSON import io.restassured.module.kotlin.extensions.Given import io.restassured.module.kotlin.extensions.Then import io.restassured.module.kotlin.extensions.When +import jakarta.ws.rs.core.MediaType import org.hamcrest.CoreMatchers import org.hamcrest.CoreMatchers.`is` import org.junit.jupiter.api.Test -import javax.ws.rs.core.MediaType @QuarkusTest open class ResourceTest { diff --git a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/pom.xml b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/pom.xml index 6b45fd12bfcfe..9d7b96435010b 100644 --- a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/pom.xml +++ b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/pom.xml @@ -93,8 +93,8 @@ - - + + diff --git a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/GreetingService.kt b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/GreetingService.kt index d2ef3f867a58f..702331c77d88a 100644 --- a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/GreetingService.kt +++ b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/GreetingService.kt @@ -1,6 +1,6 @@ package org.acme -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class GreetingService { diff --git a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/HelloResource.kt b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/HelloResource.kt index 0f4ca19358ce1..35f950229f96a 100644 --- a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/HelloResource.kt +++ b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/HelloResource.kt @@ -2,11 +2,11 @@ package org.acme import org.eclipse.microprofile.config.inject.ConfigProperty -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType @Path("/hello") class HelloResource(val greetingService: GreetingService) { diff --git a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/MyApplication.kt b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/MyApplication.kt index a671aa1108991..d4a8377085192 100644 --- a/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/MyApplication.kt +++ b/integration-tests/kotlin/src/test/resources/projects/classic-kotlin/src/main/kotlin/org/acme/MyApplication.kt @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.ApplicationPath -import javax.ws.rs.core.Application +import jakarta.ws.rs.ApplicationPath +import jakarta.ws.rs.core.Application @ApplicationPath("/app") class MyApplication : Application() diff --git a/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/pom.xml b/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/pom.xml index e40cb6e219594..a5cc869a832c5 100644 --- a/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/pom.xml +++ b/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/pom.xml @@ -80,8 +80,8 @@ - - + + diff --git a/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/src/main/kotlin/org/acme/GreetingResource.kt b/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/src/main/kotlin/org/acme/GreetingResource.kt index 8d765a9226dfb..f40301d7bd443 100644 --- a/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/src/main/kotlin/org/acme/GreetingResource.kt +++ b/integration-tests/kotlin/src/test/resources/projects/external-reloadable-artifacts/app/src/main/kotlin/org/acme/GreetingResource.kt @@ -1,9 +1,9 @@ package org.acme -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 import org.acme.lib.* diff --git a/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/pom.xml b/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/pom.xml index 11ccee8b43bdf..eb816331807ff 100644 --- a/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/pom.xml +++ b/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/pom.xml @@ -107,8 +107,8 @@ - - + + -Xemit-jvm-type-annotations diff --git a/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/src/main/kotlin/org/acme/HelloResource.kt b/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/src/main/kotlin/org/acme/HelloResource.kt index 12e57cdba4951..3bd594ec808ca 100644 --- a/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/src/main/kotlin/org/acme/HelloResource.kt +++ b/integration-tests/kotlin/src/test/resources/projects/kotlin-compiler-args/src/main/kotlin/org/acme/HelloResource.kt @@ -1,10 +1,10 @@ package org.acme -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("/app/hello") class HelloResource() { diff --git a/integration-tests/kubernetes-client-devservices/src/test/java/io/quarkus/kubernetes/client/devservices/it/DevServicesKubernetesITest.java b/integration-tests/kubernetes-client-devservices/src/test/java/io/quarkus/kubernetes/client/devservices/it/DevServicesKubernetesITest.java index a30211e97fa92..bee85cf7445cb 100644 --- a/integration-tests/kubernetes-client-devservices/src/test/java/io/quarkus/kubernetes/client/devservices/it/DevServicesKubernetesITest.java +++ b/integration-tests/kubernetes-client-devservices/src/test/java/io/quarkus/kubernetes/client/devservices/it/DevServicesKubernetesITest.java @@ -1,6 +1,6 @@ package io.quarkus.kubernetes.client.devservices.it; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; diff --git a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/ConfigMapProperties.java b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/ConfigMapProperties.java index e749ab3cee603..4cac351326bb6 100644 --- a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/ConfigMapProperties.java +++ b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/ConfigMapProperties.java @@ -1,7 +1,7 @@ package io.quarkus.it.kubernetes.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Pods.java b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Pods.java index 635ee4eabeac4..de54905a37ca6 100644 --- a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Pods.java +++ b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Pods.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.UUID; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import io.fabric8.kubernetes.api.model.Pod; import io.fabric8.kubernetes.api.model.PodBuilder; diff --git a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/SecretProperties.java b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/SecretProperties.java index a879c97f939d8..de81f578940c5 100644 --- a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/SecretProperties.java +++ b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/SecretProperties.java @@ -1,7 +1,7 @@ package io.quarkus.it.kubernetes.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Version.java b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Version.java index f77572e86ca21..0bce4bba85ff9 100644 --- a/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Version.java +++ b/integration-tests/kubernetes-client/src/main/java/io/quarkus/it/kubernetes/client/Version.java @@ -1,8 +1,8 @@ package io.quarkus.it.kubernetes.client; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.fabric8.kubernetes.client.KubernetesClient; diff --git a/integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/OpenShiftTestServerTest.java b/integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/OpenShiftTestServerTest.java index 7ac81f6b3a813..019b1dc5b24e6 100644 --- a/integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/OpenShiftTestServerTest.java +++ b/integration-tests/kubernetes-client/src/test/java/io/quarkus/it/kubernetes/client/OpenShiftTestServerTest.java @@ -5,7 +5,7 @@ import java.util.Base64; import java.util.function.Consumer; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java b/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java index 9d60a9f3bb8ce..8fd28bbe3d695 100644 --- a/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java +++ b/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java @@ -1,13 +1,13 @@ package io.quarkus.it.k8ssb.jdbc; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java b/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java index d5f663f9deaa9..5a9a9d7a9fa73 100644 --- a/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java +++ b/integration-tests/kubernetes-service-binding-jdbc/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.smallrye.common.annotation.Blocking; diff --git a/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java b/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java index 9d60a9f3bb8ce..8fd28bbe3d695 100644 --- a/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java +++ b/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/Fruit.java @@ -1,13 +1,13 @@ package io.quarkus.it.k8ssb.jdbc; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.NamedQuery; -import javax.persistence.QueryHint; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.NamedQuery; +import jakarta.persistence.QueryHint; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity @Table(name = "known_fruits") diff --git a/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java b/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java index bbd649163a981..c6158e87d8277 100644 --- a/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java +++ b/integration-tests/kubernetes-service-binding-reactive/src/main/java/io/quarkus/it/k8ssb/jdbc/FruitResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-deployment/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-deployment/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-deployment/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-deployment/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-statefulset/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-statefulset/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-statefulset/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-docker-build-and-deploy-statefulset/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-jib-build-and-deploy/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-jib-build-and-deploy/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-jib-build-and-deploy/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-jib-build-and-deploy/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-with-existing-selectorless-manifest/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-with-existing-selectorless-manifest/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-with-existing-selectorless-manifest/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/kubernetes-with-existing-selectorless-manifest/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/minikube-with-existing-manifest/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/minikube-with-existing-manifest/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/minikube-with-existing-manifest/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/minikube-with-existing-manifest/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-docker-build-and-deploy/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-docker-build-and-deploy/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-docker-build-and-deploy/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-docker-build-and-deploy/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/maven-invoker-way/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml b/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml index 5ed5dee82e1c8..1b6ac8e2d05df 100644 --- a/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml +++ b/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml @@ -101,8 +101,8 @@ test - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api test diff --git a/integration-tests/kubernetes/quarkus-standard-way/pom.xml b/integration-tests/kubernetes/quarkus-standard-way/pom.xml index db695f26cfe3b..684082bf762d4 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/pom.xml +++ b/integration-tests/kubernetes/quarkus-standard-way/pom.xml @@ -101,8 +101,8 @@ test - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api test diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/main/java/io/quarkus/it/kubernetes/GreetingResource.java b/integration-tests/kubernetes/quarkus-standard-way/src/main/java/io/quarkus/it/kubernetes/GreetingResource.java index 9969525540057..83474042031c3 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/main/java/io/quarkus/it/kubernetes/GreetingResource.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/main/java/io/quarkus/it/kubernetes/GreetingResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.kubernetes; -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("/greeting") public class GreetingResource { diff --git a/integration-tests/kubernetes/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java b/integration-tests/kubernetes/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java index ad80766a17747..95b11f63bda44 100644 --- a/integration-tests/kubernetes/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java +++ b/integration-tests/kubernetes/src/it/openshift-s2i-build-and-deploy/src/main/java/org/acme/Hello.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class Hello { @@ -13,4 +13,4 @@ public class Hello { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/liquibase-mongodb/src/main/java/io/quarkus/it/liquibase/mongodb/FruitResource.java b/integration-tests/liquibase-mongodb/src/main/java/io/quarkus/it/liquibase/mongodb/FruitResource.java index cdbb0a4efc69c..f056bd62adf53 100644 --- a/integration-tests/liquibase-mongodb/src/main/java/io/quarkus/it/liquibase/mongodb/FruitResource.java +++ b/integration-tests/liquibase-mongodb/src/main/java/io/quarkus/it/liquibase/mongodb/FruitResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.bson.types.ObjectId; diff --git a/integration-tests/liquibase-mongodb/src/test/java/io/quarkus/it/liquibase/mongodb/FruitResourceTest.java b/integration-tests/liquibase-mongodb/src/test/java/io/quarkus/it/liquibase/mongodb/FruitResourceTest.java index 6f9a203d3ec4f..f87033d050171 100644 --- a/integration-tests/liquibase-mongodb/src/test/java/io/quarkus/it/liquibase/mongodb/FruitResourceTest.java +++ b/integration-tests/liquibase-mongodb/src/test/java/io/quarkus/it/liquibase/mongodb/FruitResourceTest.java @@ -7,7 +7,7 @@ import java.util.stream.Collectors; import java.util.stream.StreamSupport; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.bson.Document; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseApp.java b/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseApp.java index 2225995da32ca..6cc6f48b9245b 100644 --- a/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseApp.java +++ b/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseApp.java @@ -1,7 +1,7 @@ package io.quarkus.it.liquibase; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/liquibase") public class LiquibaseApp extends Application { diff --git a/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseFunctionalityResource.java b/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseFunctionalityResource.java index 4c09bbc46f0a4..b71310c69e38c 100644 --- a/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseFunctionalityResource.java +++ b/integration-tests/liquibase/src/main/java/io/quarkus/it/liquibase/LiquibaseFunctionalityResource.java @@ -4,10 +4,10 @@ import java.util.Objects; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; import io.quarkus.liquibase.LiquibaseFactory; import liquibase.Liquibase; diff --git a/integration-tests/locales/src/main/java/io/quarkus/locales/it/LocalesResource.java b/integration-tests/locales/src/main/java/io/quarkus/locales/it/LocalesResource.java index c4998b33c5016..ad2ff844decb3 100644 --- a/integration-tests/locales/src/main/java/io/quarkus/locales/it/LocalesResource.java +++ b/integration-tests/locales/src/main/java/io/quarkus/locales/it/LocalesResource.java @@ -5,12 +5,12 @@ import java.util.Locale; import java.util.TimeZone; -import javax.validation.constraints.NotNull; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; @Path("") public class LocalesResource { diff --git a/integration-tests/logging-gelf/src/main/java/io/quarkus/logging/gelf/it/GelfLogHandlerResource.java b/integration-tests/logging-gelf/src/main/java/io/quarkus/logging/gelf/it/GelfLogHandlerResource.java index 28cba380916e0..6de56f46342f9 100644 --- a/integration-tests/logging-gelf/src/main/java/io/quarkus/logging/gelf/it/GelfLogHandlerResource.java +++ b/integration-tests/logging-gelf/src/main/java/io/quarkus/logging/gelf/it/GelfLogHandlerResource.java @@ -16,9 +16,9 @@ */ package io.quarkus.logging.gelf.it; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-json/src/main/java/io/quarkus/it/logging/json/GreetingResource.java b/integration-tests/logging-json/src/main/java/io/quarkus/it/logging/json/GreetingResource.java index 1c3099e4d5610..b83cf4d4c0026 100644 --- a/integration-tests/logging-json/src/main/java/io/quarkus/it/logging/json/GreetingResource.java +++ b/integration-tests/logging-json/src/main/java/io/quarkus/it/logging/json/GreetingResource.java @@ -2,10 +2,10 @@ import java.util.logging.Logger; -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("/hello") public class GreetingResource { diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/above/LoggingMinLevelAbove.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/above/LoggingMinLevelAbove.java index 7e8b33db36039..8ac43dd4f6f8a 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/above/LoggingMinLevelAbove.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/above/LoggingMinLevelAbove.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.above; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/LoggingMinLevelBelow.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/LoggingMinLevelBelow.java index b2597bf482b9c..b57ffc92fbda3 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/LoggingMinLevelBelow.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/LoggingMinLevelBelow.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.below; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/child/LoggingMinLevelBelowChild.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/child/LoggingMinLevelBelowChild.java index e17b1267e0ae1..184ae23f8f1a8 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/child/LoggingMinLevelBelowChild.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/below/child/LoggingMinLevelBelowChild.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.below.child; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/bydefault/LoggingMinLevelByDefault.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/bydefault/LoggingMinLevelByDefault.java index e4055c810b6c2..1ccf19909feb6 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/bydefault/LoggingMinLevelByDefault.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/bydefault/LoggingMinLevelByDefault.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.bydefault; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/filter/LoggingFilter.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/filter/LoggingFilter.java index 4410b4cdd7ee6..59b6dc2e1bf27 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/filter/LoggingFilter.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/filter/LoggingFilter.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.filter; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/LoggingMinLevelPromote.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/LoggingMinLevelPromote.java index ddb251b3ee243..26560f81fe606 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/LoggingMinLevelPromote.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/LoggingMinLevelPromote.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.promote; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/sub/LoggingMinLevelPromoteSub.java b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/sub/LoggingMinLevelPromoteSub.java index 6c29051a9c190..75d229cd4e1ab 100644 --- a/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/sub/LoggingMinLevelPromoteSub.java +++ b/integration-tests/logging-min-level-set/src/main/java/io/quarkus/it/logging/minlevel/set/promote/sub/LoggingMinLevelPromoteSub.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.set.promote.sub; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/above/LoggingMinLevelAbove.java b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/above/LoggingMinLevelAbove.java index f2982156233e5..1102ce2f82cb9 100644 --- a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/above/LoggingMinLevelAbove.java +++ b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/above/LoggingMinLevelAbove.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.unset.above; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/bydefault/LoggingMinLevelByDefault.java b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/bydefault/LoggingMinLevelByDefault.java index 0a6c206c6f067..289780abedb1d 100644 --- a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/bydefault/LoggingMinLevelByDefault.java +++ b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/bydefault/LoggingMinLevelByDefault.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.unset.bydefault; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/promote/LoggingMinLevelPromote.java b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/promote/LoggingMinLevelPromote.java index 4bc35d2dc7cd9..f306a7ecf93d0 100644 --- a/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/promote/LoggingMinLevelPromote.java +++ b/integration-tests/logging-min-level-unset/src/main/java/io/quarkus/it/logging/minlevel/unset/promote/LoggingMinLevelPromote.java @@ -1,9 +1,9 @@ package io.quarkus.it.logging.minlevel.unset.promote; -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; import org.jboss.logging.Logger; diff --git a/integration-tests/logging-panache-kotlin/pom.xml b/integration-tests/logging-panache-kotlin/pom.xml index 24faafa687ef2..f689140cd745f 100644 --- a/integration-tests/logging-panache-kotlin/pom.xml +++ b/integration-tests/logging-panache-kotlin/pom.xml @@ -111,7 +111,7 @@ all-open - + diff --git a/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingEntity.kt b/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingEntity.kt index 97ba927822c25..ab7c0fe34512f 100644 --- a/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingEntity.kt +++ b/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingEntity.kt @@ -1,7 +1,7 @@ package io.quarkus.logging import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntity -import javax.persistence.Entity +import jakarta.persistence.Entity @Entity open class LoggingEntity : PanacheEntity() { diff --git a/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingRepository.kt b/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingRepository.kt index 0587f5adb2b82..5238eaadef53d 100644 --- a/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingRepository.kt +++ b/integration-tests/logging-panache-kotlin/src/main/kotlin/io/quarkus/logging/LoggingRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.logging import io.quarkus.hibernate.orm.panache.kotlin.PanacheRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class LoggingRepository : PanacheRepository { diff --git a/integration-tests/logging-panache-kotlin/src/test/kotlin/io/quarkus/logging/LoggingWithPanacheKotlinTest.java b/integration-tests/logging-panache-kotlin/src/test/kotlin/io/quarkus/logging/LoggingWithPanacheKotlinTest.java index de472982f6b75..a6d48ce81f496 100644 --- a/integration-tests/logging-panache-kotlin/src/test/kotlin/io/quarkus/logging/LoggingWithPanacheKotlinTest.java +++ b/integration-tests/logging-panache-kotlin/src/test/kotlin/io/quarkus/logging/LoggingWithPanacheKotlinTest.java @@ -6,7 +6,7 @@ import java.util.logging.Formatter; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingBean.java b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingBean.java index f3ddfdd4f0c96..a3bed8f67238f 100644 --- a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingBean.java +++ b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingBean.java @@ -1,7 +1,7 @@ package io.quarkus.logging; -import javax.annotation.PostConstruct; -import javax.inject.Singleton; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Singleton; @Singleton public class LoggingBean implements LoggingInterface { diff --git a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEndpoint.java b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEndpoint.java index 8fe56a9d405dc..6e184412e2f35 100644 --- a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEndpoint.java +++ b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEndpoint.java @@ -1,7 +1,7 @@ package io.quarkus.logging; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/logging") public class LoggingEndpoint { diff --git a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEntity.java b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEntity.java index e59bb0f83eb43..3bda01750fe35 100644 --- a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEntity.java +++ b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingEntity.java @@ -1,6 +1,6 @@ package io.quarkus.logging; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingWithPanacheTest.java b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingWithPanacheTest.java index 563b5f15b15f6..075b1dec002aa 100644 --- a/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingWithPanacheTest.java +++ b/integration-tests/logging-panache/src/test/java/io/quarkus/logging/LoggingWithPanacheTest.java @@ -6,7 +6,7 @@ import java.util.logging.Formatter; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.logmanager.formatters.PatternFormatter; import org.junit.jupiter.api.Test; diff --git a/integration-tests/mailer/src/main/java/io/quarkus/it/mailer/MailResource.java b/integration-tests/mailer/src/main/java/io/quarkus/it/mailer/MailResource.java index 56f7631d61b67..c831107fc268b 100644 --- a/integration-tests/mailer/src/main/java/io/quarkus/it/mailer/MailResource.java +++ b/integration-tests/mailer/src/main/java/io/quarkus/it/mailer/MailResource.java @@ -3,11 +3,11 @@ import java.io.IOException; import java.time.Duration; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.mailer.Mail; import io.quarkus.mailer.MailTemplate; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/IntercepredNormalScopedFoo.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/IntercepredNormalScopedFoo.java index d75b2d133603e..d38c7381d5080 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/IntercepredNormalScopedFoo.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/IntercepredNormalScopedFoo.java @@ -1,7 +1,7 @@ package io.quarkus.it.arc; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.arc.Lock; import io.quarkus.arc.Unremovable; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/ProducerOfUnusedUnremovableBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/ProducerOfUnusedUnremovableBean.java index 9660e4130df3f..be676facb3656 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/ProducerOfUnusedUnremovableBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/ProducerOfUnusedUnremovableBean.java @@ -1,7 +1,7 @@ package io.quarkus.it.arc; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.quarkus.arc.Unremovable; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/ReflectiveBeanEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/ReflectiveBeanEndpoint.java index 5117e65aee1a1..b52866ac0b218 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/ReflectiveBeanEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/ReflectiveBeanEndpoint.java @@ -3,9 +3,9 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.arc.ClientProxy; @@ -35,4 +35,4 @@ private int callPingViaReflection(IntercepredNormalScopedFoo foo) throws NoSuchM Method pingMethod = foo.getClass().getDeclaredMethod("ping"); return (int) pingMethod.invoke(foo); } -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java index 112b84d63899b..2bb7a16f0abe8 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/RequestScopedBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.arc; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import io.quarkus.it.arc.somepackage.Superclass; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java index 0afcf0bf755cd..00f5ef5d2f8e3 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/TestRequestScopeEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.arc; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/request-scoped") public class TestRequestScopeEndpoint { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedBean.java index f25c5d35b5498..ca5917d32b9e6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedBean.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; @Dependent public class UnusedBean { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedRemovableBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedRemovableBean.java index d63cf95d12bf8..0dfd521cc6b79 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedRemovableBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedRemovableBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.arc; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class UnusedRemovableBean { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedUnremovableBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedUnremovableBean.java index 0ed19d3cd5b7d..691cb57c8ee43 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedUnremovableBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/UnusedUnremovableBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.arc; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; import io.quarkus.arc.Unremovable; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/Simple.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/Simple.java index dcf3722c6173a..57908f7536efa 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/Simple.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/Simple.java @@ -10,8 +10,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.util.Nonbinding; -import javax.interceptor.InterceptorBinding; +import jakarta.enterprise.util.Nonbinding; +import jakarta.interceptor.InterceptorBinding; @Repeatable(Simple.List.class) @Target({ TYPE, METHOD }) diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleBean.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleBean.java index 99312bdf61075..7d1dfc9f9c849 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.arc.interceptor; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SimpleBean { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleInterceptor.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleInterceptor.java index ab254d6292dba..602eb3c1d15f8 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleInterceptor.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/SimpleInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.it.arc.interceptor; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Simple(name = "") @Priority(1) diff --git a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/TestSimpleBeanEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/TestSimpleBeanEndpoint.java index 455fac19c197a..2ffe034a25de6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/TestSimpleBeanEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/arc/interceptor/TestSimpleBeanEndpoint.java @@ -1,8 +1,8 @@ package io.quarkus.it.arc.interceptor; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/simple-bean") public class TestSimpleBeanEndpoint { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/config/ApplicationInfoResource.java b/integration-tests/main/src/main/java/io/quarkus/it/config/ApplicationInfoResource.java index 0081e83ac11e5..b5c1854283019 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/config/ApplicationInfoResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/config/ApplicationInfoResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.config; -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; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/config/ConfigPropertiesResource.java b/integration-tests/main/src/main/java/io/quarkus/it/config/ConfigPropertiesResource.java index 8ea08182ba035..5c1c1cf4033bc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/config/ConfigPropertiesResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/config/ConfigPropertiesResource.java @@ -7,8 +7,8 @@ import java.time.Period; import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.smallrye.config.ConfigMapping; import io.smallrye.config.WithDefault; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java index 02c0359d6dfa9..3e20f26ad0b87 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileConfigResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.config; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileCustomValueConverter.java b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileCustomValueConverter.java index 0db5a648ff43b..41abe112f40c6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileCustomValueConverter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/config/MicroProfileCustomValueConverter.java @@ -1,6 +1,6 @@ package io.quarkus.it.config; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import org.eclipse.microprofile.config.spi.Converter; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/context/ContextPropagationResource.java b/integration-tests/main/src/main/java/io/quarkus/it/context/ContextPropagationResource.java index 0e43fd7200f70..9d1e733ec03e4 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/context/ContextPropagationResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/context/ContextPropagationResource.java @@ -3,16 +3,16 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.context.ThreadContext; import org.wildfly.common.Assert; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/context/MutinyContextPropagationResource.java b/integration-tests/main/src/main/java/io/quarkus/it/context/MutinyContextPropagationResource.java index b82b905a02012..c494ad5bf5fa6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/context/MutinyContextPropagationResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/context/MutinyContextPropagationResource.java @@ -1,15 +1,15 @@ package io.quarkus.it.context; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.wildfly.common.Assert; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/context/RequestBean.java b/integration-tests/main/src/main/java/io/quarkus/it/context/RequestBean.java index c772f5cc9e017..a9ddcc3685635 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/context/RequestBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/context/RequestBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.context; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class RequestBean { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CharSetSupport.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CharSetSupport.java index c3aeb78b38931..382978995ecbc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CharSetSupport.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CharSetSupport.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.nio.charset.Charset; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "CoreReflectionTestEndpoint", urlPatterns = "/core/charsetsupport") public class CharSetSupport extends HttpServlet { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CustomConfigTesting.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CustomConfigTesting.java index 458478240525d..ea68466d835c3 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CustomConfigTesting.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/CustomConfigTesting.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.util.Optional; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java index c1e366ca81db6..a905a1499845c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/ReflectionTestEndpoint.java @@ -4,10 +4,10 @@ import java.io.PrintWriter; import java.lang.reflect.Method; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Some core reflection functionality tests diff --git a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SerializationTestEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SerializationTestEndpoint.java index 0a73b4cebea10..0225e44583806 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SerializationTestEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/corestuff/SerializationTestEndpoint.java @@ -9,10 +9,10 @@ import java.util.ArrayList; import java.util.List; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.it.corestuff.serialization.ExternalizablePerson; import io.quarkus.it.corestuff.serialization.Person; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java index b1392bc677c5c..dda0fd11fba0c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceResource.java @@ -4,15 +4,16 @@ import java.sql.ResultSet; import java.sql.Statement; -import javax.annotation.PostConstruct; -import javax.inject.Inject; import javax.sql.DataSource; -import javax.transaction.Status; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; + +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("/datasource") public class DatasourceResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java index df577ebbecc68..a7f1368c1922d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/datasource/DatasourceSetup.java @@ -3,11 +3,12 @@ import java.sql.Connection; import java.sql.Statement; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; import javax.sql.DataSource; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; + @ApplicationScoped public class DatasourceSetup { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/FaultToleranceTestResource.java b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/FaultToleranceTestResource.java index a7dfa837d8505..066599ea669bf 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/FaultToleranceTestResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/FaultToleranceTestResource.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/ft") public class FaultToleranceTestResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/PreconfiguredFaultTolerance.java b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/PreconfiguredFaultTolerance.java index d17ab8da7d9d2..720fc6abb0450 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/PreconfiguredFaultTolerance.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/PreconfiguredFaultTolerance.java @@ -1,7 +1,7 @@ package io.quarkus.it.faulttolerance; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import io.smallrye.common.annotation.Identifier; import io.smallrye.faulttolerance.api.FaultTolerance; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java index a9718e90a9727..abdab357c779e 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/faulttolerance/Service.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/Feed.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/Feed.java index b43b63c395010..013c4798b961a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/Feed.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/Feed.java @@ -10,16 +10,17 @@ import java.util.ArrayList; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; import javax.xml.datatype.XMLGregorianCalendar; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlValue; + /** *

    * Java class for anonymous complex type. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/ObjectFactory.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/ObjectFactory.java index 801d58b7b22dc..26d749ef0fac9 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/ObjectFactory.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/ObjectFactory.java @@ -7,7 +7,7 @@ package io.quarkus.it.jaxb.mapper.codegen.feed; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; /** * This object contains factory methods for each diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/package-info.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/package-info.java index 6a1cb0da061ca..7e8f95332b6e8 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/package-info.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/codegen/feed/package-info.java @@ -5,5 +5,5 @@ // Generated on: 2014.09.12 at 03:00:35 PM CEST // -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2005/Atom", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2005/Atom", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package io.quarkus.it.jaxb.mapper.codegen.feed; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/process/UnmarshalRSSProcess.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/process/UnmarshalRSSProcess.java index 7f47faa1ba1b1..d753d93bc5f1a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/process/UnmarshalRSSProcess.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/mapper/process/UnmarshalRSSProcess.java @@ -5,9 +5,9 @@ import java.util.Collection; import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.Unmarshaller; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.Unmarshaller; import io.quarkus.it.jaxb.mapper.codegen.feed.Feed; import io.quarkus.it.jaxb.mapper.codegen.feed.Feed.Entry; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/object/QuarkusNews.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/object/QuarkusNews.java index e2f6df8f8c2c8..b122eccec1f55 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/object/QuarkusNews.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/object/QuarkusNews.java @@ -3,7 +3,7 @@ import java.io.Serializable; import java.util.Date; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; import io.quarkus.runtime.annotations.RegisterForReflection; @@ -135,4 +135,4 @@ public Category getCategory() { public void setCategory(Category category) { this.category = category; } -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/rest/NewsResource.java b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/rest/NewsResource.java index b74fd42395b8e..a167fec375b85 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jaxb/rest/NewsResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jaxb/rest/NewsResource.java @@ -3,10 +3,10 @@ import java.util.ArrayList; import java.util.Collection; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.quarkus.it.jaxb.mapper.process.UnmarshalRSSProcess; import io.quarkus.it.jaxb.object.Category; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java index 6e1a6cb82ef56..6073b68475e45 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Address.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * This is an enmarked @Embeddable class. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/CustomTypeEntity.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/CustomTypeEntity.java index a7b9ad9d1854b..fdef09bdb6002 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/CustomTypeEntity.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/CustomTypeEntity.java @@ -2,11 +2,11 @@ import java.math.BigInteger; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java index d481a8f00e2cb..183dace3b4d67 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Customer.java @@ -1,8 +1,8 @@ package io.quarkus.it.jpa; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * Used to test reflection references for JPA diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java index cc0b91adf7685..9cffbb798a365 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Human.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; /** * Mapped superclass test diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPACustomUserTypeEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPACustomUserTypeEndpoint.java index a5533e6046a79..b850a4f1997f0 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPACustomUserTypeEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPACustomUserTypeEndpoint.java @@ -2,13 +2,13 @@ import java.math.BigInteger; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/jpa/custom-user-types") public class JPACustomUserTypeEndpoint { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java index 510456061882a..099b23bea29d7 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestBootstrapEndpoint.java @@ -5,18 +5,18 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.it.common.Clown; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java index 43e62198943fb..3969e535db56a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestEMInjectionEndpoint.java @@ -5,17 +5,17 @@ import java.util.List; import java.util.UUID; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.CriteriaBuilder; -import javax.persistence.criteria.CriteriaQuery; -import javax.persistence.criteria.Root; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.CriteriaQuery; +import jakarta.persistence.criteria.Root; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jakarta.transaction.UserTransaction; /** * Various tests for the JPA integration. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java index 2cae62abe5297..c19994e8e6082 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/JPATestReflectionEndpoint.java @@ -5,10 +5,10 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Various tests for the JPA integration. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java index 62f533a29ac8d..022c18e6fd5a0 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/Person.java @@ -1,12 +1,12 @@ package io.quarkus.it.jpa; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; @Entity public class Person { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java index fe669f03e141b..c18a9290c3c9d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/SequencedAddress.java @@ -1,9 +1,9 @@ package io.quarkus.it.jpa; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; @Entity public class SequencedAddress { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java b/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java index 21bf71f1c54a6..0a60da7f9cec9 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/jpa/WorkAddress.java @@ -1,6 +1,6 @@ package io.quarkus.it.jpa; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * Class marked @Embeddable explicitly so it is picked up. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean1.java b/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean1.java index 62dff8f756959..80c83891f52e3 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean1.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean1.java @@ -1,6 +1,6 @@ package io.quarkus.it.mock; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MockableBean1 { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean2.java b/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean2.java index b7133b9d70bbc..cdf16bc322a30 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean2.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/mock/MockableBean2.java @@ -1,6 +1,6 @@ package io.quarkus.it.mock; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class MockableBean2 { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java index 756847cd0c517..828d18c69d3ab 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.reactive; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/resources/ResourcesResource.java b/integration-tests/main/src/main/java/io/quarkus/it/resources/ResourcesResource.java index e8d995b43d478..dbe27b260a18c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/resources/ResourcesResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/resources/ResourcesResource.java @@ -3,10 +3,10 @@ import java.io.IOException; import java.net.URL; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; @Path("/resources") public class ResourcesResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/AnnotatedInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/AnnotatedInterface.java index 19cb378f6cf07..302fcad972d64 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/AnnotatedInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/AnnotatedInterface.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/interface") public interface AnnotatedInterface { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ApplicationFooProvider.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ApplicationFooProvider.java index 4cf039f525e2e..fe2402799836b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ApplicationFooProvider.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ApplicationFooProvider.java @@ -6,12 +6,12 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; @Provider @Produces("application/foo") diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientProducer.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientProducer.java index bdecb1b05e532..c3e3f742d5b59 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientProducer.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientProducer.java @@ -1,11 +1,11 @@ package io.quarkus.it.rest; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; @ApplicationScoped public class ClientProducer { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java index 58b105a9a5930..ea7f1c3da7a90 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ClientResource.java @@ -6,13 +6,13 @@ import java.util.Set; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.inject.Provider; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.client.Client; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.inject.Provider; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.config.ConfigProvider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/EnvelopeClassResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/EnvelopeClassResource.java index 72c8c0021f35f..cef02b1af2b35 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/EnvelopeClassResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/EnvelopeClassResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/envelope") public class EnvelopeClassResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ExternalService.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ExternalService.java index 12c528fb65dfb..a02d5a876d3b3 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ExternalService.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ExternalService.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class ExternalService { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClient.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClient.java index 0ec795e4dd6e6..c863954651fa1 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClient.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClient.java @@ -2,9 +2,9 @@ import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("gouv-geo-api") public interface GouvFrGeoApiClient { @@ -13,4 +13,4 @@ public interface GouvFrGeoApiClient { @Path("/communes") public Set getCommunes( @QueryParam("codePostal") String postalCode); -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClientImpl.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClientImpl.java index 2546b75b6afdb..44aa5ca75a253 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClientImpl.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/GouvFrGeoApiClientImpl.java @@ -4,9 +4,9 @@ import java.util.HashSet; import java.util.Set; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("gouv-geo-api") public class GouvFrGeoApiClientImpl { @@ -21,4 +21,4 @@ public Set getCommunes( ret.add(new Commune("Paris", "75056", "75", "11", cp, 2190327)); return ret; } -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/Greeting.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/Greeting.java index 46234cd72faf3..8d0bad219a7fc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/Greeting.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/Greeting.java @@ -2,8 +2,8 @@ import java.time.LocalDate; -import javax.json.bind.annotation.JsonbCreator; -import javax.json.bind.annotation.JsonbProperty; +import jakarta.json.bind.annotation.JsonbCreator; +import jakarta.json.bind.annotation.JsonbProperty; public class Greeting { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingEndpoint.java index f9688ee1bab9e..10b0bf01cfaae 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingEndpoint.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.jaxrs.PathParam; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingService.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingService.java index 0551a7d62a2e4..09ca75b355016 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingService.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/GreetingService.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class GreetingService { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/LoggingFilter.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/LoggingFilter.java index 87f8f21cba95e..ea9e68d42d07f 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/LoggingFilter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/LoggingFilter.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.client.ClientResponseContext; -import javax.ws.rs.client.ClientResponseFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientResponseContext; +import jakarta.ws.rs.client.ClientResponseFilter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -30,4 +30,4 @@ public void filter(ClientRequestContext requestContext) CALL_COUNT++; log.info(">> {} {}", requestContext.getMethod(), requestContext.getUri()); } -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/LoopbackResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/LoopbackResource.java index 94c479344b730..e7f031230da1a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/LoopbackResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/LoopbackResource.java @@ -2,8 +2,8 @@ import java.time.LocalDate; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/loopback") public class LoopbackResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ProgrammaticRestInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ProgrammaticRestInterface.java index aa550be6bab15..d8065e3d1fcb8 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ProgrammaticRestInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ProgrammaticRestInterface.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.Map; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACBean.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACBean.java index b8734405cf5ab..251ae5cde6f02 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACBean.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACBean.java @@ -1,9 +1,9 @@ package io.quarkus.it.rest; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.security.Authenticated; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACSecuredResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACSecuredResource.java index 033c9cbf79319..1d022d75ba41b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACSecuredResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RBACSecuredResource.java @@ -1,15 +1,15 @@ package io.quarkus.it.rest; -import javax.annotation.security.DenyAll; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.validation.Valid; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; +import jakarta.annotation.security.DenyAll; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.validation.Valid; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; +import jakarta.ws.rs.core.UriInfo; import io.quarkus.security.Authenticated; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ReflectionResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ReflectionResource.java index 4ced953e49df0..a5211b90cc6dc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ReflectionResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ReflectionResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("/reflection") public class ReflectionResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RemovedJaxRsApplication.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RemovedJaxRsApplication.java index 608a16672b605..a087fd07c084b 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RemovedJaxRsApplication.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RemovedJaxRsApplication.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; /** * This class is actually never used, because we configure Quarkus to remove it from Class Loading and build time indexing diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientBaseUriConfigKeyInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientBaseUriConfigKeyInterface.java index b50d19ad1f77e..06d49569d4a15 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientBaseUriConfigKeyInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientBaseUriConfigKeyInterface.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest; -import javax.enterprise.context.Dependent; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.Dependent; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientConfigKeyInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientConfigKeyInterface.java index 10d4ca1bbf2f9..5bfcfbe25b2b1 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientConfigKeyInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientConfigKeyInterface.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest; -import javax.enterprise.context.Dependent; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.Dependent; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientInterface.java index 85cf390a37c94..37a7621f1d5dc 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientInterface.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest; -import javax.enterprise.context.Dependent; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientWithFaultToleranceInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientWithFaultToleranceInterface.java index b7b7a02321fe1..924b45d150275 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientWithFaultToleranceInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestClientWithFaultToleranceInterface.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java index 994a7e76a75bd..352142a015294 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/RestInterface.java @@ -4,10 +4,10 @@ import java.util.Map; import java.util.concurrent.CompletionStage; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ServerSentEventResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ServerSentEventResource.java index 5596d6a6d8b4d..3d3e00f749291 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ServerSentEventResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ServerSentEventResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.annotations.SseElementType; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/ServiceWithConfig.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/ServiceWithConfig.java index 211fc7180c648..baa910ec4c70d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/ServiceWithConfig.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/ServiceWithConfig.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/Someservice.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/Someservice.java index 86a62f7de79de..8074406515471 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/Someservice.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/Someservice.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Someservice { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java index 0e587cfc82461..8587a5e236690 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslClientResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest; -import javax.inject.Inject; -import javax.ws.rs.GET; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java index 3bd261f0efefa..2480f127d9732 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/SslRestInterface.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; +import jakarta.ws.rs.GET; /** * Disabled by default as it establishes external connections. diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java index bd24ac2f88096..41a282aba4a3d 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResource.java @@ -9,28 +9,28 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; -import javax.json.bind.JsonbConfig; -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.Consumes; -import javax.ws.rs.CookieParam; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.MatrixParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; +import jakarta.json.bind.JsonbConfig; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.MatrixParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; +import jakarta.xml.bind.annotation.XmlRootElement; import org.eclipse.microprofile.openapi.annotations.enums.SchemaType; import org.eclipse.microprofile.openapi.annotations.media.Content; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceForConstructorProperties.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceForConstructorProperties.java index 1e98fa4c9c1e2..0b04dbbdd39e7 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceForConstructorProperties.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceForConstructorProperties.java @@ -2,16 +2,16 @@ import java.beans.ConstructorProperties; -import javax.json.bind.JsonbBuilder; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.sse.OutboundSseEvent; -import javax.ws.rs.sse.Sse; -import javax.ws.rs.sse.SseEventSink; +import jakarta.json.bind.JsonbBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.sse.OutboundSseEvent; +import jakarta.ws.rs.sse.Sse; +import jakarta.ws.rs.sse.SseEventSink; import org.jboss.resteasy.annotations.SseElementType; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithConstructorInjection.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithConstructorInjection.java index c6233de4b45a6..011ac1090a4ce 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithConstructorInjection.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithConstructorInjection.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/testCtor") public class TestResourceWithConstructorInjection { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithTwoConstructors.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithTwoConstructors.java index 048bd02664e29..08ddfba8c6aef 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithTwoConstructors.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithTwoConstructors.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/testCtor2") public class TestResourceWithTwoConstructors { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithVariable.java b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithVariable.java index 431464585c119..63940f8a4cf93 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithVariable.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/rest/TestResourceWithVariable.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -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.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/otherTest/{name:[a-z]{1,10}}") public class TestResourceWithVariable { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/scheduler/CountResource.java b/integration-tests/main/src/main/java/io/quarkus/it/scheduler/CountResource.java index 3e713438cf322..35ee2b06bd2c8 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/scheduler/CountResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/scheduler/CountResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.scheduler; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/scheduler/count") public class CountResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/scheduler/Counter.java b/integration-tests/main/src/main/java/io/quarkus/it/scheduler/Counter.java index b9a72cb811617..0f9d83b06a317 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/scheduler/Counter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/scheduler/Counter.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.scheduler.Scheduled; @@ -26,4 +26,4 @@ void increment() { counter.incrementAndGet(); } -} \ No newline at end of file +} diff --git a/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java b/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java index 4e8ab58923512..0617149702e39 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/transaction/TransactionResource.java @@ -2,12 +2,12 @@ import java.util.concurrent.atomic.AtomicBoolean; -import javax.inject.Inject; -import javax.transaction.Synchronization; -import javax.transaction.TransactionSynchronizationRegistry; -import javax.transaction.UserTransaction; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.transaction.Synchronization; +import jakarta.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.UserTransaction; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/txn/txendpoint") public class TransactionResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/validator/Hello.java b/integration-tests/main/src/main/java/io/quarkus/it/validator/Hello.java index 8e4b030de7f6d..8680be6c5ad0c 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/validator/Hello.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/validator/Hello.java @@ -1,14 +1,14 @@ package io.quarkus.it.validator; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; @Entity @Table(name = "Hello") diff --git a/integration-tests/main/src/main/java/io/quarkus/it/validator/Human.java b/integration-tests/main/src/main/java/io/quarkus/it/validator/Human.java index 621fbe0edffd7..2c450c52658e9 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/validator/Human.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/validator/Human.java @@ -3,14 +3,14 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.validation.Valid; -import javax.validation.constraints.NotEmpty; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; import com.sun.istack.NotNull; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorAndHibernateORMEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorAndHibernateORMEndpoint.java index d85d6c983b6d1..263577c48dc62 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorAndHibernateORMEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorAndHibernateORMEndpoint.java @@ -1,11 +1,11 @@ package io.quarkus.it.validator; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.validation.Validator; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.validation.Validator; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; /** * Verifies that Hibernate Validator can use Hibernate ORM's PersistenceUtilHelper diff --git a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java index 956a95354af9a..5e5185fc20363 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/validator/TestValidatorEndpoint.java @@ -2,13 +2,13 @@ import java.util.Set; -import javax.inject.Inject; -import javax.validation.ConstraintViolation; -import javax.validation.Validator; -import javax.validation.constraints.Size; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.validation.ConstraintViolation; +import jakarta.validation.Validator; +import jakarta.validation.constraints.Size; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/validator") public class TestValidatorEndpoint { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/DummyContainerRequestFilter.java b/integration-tests/main/src/main/java/io/quarkus/it/web/DummyContainerRequestFilter.java index 93c249d9c193c..79b50245c4d7f 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/DummyContainerRequestFilter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/DummyContainerRequestFilter.java @@ -2,11 +2,11 @@ import java.util.Objects; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.container.PreMatching; -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.ext.Provider; import org.jboss.resteasy.spi.HttpRequest; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java index 2292d5f948c4b..82d0febe48b9e 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestFilter.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.FilterChain; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebFilter; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.http.HttpFilter; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebFilter; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.http.HttpFilter; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebFilter(urlPatterns = "/filter", initParams = { @WebInitParam(name = "message", value = "A Filter") }) public class TestFilter extends HttpFilter { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java index a95550ddf5103..4e2095424ca03 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestSecureServlet.java @@ -2,13 +2,13 @@ import java.io.IOException; -import javax.servlet.annotation.HttpConstraint; -import javax.servlet.annotation.ServletSecurity; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.HttpConstraint; +import jakarta.servlet.annotation.ServletSecurity; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Basic secured servlet test target diff --git a/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java b/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java index 3bb818e7791c9..6c53c999e95b6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/web/TestServlet.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.servlet.annotation.WebInitParam; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.annotation.WebInitParam; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/AddWebSocketHandler.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/AddWebSocketHandler.java index 93dd2b6222880..1dae4b42d0aa5 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/AddWebSocketHandler.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/AddWebSocketHandler.java @@ -1,14 +1,14 @@ package io.quarkus.it.websocket; -import javax.enterprise.inject.spi.DeploymentException; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; -import javax.servlet.annotation.WebListener; -import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.Session; -import javax.websocket.server.ServerContainer; -import javax.websocket.server.ServerEndpointConfig; +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; +import jakarta.servlet.annotation.WebListener; +import jakarta.websocket.Endpoint; +import jakarta.websocket.EndpointConfig; +import jakarta.websocket.Session; +import jakarta.websocket.server.ServerContainer; +import jakarta.websocket.server.ServerEndpointConfig; import io.quarkus.runtime.annotations.RegisterForReflection; @@ -24,7 +24,7 @@ public void contextInitialized(ServletContextEvent sce) { ((ServerContainer) sce.getServletContext().getAttribute(ServerContainer.class.getName())) .addEndpoint(ServerEndpointConfig.Builder.create(WebSocketEndpoint.class, "/added-dynamic").build()); - } catch (DeploymentException | javax.websocket.DeploymentException e) { + } catch (DeploymentException | jakarta.websocket.DeploymentException e) { throw new RuntimeException(e); } } diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java index db1ef31b3492d..2a743a2e9ad4f 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientCodingResource.java @@ -4,11 +4,11 @@ import java.net.URI; import java.util.concurrent.TimeUnit; -import javax.websocket.ContainerProvider; -import javax.websocket.DeploymentException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; @Path("/ws-client-coding-test") public class ClientCodingResource { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java index 96523e064684b..1a235a8cef4f4 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoDecoder.java @@ -4,8 +4,8 @@ import java.io.IOException; import java.io.Reader; -import javax.websocket.Decoder; -import javax.websocket.EndpointConfig; +import jakarta.websocket.Decoder; +import jakarta.websocket.EndpointConfig; public class ClientDtoDecoder implements Decoder.TextStream { @Override diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java index 036bb8c390f3c..2c6390fa4e0e2 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ClientDtoEncoder.java @@ -3,8 +3,8 @@ import java.io.IOException; import java.io.Writer; -import javax.websocket.Encoder; -import javax.websocket.EndpointConfig; +import jakarta.websocket.Encoder; +import jakarta.websocket.EndpointConfig; public class ClientDtoEncoder implements Encoder.TextStream { @Override diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java index 676c1e01f24c9..ba67bfce76c61 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/CodingClient.java @@ -6,10 +6,10 @@ import java.util.List; import java.util.concurrent.LinkedBlockingDeque; -import javax.websocket.ClientEndpoint; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpoint; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; @ClientEndpoint(decoders = ClientDtoDecoder.class, encoders = ClientDtoEncoder.class) public class CodingClient { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java index b428125c38570..3792ed7bda225 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/EchoSocket.java @@ -1,7 +1,7 @@ package io.quarkus.it.websocket; -import javax.websocket.OnMessage; -import javax.websocket.server.ServerEndpoint; +import jakarta.websocket.OnMessage; +import jakarta.websocket.server.ServerEndpoint; @ServerEndpoint("/echo") public class EchoSocket { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java index 7244e59d5a7c7..7ee349d023631 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/RecodingSocket.java @@ -1,7 +1,7 @@ package io.quarkus.it.websocket; -import javax.websocket.OnMessage; -import javax.websocket.server.ServerEndpoint; +import jakarta.websocket.OnMessage; +import jakarta.websocket.server.ServerEndpoint; @ServerEndpoint(value = "/recoder", encoders = ServerDtoEncoder.class, decoders = ServerDtoDecoder.class) public class RecodingSocket { diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java index bc0c3a769587b..b45872e952c8a 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoDecoder.java @@ -2,11 +2,11 @@ import java.io.Reader; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; -import javax.websocket.Decoder; -import javax.websocket.EndpointConfig; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; +import jakarta.websocket.Decoder; +import jakarta.websocket.EndpointConfig; public class ServerDtoDecoder implements Decoder.TextStream { @Override diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java index bf25c1ccddb7d..bf5a8d5160145 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/ServerDtoEncoder.java @@ -2,11 +2,11 @@ import java.io.Writer; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonWriter; -import javax.websocket.Encoder; -import javax.websocket.EndpointConfig; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonWriter; +import jakarta.websocket.Encoder; +import jakarta.websocket.EndpointConfig; public class ServerDtoEncoder implements Encoder.TextStream { @Override diff --git a/integration-tests/main/src/main/java/io/quarkus/it/websocket/WebSocketOpenEndpoint.java b/integration-tests/main/src/main/java/io/quarkus/it/websocket/WebSocketOpenEndpoint.java index a0182b32b6fc7..c7ae00af38d04 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/websocket/WebSocketOpenEndpoint.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/websocket/WebSocketOpenEndpoint.java @@ -2,10 +2,10 @@ import java.io.IOException; -import javax.enterprise.context.ApplicationScoped; -import javax.websocket.OnOpen; -import javax.websocket.Session; -import javax.websocket.server.ServerEndpoint; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; +import jakarta.websocket.server.ServerEndpoint; @ServerEndpoint("/wsopen") @ApplicationScoped diff --git a/integration-tests/main/src/main/resources/application.properties b/integration-tests/main/src/main/resources/application.properties index 1cc81a74d60c0..554c187036e2f 100644 --- a/integration-tests/main/src/main/resources/application.properties +++ b/integration-tests/main/src/main/resources/application.properties @@ -1,6 +1,6 @@ io.quarkus.it.rest.GouvFrGeoApiClient/mp-rest/url=${test.url} io.quarkus.it.rest.RestInterface/mp-rest/url=${test.url} -io.quarkus.it.rest.RestInterface/mp-rest/scope=javax.inject.Singleton +io.quarkus.it.rest.RestInterface/mp-rest/scope=jakarta.inject.Singleton io.quarkus.it.rest.RestClientInterface/mp-rest/url=${test.url} io.quarkus.it.rest.RestClientWithFaultToleranceInterface/mp-rest/url=${test.url} restClientConfigKey/mp-rest/url=${test.url} diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/BeanManagerInjectionInTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/BeanManagerInjectionInTestCase.java index d68a7c67d8cbe..377436b7ecaf5 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/BeanManagerInjectionInTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/BeanManagerInjectionInTestCase.java @@ -1,7 +1,7 @@ package io.quarkus.it.main; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/BeanOnlyInTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/BeanOnlyInTestCase.java index 103eaa5645aef..927ba365f20d6 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/BeanOnlyInTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/BeanOnlyInTestCase.java @@ -6,9 +6,9 @@ import java.lang.reflect.Field; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Inject; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/BonjourService.java b/integration-tests/main/src/test/java/io/quarkus/it/main/BonjourService.java index 1a7b9bfbcb80c..7689ff850c8d2 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/BonjourService.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/BonjourService.java @@ -1,7 +1,7 @@ package io.quarkus.it.main; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import io.quarkus.it.rest.GreetingService; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/DynamicTestsTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/DynamicTestsTestCase.java index b1307e8c6a569..9273b9f926e80 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/DynamicTestsTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/DynamicTestsTestCase.java @@ -6,7 +6,7 @@ import java.util.Arrays; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.DynamicTest; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JUnit5PerClassLifecycleTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JUnit5PerClassLifecycleTest.java index 8c196459760cb..053e1e30521d1 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JUnit5PerClassLifecycleTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JUnit5PerClassLifecycleTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.main; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.AfterEach; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java index 78be989720887..9f61ac77e2137 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/JaxRSTestCase.java @@ -8,8 +8,8 @@ import java.io.StringWriter; import java.util.zip.GZIPOutputStream; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.Marshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.Marshaller; import org.eclipse.microprofile.config.ConfigProvider; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MethodSourceTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MethodSourceTest.java index 44b27e825463b..f17579c86b365 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MethodSourceTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MethodSourceTest.java @@ -6,7 +6,7 @@ import java.util.Collection; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.hamcrest.CoreMatchers; import org.hamcrest.Matcher; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MockExternalService.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MockExternalService.java index 4ceee71db3009..210e29112ba0d 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MockExternalService.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MockExternalService.java @@ -1,8 +1,8 @@ package io.quarkus.it.main; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; import io.quarkus.it.rest.ExternalService; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MockTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MockTestCase.java index 19a410fdddd6c..36c0ea3fdd029 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MockTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MockTestCase.java @@ -1,6 +1,6 @@ package io.quarkus.it.main; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/MockitoTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/MockitoTest.java index 60513989327a1..444539613ae90 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/MockitoTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/MockitoTest.java @@ -2,7 +2,7 @@ import static org.mockito.Mockito.mock; -import javax.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletRequest; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java index 92f106c420df6..501f425922b7d 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/OpenApiTestCase.java @@ -8,9 +8,9 @@ import java.util.Iterator; import java.util.Set; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ParameterResolverTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ParameterResolverTest.java index 9d0f423ec0dcc..949e5be3f72e7 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ParameterResolverTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ParameterResolverTest.java @@ -7,7 +7,7 @@ import java.util.List; import java.util.function.Supplier; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/QuarkusClassloaderProtectionDomainTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/QuarkusClassloaderProtectionDomainTest.java index b1b51ef8f50d6..79eeef6bcfbb1 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/QuarkusClassloaderProtectionDomainTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/QuarkusClassloaderProtectionDomainTest.java @@ -10,7 +10,7 @@ import java.util.jar.JarInputStream; import java.util.jar.Manifest; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.inject.spi.BeanManager; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java index d5f41f180751b..cac6419554eb3 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/RestClientTestCase.java @@ -135,8 +135,8 @@ void testMicroprofileRestClientDefaultScope() { .when().get("/client/cdi/default-scope-on-interface") .getBody().print(); - Assertions.assertEquals("javax.inject.Singleton", responseWithSingletonScope); - Assertions.assertEquals("javax.enterprise.context.Dependent", responseWithDefaultScope); + Assertions.assertEquals("jakarta.inject.Singleton", responseWithSingletonScope); + Assertions.assertEquals("jakarta.enterprise.context.Dependent", responseWithDefaultScope); } @Test diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TestStereotypeTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TestStereotypeTestCase.java index a168d9a53f26a..23e4ca5578532 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TestStereotypeTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TestStereotypeTestCase.java @@ -1,8 +1,8 @@ package io.quarkus.it.main; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalQuarkusTest.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalQuarkusTest.java index d8284612b1ecc..4914cf973b7e1 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalQuarkusTest.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalQuarkusTest.java @@ -5,8 +5,8 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; -import javax.transaction.Transactional; +import jakarta.enterprise.inject.Stereotype; +import jakarta.transaction.Transactional; import io.quarkus.test.junit.QuarkusTest; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalTestMethodTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalTestMethodTestCase.java index 1f747102a4989..cb50b6cf50c59 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalTestMethodTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/TransactionalTestMethodTestCase.java @@ -1,9 +1,9 @@ package io.quarkus.it.main; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java index 71a06551ee37c..0819fc32c322d 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/ValidatorTestCase.java @@ -7,7 +7,7 @@ import java.net.URLConnection; import java.nio.charset.StandardCharsets; -import javax.json.Json; +import jakarta.json.Json; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java index e92668b8eb883..af4f382ad2f17 100644 --- a/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java +++ b/integration-tests/main/src/test/java/io/quarkus/it/main/WebsocketTestCase.java @@ -6,12 +6,12 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ClientEndpointConfig; -import javax.websocket.ContainerProvider; -import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.MessageHandler; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpointConfig; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.Endpoint; +import jakarta.websocket.EndpointConfig; +import jakarta.websocket.MessageHandler; +import jakarta.websocket.Session; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/maven/pom.xml b/integration-tests/maven/pom.xml index 02dcbbe6adb60..61a71dc9f1e43 100644 --- a/integration-tests/maven/pom.xml +++ b/integration-tests/maven/pom.xml @@ -26,8 +26,8 @@ test - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api test diff --git a/integration-tests/maven/src/test/java/io/quarkus/maven/it/AddedRestEndpoint.java b/integration-tests/maven/src/test/java/io/quarkus/maven/it/AddedRestEndpoint.java index 0a933fd3a2e0c..5f342ef33453d 100644 --- a/integration-tests/maven/src/test/java/io/quarkus/maven/it/AddedRestEndpoint.java +++ b/integration-tests/maven/src/test/java/io/quarkus/maven/it/AddedRestEndpoint.java @@ -1,7 +1,7 @@ package io.quarkus.maven.it; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/added") public class AddedRestEndpoint { diff --git a/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java b/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java index 9ca1f763aa0b5..80740086cf898 100644 --- a/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java +++ b/integration-tests/maven/src/test/java/io/quarkus/maven/it/DevMojoIT.java @@ -710,10 +710,10 @@ public void testThatTheApplicationIsReloadedOnNewResource() throws MavenInvocati File source = new File(testDir, "src/main/java/org/acme/MyNewResource.java"); String myNewResource = "package org.acme;\n" + "\n" + - "import javax.ws.rs.GET;\n" + - "import javax.ws.rs.Path;\n" + - "import javax.ws.rs.Produces;\n" + - "import javax.ws.rs.core.MediaType;\n" + + "import jakarta.ws.rs.GET;\n" + + "import jakarta.ws.rs.Path;\n" + + "import jakarta.ws.rs.Produces;\n" + + "import jakarta.ws.rs.core.MediaType;\n" + "\n" + "@Path(\"/foo\")\n" + "public class MyNewResource {\n" + @@ -739,10 +739,10 @@ public void testThatClassFileAreCleanedUp() throws MavenInvocationException, IOE File source = new File(testDir, "src/main/java/org/acme/ClassDeletionResource.java"); String classDeletionResource = "package org.acme;\n" + "\n" + - "import javax.ws.rs.GET;\n" + - "import javax.ws.rs.Path;\n" + - "import javax.ws.rs.Produces;\n" + - "import javax.ws.rs.core.MediaType;\n" + + "import jakarta.ws.rs.GET;\n" + + "import jakarta.ws.rs.Path;\n" + + "import jakarta.ws.rs.Produces;\n" + + "import jakarta.ws.rs.core.MediaType;\n" + "\n" + "@Path(\"/deletion\")\n" + "public class ClassDeletionResource {\n" + @@ -1082,7 +1082,7 @@ public void testThatNewBeanAreDiscovered() throws IOException, MavenInvocationEx File source = new File(testDir, "src/main/java/org/acme/MyBean.java"); String content = "package org.acme;\n" + "\n" + - "import javax.enterprise.context.ApplicationScoped;\n" + + "import jakarta.enterprise.context.ApplicationScoped;\n" + "\n" + "@ApplicationScoped\n" + "public class MyBean {\n" + diff --git a/integration-tests/maven/src/test/java/io/quarkus/maven/it/RemoteDevMojoIT.java b/integration-tests/maven/src/test/java/io/quarkus/maven/it/RemoteDevMojoIT.java index 5c8887b6e6c55..b99b46ab347e9 100644 --- a/integration-tests/maven/src/test/java/io/quarkus/maven/it/RemoteDevMojoIT.java +++ b/integration-tests/maven/src/test/java/io/quarkus/maven/it/RemoteDevMojoIT.java @@ -68,10 +68,10 @@ public void testThatTheApplicationIsReloadedOnNewResource() throws MavenInvocati File source = new File(agentDir, "src/main/java/org/acme/MyNewResource.java"); String myNewResource = "package org.acme;\n" + "\n" + - "import javax.ws.rs.GET;\n" + - "import javax.ws.rs.Path;\n" + - "import javax.ws.rs.Produces;\n" + - "import javax.ws.rs.core.MediaType;\n" + + "import jakarta.ws.rs.GET;\n" + + "import jakarta.ws.rs.Path;\n" + + "import jakarta.ws.rs.Produces;\n" + + "import jakarta.ws.rs.core.MediaType;\n" + "\n" + "@Path(\"/foo\")\n" + "public class MyNewResource {\n" + @@ -204,7 +204,7 @@ public void testThatNewBeanAreDiscovered() throws IOException, MavenInvocationEx File source = new File(agentDir, "src/main/java/org/acme/MyBean.java"); String content = "package org.acme;\n" + "\n" + - "import javax.enterprise.context.ApplicationScoped;\n" + + "import jakarta.enterprise.context.ApplicationScoped;\n" + "\n" + "@ApplicationScoped\n" + "public class MyBean {\n" + diff --git a/integration-tests/maven/src/test/resources-filtered/expected/create-extension-pom-itest/integration-tests/itest/src/main/java/org/acme/my/project/itest/it/ItestResource.java b/integration-tests/maven/src/test/resources-filtered/expected/create-extension-pom-itest/integration-tests/itest/src/main/java/org/acme/my/project/itest/it/ItestResource.java index bc98dd59f27d2..d45fcdd8cfff1 100644 --- a/integration-tests/maven/src/test/resources-filtered/expected/create-extension-pom-itest/integration-tests/itest/src/main/java/org/acme/my/project/itest/it/ItestResource.java +++ b/integration-tests/maven/src/test/resources-filtered/expected/create-extension-pom-itest/integration-tests/itest/src/main/java/org/acme/my/project/itest/it/ItestResource.java @@ -16,8 +16,8 @@ */ package org.acme.my.project.itest.it; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.Path; @Path("/itest") @ApplicationScoped diff --git a/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/library/src/main/java/org/acme/SomeBean.java b/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/library/src/main/java/org/acme/SomeBean.java index 8d0fe720363d5..31efa684f8476 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/library/src/main/java/org/acme/SomeBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/library/src/main/java/org/acme/SomeBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SomeBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/runner/src/main/java/org/acme/HelloResource.java index ba370801fa508..70a93d74748f6 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/arc-exclude-dependencies/runner/src/main/java/org/acme/HelloResource.java @@ -2,12 +2,12 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloResource.java index a0db2386f1c56..602fe5d73fe64 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloService.java b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloService.java index 6fe83a9616388..a794439b3e88f 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-override/src/main/java/org/acme/HelloService.java @@ -3,7 +3,7 @@ import io.quarkus.arc.profile.IfBuildProfile; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @IfBuildProfile("foo") @ApplicationScoped diff --git a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloResource.java index a0db2386f1c56..602fe5d73fe64 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloService.java b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloService.java index 6fe83a9616388..a794439b3e88f 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/build-mode-quarkus-profile-property/src/main/java/org/acme/HelloService.java @@ -3,7 +3,7 @@ import io.quarkus.arc.profile.IfBuildProfile; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @IfBuildProfile("foo") @ApplicationScoped diff --git a/integration-tests/maven/src/test/resources-filtered/projects/capabilities-conflict/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/capabilities-conflict/runner/src/main/java/org/acme/HelloResource.java index 42203e0efd1f5..b66c0fde53e15 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/capabilities-conflict/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/capabilities-conflict/runner/src/main/java/org/acme/HelloResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/capabilities-missing/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/capabilities-missing/runner/src/main/java/org/acme/HelloResource.java index 42203e0efd1f5..b66c0fde53e15 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/capabilities-missing/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/capabilities-missing/runner/src/main/java/org/acme/HelloResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloResource.java index 73249cf00c058..7e05efa7335ba 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.util.UUID; @Path("/app") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloService.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloService.java index bfe7fc496c202..1e1a73e11af21 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-inst/src/main/java/org/acme/HelloService.java @@ -2,8 +2,8 @@ import io.quarkus.runtime.StartupEvent; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; @ApplicationScoped public class HelloService { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/HelloResource.java index 99a017deb66be..296bdfb52c794 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-build/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/HelloResource.java index e05e3fc81410a..fbb27b57b28fc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-generate/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-undertow/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-undertow/src/main/java/org/acme/HelloResource.java index 64675366c9153..37cfafed7e8cd 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-no-undertow/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-no-undertow/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/HelloResource.java index 423468dfb8864..edfd6f0786f66 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-noconfig/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/ClasspathResources.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/ClasspathResources.java index 6f8beb61aa115..1e79843e730b3 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/ClasspathResources.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/ClasspathResources.java @@ -2,10 +2,10 @@ import org.apache.commons.io.IOUtils; -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; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/HelloResource.java index 4b26e9a74e6ec..c21e5305ea793 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-remote-dev/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic-resource-filtering/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic-resource-filtering/src/main/java/org/acme/HelloResource.java index 64675366c9153..37cfafed7e8cd 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic-resource-filtering/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic-resource-filtering/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ClasspathResources.java b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ClasspathResources.java index 1928f47531c2a..e1da81f1b750a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ClasspathResources.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ClasspathResources.java @@ -1,12 +1,12 @@ package org.acme; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.QueryParam; import org.apache.commons.io.IOUtils; -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; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/HelloResource.java index 4b26e9a74e6ec..c21e5305ea793 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ProtectionDomain.java b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ProtectionDomain.java index 1ff398c3bc262..36cfbe3d82e5e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ProtectionDomain.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classic/src/main/java/org/acme/ProtectionDomain.java @@ -2,8 +2,8 @@ import org.apache.commons.io.IOUtils; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.io.IOException; import java.io.InputStream; import java.net.URL; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/HelloResource.java index 8108949192ae6..fd515e41ccb3b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/HelloResource.java @@ -1,12 +1,12 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; -import javax.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBContext; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/Producer.java b/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/Producer.java index 4237af3c413d2..45d42b257f39a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/Producer.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/classloader-linkage-error/src/main/java/org/acme/Producer.java @@ -1,8 +1,8 @@ package org.acme; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.xml.bind.JAXBContext; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.xml.bind.JAXBContext; public class Producer { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/acme-codegen/deployment/src/main/java/org/acme/codegen/deployment/AcmeCodegenProvider.java b/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/acme-codegen/deployment/src/main/java/org/acme/codegen/deployment/AcmeCodegenProvider.java index 26a3a961c433b..d88ad68ebc286 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/acme-codegen/deployment/src/main/java/org/acme/codegen/deployment/AcmeCodegenProvider.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/acme-codegen/deployment/src/main/java/org/acme/codegen/deployment/AcmeCodegenProvider.java @@ -73,8 +73,8 @@ private static void generateEndpoint(Path outputDir, String name, String value) Files.createDirectories(javaFile.getParent()); try(PrintWriter out = new PrintWriter(Files.newBufferedWriter(javaFile))) { out.println("package org.acme;"); - out.println("import javax.ws.rs.GET;"); - out.println("import javax.ws.rs.Path;"); + out.println("import jakarta.ws.rs.GET;"); + out.println("import jakarta.ws.rs.Path;"); out.println("@Path(\"/codegen-config\")"); out.println("public class " + className + " {"); out.println(" @GET"); diff --git a/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/app/src/main/java/org/acme/GreetingResource.java b/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/app/src/main/java/org/acme/GreetingResource.java index 3868368bf9377..32321c0329c6e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/app/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/codegen-config-factory/app/src/main/java/org/acme/GreetingResource.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.jboss.resteasy.reactive.RestPath; @@ -25,4 +25,4 @@ public String hello(@RestPath String name) { } throw new IllegalArgumentException(name); } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/conditional-dependencies/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/conditional-dependencies/runner/src/main/java/org/acme/HelloResource.java index 78696e1cf40fb..9b81f9385f088 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/conditional-dependencies/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/conditional-dependencies/runner/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/custom-manifest-attributes/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/custom-manifest-attributes/src/main/java/org/acme/HelloResource.java index ea2d10cf459a3..967bc8098072f 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/custom-manifest-attributes/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/custom-manifest-attributes/src/main/java/org/acme/HelloResource.java @@ -2,10 +2,10 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dependency-on-pom/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dependency-on-pom/src/main/java/org/acme/HelloResource.java index e05e3fc81410a..fbb27b57b28fc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dependency-on-pom/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dependency-on-pom/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-env-vars-config/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-env-vars-config/src/main/java/org/acme/HelloResource.java index ce1b38ba72d71..ad4f9038a9210 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-env-vars-config/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-env-vars-config/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/HelloResource.java index dacee899bd8f4..2326cb0451112 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/HelloResource.java @@ -2,10 +2,10 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-file-deletion/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/HelloResource.java index 3dc7e048691f4..60066e15f3b5b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/HelloResource.java @@ -2,10 +2,10 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs-with-profile/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/HelloResource.java index 3dc7e048691f4..60066e15f3b5b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/HelloResource.java @@ -2,10 +2,10 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-multiple-resource-dirs/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-sys-props-config/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-sys-props-config/src/main/java/org/acme/HelloResource.java index dc1e6a12d0ca6..1ab21e5cb6826 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-sys-props-config/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/dev-mode-sys-props-config/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/extension-removed-resources/runner/src/main/java/org/acme/MetaInfResource.java b/integration-tests/maven/src/test/resources-filtered/projects/extension-removed-resources/runner/src/main/java/org/acme/MetaInfResource.java index c1b17b6427f9f..85ee1ff8f4041 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/extension-removed-resources/runner/src/main/java/org/acme/MetaInfResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/extension-removed-resources/runner/src/main/java/org/acme/MetaInfResource.java @@ -3,14 +3,14 @@ import java.io.IOException; import java.io.InputStream; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; @Path("/meta-inf") public class MetaInfResource { @@ -30,4 +30,4 @@ public String hello(@PathParam("name") String name) { throw new RuntimeException("Failed to read " + url, e); } } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/external-reloadable-artifacts/app/src/main/java/org/acme/GreetingResource.java b/integration-tests/maven/src/test/resources-filtered/projects/external-reloadable-artifacts/app/src/main/java/org/acme/GreetingResource.java index e6ae57e005979..40e60916a6d5a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/external-reloadable-artifacts/app/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/external-reloadable-artifacts/app/src/main/java/org/acme/GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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; import org.acme.lib.*; @@ -15,4 +15,4 @@ public class GreetingResource { public String get() { return Greeting.hello(); } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/ignore-entries-uber-jar/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/ignore-entries-uber-jar/src/main/java/org/acme/HelloResource.java index a405740d8c682..673bff3844f68 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/ignore-entries-uber-jar/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/ignore-entries-uber-jar/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/HelloResource.java index a7dc81de2a568..3ad6dbddc9a5e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/modules-in-profiles/rest/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceBar.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceBar.java index bb187e975bc9f..2497c41e63e6b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceBar.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceBar.java @@ -2,10 +2,10 @@ import io.quarkus.arc.profile.IfBuildProfile; -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; @IfBuildProfile("bar-1") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceFoo.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceFoo.java index 5a34fe8edb790..32e4a32b38c11 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceFoo.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-1/src/main/java/org/acme/HelloResourceFoo.java @@ -2,10 +2,10 @@ import io.quarkus.arc.profile.IfBuildProfile; -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; @IfBuildProfile("foo-1") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceBar.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceBar.java index 1bb28a41483a0..e89721689740c 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceBar.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceBar.java @@ -2,10 +2,10 @@ import io.quarkus.arc.profile.IfBuildProfile; -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; @IfBuildProfile("bar-2") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceFoo.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceFoo.java index 497afdeda151a..821d54aea76db 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceFoo.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode-parallel/module-2/src/main/java/org/acme/HelloResourceFoo.java @@ -2,10 +2,10 @@ import io.quarkus.arc.profile.IfBuildProfile; -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; @IfBuildProfile("foo-2") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceBar.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceBar.java index 7c2e4cc6fa3b4..3b41f1b538e6e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceBar.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceBar.java @@ -2,11 +2,11 @@ import io.quarkus.arc.profile.IfBuildProfile; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @IfBuildProfile("bar") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceFoo.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceFoo.java index 99c5708a8edb1..2026a909f0abc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceFoo.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloResourceFoo.java @@ -2,11 +2,11 @@ import io.quarkus.arc.profile.IfBuildProfile; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @IfBuildProfile("foo") @Path("/hello") diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloService.java b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloService.java index e9c9cf9b1ab1d..d93fb387db2a2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multi-build-mode/src/main/java/org/acme/HelloService.java @@ -2,7 +2,7 @@ import io.quarkus.arc.profile.IfBuildProfile; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.apache.commons.io.FileUtils; import org.apache.commons.collections4.MultiSet; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeBean.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeBean.java index 584659014dabb..fc6f9fa5e5edc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class AcmeBean implements Named { @@ -9,4 +9,4 @@ public class AcmeBean implements Named { public String getName() { return "acme"; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeServiceProducer.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeServiceProducer.java index 29da0b9e97dca..77ca414dfdfb7 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeServiceProducer.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/AcmeServiceProducer.java @@ -1,7 +1,7 @@ package org.acme; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.quarkus.arc.DefaultBean; @Dependent @@ -12,4 +12,4 @@ public class AcmeServiceProducer { public Service getAcmeService() { return new AcmeService(); } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Other.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Other.java index ada2f2240fe2b..e14a841792962 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Other.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Other.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Other implements Named { @@ -9,4 +9,4 @@ public class Other implements Named { public String getName() { return "other"; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Printer.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Printer.java index 8f09858b6b25c..e49796e26eb81 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Printer.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/main/java/org/acme/Printer.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Printer { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/test/java/org/acme/testlib/mock/MockServiceProducer.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/test/java/org/acme/testlib/mock/MockServiceProducer.java index 34bacc873345d..fd6401ea197f8 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/test/java/org/acme/testlib/mock/MockServiceProducer.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/beans/src/test/java/org/acme/testlib/mock/MockServiceProducer.java @@ -1,7 +1,7 @@ package org.acme.testlib.mock; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; import io.quarkus.arc.DefaultBean; import org.acme.Service; @@ -12,4 +12,4 @@ public class MockServiceProducer { public Service getMockService() { return new MockService(); } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/hello/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/hello/src/main/java/org/acme/HelloResource.java index 99680447b5e04..1203c51d101ec 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/hello/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/hello/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/runner/src/test/java/org/acme/ResourceTest.java b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/runner/src/test/java/org/acme/ResourceTest.java index a1f4aa6ef7664..9aa55bd8aa1bf 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/runner/src/test/java/org/acme/ResourceTest.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multijar-module/runner/src/test/java/org/acme/ResourceTest.java @@ -4,7 +4,7 @@ import static org.hamcrest.CoreMatchers.is; import java.util.UUID; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-classpath/rest/src/main/java/org/acme/ClassPathResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-classpath/rest/src/main/java/org/acme/ClassPathResource.java index ea51fe550c5a0..0dd4c9add624d 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-classpath/rest/src/main/java/org/acme/ClassPathResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-classpath/rest/src/main/java/org/acme/ClassPathResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level0/src/main/java/org/acme/level0/Level0Service.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level0/src/main/java/org/acme/level0/Level0Service.java index d0d41586a1cb8..cefe0da67277f 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level0/src/main/java/org/acme/level0/Level0Service.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level0/src/main/java/org/acme/level0/Level0Service.java @@ -1,6 +1,6 @@ package org.acme.level0; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level1/src/main/java/org/acme/level1/Level1Service.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level1/src/main/java/org/acme/level1/Level1Service.java index d29dd4fef07b2..bd1cf07fe769b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level1/src/main/java/org/acme/level1/Level1Service.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level1/src/main/java/org/acme/level1/Level1Service.java @@ -1,7 +1,7 @@ package org.acme.level1; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.acme.level0.Level0Service; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level2/submodule/src/main/java/org/acme/level2/submodule/Level2Service.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level2/submodule/src/main/java/org/acme/level2/submodule/Level2Service.java index 8ee37c0979597..e200493f80868 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level2/submodule/src/main/java/org/acme/level2/submodule/Level2Service.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/level2/submodule/src/main/java/org/acme/level2/submodule/Level2Service.java @@ -1,7 +1,7 @@ package org.acme.level2.submodule; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.acme.level1.Level1Service; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/runner/src/main/java/org/acme/rest/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/runner/src/main/java/org/acme/rest/HelloResource.java index 3384e94e8ed13..5c62524d824b7 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/runner/src/main/java/org/acme/rest/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-parent-dep/runner/src/main/java/org/acme/rest/HelloResource.java @@ -4,11 +4,11 @@ import org.acme.level2.submodule.Level2Service; import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/app") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/HelloResource.java index b91f303d7d578..30db1cbbe8e60 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/SomeBean.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/SomeBean.java index 9129b4e86aebd..f1515d475fa1b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/SomeBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-revision-prop/rest/src/main/java/org/acme/SomeBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SomeBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/HelloResource.java index 94d1aad900334..aee10b05cf075 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule-root-no-src/rest/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/HelloResource.java index a7dc81de2a568..3ad6dbddc9a5e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import java.io.IOException; import java.net.URL; import java.util.Enumeration; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/multimodule/rest/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/native-image-app/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/native-image-app/src/main/java/org/acme/HelloResource.java index 30a1efa26ccfd..7a12688ec12f4 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/native-image-app/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/native-image-app/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/no-resource-root/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/no-resource-root/src/main/java/org/acme/HelloResource.java index b3844301b75e3..28567d6209522 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/no-resource-root/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/no-resource-root/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/app/src/main/java/org/acme/quarkus/sample/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/app/src/main/java/org/acme/quarkus/sample/HelloResource.java index 01fc40fe4e929..a5d36dd491384 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/app/src/main/java/org/acme/quarkus/sample/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/app/src/main/java/org/acme/quarkus/sample/HelloResource.java @@ -1,10 +1,10 @@ package org.acme.quarkus.sample; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.acme.quarkus.sample.extension.ConfigReport; @@ -19,4 +19,4 @@ public class HelloResource { public String hello() { return "builder-image is " + configReport.builderImage; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/ext/deployment/src/main/java/org/acme/quarkus/sample/extension/deployment/AcmeExtensionProcessor.java b/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/ext/deployment/src/main/java/org/acme/quarkus/sample/extension/deployment/AcmeExtensionProcessor.java index b42e6c0676823..4803735eb4a7a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/ext/deployment/src/main/java/org/acme/quarkus/sample/extension/deployment/AcmeExtensionProcessor.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/platform-properties-overrides/ext/deployment/src/main/java/org/acme/quarkus/sample/extension/deployment/AcmeExtensionProcessor.java @@ -1,6 +1,6 @@ package org.acme.quarkus.sample.extension.deployment; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.acme.quarkus.sample.extension.ConfigReport; import org.acme.quarkus.sample.extension.ConfigReportRecorder; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common-transitive/src/main/java/org/acme/CommonTransitiveBean.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common-transitive/src/main/java/org/acme/CommonTransitiveBean.java index f33274fbbfa44..85883cb13572a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common-transitive/src/main/java/org/acme/CommonTransitiveBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common-transitive/src/main/java/org/acme/CommonTransitiveBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class CommonTransitiveBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common/src/main/java/org/acme/CommonBean.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common/src/main/java/org/acme/CommonBean.java index 4ac3b14759907..8dd748be19a5b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common/src/main/java/org/acme/CommonBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/common/src/main/java/org/acme/CommonBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class CommonBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/library/src/main/java/org/acme/LibraryBean.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/library/src/main/java/org/acme/LibraryBean.java index 41035a80204bb..7e801d7ef8f5c 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/library/src/main/java/org/acme/LibraryBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/library/src/main/java/org/acme/LibraryBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class LibraryBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/quarkus-ext/deployment/src/main/java/org/acme/quarkus/ext/deployment/AcmeQuarkusExtProcessor.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/quarkus-ext/deployment/src/main/java/org/acme/quarkus/ext/deployment/AcmeQuarkusExtProcessor.java index 7723e112b407d..4a7796ff45ec4 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/quarkus-ext/deployment/src/main/java/org/acme/quarkus/ext/deployment/AcmeQuarkusExtProcessor.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/quarkus-ext/deployment/src/main/java/org/acme/quarkus/ext/deployment/AcmeQuarkusExtProcessor.java @@ -2,7 +2,7 @@ import java.util.stream.Collectors; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.deployment.annotations.BuildStep; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/HelloResource.java index 9458c5c27079f..e4bb827f2625a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/HelloResource.java @@ -3,11 +3,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/project-with-extension/runner/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/HelloResource.java index b59ceab007ad7..225f8aeef5823 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") @Produces(MediaType.TEXT_PLAIN) diff --git a/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/property-expansion/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/HelloResource.java index 94d1aad900334..aee10b05cf075 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/property-overrides/local-dep/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/proto-gen/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/proto-gen/src/main/java/org/acme/HelloResource.java index a17698bd7f374..6a1dcd41b27e6 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/proto-gen/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/proto-gen/src/main/java/org/acme/HelloResource.java @@ -2,8 +2,8 @@ import com.example.SimpleOuterClass.Msg; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/library/src/main/java/org/acme/SomeBean.java b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/library/src/main/java/org/acme/SomeBean.java index 8d0fe720363d5..31efa684f8476 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/library/src/main/java/org/acme/SomeBean.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/library/src/main/java/org/acme/SomeBean.java @@ -1,6 +1,6 @@ package org.acme; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class SomeBean { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/HelloResource.java index e46d2196a244d..4e6d560896d94 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/quarkus-index-dependencies/runner/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/quarkus.package.output-directory/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/quarkus.package.output-directory/src/main/java/org/acme/HelloResource.java index 42203e0efd1f5..b66c0fde53e15 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/quarkus.package.output-directory/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/quarkus.package.output-directory/src/main/java/org/acme/HelloResource.java @@ -1,10 +1,10 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyDeclarativeRoutes.java b/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyDeclarativeRoutes.java index b7e0454e9126d..bf6cd5d83e3bb 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyDeclarativeRoutes.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyDeclarativeRoutes.java @@ -1,6 +1,6 @@ package org.acme.reactive.routes; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.netty.util.Version; import io.quarkus.vertx.web.Route; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyFilter.java b/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyFilter.java index 1e4c376525bba..8862e64adbdaa 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyFilter.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/reactive-routes/src/main/java/org/acme/reactive/routes/MyFilter.java @@ -1,7 +1,7 @@ package org.acme.reactive.routes; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.filters.Filters; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader1Filter.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader1Filter.java index 312dd854f53b6..20b2e10403925 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader1Filter.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader1Filter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Singleton diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader2Filter.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader2Filter.java index 007ff31e966c7..17314a7435eb0 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader2Filter.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/rest-client-custom-headers/runtime/src/main/java/org/acme/CustomHeader2Filter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Singleton; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.inject.Singleton; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.ext.Provider; @Provider @Singleton diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamService.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamService.java index cf0fa28643af6..4b07b6094f676 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamService.java @@ -1,8 +1,8 @@ package org.acme; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/downstream") public class DownstreamService { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamServiceClient.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamServiceClient.java index cb7593fc50209..658a3f094f98a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamServiceClient.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/DownstreamServiceClient.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.acme.CustomHeader1; import org.acme.CustomHeader2; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/FrontendService.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/FrontendService.java index 640c18524440e..1bfbd3242b48d 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/FrontendService.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/FrontendService.java @@ -1,8 +1,8 @@ package org.acme; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/HelloResource.java index e05e3fc81410a..fbb27b57b28fc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rest-client-custom-headers-extension/runner/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ClasspathResources.java b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ClasspathResources.java index 031f2d10eb40e..5a0d7d9a7d7f1 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ClasspathResources.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ClasspathResources.java @@ -2,10 +2,10 @@ import org.apache.commons.io.IOUtils; -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; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/HelloResource.java index 4b26e9a74e6ec..c21e5305ea793 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ProtectionDomain.java b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ProtectionDomain.java index 1ff398c3bc262..36cfbe3d82e5e 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ProtectionDomain.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/rr-with-json-logging/src/main/java/org/acme/ProtectionDomain.java @@ -2,8 +2,8 @@ import org.apache.commons.io.IOUtils; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import java.io.IOException; import java.io.InputStream; import java.net.URL; diff --git a/integration-tests/maven/src/test/resources-filtered/projects/test-module-dependency/app/src/main/java/org/acme/quarkus/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/test-module-dependency/app/src/main/java/org/acme/quarkus/HelloResource.java index d7f8dce0e8d6d..b4c8080e9c8ca 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/test-module-dependency/app/src/main/java/org/acme/quarkus/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/test-module-dependency/app/src/main/java/org/acme/quarkus/HelloResource.java @@ -1,9 +1,9 @@ package org.acme.quarkus; -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("/hello") public class HelloResource { @@ -21,4 +21,4 @@ public String hello() throws ClassNotFoundException { Class.forName("org.acme.AcmeCommon"); return "Test class is not visible"; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/test-plugin-classpath-config/runner/src/main/java/org/acme/GreetingResource.java b/integration-tests/maven/src/test/resources-filtered/projects/test-plugin-classpath-config/runner/src/main/java/org/acme/GreetingResource.java index 774b1a8b4307d..01d99524d6e6a 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/test-plugin-classpath-config/runner/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/test-plugin-classpath-config/runner/src/main/java/org/acme/GreetingResource.java @@ -3,10 +3,10 @@ import java.net.URL; import java.util.Enumeration; -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("/hello") public class GreetingResource { @@ -40,4 +40,4 @@ private String getNextModuleName(final Enumeration en) { s = s.substring(s.lastIndexOf('/') + 1); return s; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/test-source-sets/src/main/java/org/acme/GreetingResource.java b/integration-tests/maven/src/test/resources-filtered/projects/test-source-sets/src/main/java/org/acme/GreetingResource.java index a3b68994dfaa1..75d2661bf108b 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/test-source-sets/src/main/java/org/acme/GreetingResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/test-source-sets/src/main/java/org/acme/GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class GreetingResource { @@ -15,4 +15,4 @@ public class GreetingResource { public String hello() { return HELLO; } -} \ No newline at end of file +} diff --git a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/HelloResource.java index 793e59bb74c60..79164112da29c 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/HelloResource.java @@ -2,11 +2,11 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class HelloResource { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/MyApplication.java b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/MyApplication.java index 2b41cd0385afb..a6d66f8b9eda2 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/MyApplication.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-check/src/main/java/org/acme/MyApplication.java @@ -1,7 +1,7 @@ package org.acme; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/app") public class MyApplication extends Application { diff --git a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-maven-plugin-config/src/main/java/org/acme/HelloResource.java b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-maven-plugin-config/src/main/java/org/acme/HelloResource.java index e05e3fc81410a..fbb27b57b28fc 100644 --- a/integration-tests/maven/src/test/resources-filtered/projects/uberjar-maven-plugin-config/src/main/java/org/acme/HelloResource.java +++ b/integration-tests/maven/src/test/resources-filtered/projects/uberjar-maven-plugin-config/src/main/java/org/acme/HelloResource.java @@ -1,9 +1,9 @@ package org.acme; -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("/hello") public class HelloResource { diff --git a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/CountedInstance.java b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/CountedInstance.java index e6f726a311c60..c635851a2dc80 100644 --- a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/CountedInstance.java +++ b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/CountedInstance.java @@ -1,6 +1,6 @@ package io.quarkus.it.micrometer.mpmetrics; -import javax.enterprise.context.RequestScoped; +import jakarta.enterprise.context.RequestScoped; import org.eclipse.microprofile.metrics.annotation.Counted; diff --git a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/InjectedInstance.java b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/InjectedInstance.java index ecebb9e689928..745d779b53088 100644 --- a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/InjectedInstance.java +++ b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/InjectedInstance.java @@ -2,9 +2,9 @@ import java.util.Random; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import org.eclipse.microprofile.metrics.Counter; import org.eclipse.microprofile.metrics.Gauge; diff --git a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/MessageResource.java b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/MessageResource.java index 5c72e4b60a958..2105c7ef33831 100644 --- a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/MessageResource.java +++ b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/MessageResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.micrometer.mpmetrics; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.micrometer.core.instrument.MeterRegistry; diff --git a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/PrimeResource.java b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/PrimeResource.java index 0545b7477f94d..ef648c6d903cc 100644 --- a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/PrimeResource.java +++ b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/PrimeResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.atomic.LongAccumulator; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.metrics.MetricUnits; import org.eclipse.microprofile.metrics.annotation.*; diff --git a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/RenameMeterFilterProducer.java b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/RenameMeterFilterProducer.java index 1e921284f8116..e6005d21b273f 100644 --- a/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/RenameMeterFilterProducer.java +++ b/integration-tests/micrometer-mp-metrics/src/main/java/io/quarkus/it/micrometer/mpmetrics/RenameMeterFilterProducer.java @@ -3,8 +3,8 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.micrometer.core.instrument.Meter; import io.micrometer.core.instrument.Tag; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/ExporterResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/ExporterResource.java index c6fe0b23d6174..ee124ec5e8d05 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/ExporterResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/ExporterResource.java @@ -1,12 +1,12 @@ package io.quarkus; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.search.Search; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/doc/micrometer/ExampleResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/doc/micrometer/ExampleResource.java index f66df272b1d5e..d17ec50ddbdbb 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/doc/micrometer/ExampleResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/doc/micrometer/ExampleResource.java @@ -13,10 +13,10 @@ import java.util.LinkedList; import java.util.NoSuchElementException; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import io.micrometer.core.instrument.MeterRegistry; import io.micrometer.core.instrument.Tags; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/AnnotatedResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/AnnotatedResource.java index 50f9d6901c370..5d9d67c2eaef8 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/AnnotatedResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/AnnotatedResource.java @@ -5,8 +5,8 @@ import java.util.function.Function; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.jboss.logging.Logger; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/CustomConfiguration.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/CustomConfiguration.java index 649e7966c6381..6d0158e45c44f 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/CustomConfiguration.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/CustomConfiguration.java @@ -2,10 +2,10 @@ import java.util.Arrays; -import javax.annotation.Priority; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/Fruit.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/Fruit.java index cd4f186c0280a..04a4c251cebc0 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/Fruit.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.micrometer.prometheus; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/FruitResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/FruitResource.java index 3a1b74739da00..4227515888079 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/FruitResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/FruitResource.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.hibernate.orm.panache.PanacheQuery; import io.smallrye.common.annotation.Blocking; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResource.java index 93f87cefe5232..5d8da5a86de33 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/MessageResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.micrometer.prometheus; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.micrometer.core.instrument.MeterRegistry; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PathTemplateResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PathTemplateResource.java index 721e384a04300..f3a7e530884a5 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PathTemplateResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PathTemplateResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.micrometer.prometheus; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("template/path/{value}") public class PathTemplateResource { diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PingPongResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PingPongResource.java index 0323aafb06116..1ac18944d00aa 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PingPongResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PingPongResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.micrometer.prometheus; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PrimeNumberResource.java b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PrimeNumberResource.java index 53e062b6ae361..30ba97119b581 100644 --- a/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PrimeNumberResource.java +++ b/integration-tests/micrometer-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PrimeNumberResource.java @@ -3,10 +3,10 @@ import java.util.concurrent.atomic.LongAccumulator; import java.util.function.Supplier; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import io.micrometer.core.instrument.MeterRegistry; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java index 5a02e74d82f2d..f39140fe5435f 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.bson.codecs.Codec; import org.bson.codecs.configuration.CodecProvider; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResource.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResource.java index 2a9c975a04e40..c88267fea7a89 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResource.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResource.java @@ -5,9 +5,9 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java index b4715b8e38d08..b743257080313 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java @@ -5,13 +5,13 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java index c79b50d39e574..48204c2f616f1 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java @@ -6,9 +6,9 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/VehicleResource.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/VehicleResource.java index d96a7ac5168ab..bee7496f10b7f 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/VehicleResource.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/VehicleResource.java @@ -7,12 +7,12 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleCustomizer.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleCustomizer.java index 1094053967ab2..4c23742c718e1 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleCustomizer.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleCustomizer.java @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.discriminator.jsonb; -import javax.inject.Singleton; -import javax.json.bind.JsonbConfig; +import jakarta.inject.Singleton; +import jakarta.json.bind.JsonbConfig; import io.quarkus.jsonb.JsonbConfigCustomizer; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleDeserializer.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleDeserializer.java index 87339d60d68e3..8bee26f3c21c9 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleDeserializer.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/discriminator/jsonb/VehicleDeserializer.java @@ -2,10 +2,10 @@ import java.lang.reflect.Type; -import javax.json.JsonObject; -import javax.json.bind.serializer.DeserializationContext; -import javax.json.bind.serializer.JsonbDeserializer; -import javax.json.stream.JsonParser; +import jakarta.json.JsonObject; +import jakarta.json.bind.serializer.DeserializationContext; +import jakarta.json.bind.serializer.JsonbDeserializer; +import jakarta.json.stream.JsonParser; import io.quarkus.it.mongodb.discriminator.Car; import io.quarkus.it.mongodb.discriminator.Moto; diff --git a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/pojo/PojoResource.java b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/pojo/PojoResource.java index 2e08e0a126929..de4a3ab7f4167 100644 --- a/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/pojo/PojoResource.java +++ b/integration-tests/mongodb-client/src/main/java/io/quarkus/it/mongodb/pojo/PojoResource.java @@ -7,15 +7,15 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java index ec5eb2ec840f7..5c0bb32106da1 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.hasKey; import static org.hamcrest.Matchers.is; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java index 69e6a8ff06317..62f40c048aec7 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java index 2c03ce679351a..3c3a232409333 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java @@ -5,7 +5,7 @@ import java.util.Optional; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/Utils.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/Utils.java index b9a668d21e4b0..394fcfa5dd8be 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/Utils.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/Utils.java @@ -6,8 +6,8 @@ import java.util.Collections; import java.util.List; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java index 5a02e74d82f2d..f39140fe5435f 100644 --- a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java +++ b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookCodecProvider.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.bson.codecs.Codec; import org.bson.codecs.configuration.CodecProvider; diff --git a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResource.java b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResource.java index 2ace7845a9407..2e17902195973 100644 --- a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResource.java +++ b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResource.java @@ -5,9 +5,9 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import org.bson.BsonObjectId; diff --git a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java index f834311622d0e..86c4194fb2e35 100644 --- a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java +++ b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/BookResourceWithParameterInjection.java @@ -5,12 +5,12 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import com.mongodb.client.FindIterable; import com.mongodb.client.MongoClient; diff --git a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java index 940e0ae46505c..77a701ff50f11 100644 --- a/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java +++ b/integration-tests/mongodb-devservices/src/main/java/io/quarkus/it/mongodb/ReactiveBookResource.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.concurrent.CompletionStage; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import io.quarkus.mongodb.reactive.ReactiveMongoClient; import io.quarkus.mongodb.reactive.ReactiveMongoCollection; diff --git a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java index 86ba444f6f647..7d09fca5aa53c 100644 --- a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java +++ b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java @@ -5,7 +5,7 @@ import static org.hamcrest.Matchers.hasKey; import static org.hamcrest.Matchers.is; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java index 69e6a8ff06317..62f40c048aec7 100644 --- a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java +++ b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb; -import javax.json.bind.Jsonb; +import jakarta.json.bind.Jsonb; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/Utils.java b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/Utils.java index 726c22d22b95c..a716321a6a231 100644 --- a/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/Utils.java +++ b/integration-tests/mongodb-devservices/src/test/java/io/quarkus/it/mongodb/Utils.java @@ -6,8 +6,8 @@ import java.util.Collections; import java.util.List; -import javax.json.bind.Jsonb; -import javax.json.bind.JsonbBuilder; +import jakarta.json.bind.Jsonb; +import jakarta.json.bind.JsonbBuilder; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/mongodb-panache-kotlin/pom.xml b/integration-tests/mongodb-panache-kotlin/pom.xml index b1b0a6d6a3de6..4a87c0a92718a 100644 --- a/integration-tests/mongodb-panache-kotlin/pom.xml +++ b/integration-tests/mongodb-panache-kotlin/pom.xml @@ -175,7 +175,7 @@ all-open - + diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntityResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntityResource.kt index 38cd2da07f6e2..43b806d780e5e 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntityResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookEntityResource.kt @@ -2,21 +2,21 @@ package io.quarkus.it.mongodb.panache.book import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort +import jakarta.annotation.PostConstruct +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.NotFoundException +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import java.net.URI import java.time.LocalDate -import javax.annotation.PostConstruct -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.NotFoundException -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/books/entity") class BookEntityResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepository.kt index 30e6438eac573..612f0952d3f2b 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.book import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class BookRepository(private val dummyService: DummyService) : PanacheMongoRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.kt index 50c5400eb5d2e..5be8c8226c4c7 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.kt @@ -2,22 +2,22 @@ package io.quarkus.it.mongodb.panache.book import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort +import jakarta.annotation.PostConstruct +import jakarta.inject.Inject +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.NotFoundException +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import java.net.URI import java.time.LocalDate -import javax.annotation.PostConstruct -import javax.inject.Inject -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.NotFoundException -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/books/repository") class BookRepositoryResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/DummyService.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/DummyService.kt index 7ce0f6fb34e81..ba04a68d09f37 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/DummyService.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/book/DummyService.kt @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.book -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped // used only to validate that we can inject CDI beans into Panache repositories written in Kotlin @ApplicationScoped diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.kt index 7989d22d23cc7..c42e2368a556d 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.bugs import io.quarkus.it.mongodb.panache.book.Book -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug5274EntityRepository : AbstractRepository() diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.kt index ee3bcc51ef5d7..9b2addac5307e 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.bugs import io.quarkus.it.mongodb.panache.person.PersonEntity -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug5885EntityRepository : Bug5885AbstractRepository() diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.kt index b0c83f159006d..2af59abc273cb 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.kt @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug6324ConcreteRepository : Bug6324AbstractRepository() diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.kt index db4075f439a59..fd6bffbe97712 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.bugs import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class Bug6324Repository : PanacheMongoRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/BugResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/BugResource.kt index 1024fbe4b3567..321aa8c371e41 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/BugResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/bugs/BugResource.kt @@ -1,18 +1,18 @@ package io.quarkus.it.mongodb.panache.bugs +import jakarta.inject.Inject +import jakarta.ws.rs.Consumes +import jakarta.ws.rs.GET +import jakarta.ws.rs.NotFoundException +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.Response import java.time.Instant import java.time.LocalDate import java.time.LocalDateTime import java.time.temporal.ChronoUnit import java.util.Date -import javax.inject.Inject -import javax.ws.rs.Consumes -import javax.ws.rs.GET -import javax.ws.rs.NotFoundException -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.Response @Path("/bugs") @Produces(MediaType.TEXT_PLAIN) diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.kt index fdcd85abd841e..308a2e2b082b1 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.kt @@ -2,7 +2,7 @@ package io.quarkus.it.mongodb.panache.person import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepositoryBase import io.quarkus.panache.common.Sort -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped open class MockablePersonRepository : PanacheMongoRepositoryBase { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/PersonRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/PersonRepository.kt index 49d4c0ed6d3a9..f6d404d4a3081 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/PersonRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/PersonRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.person import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepositoryBase -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class PersonRepository : PanacheMongoRepositoryBase diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.kt index 4e46fba760b13..69766b7937a5b 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.kt @@ -5,16 +5,16 @@ import io.quarkus.it.mongodb.panache.person.PersonEntity import io.quarkus.it.mongodb.panache.person.PersonName import io.quarkus.it.mongodb.panache.person.Status import io.quarkus.panache.common.Sort +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import java.net.URI -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/persons/entity") class PersonEntityResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.kt index 8349cb4df6ca7..6a8c63c312e89 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.kt @@ -7,17 +7,17 @@ import io.quarkus.it.mongodb.panache.person.PersonName import io.quarkus.it.mongodb.panache.person.PersonRepository import io.quarkus.it.mongodb.panache.person.Status import io.quarkus.panache.common.Sort +import jakarta.inject.Inject +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import java.net.URI -import javax.inject.Inject -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/persons/repository") class PersonRepositoryResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt index a381eb6f59342..8237bed5f257c 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt @@ -3,25 +3,25 @@ package io.quarkus.it.mongodb.panache.reactive.book import io.quarkus.panache.common.Parameters.with import io.quarkus.panache.common.Sort import io.smallrye.mutiny.Uni +import jakarta.annotation.PostConstruct +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.NotFoundException +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.Produces +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import org.jboss.resteasy.reactive.RestStreamElementType import org.reactivestreams.Publisher import java.net.URI import java.time.LocalDate.parse -import javax.annotation.PostConstruct -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.NotFoundException -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.Response @Path("/reactive/books/entity") class ReactiveBookEntityResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.kt index 59f62d1f04888..2fa59a440a7e4 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.kt @@ -2,7 +2,7 @@ package io.quarkus.it.mongodb.panache.reactive.book import io.quarkus.it.mongodb.panache.book.Book import io.quarkus.mongodb.panache.kotlin.reactive.ReactivePanacheMongoRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class ReactiveBookRepository : ReactivePanacheMongoRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt index faa04231dde2a..3ca8977a3dcc0 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt @@ -4,26 +4,26 @@ import io.quarkus.it.mongodb.panache.book.Book import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.smallrye.mutiny.Uni +import jakarta.annotation.PostConstruct +import jakarta.inject.Inject +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.NotFoundException +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.Produces +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import org.jboss.resteasy.reactive.RestStreamElementType import org.reactivestreams.Publisher import java.net.URI import java.time.LocalDate -import javax.annotation.PostConstruct -import javax.inject.Inject -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.NotFoundException -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.Response @Path("/reactive/books/repository") class ReactiveBookRepositoryResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.kt index 8817a989b43fb..00c3ed0a45d00 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.kt @@ -2,7 +2,7 @@ package io.quarkus.it.mongodb.panache.reactive.person import io.quarkus.it.mongodb.panache.person.Person import io.quarkus.mongodb.panache.kotlin.reactive.ReactivePanacheMongoRepositoryBase -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class ReactivePersonRepository : ReactivePanacheMongoRepositoryBase diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.kt index 855f471d40711..a8a08e98c23c2 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.kt @@ -5,16 +5,16 @@ import io.quarkus.it.mongodb.panache.person.PersonName import io.quarkus.it.mongodb.panache.reactive.person.ReactivePersonEntity import io.quarkus.panache.common.Sort import io.smallrye.mutiny.Uni +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import java.net.URI -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/reactive/persons/entity") class ReactivePersonEntityResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.kt index 991df718fd213..0c2d38714ae24 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.kt @@ -6,17 +6,17 @@ import io.quarkus.it.mongodb.panache.person.PersonName import io.quarkus.it.mongodb.panache.reactive.person.ReactivePersonRepository import io.quarkus.panache.common.Sort import io.smallrye.mutiny.Uni +import jakarta.inject.Inject +import jakarta.ws.rs.DELETE +import jakarta.ws.rs.GET +import jakarta.ws.rs.PATCH +import jakarta.ws.rs.POST +import jakarta.ws.rs.PUT +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.QueryParam +import jakarta.ws.rs.core.Response import java.net.URI -import javax.inject.Inject -import javax.ws.rs.DELETE -import javax.ws.rs.GET -import javax.ws.rs.PATCH -import javax.ws.rs.POST -import javax.ws.rs.PUT -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.QueryParam -import javax.ws.rs.core.Response @Path("/reactive/persons/repository") class ReactivePersonRepositoryResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.kt index bb898e05c052f..f5dad3fe53dfb 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.test import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class TestImperativeRepository : PanacheMongoRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.kt index 0ee3d496bf402..ad4510a404e4a 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.kt @@ -1,7 +1,7 @@ package io.quarkus.it.mongodb.panache.test import io.quarkus.mongodb.panache.kotlin.reactive.ReactivePanacheMongoRepository -import javax.enterprise.context.ApplicationScoped +import jakarta.enterprise.context.ApplicationScoped @ApplicationScoped class TestReactiveRepository : ReactivePanacheMongoRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestResource.kt index 16faeac99b4a9..65ce467fce97a 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/test/TestResource.kt @@ -8,12 +8,12 @@ import io.quarkus.mongodb.panache.kotlin.reactive.ReactivePanacheQuery import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.core.Response import org.bson.Document import org.junit.jupiter.api.Assertions -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.core.Response @Path("/test") class TestResource { diff --git a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt index 617e03d38024c..755366649616a 100644 --- a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt +++ b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt @@ -7,14 +7,14 @@ import io.quarkus.it.mongodb.panache.person.PersonRepository import io.quarkus.mongodb.panache.kotlin.PanacheMongoRepositoryBase import io.quarkus.test.junit.QuarkusTest import io.quarkus.test.junit.mockito.InjectMock +import jakarta.inject.Inject +import jakarta.ws.rs.WebApplicationException import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.condition.DisabledOnOs import org.junit.jupiter.api.condition.OS import org.mockito.Mockito import java.util.Collections -import javax.inject.Inject -import javax.ws.rs.WebApplicationException @QuarkusTest @DisabledOnOs(OS.WINDOWS) diff --git a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt index 7b5c7927528fa..a1933ff98170b 100644 --- a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt +++ b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt @@ -16,6 +16,10 @@ import io.restassured.common.mapper.TypeRef import io.restassured.config.ObjectMapperConfig import io.restassured.parsing.Parser import io.restassured.response.Response +import jakarta.ws.rs.client.Client +import jakarta.ws.rs.client.ClientBuilder +import jakarta.ws.rs.client.WebTarget +import jakarta.ws.rs.sse.SseEventSource import org.awaitility.Awaitility.await import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals @@ -30,10 +34,6 @@ import java.util.Collections import java.util.Date import java.util.GregorianCalendar import java.util.concurrent.atomic.LongAdder -import javax.ws.rs.client.Client -import javax.ws.rs.client.ClientBuilder -import javax.ws.rs.client.WebTarget -import javax.ws.rs.sse.SseEventSource @QuarkusTest @QuarkusTestResource(MongoTestResource::class) diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/TestEndpoint.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/TestEndpoint.java index adedbb1e53de4..c688fe270ae4e 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/TestEndpoint.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/TestEndpoint.java @@ -2,8 +2,8 @@ import java.lang.reflect.Method; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntityResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntityResource.java index f98d16594b2b9..127659b3179d3 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntityResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookEntityResource.java @@ -4,9 +4,9 @@ import java.time.LocalDate; import java.util.List; -import javax.annotation.PostConstruct; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import org.bson.types.ObjectId; import org.jboss.logging.Logger; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepository.java index d7f35d2a2b25b..3f7e67af2d4f9 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.book; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.java index a0dd6d7549231..16705ac803f0e 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/book/BookRepositoryResource.java @@ -4,10 +4,10 @@ import java.time.LocalDate; import java.util.List; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import org.bson.types.ObjectId; import org.jboss.logging.Logger; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug13301Repository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug13301Repository.java index 3ec61ddce60f8..2fe03d9b74598 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug13301Repository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug13301Repository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.java index efd37cfa9ce77..cdb6d8f909279 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5274EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.it.mongodb.panache.book.Book; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java index bb9642055fa40..e226ae00e3171 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.it.mongodb.panache.person.PersonEntity; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.java index 06d0c917d3875..54ffdc0dd6657 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324ConcreteRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class Bug6324ConcreteRepository extends Bug6324AbstractRepository { diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.java index 2a8301fc33f22..a2d40dbb54082 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug6324Repository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.bugs; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java index 5c8552b52614b..823748b16b5fd 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java @@ -7,15 +7,15 @@ import java.util.Date; import java.util.Optional; -import javax.inject.Inject; -import javax.inject.Named; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.bson.Document; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.java index 51d645b204e97..86394b7d85251 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/MockablePersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase; import io.quarkus.panache.common.Sort; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/PersonRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/PersonRepository.java index be813d2256439..f7ce02bf4dfa6 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/PersonRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/PersonRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.person; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.java index 44903f875df34..982a0625c35f3 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonEntityResource.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import com.mongodb.ReadPreference; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.java index 3d0219aa63a5d..5f93e582085e9 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/person/resources/PersonRepositoryResource.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Set; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import com.mongodb.ReadPreference; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java index 3ca75ea134912..38d640841f6b9 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java @@ -4,10 +4,10 @@ import java.time.LocalDate; import java.util.List; -import javax.annotation.PostConstruct; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.bson.types.ObjectId; import org.jboss.logging.Logger; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.java index 7cb283d7ca032..50e91b889b26b 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.reactive.book; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.it.mongodb.panache.book.Book; import io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java index 25e21f975d6d4..b0c97b81524b7 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java @@ -4,11 +4,11 @@ import java.time.LocalDate; import java.util.List; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.bson.types.ObjectId; import org.jboss.logging.Logger; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/MockableReactivePersonRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/MockableReactivePersonRepository.java index 29938807f6110..6108d38c5d6f6 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/MockableReactivePersonRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/MockableReactivePersonRepository.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase; import io.quarkus.panache.common.Sort; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.java index 01054e26b910a..50da35483b9f9 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/ReactivePersonRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.reactive.person; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.it.mongodb.panache.person.Person; import io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.java index dbd1a9bac4724..f8f4593902137 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonEntityResource.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Set; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import com.mongodb.ReadPreference; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.java index aea4dad507f2e..44aa88ed16508 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/person/resources/ReactivePersonRepositoryResource.java @@ -5,9 +5,9 @@ import java.util.List; import java.util.Set; -import javax.inject.Inject; -import javax.ws.rs.*; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.Response; import com.mongodb.ReadPreference; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.java index 60e9b609b00e8..b4cf27d846a15 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestImperativeRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.java index ce649eafea298..9c22c7921fcd9 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestReactiveRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.panache.test; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepository; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestResource.java index ffd7fd3040025..5a5aa17920b7d 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/test/TestResource.java @@ -3,10 +3,10 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.bson.Document; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/transaction/TransactionPersonResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/transaction/TransactionPersonResource.java index 4de21c0a970ba..27763f671c453 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/transaction/TransactionPersonResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/transaction/TransactionPersonResource.java @@ -4,13 +4,13 @@ import java.util.ArrayList; import java.util.List; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.inject.Named; -import javax.transaction.Transactional; -import javax.ws.rs.*; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.inject.Named; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.*; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import com.mongodb.client.MongoClient; diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java index c60e796931612..7000625e4c6d7 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java @@ -3,8 +3,8 @@ import java.util.Collections; import java.util.Optional; -import javax.inject.Inject; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.WebApplicationException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Order; diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java index dac1559ba2d0c..cfa5996b0b9a7 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java @@ -4,7 +4,7 @@ import java.util.Collections; import java.util.List; -import javax.ws.rs.WebApplicationException; +import jakarta.ws.rs.WebApplicationException; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Order; diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java index 5aaa63a435579..91eed8103c5c4 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java @@ -16,10 +16,10 @@ import java.util.List; import java.util.concurrent.atomic.LongAdder; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.sse.SseEventSource; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/BookRepository.java b/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/BookRepository.java index 71edcb3389ec3..c190584425715 100644 --- a/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/BookRepository.java +++ b/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/BookRepository.java @@ -1,6 +1,6 @@ package io.quarkus.it.mongodb.rest.data.panache; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase; diff --git a/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/TestResource.java b/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/TestResource.java index c8238f6b178a5..27e6395eab89a 100644 --- a/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/TestResource.java +++ b/integration-tests/mongodb-rest-data-panache/src/main/java/io/quarkus/it/mongodb/rest/data/panache/TestResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.mongodb.rest.data.panache; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @ApplicationScoped @Path("/test") diff --git a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java index b8e149737685f..e2bd73c7c5ca0 100644 --- a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java +++ b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java @@ -5,9 +5,9 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.Matchers.*; -import javax.json.Json; -import javax.json.JsonObject; -import javax.ws.rs.core.MediaType; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; diff --git a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionBeanWithEvents.java b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionBeanWithEvents.java index 1ac904116b787..f59bd0134e552 100644 --- a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionBeanWithEvents.java +++ b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionBeanWithEvents.java @@ -1,22 +1,22 @@ package io.quarkus.narayana.jta; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.BeforeDestroyed; -import javax.enterprise.context.ContextNotActiveException; -import javax.enterprise.context.Destroyed; -import javax.enterprise.context.Initialized; -import javax.enterprise.context.spi.Context; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.Synchronization; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionScoped; -import javax.transaction.Transactional; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.BeforeDestroyed; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.enterprise.context.Destroyed; +import jakarta.enterprise.context.Initialized; +import jakarta.enterprise.context.spi.Context; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.Synchronization; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionScoped; +import jakarta.transaction.Transactional; +import jakarta.transaction.UserTransaction; import org.jboss.logging.Logger; diff --git a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionScopedBean.java b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionScopedBean.java index 2ebbe16150daa..56821230ff932 100644 --- a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionScopedBean.java +++ b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionScopedBean.java @@ -2,9 +2,9 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.transaction.TransactionScoped; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.transaction.TransactionScoped; @TransactionScoped public class TransactionScopedBean { diff --git a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionalResource.java b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionalResource.java index b9f7f447efa4e..db3d2fc174529 100644 --- a/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionalResource.java +++ b/integration-tests/narayana-jta/src/main/java/io/quarkus/narayana/jta/TransactionalResource.java @@ -1,13 +1,13 @@ package io.quarkus.narayana.jta; -import javax.inject.Inject; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/tx") public class TransactionalResource { @@ -18,7 +18,7 @@ public class TransactionalResource { @GET @Produces(MediaType.TEXT_PLAIN) @Transactional - public String status() throws javax.transaction.SystemException { + public String status() throws jakarta.transaction.SystemException { Transaction txn = tm.getTransaction(); return String.valueOf(txn.getStatus()); } diff --git a/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionConfPropTest.java b/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionConfPropTest.java index 140825a7d144b..daa221f2986b1 100644 --- a/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionConfPropTest.java +++ b/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionConfPropTest.java @@ -4,12 +4,13 @@ import java.io.File; -import javax.inject.Inject; -import javax.transaction.TransactionManager; import javax.transaction.xa.XAException; import javax.transaction.xa.XAResource; import javax.transaction.xa.Xid; +import jakarta.inject.Inject; +import jakarta.transaction.TransactionManager; + import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionScopedTest.java b/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionScopedTest.java index 0c4897dde9f70..f726e27c1d851 100644 --- a/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionScopedTest.java +++ b/integration-tests/narayana-jta/src/test/java/io/quarkus/narayana/jta/TransactionScopedTest.java @@ -3,11 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.enterprise.context.ContextNotActiveException; -import javax.inject.Inject; -import javax.transaction.Transaction; -import javax.transaction.TransactionManager; -import javax.transaction.UserTransaction; +import jakarta.enterprise.context.ContextNotActiveException; +import jakarta.inject.Inject; +import jakarta.transaction.Transaction; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.UserTransaction; import org.junit.jupiter.api.Test; diff --git a/integration-tests/narayana-lra/src/main/java/org/acme/quickstart/lra/coordinator/TransactionalResource.java b/integration-tests/narayana-lra/src/main/java/org/acme/quickstart/lra/coordinator/TransactionalResource.java index 4fe9f0a6c9419..e0d8b1ba9f25a 100644 --- a/integration-tests/narayana-lra/src/main/java/org/acme/quickstart/lra/coordinator/TransactionalResource.java +++ b/integration-tests/narayana-lra/src/main/java/org/acme/quickstart/lra/coordinator/TransactionalResource.java @@ -5,12 +5,12 @@ import java.net.URI; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.lra.annotation.Compensate; import org.eclipse.microprofile.lra.annotation.Complete; diff --git a/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightResource.java b/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightResource.java index 7e65d2ab46e80..0a5a0aef651cc 100644 --- a/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightResource.java +++ b/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightResource.java @@ -3,13 +3,13 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/stm") @RequestScoped diff --git a/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightServiceFactory.java b/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightServiceFactory.java index b1b7af50bbce1..fee5e1ac1a1e0 100644 --- a/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightServiceFactory.java +++ b/integration-tests/narayana-stm/src/main/java/org/acme/quickstart/stm/FlightServiceFactory.java @@ -1,6 +1,6 @@ package org.acme.quickstart.stm; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.jboss.stm.Container; diff --git a/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/NativeConfigProfileResource.java b/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/NativeConfigProfileResource.java index 37830301fc47b..9a72c5a61826e 100644 --- a/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/NativeConfigProfileResource.java +++ b/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/NativeConfigProfileResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.nat.test.profile; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/UnusedRemovableBean.java b/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/UnusedRemovableBean.java index 1f2e302b1af74..0f88b3b8d4e25 100644 --- a/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/UnusedRemovableBean.java +++ b/integration-tests/native-config-profile/src/main/java/io/quarkus/it/nat/test/profile/UnusedRemovableBean.java @@ -1,6 +1,6 @@ package io.quarkus.it.nat.test.profile; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class UnusedRemovableBean { diff --git a/integration-tests/no-awt/src/main/java/io/quarkus/awt/it/GraphicsResource.java b/integration-tests/no-awt/src/main/java/io/quarkus/awt/it/GraphicsResource.java index 0aebdecc335e0..e2c9356774954 100644 --- a/integration-tests/no-awt/src/main/java/io/quarkus/awt/it/GraphicsResource.java +++ b/integration-tests/no-awt/src/main/java/io/quarkus/awt/it/GraphicsResource.java @@ -17,10 +17,11 @@ import javax.imageio.ImageWriter; import javax.imageio.spi.IIORegistry; import javax.imageio.spi.ImageReaderSpi; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; diff --git a/integration-tests/oidc-client-reactive/pom.xml b/integration-tests/oidc-client-reactive/pom.xml index 86a8bb7f78977..00b772c39d080 100644 --- a/integration-tests/oidc-client-reactive/pom.xml +++ b/integration-tests/oidc-client-reactive/pom.xml @@ -34,8 +34,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index 835ad9c17691d..0726cbbe8cffa 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java index 04147c6992e15..90c594f2d3850 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java @@ -2,10 +2,10 @@ import java.util.function.Consumer; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.HttpHeaders; +import jakarta.ws.rs.core.Response; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext; diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index d22677cb03e7c..6364968ad289e 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -2,11 +2,11 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceCustomFilter.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceCustomFilter.java index e17ec8fb4fc61..cfb95ea71c0e1 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceCustomFilter.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceCustomFilter.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedFilter.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedFilter.java index 04d703f5d5f39..4edcce384a808 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedFilter.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedFilter.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceReactiveFilter.java b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceReactiveFilter.java index 2aa9c88e12ebc..10e9ce803e2b2 100644 --- a/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceReactiveFilter.java +++ b/integration-tests/oidc-client-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceReactiveFilter.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index a6f9062049194..2dee384ad1079 100644 --- a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index 7c9316864eda9..d6042dd4c83b4 100644 --- a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; @Path("/protected") public class ProtectedResource { diff --git a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java index d2726065eeea1..8688cc6314369 100644 --- a/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java +++ b/integration-tests/oidc-client-wiremock/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client-wiremock/src/test/java/io/quarkus/it/keycloak/KeycloakRealmResourceManager.java b/integration-tests/oidc-client-wiremock/src/test/java/io/quarkus/it/keycloak/KeycloakRealmResourceManager.java index fceb9735d12f4..b89c36053549f 100644 --- a/integration-tests/oidc-client-wiremock/src/test/java/io/quarkus/it/keycloak/KeycloakRealmResourceManager.java +++ b/integration-tests/oidc-client-wiremock/src/test/java/io/quarkus/it/keycloak/KeycloakRealmResourceManager.java @@ -6,7 +6,7 @@ import java.util.HashMap; import java.util.Map; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.jboss.logging.Logger; diff --git a/integration-tests/oidc-client/pom.xml b/integration-tests/oidc-client/pom.xml index 1bd735aa1c17f..27039ffc402ec 100644 --- a/integration-tests/oidc-client/pom.xml +++ b/integration-tests/oidc-client/pom.xml @@ -35,8 +35,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index de5fe9f39ee15..59fc418d5e1a3 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java index 47778f817b43c..240026b074dd7 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/OidcClientRequestCustomFilter.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.annotation.Priority; -import javax.inject.Inject; -import javax.ws.rs.Priorities; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; -import javax.ws.rs.core.HttpHeaders; +import jakarta.annotation.Priority; +import jakarta.inject.Inject; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.core.HttpHeaders; import io.quarkus.oidc.client.NamedOidcClient; import io.quarkus.oidc.client.Tokens; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index b99056445fdee..0c77cde1cf095 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -2,10 +2,10 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedOidcClient.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedOidcClient.java index 59fc09ae12cfb..a334e445b0715 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedOidcClient.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNamedOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNoOidcClient.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNoOidcClient.java index 8e078666a40f4..5ba8e87679916 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNoOidcClient.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNoOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNonDefaultOidcClient.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNonDefaultOidcClient.java index 676632398d3a1..d72493e056fb7 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNonDefaultOidcClient.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceNonDefaultOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java index 3cedc0b77aacb..cbae73d9a251f 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceOidcClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceRegisterProvider.java b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceRegisterProvider.java index d51c52d398d76..e23cc87d4df33 100644 --- a/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceRegisterProvider.java +++ b/integration-tests/oidc-client/src/main/java/io/quarkus/it/keycloak/ProtectedResourceServiceRegisterProvider.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-code-flow/pom.xml b/integration-tests/oidc-code-flow/pom.xml index dbfd44d2741aa..44b0a5be19815 100644 --- a/integration-tests/oidc-code-flow/pom.xml +++ b/integration-tests/oidc-code-flow/pom.xml @@ -67,8 +67,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation io.rest-assured diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/AuthenticationCompletionExceptionMapper.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/AuthenticationCompletionExceptionMapper.java index 7137892a31451..e3ceb9667dd90 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/AuthenticationCompletionExceptionMapper.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/AuthenticationCompletionExceptionMapper.java @@ -1,12 +1,12 @@ package io.quarkus.it.keycloak; -import javax.annotation.Priority; -import javax.ws.rs.Priorities; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.annotation.Priority; +import jakarta.ws.rs.Priorities; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.security.AuthenticationCompletionException; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java index b7bd89c6ddf8e..27ebcb4c8ae8e 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.AccessTokenCredential; import io.quarkus.oidc.IdTokenCredential; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java index 728d304a44297..22f5f2e4caf1f 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java index 44b184c5430e0..23f7cb1c5183f 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.quarkus.oidc.runtime.OidcUtils; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index 2bac753ec2c0b..03078e42e591e 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -3,14 +3,14 @@ import java.security.Principal; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.CookieParam; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.inject.Inject; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java index c848f91996016..6a2309c35dfdf 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource2.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource3.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource3.java index 161449c0a4d1e..b346cb238a51a 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource3.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/ProtectedResource3.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/SecurityEventListener.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/SecurityEventListener.java index 1ae499b72eecc..1910f119bc3ba 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/SecurityEventListener.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/SecurityEventListener.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.oidc.SecurityEvent; import io.quarkus.security.identity.AuthenticationRequestContext; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantAutoRefresh.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantAutoRefresh.java index 092d6c8b63f87..d26875d7cd143 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantAutoRefresh.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantAutoRefresh.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantHttps.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantHttps.java index f06cffa5a4699..ee5ed7044b91b 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantHttps.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantHttps.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.oidc.OidcSession; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantLogout.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantLogout.java index 5ffabd9a6b9ea..a19f158fb7fdd 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantLogout.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantLogout.java @@ -1,13 +1,13 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.InternalServerErrorException; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Cookie; -import javax.ws.rs.core.HttpHeaders; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.InternalServerErrorException; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.HttpHeaders; import io.quarkus.security.Authenticated; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantRefresh.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantRefresh.java index aae7df4458b02..4ea2986944d3f 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantRefresh.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/TenantRefresh.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/UnprotectedResource.java b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/UnprotectedResource.java index 2bce57ef946d4..46168c0154bc6 100644 --- a/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/UnprotectedResource.java +++ b/integration-tests/oidc-code-flow/src/main/java/io/quarkus/it/keycloak/UnprotectedResource.java @@ -5,14 +5,14 @@ import java.util.Map; import java.util.UUID; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.NewCookie; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-tenancy/pom.xml b/integration-tests/oidc-tenancy/pom.xml index 787092a4310cf..8bc14a0320453 100644 --- a/integration-tests/oidc-tenancy/pom.xml +++ b/integration-tests/oidc-tenancy/pom.xml @@ -45,8 +45,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CacheResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CacheResource.java index a1bcca6c36718..b3ca92ba5a20b 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CacheResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CacheResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("cache") public class CacheResource { diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomIntrospectionUserInfoCache.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomIntrospectionUserInfoCache.java index 8287a1df7f2a7..90521b83c25d1 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomIntrospectionUserInfoCache.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomIntrospectionUserInfoCache.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.arc.AlternativePriority; import io.quarkus.oidc.OidcRequestContext; @@ -51,4 +51,4 @@ public int getCacheSize() { public void clearCache() { tokenCache.clearCache(); } -} \ No newline at end of file +} diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java index d5b4b5ff79818..5c8ce5297d4df 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java @@ -3,7 +3,7 @@ import java.time.Duration; import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java index 8996e244bf8ae..0d129f2274e15 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.quarkus.oidc.runtime.OidcUtils; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/OidcResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/OidcResource.java index 3ab87468213a8..8a1721396fe3c 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/OidcResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/OidcResource.java @@ -4,17 +4,17 @@ import java.time.Duration; import java.util.Base64; -import javax.annotation.PostConstruct; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.UriInfo; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.jwt.JsonWebToken; import org.jose4j.jwk.JsonWebKeySet; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/ServiceProtectedResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/ServiceProtectedResource.java index 491ae76585276..d7ca55fd2b1f0 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/ServiceProtectedResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/ServiceProtectedResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantHybridResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantHybridResource.java index 002e50a4243fd..46c76c0a20c0f 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantHybridResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantHybridResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantOpaqueResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantOpaqueResource.java index f219556fd8c03..269d2b3019630 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantOpaqueResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantOpaqueResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.AccessTokenCredential; import io.quarkus.oidc.OIDCException; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantRefreshTokenResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantRefreshTokenResource.java index dca3207a36284..5220082e75696 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantRefreshTokenResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantRefreshTokenResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantResource.java b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantResource.java index becea4057a791..811604691668e 100644 --- a/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantResource.java +++ b/integration-tests/oidc-tenancy/src/main/java/io/quarkus/it/keycloak/TenantResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.QueryParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.jwt.Claims; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java index 56c46efd2966c..f4431b7399e54 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java index 141cdd08449e8..3f14e32d808a3 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index 5a96b1f14c99a..64d9d13c35a6e 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java index 791c4232fd35a..fd96c67c178ea 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index e4afd7d8ce513..c4cf5320e129a 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -2,11 +2,11 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.quarkus.security.Authenticated; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ServiceWithoutToken.java b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ServiceWithoutToken.java index 9f17a394911fe..4ec72128f76ce 100644 --- a/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ServiceWithoutToken.java +++ b/integration-tests/oidc-token-propagation-reactive/src/main/java/io/quarkus/it/keycloak/ServiceWithoutToken.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-token-propagation/pom.xml b/integration-tests/oidc-token-propagation/pom.xml index ff6de6eb41699..3946dc4513eaa 100644 --- a/integration-tests/oidc-token-propagation/pom.xml +++ b/integration-tests/oidc-token-propagation/pom.xml @@ -34,8 +34,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java index 006fb46b04673..ecaa12d82de9e 100644 --- a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java +++ b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index 9ca4be2daaeac..d2f06c1990951 100644 --- a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java index c08cca9159f64..f09336e85c0ae 100644 --- a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java +++ b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index c8fcc1309a3a5..acbf8f0b8e92e 100644 --- a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -2,10 +2,10 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ServiceAccountService.java b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ServiceAccountService.java index 4f1b6e176534e..aa2db770fa27c 100644 --- a/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ServiceAccountService.java +++ b/integration-tests/oidc-token-propagation/src/main/java/io/quarkus/it/keycloak/ServiceAccountService.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/AdminResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/AdminResource.java index 2f6a683ac2e88..298096b871fd5 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/AdminResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/AdminResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowEncryptedIdTokenResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowEncryptedIdTokenResource.java index d9d04b65e8240..9d1eb6dcabe14 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowEncryptedIdTokenResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowEncryptedIdTokenResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowFormPostResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowFormPostResource.java index 7d8663fbcb59f..e91d93c7919f2 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowFormPostResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowFormPostResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowResource.java index 8373609910ed1..02cfca00407ff 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import io.quarkus.oidc.runtime.DefaultTokenIntrospectionUserInfoCache; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowUserInfoResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowUserInfoResource.java index 11dfe8cec7dd6..ba2f63d9911aa 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowUserInfoResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CodeFlowUserInfoResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.PermitAll; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.PermitAll; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java index 84eae694557c0..d7f3f2e626aa6 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomSecurityIdentityAugmentor.java @@ -2,7 +2,7 @@ import java.security.Principal; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.UserInfo; import io.quarkus.security.identity.AuthenticationRequestContext; @@ -39,4 +39,4 @@ public String getName() { return Uni.createFrom().item(identity); } -} \ No newline at end of file +} diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java index 9308a2eed14b4..615ed87e89670 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantConfigResolver.java @@ -3,8 +3,8 @@ import java.time.Duration; import java.util.Map; -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; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java index 61ee4ff44d326..49d09dfb2e969 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/CustomTenantResolver.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.oidc.TenantResolver; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrInterceptor.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrInterceptor.java index 663a623f5384c..96d50aaae8ded 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrInterceptor.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrInterceptor.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.inject.Inject; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; import io.quarkus.oidc.runtime.OidcUtils; import io.vertx.ext.web.RoutingContext; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrTenant.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrTenant.java index 107013e67edfd..2fe22a06bdcdb 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrTenant.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/HrTenant.java @@ -2,7 +2,7 @@ import java.lang.annotation.*; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @Inherited @InterceptorBinding diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueAdminResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueAdminResource.java index 4ceefd20dde24..73ad85aefb882 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueAdminResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueAdminResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueGithubResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueGithubResource.java index db55846de3e89..67c2dae6418cf 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueGithubResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueGithubResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.oidc.AccessTokenCredential; import io.quarkus.oidc.UserInfo; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueUsersResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueUsersResource.java index c1379c5ccb968..430f4b58dcc2e 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueUsersResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/OpaqueUsersResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.it.keycloak.model.User; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/TenantEchoResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/TenantEchoResource.java index 3ea175bed0256..caea694dd7e8e 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/TenantEchoResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/TenantEchoResource.java @@ -5,11 +5,11 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.oidc.runtime.OidcUtils; import io.quarkus.security.Authenticated; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResource.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResource.java index 2cf682a06ec7d..3e55f570cfbe9 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResource.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecovered.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecovered.java index 48e7f0d737516..dbb0de51ca683 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecovered.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecovered.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecoveredNoDiscovery.java b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecoveredNoDiscovery.java index 1b1f29f27ebf9..83e313c2b778d 100644 --- a/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecoveredNoDiscovery.java +++ b/integration-tests/oidc-wiremock/src/main/java/io/quarkus/it/keycloak/UsersResourceOidcRecoveredNoDiscovery.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc/pom.xml b/integration-tests/oidc/pom.xml index d625e07cd8300..226501ea37986 100644 --- a/integration-tests/oidc/pom.xml +++ b/integration-tests/oidc/pom.xml @@ -43,8 +43,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation io.quarkus diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/AdminResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/AdminResource.java index a5e44360fd13a..e96a2f1a7be85 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/AdminResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/AdminResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.Claim; import org.eclipse.microprofile.jwt.ClaimValue; diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/HelloResourceBase.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/HelloResourceBase.java index aa7859e257b27..ee48ce7ee86b3 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/HelloResourceBase.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/HelloResourceBase.java @@ -1,6 +1,6 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.RolesAllowed; @RolesAllowed("user") public class HelloResourceBase { diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/IHelloResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/IHelloResource.java index 93b11ca35c0de..7549e32d16063 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/IHelloResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/IHelloResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -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("/hello") public interface IHelloResource { diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/PermissionResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/PermissionResource.java index 51492856d0948..bf20b79f7ecb8 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/PermissionResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/PermissionResource.java @@ -3,11 +3,11 @@ import java.util.HashMap; import java.util.Map; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.json.JsonString; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.json.JsonString; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java index 5104bc88e8b28..bf8e0867090b1 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.keycloak; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/SecuredHelloWebSocket.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/SecuredHelloWebSocket.java index cd6d270ca5ee9..8040036f9f933 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/SecuredHelloWebSocket.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/SecuredHelloWebSocket.java @@ -1,10 +1,10 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.websocket.OnMessage; -import javax.websocket.server.ServerEndpoint; +import jakarta.annotation.security.RolesAllowed; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.websocket.OnMessage; +import jakarta.websocket.server.ServerEndpoint; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/UsersResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/UsersResource.java index ec9898331a7a7..a89bc9ad39ff7 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/UsersResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/UsersResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/VertxResource.java b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/VertxResource.java index 360641f94595e..6f90c4c509cb7 100644 --- a/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/VertxResource.java +++ b/integration-tests/oidc/src/main/java/io/quarkus/it/keycloak/VertxResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.quarkus.vertx.http.runtime.security.QuarkusHttpUser; import io.vertx.core.Handler; diff --git a/integration-tests/oidc/src/test/java/io/quarkus/it/keycloak/WebsocketOidcTestCase.java b/integration-tests/oidc/src/test/java/io/quarkus/it/keycloak/WebsocketOidcTestCase.java index 50a993da34439..b998d0bf7bc3b 100644 --- a/integration-tests/oidc/src/test/java/io/quarkus/it/keycloak/WebsocketOidcTestCase.java +++ b/integration-tests/oidc/src/test/java/io/quarkus/it/keycloak/WebsocketOidcTestCase.java @@ -6,11 +6,11 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ContainerProvider; -import javax.websocket.Endpoint; -import javax.websocket.EndpointConfig; -import javax.websocket.MessageHandler; -import javax.websocket.Session; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.Endpoint; +import jakarta.websocket.EndpointConfig; +import jakarta.websocket.MessageHandler; +import jakarta.websocket.Session; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/openshift-client/src/main/java/io/quarkus/it/openshift/client/Routes.java b/integration-tests/openshift-client/src/main/java/io/quarkus/it/openshift/client/Routes.java index c2a2196d11e7d..82392a8af0f3b 100644 --- a/integration-tests/openshift-client/src/main/java/io/quarkus/it/openshift/client/Routes.java +++ b/integration-tests/openshift-client/src/main/java/io/quarkus/it/openshift/client/Routes.java @@ -1,10 +1,10 @@ package io.quarkus.it.openshift.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Response; import io.fabric8.kubernetes.client.KubernetesClient; import io.fabric8.openshift.client.OpenShiftClient; diff --git a/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/ExporterResource.java b/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/ExporterResource.java index 52581126d61c3..2f3482ad92f57 100644 --- a/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/ExporterResource.java +++ b/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/ExporterResource.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/HelloResource.java b/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/HelloResource.java index de12c7d497320..2bf441137a79e 100644 --- a/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/HelloResource.java +++ b/integration-tests/opentelemetry-grpc/src/main/java/io/quarkus/it/opentelemetry/grpc/HelloResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.opentelemetry.grpc; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.grpc.GrpcClient; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java index 144bcc4911d8a..a611fda7c2c7b 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java index f6f2d8cb17d61..a8219d6cb4b62 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java @@ -2,14 +2,14 @@ import java.util.function.Supplier; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import io.quarkus.it.opentelemetry.model.Hit; import io.quarkus.it.opentelemetry.model.db2.Db2Hit; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/db2/Db2Hit.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/db2/Db2Hit.java index c0b6637ded50b..ffca4af9f5c50 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/db2/Db2Hit.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/db2/Db2Hit.java @@ -1,7 +1,7 @@ package io.quarkus.it.opentelemetry.model.db2; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.it.opentelemetry.model.Hit; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/mariadb/MariaDbHit.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/mariadb/MariaDbHit.java index c3d77e52cc23b..9a9740c1218ee 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/mariadb/MariaDbHit.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/mariadb/MariaDbHit.java @@ -1,7 +1,7 @@ package io.quarkus.it.opentelemetry.model.mariadb; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.it.opentelemetry.model.Hit; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/oracle/OracleHit.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/oracle/OracleHit.java index 490c7fa5cf521..6c5dee4da7ea7 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/oracle/OracleHit.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/oracle/OracleHit.java @@ -1,7 +1,7 @@ package io.quarkus.it.opentelemetry.model.oracle; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.it.opentelemetry.model.Hit; diff --git a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/pg/PgHit.java b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/pg/PgHit.java index a79d1b79c7c4a..7e8a38355258f 100644 --- a/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/pg/PgHit.java +++ b/integration-tests/opentelemetry-jdbc-instrumentation/src/main/java/io/quarkus/it/opentelemetry/model/pg/PgHit.java @@ -1,7 +1,7 @@ package io.quarkus.it.opentelemetry.model.pg; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.it.opentelemetry.model.Hit; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java index b5d56bb3f5937..7f90c83a3bd42 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java index b4a3303664371..d469e6f945bb8 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.opentelemetry; -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; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SpanExporterProvider.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SpanExporterProvider.java index 34575ac1259ee..37bf433e2c9eb 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SpanExporterProvider.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/SpanExporterProvider.java @@ -1,8 +1,8 @@ package io.quarkus.it.opentelemetry; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaConsumer.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaConsumer.java index 055379c24905e..8812821e38713 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaConsumer.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaConsumer.java @@ -2,8 +2,8 @@ import java.util.concurrent.CompletionStage; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaProcessor.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaProcessor.java index bf3df07174e0e..82cb3b4cee4ed 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaProcessor.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedKafkaProcessor.java @@ -1,7 +1,7 @@ package io.quarkus.it.opentelemetry; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedService.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedService.java index ea21f9747be58..98d6e23ae5b36 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedService.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/TracedService.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentelemetry; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.opentelemetry.instrumentation.annotations.WithSpan; diff --git a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java index 87361a228c838..83564dfe092bb 100644 --- a/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java +++ b/integration-tests/opentelemetry-reactive-messaging/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentelemetry.output; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; diff --git a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ExporterResource.java b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ExporterResource.java index 36c224b509256..1a6743c956d6a 100644 --- a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ExporterResource.java +++ b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ExporterResource.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveResource.java b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveResource.java index a1018019cdafd..a08c9f3fbaffc 100644 --- a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveResource.java +++ b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveResource.java @@ -2,11 +2,11 @@ import java.time.Duration; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveRestClient.java b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveRestClient.java index ac0d8deb06b43..e73175cb29f3b 100644 --- a/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveRestClient.java +++ b/integration-tests/opentelemetry-reactive/src/main/java/io/quarkus/it/opentelemetry/reactive/ReactiveRestClient.java @@ -1,9 +1,9 @@ package io.quarkus.it.opentelemetry.reactive; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.QueryParam; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/opentelemetry-reactive/src/test/java/io/quarkus/it/opentelemetry/reactive/OpenTelemetryReactiveClientTest.java b/integration-tests/opentelemetry-reactive/src/test/java/io/quarkus/it/opentelemetry/reactive/OpenTelemetryReactiveClientTest.java index ae061e9c14292..aa6178651c306 100644 --- a/integration-tests/opentelemetry-reactive/src/test/java/io/quarkus/it/opentelemetry/reactive/OpenTelemetryReactiveClientTest.java +++ b/integration-tests/opentelemetry-reactive/src/test/java/io/quarkus/it/opentelemetry/reactive/OpenTelemetryReactiveClientTest.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.junit.jupiter.api.AfterEach; diff --git a/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/ExporterRouter.java b/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/ExporterRouter.java index 6f52ec9e6b02f..b362633125459 100644 --- a/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/ExporterRouter.java +++ b/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/ExporterRouter.java @@ -3,11 +3,11 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/HelloRouter.java b/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/HelloRouter.java index dcc43e29f4b3d..669b629a04221 100644 --- a/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/HelloRouter.java +++ b/integration-tests/opentelemetry-vertx/src/main/java/io/quarkus/it/opentelemetry/vertx/HelloRouter.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.quarkus.vertx.ConsumeEvent; diff --git a/integration-tests/opentelemetry-vertx/src/test/java/io/quarkus/it/opentelemetry/vertx/SqlClientTest.java b/integration-tests/opentelemetry-vertx/src/test/java/io/quarkus/it/opentelemetry/vertx/SqlClientTest.java index cc602c44d7bd1..4717f20f7303d 100644 --- a/integration-tests/opentelemetry-vertx/src/test/java/io/quarkus/it/opentelemetry/vertx/SqlClientTest.java +++ b/integration-tests/opentelemetry-vertx/src/test/java/io/quarkus/it/opentelemetry/vertx/SqlClientTest.java @@ -17,9 +17,10 @@ import java.util.List; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; import javax.sql.DataSource; +import jakarta.inject.Inject; + import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java index 144bcc4911d8a..a611fda7c2c7b 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/ExporterResource.java @@ -3,13 +3,13 @@ import java.util.List; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; import io.opentelemetry.sdk.trace.data.SpanData; diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PathTemplateResource.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PathTemplateResource.java index 323cd0119a683..c5650e9342dd0 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PathTemplateResource.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PathTemplateResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.opentelemetry; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; @Path("template/path/{value}") public class PathTemplateResource { diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java index af49b27dae0da..4d02a03af17e8 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/PingPongResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.opentelemetry; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java index 25c25a1b78a83..e31106f08b29a 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/SimpleResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.opentelemetry; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/TracedService.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/TracedService.java index ea21f9747be58..98d6e23ae5b36 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/TracedService.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/TracedService.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentelemetry; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.opentelemetry.instrumentation.annotations.WithSpan; diff --git a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java index 87361a228c838..83564dfe092bb 100644 --- a/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java +++ b/integration-tests/opentelemetry/src/main/java/io/quarkus/it/opentelemetry/output/SpanDataModuleSerializer.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentelemetry.output; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; diff --git a/integration-tests/opentelemetry/src/test/java/io/quarkus/it/opentelemetry/util/InjectionResource.java b/integration-tests/opentelemetry/src/test/java/io/quarkus/it/opentelemetry/util/InjectionResource.java index 08b6b91e031ad..6b0dec71d8520 100644 --- a/integration-tests/opentelemetry/src/test/java/io/quarkus/it/opentelemetry/util/InjectionResource.java +++ b/integration-tests/opentelemetry/src/test/java/io/quarkus/it/opentelemetry/util/InjectionResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.opentelemetry.util; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/picocli-native/src/main/java/io/quarkus/it/picocli/DynamicProxyInvokerCommand.java b/integration-tests/picocli-native/src/main/java/io/quarkus/it/picocli/DynamicProxyInvokerCommand.java index 7fda7767a654e..019ed21c05355 100644 --- a/integration-tests/picocli-native/src/main/java/io/quarkus/it/picocli/DynamicProxyInvokerCommand.java +++ b/integration-tests/picocli-native/src/main/java/io/quarkus/it/picocli/DynamicProxyInvokerCommand.java @@ -1,6 +1,6 @@ package io.quarkus.it.picocli; -import javax.inject.Inject; +import jakarta.inject.Inject; import picocli.CommandLine; diff --git a/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/NamedCommand.java b/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/NamedCommand.java index 15749987eb551..6a29c16f16ce4 100644 --- a/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/NamedCommand.java +++ b/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/NamedCommand.java @@ -1,6 +1,6 @@ package io.quarkus.it.picocli; -import javax.inject.Named; +import jakarta.inject.Named; import io.quarkus.picocli.runtime.annotations.TopCommand; import picocli.CommandLine; diff --git a/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/ParsedCommand.java b/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/ParsedCommand.java index 9527afe79f1bf..0746279329639 100644 --- a/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/ParsedCommand.java +++ b/integration-tests/picocli/src/main/java/io/quarkus/it/picocli/ParsedCommand.java @@ -1,6 +1,6 @@ package io.quarkus.it.picocli; -import javax.inject.Inject; +import jakarta.inject.Inject; import picocli.CommandLine; diff --git a/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestOneCommand.java b/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestOneCommand.java index d46eda86ed25a..676f225cf859c 100644 --- a/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestOneCommand.java +++ b/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestOneCommand.java @@ -2,8 +2,8 @@ import static io.quarkus.it.picocli.TestUtils.createConfig; -import javax.enterprise.context.Dependent; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.event.Observes; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestParsedCommand.java b/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestParsedCommand.java index 3c546a041a41c..c1509c5a10c66 100644 --- a/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestParsedCommand.java +++ b/integration-tests/picocli/src/test/java/io/quarkus/it/picocli/TestParsedCommand.java @@ -2,8 +2,8 @@ import static io.quarkus.it.picocli.TestUtils.createConfig; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/CountResource.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/CountResource.java index 32d377d5a4374..0dd38c82ec950 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/CountResource.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/CountResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.quartz; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/scheduler/count") public class CountResource { diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/Counter.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/Counter.java index c9d0f98de80e3..25fef4e0a4961 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/Counter.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/Counter.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.scheduler.Scheduled; @@ -26,4 +26,4 @@ void increment() { counter.incrementAndGet(); } -} \ No newline at end of file +} diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledMethodResource.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledMethodResource.java index e962c1723da5f..fbdaff06005b2 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledMethodResource.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledMethodResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.quartz; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/scheduler/disabled") public class DisabledMethodResource { diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledScheduledMethods.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledScheduledMethods.java index 4b1b5d938925a..c2085fb2a9d11 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledScheduledMethods.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/DisabledScheduledMethods.java @@ -1,6 +1,6 @@ package io.quarkus.it.quartz; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.scheduler.Scheduled; diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/FixedInstanceIdResource.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/FixedInstanceIdResource.java index bc88a39142e37..1325198d86020 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/FixedInstanceIdResource.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/FixedInstanceIdResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.quartz; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.quartz.Scheduler; import org.quartz.SchedulerException; diff --git a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/ManualScheduledCounter.java b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/ManualScheduledCounter.java index a04ed2cab72b1..8dc28ca77041d 100644 --- a/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/ManualScheduledCounter.java +++ b/integration-tests/quartz/src/main/java/io/quarkus/it/quartz/ManualScheduledCounter.java @@ -2,10 +2,10 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.Transactional; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; import org.quartz.Job; import org.quartz.JobBuilder; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/Beer.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/Beer.java index 9a3e5e267c754..172421e6c41d3 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/Beer.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/Beer.java @@ -1,6 +1,6 @@ package io.quarkus.it.qute; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/BeerResource.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/BeerResource.java index 6634e32c041a4..1dac312f77533 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/BeerResource.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/BeerResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.qute; -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; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/Brewery.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/Brewery.java index 0211649c419b4..011b18256407f 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/Brewery.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/Brewery.java @@ -1,7 +1,7 @@ package io.quarkus.it.qute; -import javax.enterprise.event.Observes; -import javax.transaction.Transactional; +import jakarta.enterprise.event.Observes; +import jakarta.transaction.Transactional; import io.quarkus.runtime.StartupEvent; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloResource.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloResource.java index 7f1ee14238338..e9dccc16f3348 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloResource.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.qute; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import io.quarkus.qute.Template; import io.quarkus.qute.TemplateInstance; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloRoutes.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloRoutes.java index b541a8cc9b0f0..38f89a9af7b84 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloRoutes.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/HelloRoutes.java @@ -1,6 +1,6 @@ package io.quarkus.it.qute; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.qute.Template; import io.quarkus.vertx.web.Route; diff --git a/integration-tests/qute/src/main/java/io/quarkus/it/qute/NotFoundExceptionMapper.java b/integration-tests/qute/src/main/java/io/quarkus/it/qute/NotFoundExceptionMapper.java index 6e0810e98fbc8..a9dc961325c78 100644 --- a/integration-tests/qute/src/main/java/io/quarkus/it/qute/NotFoundExceptionMapper.java +++ b/integration-tests/qute/src/main/java/io/quarkus/it/qute/NotFoundExceptionMapper.java @@ -1,12 +1,12 @@ package io.quarkus.it.qute; -import static javax.ws.rs.core.Response.Status.NOT_FOUND; +import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import io.quarkus.qute.Location; import io.quarkus.qute.Template; diff --git a/integration-tests/qute/src/test/java/io/quarkus/it/qute/QuteTestCase.java b/integration-tests/qute/src/test/java/io/quarkus/it/qute/QuteTestCase.java index ca4eb9f76bdb0..7044d12b806c8 100644 --- a/integration-tests/qute/src/test/java/io/quarkus/it/qute/QuteTestCase.java +++ b/integration-tests/qute/src/test/java/io/quarkus/it/qute/QuteTestCase.java @@ -1,6 +1,6 @@ package io.quarkus.it.qute; -import static javax.ws.rs.core.Response.Status.NOT_FOUND; +import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.Matchers.is; diff --git a/integration-tests/reactive-db2-client/src/main/java/io/quarkus/it/reactive/db2/client/PlantResource.java b/integration-tests/reactive-db2-client/src/main/java/io/quarkus/it/reactive/db2/client/PlantResource.java index 26c911fc5228a..54b2d9e0b8556 100644 --- a/integration-tests/reactive-db2-client/src/main/java/io/quarkus/it/reactive/db2/client/PlantResource.java +++ b/integration-tests/reactive-db2-client/src/main/java/io/quarkus/it/reactive/db2/client/PlantResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.reactive.datasource.ReactiveDataSource; import io.vertx.core.json.JsonArray; diff --git a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/AmqpEndpoint.java b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/AmqpEndpoint.java index c0526aaefeee1..2009e12696442 100644 --- a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/AmqpEndpoint.java +++ b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/AmqpEndpoint.java @@ -2,9 +2,9 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/amqp") public class AmqpEndpoint { diff --git a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleManager.java b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleManager.java index 6279a6581a66a..e695a442d6f5f 100644 --- a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleManager.java +++ b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleManager.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.logging.Logger; diff --git a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleProducer.java b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleProducer.java index 719d42d32aa27..e1beaf4ffbe98 100644 --- a/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleProducer.java +++ b/integration-tests/reactive-messaging-amqp/src/main/java/io/quarkus/it/amqp/PeopleProducer.java @@ -3,7 +3,7 @@ import java.time.Duration; import java.util.function.Consumer; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index 362c837a90d7b..2a68c62574453 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -2,13 +2,13 @@ import java.util.List; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.kafka.common.TopicPartition; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java index 25ea7cffa9c99..1745f951932e2 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java @@ -4,8 +4,8 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java index acfd1f577d564..7aa14603168c2 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.fruit; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java index 0be96ac8cfe21..f3b9f9b82b04f 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/fruit/FruitProducer.java @@ -1,9 +1,9 @@ package io.quarkus.it.kafka.fruit; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java index 893dbbd947b0b..ff5bd26ffe4c7 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.people; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java index 7005b79c15fdb..7bc9e38a64496 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/main/java/io/quarkus/it/kafka/people/PeopleState.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka.people; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.smallrye.reactivemessaging.kafka.CheckpointEntity; diff --git a/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java b/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java index ae6f2071138f5..acad13994bca7 100644 --- a/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java +++ b/integration-tests/reactive-messaging-hibernate-orm/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java @@ -7,7 +7,7 @@ import java.util.List; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.apache.kafka.clients.consumer.ConsumerRecord; import org.apache.kafka.common.serialization.StringDeserializer; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/Fruit.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/Fruit.java index 25ca313af0131..74771b43c9e75 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/Fruit.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/Fruit.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/FruitProducer.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/FruitProducer.java index 9921a1e2fd469..1866ccf9a915a 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/FruitProducer.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/FruitProducer.java @@ -1,9 +1,9 @@ package io.quarkus.it.kafka; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.reactive.messaging.Channel; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index 391f946005f24..ece424afd29e8 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.kafka.common.TopicPartition; import org.hibernate.reactive.mutiny.Mutiny; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java index 2b84ac33b9620..e916c017a691d 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java @@ -5,9 +5,9 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.control.ActivateRequestContext; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.control.ActivateRequestContext; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleProducer.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleProducer.java index def7dd4e0baff..e7d0ac0ca77a6 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleProducer.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleState.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleState.java index 326a001f6aa69..e62e5d234f47d 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleState.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/PeopleState.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.smallrye.reactivemessaging.kafka.CheckpointEntity; diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java b/integration-tests/reactive-messaging-hibernate-reactive/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java index f36afe27411d1..0bb645727b28e 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/test/java/io/quarkus/it/kafka/KafkaConnectorTest.java @@ -7,7 +7,7 @@ import java.util.List; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/FruitProducer.java b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/FruitProducer.java index ced1c6f695667..251f621733494 100644 --- a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/FruitProducer.java +++ b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/FruitProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java index c8cd57ccb6ac8..31658db78251e 100644 --- a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java +++ b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaEndpoint.java @@ -3,12 +3,12 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.quarkus.redis.client.RedisClientName; import io.quarkus.redis.datasource.RedisDataSource; diff --git a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java index e8622e0981ffd..5d2d35aa23144 100644 --- a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java +++ b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java @@ -4,7 +4,7 @@ import java.util.concurrent.CompletionStage; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Message; diff --git a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PeopleProducer.java b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PeopleProducer.java index def7dd4e0baff..e7d0ac0ca77a6 100644 --- a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PeopleProducer.java +++ b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PeopleProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PetProducer.java b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PetProducer.java index 53fae75a0afbc..c161c96d30920 100644 --- a/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PetProducer.java +++ b/integration-tests/reactive-messaging-kafka/src/main/java/io/quarkus/it/kafka/PetProducer.java @@ -1,6 +1,6 @@ package io.quarkus.it.kafka; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/MQTTEndpoint.java b/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/MQTTEndpoint.java index 3d09b90c9dcca..76666267de8de 100644 --- a/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/MQTTEndpoint.java +++ b/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/MQTTEndpoint.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/mqtt") public class MQTTEndpoint { diff --git a/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/PeopleManager.java b/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/PeopleManager.java index c624c76375bf6..36a6737faa664 100644 --- a/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/PeopleManager.java +++ b/integration-tests/reactive-messaging-mqtt/src/main/java/io/quarkus/it/mqtt/PeopleManager.java @@ -5,8 +5,8 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; diff --git a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java index d01dd90bd33e7..6c54928112a30 100644 --- a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java +++ b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java index c8c29898fdcf4..aa46b44a3c321 100644 --- a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java +++ b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java @@ -2,7 +2,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java index 217c715f09b78..28d0f9474123f 100644 --- a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java +++ b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/rabbitmq") public class RabbitMQEndpoint { diff --git a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/TestCredentialsProvider.java b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/TestCredentialsProvider.java index 6ee393de8b0c3..d7a9fd9f80eac 100644 --- a/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/TestCredentialsProvider.java +++ b/integration-tests/reactive-messaging-rabbitmq-dyn/src/main/java/io/quarkus/it/rabbitmq/TestCredentialsProvider.java @@ -3,8 +3,8 @@ import java.time.Instant; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Named; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Named; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java index b466a5198f8cc..5a35ccc071e34 100644 --- a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java +++ b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleManager.java @@ -3,7 +3,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.jboss.logging.Logger; diff --git a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java index c8c29898fdcf4..aa46b44a3c321 100644 --- a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java +++ b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/PeopleProducer.java @@ -2,7 +2,7 @@ import java.time.Duration; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; diff --git a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java index 217c715f09b78..28d0f9474123f 100644 --- a/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java +++ b/integration-tests/reactive-messaging-rabbitmq/src/main/java/io/quarkus/it/rabbitmq/RabbitMQEndpoint.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/rabbitmq") public class RabbitMQEndpoint { diff --git a/integration-tests/reactive-mssql-client/src/main/java/io/quarkus/it/reactive/mssql/client/FruitResource.java b/integration-tests/reactive-mssql-client/src/main/java/io/quarkus/it/reactive/mssql/client/FruitResource.java index 6284cf1d78656..c6430046e0611 100644 --- a/integration-tests/reactive-mssql-client/src/main/java/io/quarkus/it/reactive/mssql/client/FruitResource.java +++ b/integration-tests/reactive-mssql-client/src/main/java/io/quarkus/it/reactive/mssql/client/FruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-mssql-client/src/test/java/io/quarkus/it/reactive/mssql/client/HotReloadFruitResource.java b/integration-tests/reactive-mssql-client/src/test/java/io/quarkus/it/reactive/mssql/client/HotReloadFruitResource.java index f78a572737ae2..f6a50e4a5f6ca 100644 --- a/integration-tests/reactive-mssql-client/src/test/java/io/quarkus/it/reactive/mssql/client/HotReloadFruitResource.java +++ b/integration-tests/reactive-mssql-client/src/test/java/io/quarkus/it/reactive/mssql/client/HotReloadFruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-mysql-client/src/main/java/io/quarkus/it/reactive/mysql/client/FruitResource.java b/integration-tests/reactive-mysql-client/src/main/java/io/quarkus/it/reactive/mysql/client/FruitResource.java index 54d0adc901dbb..316e34d90854f 100644 --- a/integration-tests/reactive-mysql-client/src/main/java/io/quarkus/it/reactive/mysql/client/FruitResource.java +++ b/integration-tests/reactive-mysql-client/src/main/java/io/quarkus/it/reactive/mysql/client/FruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-oracle-client/src/main/java/io/quarkus/it/reactive/oracle/client/FruitResource.java b/integration-tests/reactive-oracle-client/src/main/java/io/quarkus/it/reactive/oracle/client/FruitResource.java index cc7513dff96d7..0d329a6d9d4dd 100644 --- a/integration-tests/reactive-oracle-client/src/main/java/io/quarkus/it/reactive/oracle/client/FruitResource.java +++ b/integration-tests/reactive-oracle-client/src/main/java/io/quarkus/it/reactive/oracle/client/FruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-oracle-client/src/test/java/io/quarkus/it/reactive/oracle/client/HotReloadFruitResource.java b/integration-tests/reactive-oracle-client/src/test/java/io/quarkus/it/reactive/oracle/client/HotReloadFruitResource.java index 8a7d8d29e12ef..8301f108736d7 100644 --- a/integration-tests/reactive-oracle-client/src/test/java/io/quarkus/it/reactive/oracle/client/HotReloadFruitResource.java +++ b/integration-tests/reactive-oracle-client/src/test/java/io/quarkus/it/reactive/oracle/client/HotReloadFruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java b/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java index 62ffa12205ff4..0d22a897c80ad 100644 --- a/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java +++ b/integration-tests/reactive-pg-client/src/main/java/io/quarkus/it/reactive/pg/client/FruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/HotReloadFruitResource.java b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/HotReloadFruitResource.java index 07caee6d4921b..f8b03e847518b 100644 --- a/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/HotReloadFruitResource.java +++ b/integration-tests/reactive-pg-client/src/test/java/io/quarkus/it/reactive/pg/client/HotReloadFruitResource.java @@ -2,10 +2,10 @@ import java.util.concurrent.CompletionStage; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisLocalHostProvider.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisLocalHostProvider.java index 8d7d04b562e83..1d89abf3e8e4d 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisLocalHostProvider.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisLocalHostProvider.java @@ -4,7 +4,7 @@ import java.util.Collections; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.redis.client.RedisHostsProvider; import io.smallrye.common.annotation.Identifier; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResource.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResource.java index a84ba98f88555..e5393ecc99fc3 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResource.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.datasource.ReactiveRedisDataSource; import io.quarkus.redis.datasource.RedisDataSource; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResourceWithNamedClient.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResourceWithNamedClient.java index 37a59e84aaa3c..cf6d2ce9030d1 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResourceWithNamedClient.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisResourceWithNamedClient.java @@ -1,10 +1,10 @@ package io.quarkus.redis.it; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.client.RedisClientName; import io.quarkus.redis.datasource.ReactiveRedisDataSource; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithInstanceInjectionResource.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithInstanceInjectionResource.java index cb06f78f7c1bf..54e39ecc2e24f 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithInstanceInjectionResource.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithInstanceInjectionResource.java @@ -1,12 +1,12 @@ package io.quarkus.redis.it; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Any; -import javax.enterprise.inject.Instance; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Any; +import jakarta.enterprise.inject.Instance; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.client.RedisClientName; import io.quarkus.redis.datasource.ReactiveRedisDataSource; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithNamedClientResource.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithNamedClientResource.java index 8f763ce375929..24474fd4b0d6b 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithNamedClientResource.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithNamedClientResource.java @@ -2,12 +2,12 @@ import java.util.Arrays; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.client.RedisClient; import io.quarkus.redis.client.RedisClientName; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithParameterInjectionResource.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithParameterInjectionResource.java index e1970b58cb871..bef72d097b12e 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithParameterInjectionResource.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithParameterInjectionResource.java @@ -2,12 +2,12 @@ import java.util.Arrays; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.client.RedisClient; import io.quarkus.redis.client.RedisClientName; diff --git a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithProvidedHostsResource.java b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithProvidedHostsResource.java index 75e0c09b70187..b3467e3f45b5e 100644 --- a/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithProvidedHostsResource.java +++ b/integration-tests/redis-client/src/main/java/io/quarkus/redis/it/RedisWithProvidedHostsResource.java @@ -1,11 +1,11 @@ package io.quarkus.redis.it; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.quarkus.redis.client.RedisClientName; import io.quarkus.redis.datasource.ReactiveRedisDataSource; diff --git a/integration-tests/redis-devservices/src/test/java/io/quarkus/redis/devservices/it/DevServicesRedisITest.java b/integration-tests/redis-devservices/src/test/java/io/quarkus/redis/devservices/it/DevServicesRedisITest.java index 2d88d683e9f79..3189dd1d733dc 100644 --- a/integration-tests/redis-devservices/src/test/java/io/quarkus/redis/devservices/it/DevServicesRedisITest.java +++ b/integration-tests/redis-devservices/src/test/java/io/quarkus/redis/devservices/it/DevServicesRedisITest.java @@ -2,7 +2,7 @@ import java.util.Arrays; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; diff --git a/integration-tests/rest-client-reactive-kotlin-serialization/pom.xml b/integration-tests/rest-client-reactive-kotlin-serialization/pom.xml index 49e282a1fb813..d35feed394251 100644 --- a/integration-tests/rest-client-reactive-kotlin-serialization/pom.xml +++ b/integration-tests/rest-client-reactive-kotlin-serialization/pom.xml @@ -119,7 +119,7 @@ kotlinx-serialization - + diff --git a/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesClient.kt b/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesClient.kt index 89602e9d73ba9..32f6884d6e09e 100644 --- a/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesClient.kt +++ b/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesClient.kt @@ -1,14 +1,14 @@ package io.quarkus.it.rest import io.quarkus.rest.client.reactive.ClientExceptionMapper +import jakarta.ws.rs.Consumes +import jakarta.ws.rs.GET +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.Response import org.jboss.resteasy.reactive.ClientWebApplicationException -import javax.ws.rs.Consumes -import javax.ws.rs.GET -import javax.ws.rs.POST -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.Response @Path("") interface CountriesClient { diff --git a/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesResource.kt b/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesResource.kt index a87de1f5713a8..e168b4fc1e888 100644 --- a/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesResource.kt +++ b/integration-tests/rest-client-reactive-kotlin-serialization/src/main/kotlin/io/quarkus/it/rest/CountriesResource.kt @@ -3,14 +3,14 @@ package io.quarkus.it.rest import io.vertx.ext.web.Router import io.vertx.ext.web.RoutingContext import io.vertx.ext.web.handler.BodyHandler +import jakarta.enterprise.context.ApplicationScoped +import jakarta.enterprise.event.Observes +import jakarta.ws.rs.Path import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import org.eclipse.microprofile.rest.client.RestClientBuilder import java.net.URI -import javax.enterprise.context.ApplicationScoped -import javax.enterprise.event.Observes -import javax.ws.rs.Path @Path("/") @ApplicationScoped diff --git a/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartClient.java b/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartClient.java index 39205fa58f290..d29ab1e011046 100644 --- a/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartClient.java +++ b/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartClient.java @@ -2,12 +2,12 @@ import java.io.File; -import javax.ws.rs.Consumes; -import javax.ws.rs.FormParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.reactive.MultipartForm; diff --git a/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartResource.java b/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartResource.java index f314d7b305576..94447060b1cf8 100644 --- a/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartResource.java +++ b/integration-tests/rest-client-reactive-multipart/src/main/java/io/quarkus/it/rest/client/multipart/MultipartResource.java @@ -11,16 +11,16 @@ import java.util.ArrayList; import java.util.List; -import javax.ws.rs.Consumes; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.logging.Logger; diff --git a/integration-tests/rest-client-reactive-multipart/src/test/java/io/quarkus/it/rest/client/multipart/MultipartResourceTest.java b/integration-tests/rest-client-reactive-multipart/src/test/java/io/quarkus/it/rest/client/multipart/MultipartResourceTest.java index feec2c5c565c1..ae15ebc9a2ccb 100644 --- a/integration-tests/rest-client-reactive-multipart/src/test/java/io/quarkus/it/rest/client/multipart/MultipartResourceTest.java +++ b/integration-tests/rest-client-reactive-multipart/src/test/java/io/quarkus/it/rest/client/multipart/MultipartResourceTest.java @@ -6,7 +6,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.hamcrest.CoreMatchers.equalTo; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Test; diff --git a/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/Client.java b/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/Client.java index f6390e407021e..3c3bcea3042bc 100644 --- a/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/Client.java +++ b/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/Client.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest.client.reactive.stork; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/ClientCallingResource.java b/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/ClientCallingResource.java index 92be79b449f9d..2e3a307174dc8 100644 --- a/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/ClientCallingResource.java +++ b/integration-tests/rest-client-reactive-stork/src/main/java/io/quarkus/it/rest/client/reactive/stork/ClientCallingResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest.client.reactive.stork; -import javax.enterprise.context.ApplicationScoped; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/AppleClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/AppleClient.java index 608df268226a2..3360905921c7b 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/AppleClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/AppleClient.java @@ -2,11 +2,11 @@ import java.util.concurrent.CompletionStage; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.jboss.resteasy.reactive.RestResponse; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientCallingResource.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientCallingResource.java index 9e94a122f1f6b..cbfb888a8fb27 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientCallingResource.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientCallingResource.java @@ -6,10 +6,10 @@ import java.util.function.Function; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; -import javax.ws.rs.core.MediaType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientWithExceptionMapper.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientWithExceptionMapper.java index b663cb54a2285..96d031cfcd583 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientWithExceptionMapper.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ClientWithExceptionMapper.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/DefaultCtorTestFilter.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/DefaultCtorTestFilter.java index 9e28969533afd..1705020628eb9 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/DefaultCtorTestFilter.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/DefaultCtorTestFilter.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; public class DefaultCtorTestFilter implements ClientRequestFilter { diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceClient.java index ceab46764717b..27a6a6a7f0d37 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceClient.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceOnInterfaceClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceOnInterfaceClient.java index 83cdab622d461..3c0c4d3a181ce 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceOnInterfaceClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/FaultToleranceOnInterfaceClient.java @@ -2,11 +2,11 @@ import java.time.temporal.ChronoUnit; -import javax.ws.rs.Consumes; -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.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.faulttolerance.CircuitBreaker; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/HelloClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/HelloClient.java index 4d9ade9614667..09ecbd0ee8800 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/HelloClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/HelloClient.java @@ -1,13 +1,13 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.Consumes; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/MyResponseExceptionMapper.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/MyResponseExceptionMapper.java index 0eac6781c46b5..620657cee48cb 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/MyResponseExceptionMapper.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/MyResponseExceptionMapper.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/NonDefaultCtorTestFilter.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/NonDefaultCtorTestFilter.java index 1d613a901ef02..19f071a048a35 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/NonDefaultCtorTestFilter.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/NonDefaultCtorTestFilter.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.client.ClientRequestContext; -import javax.ws.rs.client.ClientRequestFilter; +import jakarta.ws.rs.client.ClientRequestContext; +import jakarta.ws.rs.client.ClientRequestFilter; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamClient.java index 8826ca59a7b67..47220bf6c9124 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamClient.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest.client.main; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamConverter.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamConverter.java index a0f2b6a0ff6ea..8b2fd60c86a68 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamConverter.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/ParamConverter.java @@ -3,13 +3,13 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.QueryParam; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.ext.ParamConverterProvider; public class ParamConverter implements ParamConverterProvider { @SuppressWarnings("unchecked") @Override - public javax.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, + public jakarta.ws.rs.ext.ParamConverter getConverter(Class rawType, Type genericType, Annotation[] annotations) { if (genericType == null || !genericType.equals(Param.class)) { throw new RuntimeException("Wrong generic type in ParamConverter!"); @@ -20,7 +20,7 @@ public javax.ws.rs.ext.ParamConverter getConverter(Class rawType, Type } if (rawType == Param.class) { - return (javax.ws.rs.ext.ParamConverter) new javax.ws.rs.ext.ParamConverter() { + return (jakarta.ws.rs.ext.ParamConverter) new jakarta.ws.rs.ext.ParamConverter() { @Override public Param fromString(String value) { return null; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/RestResponseClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/RestResponseClient.java index 49ed4092650c4..3264cb16b1762 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/RestResponseClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/RestResponseClient.java @@ -1,9 +1,9 @@ package io.quarkus.it.rest.client.main; -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; import org.jboss.resteasy.reactive.RestResponse; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/selfsigned/ExternalSelfSignedClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/selfsigned/ExternalSelfSignedClient.java index 7d2610f75b4be..8f68088b3064b 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/selfsigned/ExternalSelfSignedClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/selfsigned/ExternalSelfSignedClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest.client.main.selfsigned; -import javax.ws.rs.GET; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.faulttolerance.Retry; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanDataModuleSerializer.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanDataModuleSerializer.java index e3f232d083297..0acaa1dd26cd4 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanDataModuleSerializer.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanDataModuleSerializer.java @@ -1,6 +1,6 @@ package io.quarkus.it.rest.client.main.tracing; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanExporterProvider.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanExporterProvider.java index facf5ac25fb32..e0a4ccd0a3c65 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanExporterProvider.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/tracing/SpanExporterProvider.java @@ -1,8 +1,8 @@ package io.quarkus.it.rest.client.main.tracing; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter; diff --git a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/wronghost/WrongHostClient.java b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/wronghost/WrongHostClient.java index 5ad6b037d7b18..ca4777eb8713e 100644 --- a/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/wronghost/WrongHostClient.java +++ b/integration-tests/rest-client-reactive/src/main/java/io/quarkus/it/rest/client/main/wronghost/WrongHostClient.java @@ -1,9 +1,9 @@ package io.quarkus.it.rest.client.main.wronghost; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.faulttolerance.Retry; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/ClientWithCustomObjectMapperTest.java b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/ClientWithCustomObjectMapperTest.java index 1dcefd8c28784..b4a80c3a95559 100644 --- a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/ClientWithCustomObjectMapperTest.java +++ b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/ClientWithCustomObjectMapperTest.java @@ -9,12 +9,12 @@ import java.net.URL; import java.util.Objects; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.ext.ContextResolver; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.ext.ContextResolver; import org.eclipse.microprofile.rest.client.RestClientBuilder; import org.jboss.resteasy.reactive.ClientWebApplicationException; diff --git a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/InjectMockWithInterceptorTest.java b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/InjectMockWithInterceptorTest.java index e2f2ccf14b282..dad4e747d0d54 100644 --- a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/InjectMockWithInterceptorTest.java +++ b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/InjectMockWithInterceptorTest.java @@ -3,7 +3,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.when; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.hamcrest.Matchers; diff --git a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/RequestEncodingTest.java b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/RequestEncodingTest.java index 7e0c2d30c8dd1..5bc86de9f43be 100644 --- a/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/RequestEncodingTest.java +++ b/integration-tests/rest-client-reactive/src/test/java/io/quarkus/it/rest/client/RequestEncodingTest.java @@ -2,7 +2,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.ClientBuilder; import org.junit.jupiter.api.Test; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartBody.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartBody.java index 5d8fad932bf25..0a9205b9cd237 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartBody.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartBody.java @@ -2,8 +2,8 @@ import java.io.InputStream; -import javax.ws.rs.FormParam; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.annotations.providers.multipart.PartType; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartClientResource.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartClientResource.java index 5f8b29e73d323..cdda2dddf51e3 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartClientResource.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartClientResource.java @@ -3,12 +3,12 @@ import java.io.ByteArrayInputStream; import java.nio.charset.StandardCharsets; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartService.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartService.java index 26021b4751c24..ee51472257231 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartService.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/MultipartService.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest.client; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.jboss.resteasy.annotations.providers.multipart.MultipartForm; @@ -18,4 +18,4 @@ public interface MultipartService { @Produces(MediaType.TEXT_PLAIN) String sendMultipartData(@MultipartForm MultipartBody data); -} \ No newline at end of file +} diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedClient.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedClient.java index 04d41d312c643..4dd6d3d5af6af 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedClient.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedClient.java @@ -1,7 +1,7 @@ package io.quarkus.it.rest.client.selfsigned; -import javax.ws.rs.GET; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.faulttolerance.Retry; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedResource.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedResource.java index 5f022460e746a..4bfd0c3b296b6 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedResource.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/selfsigned/ExternalSelfSignedResource.java @@ -3,12 +3,13 @@ import java.io.IOException; import java.net.URL; -import javax.inject.Inject; import javax.net.ssl.HttpsURLConnection; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/server/EchoService.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/server/EchoService.java index 3dd1885cad839..6f5817ffa902f 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/server/EchoService.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/server/EchoService.java @@ -1,10 +1,10 @@ package io.quarkus.it.rest.client.server; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/echo") public class EchoService { @@ -15,4 +15,4 @@ public class EchoService { public String echo(String requestBody) throws Exception { return requestBody; } -} \ No newline at end of file +} diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostClient.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostClient.java index 1fbf3e8f12676..1cb45fd029dda 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostClient.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostClient.java @@ -1,9 +1,9 @@ package io.quarkus.it.rest.client.wronghost; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.faulttolerance.Retry; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostResource.java b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostResource.java index e6cc0b2a51c2e..abe386335e58f 100644 --- a/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostResource.java +++ b/integration-tests/rest-client/src/main/java/io/quarkus/it/rest/client/wronghost/WrongHostResource.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/AbstractResource.java b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/AbstractResource.java index 0de72ea7cbb70..1624e1413ec32 100644 --- a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/AbstractResource.java +++ b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/AbstractResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.resteasy.jackson; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; @Path("/abstract") public abstract class AbstractResource { diff --git a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/BigKeysResource.java b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/BigKeysResource.java index e0219dc7fbcd9..4fbc9f6d616b0 100644 --- a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/BigKeysResource.java +++ b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/BigKeysResource.java @@ -4,8 +4,8 @@ import java.math.BigInteger; import java.util.Map; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; @Path("/bigkeys") public class BigKeysResource { diff --git a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/GreetingResource.java b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/GreetingResource.java index 1c1b1a9cb0b47..86be0fc37d46d 100644 --- a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/GreetingResource.java +++ b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/GreetingResource.java @@ -3,10 +3,10 @@ import java.sql.Date; import java.time.LocalDate; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; import org.jboss.resteasy.spi.ResteasyConfiguration; diff --git a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/MessageResource.java b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/MessageResource.java index 7d30f002765b7..8a3f91dab3a2e 100644 --- a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/MessageResource.java +++ b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/MessageResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.resteasy.jackson; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/generics/GenericsResource.java b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/generics/GenericsResource.java index 6b4862df1ece7..7273f77daec51 100644 --- a/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/generics/GenericsResource.java +++ b/integration-tests/resteasy-jackson/src/main/java/io/quarkus/it/resteasy/jackson/generics/GenericsResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.resteasy.jackson.generics; -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("/generics") public class GenericsResource { diff --git a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MutinyResource.java b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MutinyResource.java index 98b4c143a0b3c..ba4d9996cf52d 100644 --- a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MutinyResource.java +++ b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MutinyResource.java @@ -2,12 +2,12 @@ import java.io.IOException; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.jboss.resteasy.reactive.RestStreamElementType; diff --git a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MyRestService.java b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MyRestService.java index ae5f83c3cd25f..6e6e981a36ccf 100644 --- a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MyRestService.java +++ b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/MyRestService.java @@ -1,7 +1,7 @@ package io.quarkus.it.resteasy.mutiny; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/SomeService.java b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/SomeService.java index daa49f5aaee73..6b67831838885 100644 --- a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/SomeService.java +++ b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/SomeService.java @@ -3,9 +3,9 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/BlockingService.java b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/BlockingService.java index 8d90464e7455b..9038b3a623bf6 100644 --- a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/BlockingService.java +++ b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/BlockingService.java @@ -1,6 +1,6 @@ package io.quarkus.it.resteasy.mutiny.regression.bug25818; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.vertx.core.Context; import io.vertx.core.Vertx; diff --git a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/ReproducerResource.java b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/ReproducerResource.java index f1bda2b1aec4c..63f4f8331a03f 100644 --- a/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/ReproducerResource.java +++ b/integration-tests/resteasy-mutiny/src/main/java/io/quarkus/it/resteasy/mutiny/regression/bug25818/ReproducerResource.java @@ -2,11 +2,11 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.jboss.logging.Logger; diff --git a/integration-tests/resteasy-mutiny/src/test/java/io/quarkus/it/resteasy/mutiny/MutinyTest.java b/integration-tests/resteasy-mutiny/src/test/java/io/quarkus/it/resteasy/mutiny/MutinyTest.java index f5e37d6f984d0..7bffac78fde11 100644 --- a/integration-tests/resteasy-mutiny/src/test/java/io/quarkus/it/resteasy/mutiny/MutinyTest.java +++ b/integration-tests/resteasy-mutiny/src/test/java/io/quarkus/it/resteasy/mutiny/MutinyTest.java @@ -8,11 +8,11 @@ import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Consumer; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.sse.SseEventSource; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.sse.SseEventSource; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/resteasy-reactive-kotlin/prod-mode/pom.xml b/integration-tests/resteasy-reactive-kotlin/prod-mode/pom.xml index 909c0e8f70db5..19345f4cd97e9 100644 --- a/integration-tests/resteasy-reactive-kotlin/prod-mode/pom.xml +++ b/integration-tests/resteasy-reactive-kotlin/prod-mode/pom.xml @@ -150,8 +150,8 @@ all-open - - + + diff --git a/integration-tests/resteasy-reactive-kotlin/prod-mode/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/BlockingCoroutinesTest.java b/integration-tests/resteasy-reactive-kotlin/prod-mode/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/BlockingCoroutinesTest.java index 0e89f8efae0ff..d2b47b377e1db 100644 --- a/integration-tests/resteasy-reactive-kotlin/prod-mode/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/BlockingCoroutinesTest.java +++ b/integration-tests/resteasy-reactive-kotlin/prod-mode/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/BlockingCoroutinesTest.java @@ -4,7 +4,7 @@ import java.util.function.Supplier; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/integration-tests/resteasy-reactive-kotlin/standard/pom.xml b/integration-tests/resteasy-reactive-kotlin/standard/pom.xml index 7b0ae5874e3fb..bf8df26dd4354 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/pom.xml +++ b/integration-tests/resteasy-reactive-kotlin/standard/pom.xml @@ -238,8 +238,8 @@ all-open - - + + diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/AppSuppliedProvider.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/AppSuppliedProvider.kt index b752ab3362f18..7212351d0f29b 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/AppSuppliedProvider.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/AppSuppliedProvider.kt @@ -1,17 +1,17 @@ package io.quarkus.it.resteasy.reactive.kotlin import io.quarkus.it.shared.Shared +import jakarta.ws.rs.Consumes +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType +import jakarta.ws.rs.core.MultivaluedMap +import jakarta.ws.rs.ext.MessageBodyReader +import jakarta.ws.rs.ext.MessageBodyWriter +import jakarta.ws.rs.ext.Provider import java.io.InputStream import java.io.OutputStream import java.lang.reflect.Type import java.nio.charset.StandardCharsets -import javax.ws.rs.Consumes -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType -import javax.ws.rs.core.MultivaluedMap -import javax.ws.rs.ext.MessageBodyReader -import javax.ws.rs.ext.MessageBodyWriter -import javax.ws.rs.ext.Provider @Provider @Produces("text/plain") diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesEndpoint.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesEndpoint.kt index 4e434b3599a32..733358f6b9d58 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesEndpoint.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesEndpoint.kt @@ -1,13 +1,13 @@ package io.quarkus.it.resteasy.reactive.kotlin import io.quarkus.smallrye.reactivemessaging.sendSuspending +import jakarta.ws.rs.GET +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path import kotlinx.coroutines.delay import org.eclipse.microprofile.reactive.messaging.Channel import org.eclipse.microprofile.reactive.messaging.Emitter import org.eclipse.microprofile.rest.client.inject.RestClient -import javax.ws.rs.GET -import javax.ws.rs.POST -import javax.ws.rs.Path @Path("country") class CountriesEndpoint( diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesGateway.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesGateway.kt index 6f2db020989cf..afb8fe1eef1b0 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesGateway.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountriesGateway.kt @@ -1,8 +1,8 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path import org.eclipse.microprofile.rest.client.inject.RegisterRestClient -import javax.ws.rs.GET -import javax.ws.rs.Path @Path("/v2") @RegisterRestClient(configKey = "countries") diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameConsumer.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameConsumer.kt index 91161261bb08d..64961aa63d2d7 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameConsumer.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameConsumer.kt @@ -1,9 +1,9 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.enterprise.context.ApplicationScoped import org.eclipse.microprofile.reactive.messaging.Incoming import org.eclipse.microprofile.rest.client.inject.RestClient import java.util.concurrent.ConcurrentHashMap -import javax.enterprise.context.ApplicationScoped @ApplicationScoped class CountryNameConsumer(@RestClient private val countryGateway: CountriesGateway) { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameMessageTransformer.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameMessageTransformer.kt index 350f51c12c2b3..c0acaf9b98300 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameMessageTransformer.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameMessageTransformer.kt @@ -1,10 +1,10 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.enterprise.context.ApplicationScoped import kotlinx.coroutines.delay import org.eclipse.microprofile.reactive.messaging.Incoming import org.eclipse.microprofile.reactive.messaging.Message import org.eclipse.microprofile.reactive.messaging.Outgoing -import javax.enterprise.context.ApplicationScoped @ApplicationScoped class CountryNameMessageTransformer { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNamePayloadTransformer.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNamePayloadTransformer.kt index 4de37aa47f689..217f3f7d3968e 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNamePayloadTransformer.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNamePayloadTransformer.kt @@ -1,9 +1,9 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.enterprise.context.ApplicationScoped import kotlinx.coroutines.delay import org.eclipse.microprofile.reactive.messaging.Incoming import org.eclipse.microprofile.reactive.messaging.Outgoing -import javax.enterprise.context.ApplicationScoped @ApplicationScoped class CountryNamePayloadTransformer { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameProducer.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameProducer.kt index 3981b29c2402d..97fd608d94bf6 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameProducer.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/CountryNameProducer.kt @@ -1,8 +1,8 @@ package io.quarkus.it.resteasy.reactive.kotlin import io.smallrye.mutiny.Multi +import jakarta.enterprise.context.ApplicationScoped import org.eclipse.microprofile.reactive.messaging.Outgoing -import javax.enterprise.context.ApplicationScoped @ApplicationScoped class CountryNameProducer { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/EnumEndpoint.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/EnumEndpoint.kt index 390cc56c8fae7..dc91bc16f0477 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/EnumEndpoint.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/EnumEndpoint.kt @@ -1,10 +1,10 @@ package io.quarkus.it.resteasy.reactive.kotlin -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.QueryParam -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.QueryParam +import jakarta.ws.rs.core.MediaType @Path("enum") class EnumEndpoint { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/Filters.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/Filters.kt index 1a20619ff2f15..f125ccf565fda 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/Filters.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/Filters.kt @@ -1,15 +1,15 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.ws.rs.container.ContainerRequestContext +import jakarta.ws.rs.container.ContainerResponseContext +import jakarta.ws.rs.container.ResourceInfo +import jakarta.ws.rs.core.Response +import jakarta.ws.rs.core.UriInfo import kotlinx.coroutines.delay import org.jboss.resteasy.reactive.server.ServerRequestFilter import org.jboss.resteasy.reactive.server.ServerResponseFilter import org.jboss.resteasy.reactive.server.SimpleResourceInfo import java.security.SecureRandom -import javax.ws.rs.container.ContainerRequestContext -import javax.ws.rs.container.ContainerResponseContext -import javax.ws.rs.container.ResourceInfo -import javax.ws.rs.core.Response -import javax.ws.rs.core.UriInfo class Filters { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResource.kt index fa0173208358d..264a6f527c99e 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResource.kt @@ -1,15 +1,15 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import org.jboss.resteasy.reactive.ResponseHeader import org.jboss.resteasy.reactive.ResponseStatus import org.jboss.resteasy.reactive.RestSseElementType -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType @Path("flow") class FlowResource(private val uppercaseService: UppercaseService) { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/GreetingResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/GreetingResource.kt index d7e6f350165ce..ec678c2f2d765 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/GreetingResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/GreetingResource.kt @@ -1,14 +1,14 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.ws.rs.GET +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path +import jakarta.ws.rs.PathParam +import jakarta.ws.rs.core.Context +import jakarta.ws.rs.core.HttpHeaders +import jakarta.ws.rs.core.Response +import jakarta.ws.rs.core.UriInfo import org.jboss.resteasy.reactive.RestHeader -import javax.ws.rs.GET -import javax.ws.rs.POST -import javax.ws.rs.Path -import javax.ws.rs.PathParam -import javax.ws.rs.core.Context -import javax.ws.rs.core.HttpHeaders -import javax.ws.rs.core.Response -import javax.ws.rs.core.UriInfo @Path("/greeting") class GreetingResource(val headers: HttpHeaders) { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ReactiveGreetingResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ReactiveGreetingResource.kt index 56bc3d2e7129b..37aa578a98faa 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ReactiveGreetingResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ReactiveGreetingResource.kt @@ -1,11 +1,11 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces +import jakarta.ws.rs.core.MediaType import kotlinx.coroutines.delay -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.Produces -import javax.ws.rs.core.MediaType @Path("/hello-resteasy-reactive") class ReactiveGreetingResource @Inject constructor(val req: RequestScopedKotlinClass) { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/RequestScopedKotlinClass.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/RequestScopedKotlinClass.kt index e2945172f0a62..35df5f1a00b24 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/RequestScopedKotlinClass.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/RequestScopedKotlinClass.kt @@ -1,6 +1,6 @@ package io.quarkus.it.resteasy.reactive.kotlin -import javax.enterprise.context.RequestScoped +import jakarta.enterprise.context.RequestScoped @RequestScoped class RequestScopedKotlinClass { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ScheduledEndpoint.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ScheduledEndpoint.kt index 2109028b7e9cd..87e6829534b22 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ScheduledEndpoint.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ScheduledEndpoint.kt @@ -2,11 +2,11 @@ package io.quarkus.it.resteasy.reactive.kotlin import io.quarkus.scheduler.Scheduled import io.quarkus.scheduler.ScheduledExecution +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path +import jakarta.ws.rs.core.Response import kotlinx.coroutines.delay import java.util.concurrent.atomic.AtomicInteger -import javax.ws.rs.GET -import javax.ws.rs.Path -import javax.ws.rs.core.Response @Path("scheduled") class ScheduledEndpoint { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/SharedResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/SharedResource.kt index 56dc8563dd391..141d2f2e69d62 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/SharedResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/SharedResource.kt @@ -1,10 +1,10 @@ package io.quarkus.it.resteasy.reactive.kotlin import io.quarkus.it.shared.Shared -import javax.ws.rs.Consumes -import javax.ws.rs.POST -import javax.ws.rs.Path -import javax.ws.rs.Produces +import jakarta.ws.rs.Consumes +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path +import jakarta.ws.rs.Produces @Path("/shared") class SharedResource { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/UppercaseService.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/UppercaseService.kt index 131167520db44..35ef43dbd08ac 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/UppercaseService.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/UppercaseService.kt @@ -1,7 +1,7 @@ package io.quarkus.it.resteasy.reactive.kotlin +import jakarta.enterprise.context.RequestScoped import java.util.Locale -import javax.enterprise.context.RequestScoped @RequestScoped class UppercaseService { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/V2CountryEndpoint.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/V2CountryEndpoint.kt index 8e579e4756041..5c67748d1e6c6 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/V2CountryEndpoint.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/V2CountryEndpoint.kt @@ -1,7 +1,7 @@ package io.quarkus.it.resteasy.reactive.kotlin -import javax.ws.rs.GET -import javax.ws.rs.Path +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path @Path("v2") class V2CountryEndpoint { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/ClientResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/ClientResource.kt index 46c616f45cfdd..9689d613da61e 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/ClientResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/ClientResource.kt @@ -1,9 +1,9 @@ package io.quarkus.it.resteasy.reactive.kotlin.ft +import jakarta.inject.Inject +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path import org.eclipse.microprofile.rest.client.inject.RestClient -import javax.inject.Inject -import javax.ws.rs.GET -import javax.ws.rs.Path @Path("/ft/client") class ClientResource { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloClient.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloClient.kt index b7232d6f1b8c4..a1ba25962fca3 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloClient.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloClient.kt @@ -1,9 +1,9 @@ package io.quarkus.it.resteasy.reactive.kotlin.ft +import jakarta.ws.rs.GET +import jakarta.ws.rs.Path import org.eclipse.microprofile.faulttolerance.Fallback import org.eclipse.microprofile.rest.client.inject.RegisterRestClient -import javax.ws.rs.GET -import javax.ws.rs.Path @Path("/ft/hello") @RegisterRestClient(configKey = "ft-hello") diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloResource.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloResource.kt index ccc9a82c9dde7..1394f6734c105 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloResource.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/kotlin/io/quarkus/it/resteasy/reactive/kotlin/ft/HelloResource.kt @@ -1,10 +1,10 @@ package io.quarkus.it.resteasy.reactive.kotlin.ft +import jakarta.ws.rs.GET +import jakarta.ws.rs.InternalServerErrorException +import jakarta.ws.rs.POST +import jakarta.ws.rs.Path import java.util.concurrent.atomic.AtomicBoolean -import javax.ws.rs.GET -import javax.ws.rs.InternalServerErrorException -import javax.ws.rs.POST -import javax.ws.rs.Path @Path("/ft/hello") class HelloResource { diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResourceTest.kt b/integration-tests/resteasy-reactive-kotlin/standard/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResourceTest.kt index 546f1b455507e..95f8531a86b69 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResourceTest.kt +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/test/kotlin/io/quarkus/it/resteasy/reactive/kotlin/FlowResourceTest.kt @@ -4,14 +4,14 @@ import io.quarkus.test.common.http.TestHTTPResource import io.quarkus.test.junit.QuarkusTest import io.restassured.module.kotlin.extensions.Then import io.restassured.module.kotlin.extensions.When +import jakarta.ws.rs.client.ClientBuilder +import jakarta.ws.rs.client.WebTarget +import jakarta.ws.rs.sse.SseEventSource import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test import java.util.Collections import java.util.concurrent.CompletableFuture import java.util.concurrent.TimeUnit -import javax.ws.rs.client.ClientBuilder -import javax.ws.rs.client.WebTarget -import javax.ws.rs.sse.SseEventSource @QuarkusTest class FlowResourceTest { diff --git a/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/HelloResource.scala b/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/HelloResource.scala index 8a930050757fb..570d6d1d2a5d9 100644 --- a/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/HelloResource.scala +++ b/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/HelloResource.scala @@ -1,8 +1,8 @@ package org.acme -import javax.inject.Inject -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.inject.Inject +import jakarta.ws.rs.{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType import org.eclipse.microprofile.config.inject.ConfigProperty import scala.beans.BeanProperty diff --git a/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/MyApplication.scala b/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/MyApplication.scala index 25d15b93bfcb9..0cb1692fe4f23 100644 --- a/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/MyApplication.scala +++ b/integration-tests/scala/src/test/resources/projects/classic-scala/src/main/scala/org/acme/MyApplication.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.ApplicationPath -import javax.ws.rs.core.Application +import jakarta.ws.rs.ApplicationPath +import jakarta.ws.rs.core.Application @ApplicationPath("/app") class MyApplication extends Application diff --git a/integration-tests/scala/src/test/resources/projects/external-reloadable-artifacts/app/src/main/scala/org/acme/GreetingResource.scala b/integration-tests/scala/src/test/resources/projects/external-reloadable-artifacts/app/src/main/scala/org/acme/GreetingResource.scala index d3d0aeae8392b..3f7f5c2c95ab2 100644 --- a/integration-tests/scala/src/test/resources/projects/external-reloadable-artifacts/app/src/main/scala/org/acme/GreetingResource.scala +++ b/integration-tests/scala/src/test/resources/projects/external-reloadable-artifacts/app/src/main/scala/org/acme/GreetingResource.scala @@ -1,7 +1,7 @@ package org.acme -import javax.ws.rs.{GET, Path, Produces} -import javax.ws.rs.core.MediaType +import jakarta.ws.rs.{GET, Path, Produces} +import jakarta.ws.rs.core.MediaType import org.acme.lib.Greeting diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/AdminResource.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/AdminResource.java index 19508e61ff486..af79507163c04 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/AdminResource.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/AdminResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.security.webauthn; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/api/admin") public class AdminResource { @@ -15,4 +15,4 @@ public class AdminResource { public String adminResource() { return "admin"; } -} \ No newline at end of file +} diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/LoginResource.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/LoginResource.java index 34390064973b7..e14bbfbc04f73 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/LoginResource.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/LoginResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.security.webauthn; -import javax.inject.Inject; -import javax.ws.rs.BeanParam; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.inject.Inject; +import jakarta.ws.rs.BeanParam; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; import org.jboss.resteasy.reactive.RestForm; @@ -105,4 +105,4 @@ public Uni register(@RestForm String userName, }); } -} \ No newline at end of file +} diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/MyWebAuthnSetup.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/MyWebAuthnSetup.java index f3a8d34f78586..26a5891c715d5 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/MyWebAuthnSetup.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/MyWebAuthnSetup.java @@ -6,7 +6,7 @@ import java.util.List; import java.util.Set; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; import io.quarkus.security.webauthn.WebAuthnUserProvider; diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/PublicResource.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/PublicResource.java index 87828f2902b35..da3da14b5237a 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/PublicResource.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/PublicResource.java @@ -2,12 +2,12 @@ import java.security.Principal; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.SecurityContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/public") public class PublicResource { @@ -25,4 +25,4 @@ public String me(@Context SecurityContext securityContext) { Principal user = securityContext.getUserPrincipal(); return user != null ? user.getName() : ""; } -} \ No newline at end of file +} diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/User.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/User.java index b5449f167b5b3..dc4861726bca8 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/User.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/User.java @@ -1,9 +1,9 @@ package io.quarkus.it.security.webauthn; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import io.quarkus.hibernate.reactive.panache.PanacheEntity; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/UserResource.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/UserResource.java index 8b2f210e2678e..01b4315e087ad 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/UserResource.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/UserResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.security.webauthn; -import javax.annotation.security.RolesAllowed; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; @Path("/api/users") public class UserResource { diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCertificate.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCertificate.java index 4b3de74f1eb99..8b0d97ddebb4e 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCertificate.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCertificate.java @@ -1,7 +1,7 @@ package io.quarkus.it.security.webauthn; -import javax.persistence.Entity; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToOne; import io.quarkus.hibernate.reactive.panache.PanacheEntity; diff --git a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCredential.java b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCredential.java index 9f6530973c844..b6d6fd0f9396b 100644 --- a/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCredential.java +++ b/integration-tests/security-webauthn/src/main/java/io/quarkus/it/security/webauthn/WebAuthnCredential.java @@ -3,11 +3,11 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.Entity; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; import io.quarkus.hibernate.reactive.panache.PanacheEntity; import io.smallrye.mutiny.Uni; diff --git a/integration-tests/shared-library/pom.xml b/integration-tests/shared-library/pom.xml index c434a40145128..555c19ca29b32 100644 --- a/integration-tests/shared-library/pom.xml +++ b/integration-tests/shared-library/pom.xml @@ -21,8 +21,8 @@ jakarta.servlet-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api diff --git a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/RemovedResource.java b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/RemovedResource.java index 22de78c92c670..fcd3590fe8e7d 100644 --- a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/RemovedResource.java +++ b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/RemovedResource.java @@ -1,7 +1,7 @@ package io.quarkus.it.shared; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/removed") public class RemovedResource { diff --git a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedProvider.java b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedProvider.java index ebba660d78ca1..ec46218fca8d6 100644 --- a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedProvider.java +++ b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedProvider.java @@ -7,13 +7,13 @@ import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; -import javax.ws.rs.Consumes; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.MessageBodyWriter; @Produces({ "application/json", "text/plain" }) @Consumes({ "application/json", "text/plain" }) diff --git a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java index 0dcf3ce84f797..41abfd58758b6 100644 --- a/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java +++ b/integration-tests/shared-library/src/main/java/io/quarkus/it/shared/SharedResource.java @@ -3,8 +3,8 @@ import java.io.InputStream; import java.nio.charset.StandardCharsets; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/shared") public class SharedResource { diff --git a/integration-tests/shared-library/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers b/integration-tests/shared-library/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers similarity index 100% rename from integration-tests/shared-library/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers rename to integration-tests/shared-library/src/main/resources/META-INF/services/jakarta.ws.rs.ext.Providers diff --git a/integration-tests/simple with space/src/main/java/io/quarkus/it/spaces/GreetingResource.java b/integration-tests/simple with space/src/main/java/io/quarkus/it/spaces/GreetingResource.java index ad59740540dd3..9381193f0d0c2 100644 --- a/integration-tests/simple with space/src/main/java/io/quarkus/it/spaces/GreetingResource.java +++ b/integration-tests/simple with space/src/main/java/io/quarkus/it/spaces/GreetingResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.spaces; -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; import org.primefaces.util.Constants; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/AppConfigResouce.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/AppConfigResouce.java index 1a7773ca062a9..4be114bc1217e 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/AppConfigResouce.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/AppConfigResouce.java @@ -1,8 +1,8 @@ package io.quarkus.it.smallrye.config; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/app-config") public class AppConfigResouce { diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigResource.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigResource.java index 8cb380f7d6f49..965f05f25bc9c 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigResource.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.smallrye.config; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.config.ConfigProvider; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapper.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapper.java index b38f6a77f6cae..a6bd4319a01c5 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapper.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapper.java @@ -1,10 +1,10 @@ package io.quarkus.it.smallrye.config; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperResource.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperResource.java index c70a0cd34ca81..3ff126df39b79 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperResource.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.smallrye.config; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; @Path("/exception") @Produces(MediaType.WILDCARD) diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/PingConfigSourceInterceptor.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/PingConfigSourceInterceptor.java index 05f517fc8b4d7..0db1b6f0d571d 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/PingConfigSourceInterceptor.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/PingConfigSourceInterceptor.java @@ -1,6 +1,6 @@ package io.quarkus.it.smallrye.config; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import io.smallrye.config.ConfigSourceInterceptor; import io.smallrye.config.ConfigSourceInterceptorContext; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Prod.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Prod.java index 6010a1f6925b5..8926ce36b4107 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Prod.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Prod.java @@ -5,10 +5,10 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.validation.Constraint; -import javax.validation.ConstraintValidator; -import javax.validation.ConstraintValidatorContext; -import javax.validation.Payload; +import jakarta.validation.Constraint; +import jakarta.validation.ConstraintValidator; +import jakarta.validation.ConstraintValidatorContext; +import jakarta.validation.Payload; @Target({ ElementType.TYPE_USE, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Server.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Server.java index c98ee3d649714..b5a51a4289c11 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Server.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/Server.java @@ -8,9 +8,9 @@ import java.util.Optional; import java.util.OptionalInt; -import javax.validation.constraints.Max; -import javax.validation.constraints.Min; -import javax.validation.constraints.Size; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.Size; import org.eclipse.microprofile.config.spi.Converter; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerDynamicFeature.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerDynamicFeature.java index 453c1bec6a32b..03724cd5de659 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerDynamicFeature.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerDynamicFeature.java @@ -1,11 +1,11 @@ package io.quarkus.it.smallrye.config; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.container.DynamicFeature; -import javax.ws.rs.container.ResourceInfo; -import javax.ws.rs.core.FeatureContext; -import javax.ws.rs.ext.Provider; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; +import jakarta.ws.rs.ext.Provider; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerFilter.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerFilter.java index 24e26522e302d..5765c89349924 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerFilter.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerFilter.java @@ -1,9 +1,9 @@ package io.quarkus.it.smallrye.config; -import javax.annotation.Priority; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerResponseContext; -import javax.ws.rs.container.ContainerResponseFilter; +import jakarta.annotation.Priority; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerResponseContext; +import jakarta.ws.rs.container.ContainerResponseFilter; @Priority(1001) public class ServerFilter implements ContainerResponseFilter { diff --git a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerResource.java b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerResource.java index eb63076d17514..02104ce29d8e8 100644 --- a/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerResource.java +++ b/integration-tests/smallrye-config/src/main/java/io/quarkus/it/smallrye/config/ServerResource.java @@ -3,14 +3,14 @@ import java.lang.reflect.Method; import java.util.List; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonArrayBuilder; -import javax.json.JsonObjectBuilder; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonArrayBuilder; +import jakarta.json.JsonObjectBuilder; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.config.inject.ConfigProperties; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigMockTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigMockTest.java index 82d08e97f288c..3bc0a370a6c42 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigMockTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigMockTest.java @@ -1,12 +1,12 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.is; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.junit.jupiter.api.Test; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigTest.java index ed01d19f7daba..4bf31bd20eff0 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/AppConfigTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.endsWith; import static org.hamcrest.Matchers.startsWith; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigLocationsTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigLocationsTest.java index bf4e6cca949dc..72dd028a87f86 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigLocationsTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigLocationsTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigSourceInterceptorTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigSourceInterceptorTest.java index 74dcdff5ab01b..89e5574b5ef6d 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigSourceInterceptorTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigSourceInterceptorTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperTest.java index 62682b8a21698..87d58b8f82cd2 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableExceptionMapperTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableSourceTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableSourceTest.java index b0bf16c790c53..6e2ec3ba38a93 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableSourceTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ConfigurableSourceTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/FallbackLocationsTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/FallbackLocationsTest.java index 442e7185bfef0..58bee11abc979 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/FallbackLocationsTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/FallbackLocationsTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import java.util.HashMap; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/HibernatePropertiesTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/HibernatePropertiesTest.java index 95fcd721824dd..6e5132c0aefe6 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/HibernatePropertiesTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/HibernatePropertiesTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.logging.Level; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusConfigTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusConfigTest.java index ad4d81df86e09..8e60d04ff7bc4 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusConfigTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusConfigTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.notNullValue; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusTestProfileTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusTestProfileTest.java index 20e591f143cbb..f2109c0907e18 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusTestProfileTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/QuarkusTestProfileTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import java.util.HashMap; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ServerResourceTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ServerResourceTest.java index 63bfed5338bfc..c84c5e42be445 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ServerResourceTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/ServerResourceTest.java @@ -1,10 +1,10 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.HttpHeaders.ACCEPT; -import static javax.ws.rs.core.HttpHeaders.CONTENT_TYPE; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.HttpHeaders.ACCEPT; +import static jakarta.ws.rs.core.HttpHeaders.CONTENT_TYPE; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasItem; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/SmallRyeConfigTest.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/SmallRyeConfigTest.java index 999b7c5d84ba7..9c44ef11107bc 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/SmallRyeConfigTest.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/SmallRyeConfigTest.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.config; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.equalTo; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/User.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/User.java index 67c9f056c6cff..43ac801344cef 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/User.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/User.java @@ -2,10 +2,10 @@ import java.util.Objects; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.GenericGenerator; diff --git a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/UserResource.java b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/UserResource.java index ee90e82855810..498599f80915c 100644 --- a/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/UserResource.java +++ b/integration-tests/smallrye-config/src/test/java/io/quarkus/it/smallrye/config/UserResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.smallrye.config; -import javax.inject.Inject; -import javax.persistence.EntityManager; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; @Path("/users") @Transactional diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CompletionExceptionMapper.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CompletionExceptionMapper.java index aaff122983a20..e9af3fa355577 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CompletionExceptionMapper.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CompletionExceptionMapper.java @@ -2,12 +2,12 @@ import java.util.concurrent.CompletionException; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; -import javax.ws.rs.ext.Provider; -import javax.ws.rs.ext.Providers; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; +import jakarta.ws.rs.ext.Providers; /** * Workaround of https://github.com/resteasy/Resteasy/pull/2001 diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEndpoint.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEndpoint.java index 28d6329961c48..645b6f1c906ff 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEndpoint.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEndpoint.java @@ -5,18 +5,18 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.inject.Inject; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.inject.Inject; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEntity.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEntity.java index 823278650b5fb..f3e75c2d453d4 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEntity.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ContextEntity.java @@ -1,6 +1,6 @@ package io.quarkus.context.test; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CustomProducersTest.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CustomProducersTest.java index 72734036b49a6..aaee4c5a4fa69 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CustomProducersTest.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/CustomProducersTest.java @@ -1,6 +1,6 @@ package io.quarkus.context.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ProducerBean.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ProducerBean.java index 6791140938600..a676064c54a3c 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ProducerBean.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/ProducerBean.java @@ -1,8 +1,8 @@ package io.quarkus.context.test; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Disposes; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Disposes; +import jakarta.enterprise.inject.Produces; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/RequestBean.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/RequestBean.java index 44d9b29128207..9bedd34bcf228 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/RequestBean.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/RequestBean.java @@ -2,8 +2,8 @@ import java.util.concurrent.CountDownLatch; -import javax.annotation.PreDestroy; -import javax.enterprise.context.RequestScoped; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.RequestScoped; @RequestScoped public class RequestBean { diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/SimpleContextPropagationTest.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/SimpleContextPropagationTest.java index b6e9272bcac50..c54ebeb9236c8 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/SimpleContextPropagationTest.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/SimpleContextPropagationTest.java @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.awaitility.Awaitility; import org.awaitility.core.ThrowingRunnable; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/TransactionalBean.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/TransactionalBean.java index bdf2488c2388a..b64da1fcf74d1 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/TransactionalBean.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/TransactionalBean.java @@ -1,10 +1,10 @@ package io.quarkus.context.test; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.transaction.Transactional.TxType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.Transactional.TxType; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/customContext/CustomContextTest.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/customContext/CustomContextTest.java index 56ae0760cc2cd..e96795a95e1d1 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/customContext/CustomContextTest.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/customContext/CustomContextTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.context.ThreadContext; import org.eclipse.microprofile.context.spi.ThreadContextProvider; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java index 3aad5ba422ea2..d3e442c56e6b3 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java @@ -5,20 +5,20 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.annotation.PreDestroy; -import javax.inject.Inject; -import javax.transaction.Status; -import javax.transaction.SystemException; -import javax.transaction.Transaction; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriInfo; +import jakarta.annotation.PreDestroy; +import jakarta.inject.Inject; +import jakarta.transaction.Status; +import jakarta.transaction.SystemException; +import jakarta.transaction.Transaction; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriInfo; import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextPropagationTest.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextPropagationTest.java index 9114bca6431a3..d8df31f05ed58 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextPropagationTest.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextPropagationTest.java @@ -4,7 +4,7 @@ import java.util.concurrent.TimeUnit; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.awaitility.Awaitility; import org.awaitility.core.ThrowingRunnable; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyTransactionalBean.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyTransactionalBean.java index a2c5fe9ea4c67..e3b22ad7b2339 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyTransactionalBean.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyTransactionalBean.java @@ -1,10 +1,10 @@ package io.quarkus.context.test.mutiny; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.transaction.TransactionManager; -import javax.transaction.Transactional; -import javax.transaction.Transactional.TxType; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.Transactional; +import jakarta.transaction.Transactional.TxType; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/Person.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/Person.java index 24d2dc896d50b..fcc12ab628c44 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/Person.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/Person.java @@ -1,6 +1,6 @@ package io.quarkus.context.test.mutiny; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeEntity.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeEntity.java index 13a59d79ec72b..a329c40c8537c 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeEntity.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeEntity.java @@ -1,6 +1,6 @@ package io.quarkus.context.test.mutiny; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeOtherEntity.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeOtherEntity.java index 51359da2f47c2..7403588894044 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeOtherEntity.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/SomeOtherEntity.java @@ -1,6 +1,6 @@ package io.quarkus.context.test.mutiny; -import javax.persistence.Entity; +import jakarta.persistence.Entity; import io.quarkus.hibernate.orm.panache.PanacheEntity; diff --git a/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/GraphQLClientTester.java b/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/GraphQLClientTester.java index d0969e6423c63..b96e988fb2431 100644 --- a/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/GraphQLClientTester.java +++ b/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/GraphQLClientTester.java @@ -10,11 +10,11 @@ import java.util.concurrent.ExecutionException; import java.util.stream.Collectors; -import javax.enterprise.inject.Instance; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.enterprise.inject.Instance; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import io.smallrye.graphql.client.GraphQLClient; import io.smallrye.graphql.client.Response; diff --git a/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/LuckyNumbersResource.java b/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/LuckyNumbersResource.java index ef1603309804e..9d7f2575a3ff5 100644 --- a/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/LuckyNumbersResource.java +++ b/integration-tests/smallrye-graphql-client/src/main/java/io/quarkus/io/smallrye/graphql/client/LuckyNumbersResource.java @@ -2,7 +2,7 @@ import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Mutation; diff --git a/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/FaultTolerantService.java b/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/FaultTolerantService.java index 424e11a083c69..dab2bd4c08e64 100644 --- a/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/FaultTolerantService.java +++ b/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/FaultTolerantService.java @@ -2,7 +2,7 @@ import java.util.concurrent.TimeUnit; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import org.eclipse.microprofile.faulttolerance.Timeout; diff --git a/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/GreetingResource.java b/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/GreetingResource.java index 2adf24d17bc23..17aa5f700c79c 100644 --- a/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/GreetingResource.java +++ b/integration-tests/smallrye-graphql/src/main/java/io/quarkus/it/smallrye/graphql/GreetingResource.java @@ -5,7 +5,7 @@ import java.util.Collection; import java.util.List; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.graphql.DefaultValue; diff --git a/integration-tests/smallrye-graphql/src/test/java/io/quarkus/it/smallrye/graphql/PayloadCreator.java b/integration-tests/smallrye-graphql/src/test/java/io/quarkus/it/smallrye/graphql/PayloadCreator.java index 09391ce449575..858cb5d55984d 100644 --- a/integration-tests/smallrye-graphql/src/test/java/io/quarkus/it/smallrye/graphql/PayloadCreator.java +++ b/integration-tests/smallrye-graphql/src/test/java/io/quarkus/it/smallrye/graphql/PayloadCreator.java @@ -1,7 +1,7 @@ package io.quarkus.it.smallrye.graphql; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; public class PayloadCreator { diff --git a/integration-tests/smallrye-jwt-oidc-webapp/pom.xml b/integration-tests/smallrye-jwt-oidc-webapp/pom.xml index d61917f1ecae1..2aa9cfa6aa79c 100644 --- a/integration-tests/smallrye-jwt-oidc-webapp/pom.xml +++ b/integration-tests/smallrye-jwt-oidc-webapp/pom.xml @@ -34,8 +34,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/smallrye-jwt-oidc-webapp/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/smallrye-jwt-oidc-webapp/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index 97d8c268ef160..d64746d914f9c 100644 --- a/integration-tests/smallrye-jwt-oidc-webapp/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/smallrye-jwt-oidc-webapp/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; diff --git a/integration-tests/smallrye-jwt-token-propagation/pom.xml b/integration-tests/smallrye-jwt-token-propagation/pom.xml index eead619e88381..947d08bb5abba 100644 --- a/integration-tests/smallrye-jwt-token-propagation/pom.xml +++ b/integration-tests/smallrye-jwt-token-propagation/pom.xml @@ -34,8 +34,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java index 86040a731f5b6..b44bf256ce5c1 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/AccessTokenPropagationService.java @@ -1,8 +1,8 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java index 6801322b6e698..ca54f476f4ab9 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/FrontendResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtResignedProtectedResource.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtResignedProtectedResource.java index a897f7451ecd2..e246f0900a1d1 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtResignedProtectedResource.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtResignedProtectedResource.java @@ -3,11 +3,11 @@ import java.security.PublicKey; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.Path; +import jakarta.annotation.PostConstruct; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java index c5c8b87eb9545..5bea495c654fe 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/JwtTokenPropagationService.java @@ -1,7 +1,7 @@ package io.quarkus.it.keycloak; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java index cfb75423868eb..d9187dc7e9d1f 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedJwtResource.java @@ -2,14 +2,14 @@ import java.security.Principal; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.SecurityContext; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.SecurityContext; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java index a26f6dd8b10fb..c67ebb7fecd04 100644 --- a/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java +++ b/integration-tests/smallrye-jwt-token-propagation/src/main/java/io/quarkus/it/keycloak/ProtectedResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.keycloak; -import javax.annotation.security.RolesAllowed; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.NotAuthorizedException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; +import jakarta.annotation.security.RolesAllowed; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotAuthorizedException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGauge.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGauge.java index 1e2fd2da4b625..0f788f40e9d32 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGauge.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGauge.java @@ -1,8 +1,8 @@ package io.quarkus.it.metrics; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.interceptor.AroundConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.interceptor.AroundConstruct; import org.eclipse.microprofile.metrics.MetricUnits; import org.eclipse.microprofile.metrics.annotation.Gauge; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGaugeNoReflectionAnnotation.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGaugeNoReflectionAnnotation.java index e07e303bd8438..29c78c41a14d1 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGaugeNoReflectionAnnotation.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/DummyGaugeNoReflectionAnnotation.java @@ -1,7 +1,7 @@ package io.quarkus.it.metrics; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.eclipse.microprofile.metrics.MetricUnits; import org.eclipse.microprofile.metrics.annotation.Gauge; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsOnClassResource.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsOnClassResource.java index a8d39499e3714..a65c50d95d69b 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsOnClassResource.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsOnClassResource.java @@ -1,6 +1,6 @@ package io.quarkus.it.metrics; -import javax.ws.rs.Path; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.metrics.annotation.Counted; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsResource.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsResource.java index 866e95c4135df..761aac9aa721a 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsResource.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/MetricsResource.java @@ -3,10 +3,10 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.metrics.Histogram; import org.eclipse.microprofile.metrics.MetricUnits; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsBase.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsBase.java index 96753b2022eab..a58874e3b8a5f 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsBase.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsBase.java @@ -1,6 +1,6 @@ package io.quarkus.it.metrics.inheritance; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.metrics.annotation.Counted; diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsExtended.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsExtended.java index 2c6b6468dde54..76032f6ebf7e6 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsExtended.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/InheritanceMetricsExtended.java @@ -1,6 +1,6 @@ package io.quarkus.it.metrics.inheritance; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class InheritanceMetricsExtended extends InheritanceMetricsBase { diff --git a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/MetricsInheritanceResource.java b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/MetricsInheritanceResource.java index 8a957f47175b4..b92eb3b0b82cc 100644 --- a/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/MetricsInheritanceResource.java +++ b/integration-tests/smallrye-metrics/src/main/java/io/quarkus/it/metrics/inheritance/MetricsInheritanceResource.java @@ -3,10 +3,10 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import org.eclipse.microprofile.metrics.MetricID; import org.eclipse.microprofile.metrics.MetricRegistry; diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java index 8c211aa9b3b38..62373546b1dcf 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java @@ -3,9 +3,9 @@ import java.util.List; import java.util.stream.Collectors; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.opentracing.mock.MockSpan; import io.opentracing.mock.MockTracer; diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java index fff39dd376ada..0dd46624da87a 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java @@ -5,10 +5,11 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; import javax.sql.DataSource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/jdbc") public class JdbcResource { diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java index 1a45fff41f029..248b94d9bc24f 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java @@ -1,8 +1,8 @@ package io.quarkus.it.opentracing; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; import io.opentracing.mock.MockTracer; import io.opentracing.util.GlobalTracer; diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java index 9ea16b4ca27b8..10baa8c973e4c 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.opentracing; -import javax.inject.Inject; -import javax.inject.Singleton; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import org.eclipse.microprofile.rest.client.inject.RestClient; diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java index 1af7a8c968563..0060eb38197ff 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.opentracing; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/") @Produces(MediaType.APPLICATION_JSON) diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java index e9834a06c3391..ec2b2dbd17c7b 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentracing; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class TracedService { diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java index 36d66b2a814cd..b6fa2ada998f7 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java @@ -5,10 +5,11 @@ import java.sql.SQLException; import java.sql.Statement; -import javax.inject.Inject; import javax.sql.DataSource; -import javax.ws.rs.GET; -import javax.ws.rs.Path; + +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/tracingpropertyjdbc") public class TracingProperyJdbcResource { diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java index f8d30fe5088c1..d48e38d6149e4 100644 --- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java +++ b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java @@ -1,6 +1,6 @@ package io.quarkus.it.opentracing.json; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/BeanPropertiesResource.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/BeanPropertiesResource.java index 37e24df67ff6c..fa9ad3e5fee80 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/BeanPropertiesResource.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/BeanPropertiesResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.boot; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/bean") public class BeanPropertiesResource { diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java index 2cf1a0b143609..409d8ca39c7db 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.boot; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/class") public class ClassPropertiesResource { diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/DefaultPropertiesResource.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/DefaultPropertiesResource.java index 8e53fab28e530..ca32766a887da 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/DefaultPropertiesResource.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/DefaultPropertiesResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.boot; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/default") public class DefaultPropertiesResource { diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/InterfacePropertiesResource.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/InterfacePropertiesResource.java index 5f577c55a75cc..556219dc1e246 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/InterfacePropertiesResource.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/InterfacePropertiesResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.boot; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; @Path("/interface") public class InterfacePropertiesResource { diff --git a/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java b/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java index f5ec994839597..2c2c2a00556a4 100644 --- a/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java +++ b/integration-tests/spring-cloud-config-client/src/main/java/io/quarkus/it/spring/config/server/client/ConfigResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.spring.config.server.client; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import io.quarkus.runtime.annotations.RegisterForReflection; import io.smallrye.config.SmallRyeConfig; diff --git a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java index f8eed37182f2c..717200e00f432 100644 --- a/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java +++ b/integration-tests/spring-cloud-config-client/src/test/java/io/quarkus/spring/cloud/config/client/runtime/SpringCloudConfigClientTest.java @@ -1,7 +1,7 @@ package io.quarkus.spring.cloud.config.client.runtime; import static io.restassured.RestAssured.given; -import static javax.ws.rs.core.Response.Status.OK; +import static jakarta.ws.rs.core.Response.Status.OK; import static org.hamcrest.Matchers.equalTo; import org.junit.jupiter.api.Test; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractEntity.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractEntity.java index a7d1b0a9c2788..0841483041fcb 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractEntity.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractEntity.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractPhoneEntity.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractPhoneEntity.java index e67bd3dd0a0cf..5898eae0984b0 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractPhoneEntity.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractPhoneEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; // demonstrates that @MappedSuperclass detection works for more than one level and for parameterized types @MappedSuperclass diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractTypedIdEntity.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractTypedIdEntity.java index d105ceea4978a..8d84fe5f3cd8f 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractTypedIdEntity.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/AbstractTypedIdEntity.java @@ -2,8 +2,8 @@ import java.io.Serializable; -import javax.persistence.EmbeddedId; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.MappedSuperclass; // example "base entity" using strongly typed ids (instead of just long) @MappedSuperclass diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Animal.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Animal.java index 12303b9369144..68510e65f5dad 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Animal.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Animal.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public class Animal { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Book.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Book.java index 230414f6b1754..868f3f8ff7fad 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Book.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Book.java @@ -1,7 +1,7 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; @Entity public class Book extends NamedEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/BookResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/BookResource.java index fabe2f6e6bb77..55e6342d340e3 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/BookResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/BookResource.java @@ -4,11 +4,11 @@ import java.util.Objects; import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; @Path("/book") public class BookResource { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Car.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Car.java index 9183756c2805f..e586c6e7b6951 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Car.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Car.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity(name = "MotorCar") public class Car extends AbstractEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CarResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CarResource.java index c9dd8758a6301..8e0a70a80f40e 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CarResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CarResource.java @@ -2,10 +2,10 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/car") public class CarResource { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cart.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cart.java index ba9acf6587b12..783ecf10a9da1 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cart.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cart.java @@ -1,11 +1,11 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.validation.constraints.NotNull; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.validation.constraints.NotNull; @Entity public class Cart extends AbstractEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CartResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CartResource.java index 2dcc9279feadb..8fc5400260b61 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CartResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CartResource.java @@ -4,12 +4,12 @@ import java.util.List; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/cart") @Produces("application/json") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cat.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cat.java index a39de395032f3..aa85625f86e5f 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cat.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Cat.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Cat extends Mammal { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatResource.java index be990b701499c..c06d3e5d716d1 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatResource.java @@ -6,10 +6,10 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/cat") public class CatResource { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValue.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValue.java index dd80005feeafe..3f15ae3f1aeba 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValue.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValue.java @@ -1,10 +1,10 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValueResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValueResource.java index 62ce3a13ccabd..794b06b31639f 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValueResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CatalogValueResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/catalog-value") public class CatalogValueResource { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Country.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Country.java index 68ef0609abc28..425e8ff9fc3fe 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Country.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Country.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.SequenceGenerator; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.SequenceGenerator; @Entity public class Country extends NamedEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CountryResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CountryResource.java index 23ab25f8491b9..9d815040af3cb 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CountryResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CountryResource.java @@ -4,12 +4,12 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.persistence.NoResultException; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.persistence.NoResultException; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Customer.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Customer.java index 2eecba3d1aab5..a410aaf4dc7a0 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Customer.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Customer.java @@ -2,11 +2,11 @@ import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToMany; -import javax.validation.constraints.Email; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToMany; +import jakarta.validation.constraints.Email; import org.springframework.data.domain.Persistable; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CustomerResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CustomerResource.java index 8583d5a181304..109ba40766447 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CustomerResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/CustomerResource.java @@ -2,12 +2,12 @@ import java.util.List; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/customer") @Produces("application/json") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Employee.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Employee.java index 030e71f356e23..aa5c8808e92fd 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Employee.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Employee.java @@ -1,11 +1,11 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "employee") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/EmployeeResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/EmployeeResource.java index d8aea681c5430..23ed0e063727d 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/EmployeeResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/EmployeeResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; @Path("/employee") @Produces("application/json") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FederalStateCatalogValue.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FederalStateCatalogValue.java index 9eb2f69272d8c..df0361b28f6c7 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FederalStateCatalogValue.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FederalStateCatalogValue.java @@ -1,7 +1,7 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("federalState") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FruitResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FruitResource.java index f24c9a6c8a435..9a8cb67239193 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FruitResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/FruitResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -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("/fruit") public class FruitResource { @@ -13,4 +13,4 @@ public class FruitResource { public String hello() { return "hello"; } -} \ No newline at end of file +} diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Mammal.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Mammal.java index ccf6942096acb..cb9c585daf681 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Mammal.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Mammal.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public class Mammal extends Animal { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Movie.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Movie.java index 6c88892dbab5a..30f75b3806518 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Movie.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Movie.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; +import jakarta.persistence.Entity; @Entity public class Movie extends MovieSuperclass { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieResource.java index 62fb24ab71b82..857f36dd13623 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieResource.java @@ -7,10 +7,10 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieSuperclass.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieSuperclass.java index c3807bfb32f16..927f4fba2f296 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieSuperclass.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/MovieSuperclass.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; -import javax.persistence.Version; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.Version; @MappedSuperclass public abstract class MovieSuperclass { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/NamedEntity.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/NamedEntity.java index 4d9f11b20305c..283bd0545f6cd 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/NamedEntity.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/NamedEntity.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.MappedSuperclass; @MappedSuperclass public class NamedEntity { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Order.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Order.java index 98cef0208f58a..17a5dc0613ab6 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Order.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Order.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; @Entity @Table(name = "orders") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/OrderResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/OrderResource.java index d65796f6b1ab9..3f668622c6f56 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/OrderResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/OrderResource.java @@ -2,11 +2,11 @@ import java.util.List; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/order") @Produces("application/json") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Person.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Person.java index cf9a9d0f4187f..8c6adc5977201 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Person.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Person.java @@ -4,18 +4,18 @@ import java.util.List; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; -import javax.persistence.OneToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.OneToMany; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonRepositoryImpl.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonRepositoryImpl.java index 9495f48338418..2e36f220e0287 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonRepositoryImpl.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonRepositoryImpl.java @@ -2,8 +2,8 @@ import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; public class PersonRepositoryImpl implements PersonFragment, PersonFragment2 { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonResource.java index f656543562c06..a829eb7882218 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PersonResource.java @@ -12,12 +12,12 @@ import java.util.stream.IntStream; import java.util.stream.Stream; -import javax.inject.Inject; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCall.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCall.java index a3c5deef117b5..76eedbd9b23ac 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCall.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCall.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; @Entity @Table(name = "phone_call") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallId.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallId.java index 5322c29edb989..438df17d37983 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallId.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallId.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; @Embeddable public class PhoneCallId extends PhoneNumberId { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallResource.java index 0a27f60c2e8c2..af88c3eb4a26a 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneCallResource.java @@ -2,11 +2,11 @@ import java.util.Set; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import io.quarkus.it.spring.data.jpa.PhoneCall.CallAgent; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneNumberId.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneNumberId.java index c87dcae5aeed4..fa8f6e69e609d 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneNumberId.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PhoneNumberId.java @@ -3,8 +3,8 @@ import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.Column; +import jakarta.persistence.MappedSuperclass; // this is a bit artificial, but next to PhoneCallId there could be e.g. a PhoneBookEntryId subclass @MappedSuperclass diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Post.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Post.java index 492fb814d2c4d..4e921073643e4 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Post.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Post.java @@ -6,15 +6,15 @@ import java.util.List; import java.util.Map; -import javax.persistence.CascadeType; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; +import jakarta.persistence.CascadeType; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; @Entity(name = "Post") @Table(name = "post") diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostComment.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostComment.java index 04b2cb8a48752..3f23921c2ed9a 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostComment.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostComment.java @@ -1,11 +1,11 @@ package io.quarkus.it.spring.data.jpa; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty.Access; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostResource.java index 006fd83f36e1f..fa116cbdea6f2 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/PostResource.java @@ -6,11 +6,11 @@ import java.util.Map; import java.util.Optional; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; @Path("/post") public class PostResource { diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Song.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Song.java index 50a85634a3618..e5ae76a6c1932 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Song.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/Song.java @@ -2,11 +2,11 @@ import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.SequenceGenerator; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.SequenceGenerator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/SongResource.java b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/SongResource.java index 5c420f08ea87d..5c2b9bb4de1e2 100644 --- a/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/SongResource.java +++ b/integration-tests/spring-data-jpa/src/main/java/io/quarkus/it/spring/data/jpa/SongResource.java @@ -3,11 +3,11 @@ import java.util.List; import java.util.Optional; -import javax.transaction.Transactional; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; diff --git a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Author.java b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Author.java index 92074821e8b0f..5ef6e3a149cbb 100644 --- a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Author.java +++ b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Author.java @@ -1,8 +1,8 @@ package io.quarkus.it.spring.data.rest; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; @Entity public class Author { diff --git a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/AuthorsRepository.java b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/AuthorsRepository.java index d75a6b96032b1..17fc947f1aaef 100644 --- a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/AuthorsRepository.java +++ b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/AuthorsRepository.java @@ -1,7 +1,7 @@ package io.quarkus.it.spring.data.rest; -import javax.annotation.security.PermitAll; -import javax.annotation.security.RolesAllowed; +import jakarta.annotation.security.PermitAll; +import jakarta.annotation.security.RolesAllowed; import org.springframework.data.repository.CrudRepository; import org.springframework.data.rest.core.annotation.RestResource; diff --git a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Book.java b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Book.java index eb2e6d1b572ed..92dad4cebbfc0 100644 --- a/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Book.java +++ b/integration-tests/spring-data-rest/src/main/java/io/quarkus/it/spring/data/rest/Book.java @@ -1,10 +1,10 @@ package io.quarkus.it.spring.data.rest; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.validation.constraints.NotBlank; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.validation.constraints.NotBlank; @Entity public class Book { diff --git a/integration-tests/spring-data-rest/src/test/java/io/quarkus/it/spring/data/rest/SpringDataRestTest.java b/integration-tests/spring-data-rest/src/test/java/io/quarkus/it/spring/data/rest/SpringDataRestTest.java index bd9f76a1f7a89..2b037d0c0a929 100644 --- a/integration-tests/spring-data-rest/src/test/java/io/quarkus/it/spring/data/rest/SpringDataRestTest.java +++ b/integration-tests/spring-data-rest/src/test/java/io/quarkus/it/spring/data/rest/SpringDataRestTest.java @@ -8,8 +8,8 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; import org.junit.jupiter.api.Test; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java index 8931467b62f57..f8e5d31f010c4 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/AppConfiguration.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.inject.Named; -import javax.inject.Singleton; +import jakarta.inject.Named; +import jakarta.inject.Singleton; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java index 0ca5c38cfce1c..5b79fca79c01c 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/InjectedSpringBeansResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.spring; -import javax.inject.Inject; -import javax.servlet.http.HttpServletRequest; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; import io.quarkus.it.spring.AppConfiguration.CustomPrototypeBean; import io.quarkus.it.spring.AppConfiguration.NamedBean; diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java index 77707e09985a7..fc57d456d945b 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/MyApplication.java @@ -1,9 +1,9 @@ package io.quarkus.it.spring; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/spring-test") public class MyApplication extends Application { -} \ No newline at end of file +} diff --git a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java index 08669ff1be239..be94b096a0c78 100644 --- a/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java +++ b/integration-tests/spring-di/src/main/java/io/quarkus/it/spring/RequestBean.java @@ -2,7 +2,7 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; +import jakarta.annotation.PostConstruct; @RequestService public class RequestBean { diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/CountResource.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/CountResource.java index 1ab31775d9830..6def1edb69db1 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/CountResource.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/CountResource.java @@ -1,10 +1,10 @@ package io.quarkus.it.spring.scheduled; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/spring/scheduler/count") public class CountResource { diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/Counter.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/Counter.java index 067a6fd3dc88a..ddd020243de14 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/Counter.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/scheduled/Counter.java @@ -2,8 +2,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; import org.springframework.scheduling.annotation.Scheduled; diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Book.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Book.java index a893ed259da9b..121bd3543d82e 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Book.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Book.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.web; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Book { diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/CustomAdvice.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/CustomAdvice.java index ce892699c5ee8..c0c224c258ad6 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/CustomAdvice.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/CustomAdvice.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.web; -import javax.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletRequest; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Error.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Error.java index a45058691defb..11d1a760470c8 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Error.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Error.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.web; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement public class Error { diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/GreetingController.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/GreetingController.java index 8b76467d71eda..3477bbee3e75f 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/GreetingController.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/GreetingController.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.web; -import javax.validation.Valid; +import jakarta.validation.Valid; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; diff --git a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Person.java b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Person.java index fc8bae5bf7185..ea5c542abd081 100644 --- a/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Person.java +++ b/integration-tests/spring-web/src/main/java/io/quarkus/it/spring/web/Person.java @@ -1,6 +1,6 @@ package io.quarkus.it.spring.web; -import javax.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotBlank; public class Person { diff --git a/integration-tests/spring-web/src/test/java/io/quarkus/it/spring/web/TestSecurityTest.java b/integration-tests/spring-web/src/test/java/io/quarkus/it/spring/web/TestSecurityTest.java index 0ea7e33f3645d..7ddf2f0df8eaf 100644 --- a/integration-tests/spring-web/src/test/java/io/quarkus/it/spring/web/TestSecurityTest.java +++ b/integration-tests/spring-web/src/test/java/io/quarkus/it/spring/web/TestSecurityTest.java @@ -2,7 +2,7 @@ import static org.hamcrest.Matchers.is; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.junit.jupiter.api.Test; diff --git a/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java b/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java index e0c6766c64cef..da88aa70ab171 100644 --- a/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java +++ b/integration-tests/test-extension/extension/deployment/src/main/java/io/quarkus/extest/deployment/TestProcessor.java @@ -23,9 +23,9 @@ import java.util.Set; import java.util.function.BooleanSupplier; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Unmarshaller; import org.jboss.logging.Logger; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/BuildTimeRunTimeConfigTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/BuildTimeRunTimeConfigTest.java index 09e307bff0d0c..9d50e539c409d 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/BuildTimeRunTimeConfigTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/BuildTimeRunTimeConfigTest.java @@ -5,9 +5,9 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.asset.StringAsset; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/ConfigBuilderTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/ConfigBuilderTest.java index 182f44224e1c8..5254275f7dec6 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/ConfigBuilderTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/ConfigBuilderTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RecordedBuildProfileInRuntimeTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RecordedBuildProfileInRuntimeTest.java index 3d938f1b963b9..dd3c6ceb605ef 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RecordedBuildProfileInRuntimeTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RecordedBuildProfileInRuntimeTest.java @@ -5,7 +5,7 @@ import java.util.Optional; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RenameConfigTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RenameConfigTest.java index 2f4193a3d698b..5d1659845d00b 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RenameConfigTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/RenameConfigTest.java @@ -7,7 +7,7 @@ import java.util.Optional; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/SecretKeysConfigTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/SecretKeysConfigTest.java index c13f7c2c2fdb1..120c4c6da57ec 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/SecretKeysConfigTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/SecretKeysConfigTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.junit.jupiter.api.Test; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingInvalidTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingInvalidTest.java index cb3bc0e8766af..40e94082a7627 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingInvalidTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingInvalidTest.java @@ -1,6 +1,6 @@ package io.quarkus.config; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingTest.java index 267a922199d0f..74e26f61d38da 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/StaticInitConfigMappingTest.java @@ -3,7 +3,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/UnremoveableConfigMappingTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/UnremoveableConfigMappingTest.java index 600a1aa45f98c..e0d56d94f537f 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/UnremoveableConfigMappingTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/config/UnremoveableConfigMappingTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/AdditionalLocationsTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/AdditionalLocationsTest.java index e66a4cf5f2ecf..25cc8bc6d36df 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/AdditionalLocationsTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/AdditionalLocationsTest.java @@ -5,9 +5,9 @@ import java.io.IOException; import java.nio.charset.StandardCharsets; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfigMappingTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfigMappingTest.java index d67d0f2be9fc5..0203c51396b5b 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfigMappingTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfigMappingTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java index e1668d6749360..6d739ea2a9eb1 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBean.java @@ -1,7 +1,7 @@ package io.quarkus.extest; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.extest.runtime.config.AnotherPrefixConfig; import io.quarkus.extest.runtime.config.FooRuntimeConfig; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java index a2d7d872f5cc7..962237d464860 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/ConfiguredBeanTest.java @@ -21,7 +21,7 @@ import java.util.stream.Collectors; import java.util.stream.IntStream; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/RuntimeDefaultsTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/RuntimeDefaultsTest.java index ffcd7331fc683..db522995ff2b9 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/RuntimeDefaultsTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/RuntimeDefaultsTest.java @@ -6,7 +6,7 @@ import java.util.Optional; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.spi.ConfigSource; import org.junit.jupiter.api.Test; diff --git a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownConfigTest.java b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownConfigTest.java index e1c8d9e78af0a..97b201903d50f 100644 --- a/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownConfigTest.java +++ b/integration-tests/test-extension/extension/deployment/src/test/java/io/quarkus/extest/UnknownConfigTest.java @@ -10,7 +10,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.junit.jupiter.api.Test; diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/RuntimeXmlConfigService.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/RuntimeXmlConfigService.java index 006b3030c7a5c..332062408c82a 100644 --- a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/RuntimeXmlConfigService.java +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/RuntimeXmlConfigService.java @@ -33,7 +33,7 @@ public RuntimeXmlConfigService(XmlConfig config) { public void startService() throws IOException { log.infof("startService, config: %s", config); try { - log.infof("Class.forName(XmlRootElement): %s", Class.forName("javax.xml.bind.annotation.XmlRootElement")); + log.infof("Class.forName(XmlRootElement): %s", Class.forName("jakarta.xml.bind.annotation.XmlRootElement")); } catch (Exception e) { log.info("Failed to load XmlRootElement", e); } diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/CommandServlet.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/CommandServlet.java index 7e396d224182e..cbaf47ebf7a1e 100644 --- a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/CommandServlet.java +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/CommandServlet.java @@ -3,12 +3,12 @@ import java.io.IOException; import java.security.interfaces.DSAPublicKey; -import javax.inject.Inject; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; /** * Simple command dispatch servlet used for testing the state of the native image diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/PublicKeyProducer.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/PublicKeyProducer.java index 37a5f231aa419..a1ddc94afcf01 100644 --- a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/PublicKeyProducer.java +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/beans/PublicKeyProducer.java @@ -2,8 +2,8 @@ import java.security.interfaces.DSAPublicKey; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.jboss.logging.Logger; diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlConfig.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlConfig.java index d79a892621080..aaf691f847f45 100644 --- a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlConfig.java +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlConfig.java @@ -2,8 +2,8 @@ import java.util.ArrayList; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; /** * A hypothetical configuration that needs xml parsing at build time diff --git a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlData.java b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlData.java index b5b432b98c139..dedb5da85202f 100644 --- a/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlData.java +++ b/integration-tests/test-extension/extension/runtime/src/main/java/io/quarkus/extest/runtime/config/XmlData.java @@ -2,7 +2,7 @@ import java.util.Date; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "data") public class XmlData { diff --git a/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/ClasspathTestEndpoint.java b/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/ClasspathTestEndpoint.java index 595c2d95bcdc2..9ec16d3d07cf5 100644 --- a/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/ClasspathTestEndpoint.java +++ b/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/ClasspathTestEndpoint.java @@ -7,11 +7,11 @@ import java.util.List; import java.util.Locale; -import javax.inject.Inject; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.inject.Inject; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.extest.runtime.classpath.RecordedClasspathEntries; import io.quarkus.extest.runtime.classpath.RecordedClasspathEntries.Phase; diff --git a/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java b/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java index ad64cf932fd6b..d5422691d7f56 100644 --- a/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java +++ b/integration-tests/test-extension/tests/src/main/java/io/quarkus/it/extension/FinalFieldReflectionTestEndpoint.java @@ -7,10 +7,10 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; import io.quarkus.extest.runtime.FinalFieldReflectionObject; diff --git a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResource.java b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResource.java index 0c41915ced2fa..bd4c7d77ab7d4 100644 --- a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResource.java +++ b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResource.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.Stereotype; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResourceWithList.java b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResourceWithList.java index 09b6f5e41059a..ec818cef8840a 100644 --- a/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResourceWithList.java +++ b/integration-tests/test-extension/tests/src/test/java/io/quarkus/it/extension/CustomResourceWithList.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.inject.Stereotype; +import jakarta.enterprise.inject.Stereotype; import io.quarkus.test.common.QuarkusTestResource; diff --git a/integration-tests/vertx-graphql/src/main/java/io/quarkus/vertx/graphql/it/VertxGraphqlResource.java b/integration-tests/vertx-graphql/src/main/java/io/quarkus/vertx/graphql/it/VertxGraphqlResource.java index 55f6c632eddfa..c6ad21e33b550 100644 --- a/integration-tests/vertx-graphql/src/main/java/io/quarkus/vertx/graphql/it/VertxGraphqlResource.java +++ b/integration-tests/vertx-graphql/src/main/java/io/quarkus/vertx/graphql/it/VertxGraphqlResource.java @@ -16,8 +16,8 @@ */ package io.quarkus.vertx.graphql.it; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import graphql.GraphQL; import graphql.schema.GraphQLSchema; diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/BeanRegisteringRoute.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/BeanRegisteringRoute.java index ab4e9744c589a..4c29494ec2761 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/BeanRegisteringRoute.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/BeanRegisteringRoute.java @@ -1,7 +1,7 @@ package io.quarkus.it.vertx; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import io.vertx.core.AsyncResult; import io.vertx.core.Handler; diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/FilterResource.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/FilterResource.java index efb5d1c1c0018..46236ae4b4674 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/FilterResource.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/FilterResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.vertx; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/filter") public class FilterResource { diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/HeaderResource.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/HeaderResource.java index df732a7549672..c0a56eccbeb54 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/HeaderResource.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/HeaderResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.vertx; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; @Path("/headers") public class HeaderResource { diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/NettyEventLoopResource.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/NettyEventLoopResource.java index e4f9bd29d2bab..bf451d838b5fc 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/NettyEventLoopResource.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/NettyEventLoopResource.java @@ -1,8 +1,8 @@ package io.quarkus.it.vertx; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import io.netty.channel.EventLoopGroup; import io.quarkus.netty.BossEventLoopGroup; diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/SimpleResource.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/SimpleResource.java index 80af4d68570a8..48b63309978f3 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/SimpleResource.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/SimpleResource.java @@ -1,9 +1,9 @@ package io.quarkus.it.vertx; -import javax.ws.rs.GET; -import javax.ws.rs.OPTIONS; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.OPTIONS; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; /** * diff --git a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java index 8484ecd555329..91bb34441944a 100644 --- a/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java +++ b/integration-tests/vertx-http/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java @@ -1,12 +1,12 @@ package io.quarkus.it.vertx; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.vertx.core.Vertx; import io.vertx.ext.web.Router; diff --git a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/Http2TestCase.java b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/Http2TestCase.java index d8078a64739d2..d140349416e12 100644 --- a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/Http2TestCase.java +++ b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/Http2TestCase.java @@ -4,8 +4,8 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; import org.apache.commons.lang3.exception.ExceptionUtils; import org.junit.jupiter.api.Assertions; diff --git a/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/DisableNullValueSerializationCustomizer.java b/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/DisableNullValueSerializationCustomizer.java index 3418e56ca8178..f8b8a6fa42509 100644 --- a/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/DisableNullValueSerializationCustomizer.java +++ b/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/DisableNullValueSerializationCustomizer.java @@ -1,6 +1,6 @@ package com.example.reactivejackson; -import javax.inject.Singleton; +import jakarta.inject.Singleton; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/SimpleEndpoint.java b/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/SimpleEndpoint.java index aeca22c8bf4c6..b4b8e4199c133 100644 --- a/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/SimpleEndpoint.java +++ b/integration-tests/vertx-web-jackson/src/main/java/com/example/reactivejackson/SimpleEndpoint.java @@ -2,7 +2,7 @@ import static io.quarkus.vertx.web.Route.HttpMethod.GET; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.web.Route; import io.quarkus.vertx.web.RouteBase; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusConsumer.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusConsumer.java index 1cfb1af79207f..5500f18c869df 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusConsumer.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusConsumer.java @@ -1,6 +1,6 @@ package io.quarkus.it.vertx; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.vertx.ConsumeEvent; import io.vertx.core.MultiMap; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusSender.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusSender.java index 46b21d3df937d..1b76c7c519c31 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusSender.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/EventBusSender.java @@ -1,9 +1,9 @@ package io.quarkus.it.vertx; -import javax.inject.Inject; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; +import jakarta.inject.Inject; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; import io.smallrye.mutiny.Uni; import io.vertx.core.eventbus.DeliveryOptions; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java index af372cfb9ffef..f9e76bcaa0d7d 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/JsonTestResource.java @@ -1,13 +1,13 @@ package io.quarkus.it.vertx; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; -import static javax.ws.rs.core.MediaType.TEXT_PLAIN; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import java.util.stream.Collectors; -import javax.ws.rs.*; +import jakarta.ws.rs.*; import io.vertx.core.json.Json; import io.vertx.core.json.JsonArray; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/MyApplication.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/MyApplication.java index ef746ad49de2a..e59c5370b4b94 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/MyApplication.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/MyApplication.java @@ -1,9 +1,9 @@ package io.quarkus.it.vertx; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/vertx-test") public class MyApplication extends Application { -} \ No newline at end of file +} diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java index 26d8358a446ae..6eae54a02ee5e 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/VertxProducerResource.java @@ -4,11 +4,11 @@ import java.util.Map; import java.util.UUID; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.Vertx; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/faulttolerance/NonblockingFaultTolerantService.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/faulttolerance/NonblockingFaultTolerantService.java index ccff59d0a55dc..1994b59547f5a 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/faulttolerance/NonblockingFaultTolerantService.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/faulttolerance/NonblockingFaultTolerantService.java @@ -4,7 +4,7 @@ import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.faulttolerance.Fallback; import org.eclipse.microprofile.faulttolerance.Retry; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleDeployer.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleDeployer.java index 35f2df0e1c05c..fd06c4fdc49d0 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleDeployer.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleDeployer.java @@ -2,9 +2,9 @@ import java.util.concurrent.CountDownLatch; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.event.Observes; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import io.quarkus.runtime.StartupEvent; import io.vertx.core.DeploymentOptions; diff --git a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleEndpoint.java b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleEndpoint.java index 58a6c9641452d..530f11a8cf168 100644 --- a/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleEndpoint.java +++ b/integration-tests/vertx/src/main/java/io/quarkus/it/vertx/verticles/VerticleEndpoint.java @@ -1,11 +1,11 @@ package io.quarkus.it.vertx.verticles; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import io.smallrye.mutiny.Uni; import io.vertx.mutiny.core.Vertx; diff --git a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/faulttolerance/VertxRetryFallbackTest.java b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/faulttolerance/VertxRetryFallbackTest.java index d0e64339bb176..8c4f8ad660304 100644 --- a/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/faulttolerance/VertxRetryFallbackTest.java +++ b/integration-tests/vertx/src/test/java/io/quarkus/it/vertx/faulttolerance/VertxRetryFallbackTest.java @@ -6,7 +6,7 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/integration-tests/virtual-http-resteasy/src/main/java/io/quarkus/it/virtual/GreetingResource.java b/integration-tests/virtual-http-resteasy/src/main/java/io/quarkus/it/virtual/GreetingResource.java index f3757e6004f87..9c2ec2d388511 100644 --- a/integration-tests/virtual-http-resteasy/src/main/java/io/quarkus/it/virtual/GreetingResource.java +++ b/integration-tests/virtual-http-resteasy/src/main/java/io/quarkus/it/virtual/GreetingResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.virtual; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java b/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java index 9a8670932ab53..1a48ead8b5ec1 100644 --- a/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java +++ b/integration-tests/virtual-http-resteasy/src/test/java/io/quarkus/it/virtual/FunctionTest.java @@ -7,7 +7,7 @@ import java.nio.charset.StandardCharsets; import java.util.logging.Logger; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/FunqyGreeting.java b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/FunqyGreeting.java index 2ae05573f7576..453c4f4ca3374 100644 --- a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/FunqyGreeting.java +++ b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/FunqyGreeting.java @@ -1,6 +1,6 @@ package io.quarkus.it.virtual; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import io.quarkus.funqy.Funq; diff --git a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingResource.java b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingResource.java index f3757e6004f87..9c2ec2d388511 100644 --- a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingResource.java +++ b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingResource.java @@ -1,11 +1,11 @@ package io.quarkus.it.virtual; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { diff --git a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingServlet.java b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingServlet.java index 73814b05ccdd0..66010d2d50bc7 100644 --- a/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingServlet.java +++ b/integration-tests/virtual-http/src/main/java/io/quarkus/it/virtual/GreetingServlet.java @@ -2,11 +2,11 @@ import java.io.IOException; -import javax.servlet.ServletException; -import javax.servlet.annotation.WebServlet; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.ServletException; +import jakarta.servlet.annotation.WebServlet; +import jakarta.servlet.http.HttpServlet; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; @WebServlet(name = "ServletGreeting", urlPatterns = "/servlet/hello") public class GreetingServlet extends HttpServlet { diff --git a/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java b/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java index e67e654e7357a..0782c35e7ec3f 100644 --- a/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java +++ b/integration-tests/virtual-http/src/test/java/io/quarkus/it/virtual/FunctionTest.java @@ -7,7 +7,7 @@ import java.nio.charset.StandardCharsets; import java.util.logging.Logger; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; diff --git a/integration-tests/websockets/src/main/java/io/quarkus/websockets/ChatServer.java b/integration-tests/websockets/src/main/java/io/quarkus/websockets/ChatServer.java index 85f942748f91d..ff47c8c492c69 100644 --- a/integration-tests/websockets/src/main/java/io/quarkus/websockets/ChatServer.java +++ b/integration-tests/websockets/src/main/java/io/quarkus/websockets/ChatServer.java @@ -3,14 +3,14 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import javax.enterprise.context.ApplicationScoped; -import javax.websocket.OnClose; -import javax.websocket.OnError; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; -import javax.websocket.server.PathParam; -import javax.websocket.server.ServerEndpoint; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.websocket.OnClose; +import jakarta.websocket.OnError; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; +import jakarta.websocket.server.PathParam; +import jakarta.websocket.server.ServerEndpoint; @ServerEndpoint("/chat/{username}") @ApplicationScoped diff --git a/integration-tests/websockets/src/test/java/io/quarkus/websockets/ChatTest.java b/integration-tests/websockets/src/test/java/io/quarkus/websockets/ChatTest.java index 9f81fdc9a52d2..7397573403223 100644 --- a/integration-tests/websockets/src/test/java/io/quarkus/websockets/ChatTest.java +++ b/integration-tests/websockets/src/test/java/io/quarkus/websockets/ChatTest.java @@ -4,11 +4,11 @@ import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; -import javax.websocket.ClientEndpoint; -import javax.websocket.ContainerProvider; -import javax.websocket.OnMessage; -import javax.websocket.OnOpen; -import javax.websocket.Session; +import jakarta.websocket.ClientEndpoint; +import jakarta.websocket.ContainerProvider; +import jakarta.websocket.OnMessage; +import jakarta.websocket.OnOpen; +import jakarta.websocket.Session; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -52,4 +52,4 @@ void message(String msg) { } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index a9d1c5c15d237..41a63a53fa543 100644 --- a/pom.xml +++ b/pom.xml @@ -78,7 +78,7 @@ 2.11.0 - 6.14.2 + 7.4.0 diff --git a/tcks/microprofile-config/pom.xml b/tcks/microprofile-config/pom.xml index e5be6fdaa9f31..4cff3b44d6181 100644 --- a/tcks/microprofile-config/pom.xml +++ b/tcks/microprofile-config/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Config - 2.0.1 + 3.0.1 diff --git a/tcks/microprofile-context-propagation/pom.xml b/tcks/microprofile-context-propagation/pom.xml index 4767eb4c8708f..ba66ff5c001a0 100644 --- a/tcks/microprofile-context-propagation/pom.xml +++ b/tcks/microprofile-context-propagation/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile Context Propagation - 1.2 + 1.3 diff --git a/tcks/microprofile-fault-tolerance/pom.xml b/tcks/microprofile-fault-tolerance/pom.xml index 0035bad6ad1f6..e85a7dd4e1707 100644 --- a/tcks/microprofile-fault-tolerance/pom.xml +++ b/tcks/microprofile-fault-tolerance/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Fault Tolerance - 3.0 + 4.0 diff --git a/tcks/microprofile-graphql/pom.xml b/tcks/microprofile-graphql/pom.xml index b1731e43372f1..7e7a6520b4291 100644 --- a/tcks/microprofile-graphql/pom.xml +++ b/tcks/microprofile-graphql/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile GraphQL - 1.1.0 + 2.0 diff --git a/tcks/microprofile-graphql/src/main/java/io/quarkus/tck/graphql/TestInterceptor.java b/tcks/microprofile-graphql/src/main/java/io/quarkus/tck/graphql/TestInterceptor.java index 3b2c4fa1bd9f7..88e5833b705d1 100644 --- a/tcks/microprofile-graphql/src/main/java/io/quarkus/tck/graphql/TestInterceptor.java +++ b/tcks/microprofile-graphql/src/main/java/io/quarkus/tck/graphql/TestInterceptor.java @@ -20,9 +20,9 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.json.Json; -import javax.json.JsonObject; -import javax.json.JsonReader; +import jakarta.json.Json; +import jakarta.json.JsonObject; +import jakarta.json.JsonReader; import org.eclipse.microprofile.graphql.tck.dynamic.ExecutionDynamicTest; import org.eclipse.microprofile.graphql.tck.dynamic.SchemaDynamicValidityTest; diff --git a/tcks/microprofile-health/pom.xml b/tcks/microprofile-health/pom.xml index 4724151badf5b..0e74561113514 100644 --- a/tcks/microprofile-health/pom.xml +++ b/tcks/microprofile-health/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Health - 3.1 + 4.0 diff --git a/tcks/microprofile-jwt/pom.xml b/tcks/microprofile-jwt/pom.xml index 6a603eb0ce49f..0c77c7768923f 100644 --- a/tcks/microprofile-jwt/pom.xml +++ b/tcks/microprofile-jwt/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile JWT - 1.2.2 + 2.0 diff --git a/tcks/microprofile-lra/pom.xml b/tcks/microprofile-lra/pom.xml index ff89ed367c6fd..0a68df979fa9c 100644 --- a/tcks/microprofile-lra/pom.xml +++ b/tcks/microprofile-lra/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile LRA - 1.0 + 2.0-RC1 diff --git a/tcks/microprofile-lra/src/main/java/io/quarkus/tck/lra/NarayanaLRARecovery.java b/tcks/microprofile-lra/src/main/java/io/quarkus/tck/lra/NarayanaLRARecovery.java index 7c3cd165d8c33..536cfb11589d3 100644 --- a/tcks/microprofile-lra/src/main/java/io/quarkus/tck/lra/NarayanaLRARecovery.java +++ b/tcks/microprofile-lra/src/main/java/io/quarkus/tck/lra/NarayanaLRARecovery.java @@ -26,11 +26,11 @@ import java.net.URI; -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.WebTarget; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.UriBuilder; +import jakarta.ws.rs.client.Client; +import jakarta.ws.rs.client.ClientBuilder; +import jakarta.ws.rs.client.WebTarget; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.UriBuilder; import org.eclipse.microprofile.lra.tck.service.spi.LRARecoveryService; import org.jboss.logging.Logger; diff --git a/tcks/microprofile-metrics/optional/pom.xml b/tcks/microprofile-metrics/optional/pom.xml index 4330e89439177..24b5627b4e5fe 100644 --- a/tcks/microprofile-metrics/optional/pom.xml +++ b/tcks/microprofile-metrics/optional/pom.xml @@ -64,8 +64,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api io.quarkus diff --git a/tcks/microprofile-metrics/pom.xml b/tcks/microprofile-metrics/pom.xml index 3143d9a964670..d4f43ccf44fe7 100644 --- a/tcks/microprofile-metrics/pom.xml +++ b/tcks/microprofile-metrics/pom.xml @@ -14,7 +14,7 @@ pom - 3.0.1 + 4.0.1 diff --git a/tcks/microprofile-metrics/rest/pom.xml b/tcks/microprofile-metrics/rest/pom.xml index 443f49df4ae93..2a300f5294483 100644 --- a/tcks/microprofile-metrics/rest/pom.xml +++ b/tcks/microprofile-metrics/rest/pom.xml @@ -62,8 +62,8 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/tcks/microprofile-openapi/pom.xml b/tcks/microprofile-openapi/pom.xml index 834843029ee21..6603cdeb1addd 100644 --- a/tcks/microprofile-openapi/pom.xml +++ b/tcks/microprofile-openapi/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile OpenAPI - 2.0.1 + 3.0 @@ -78,12 +78,12 @@ - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec + jakarta.ws.rs + jakarta.ws.rs-api jakarta.servlet diff --git a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ExceptionMapper.java b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ExceptionMapper.java index 1c4deb50345ed..aecc605891e1d 100644 --- a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ExceptionMapper.java +++ b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ExceptionMapper.java @@ -1,8 +1,8 @@ package io.quarkus.tck.opentracing; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.ext.Provider; /** * Temporary fix to catch exceptions thrown in JAX-RS endpoints @@ -11,7 +11,7 @@ * @author Pavol Loffay */ @Provider -public class ExceptionMapper implements javax.ws.rs.ext.ExceptionMapper { +public class ExceptionMapper implements jakarta.ws.rs.ext.ExceptionMapper { @Override public Response toResponse(RuntimeException exception) { diff --git a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/MockTracerProducer.java b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/MockTracerProducer.java index 3dd12ef522aca..37b2718d1acf9 100644 --- a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/MockTracerProducer.java +++ b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/MockTracerProducer.java @@ -1,12 +1,12 @@ package io.quarkus.tck.opentracing; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.Produces; -import javax.inject.Singleton; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Singleton; +import jakarta.interceptor.Interceptor; import io.opentracing.Tracer; import io.opentracing.mock.MockTracer; diff --git a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ResteasyClientTracingRegistrarProvider.java b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ResteasyClientTracingRegistrarProvider.java index 64b5c881a28ee..6ea23bcf766a5 100644 --- a/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ResteasyClientTracingRegistrarProvider.java +++ b/tcks/microprofile-opentracing/base/src/main/java/io/quarkus/tck/opentracing/ResteasyClientTracingRegistrarProvider.java @@ -4,8 +4,8 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import javax.enterprise.inject.spi.CDI; -import javax.ws.rs.client.ClientBuilder; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.ws.rs.client.ClientBuilder; import org.eclipse.microprofile.opentracing.ClientTracingRegistrarProvider; import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; diff --git a/tcks/microprofile-opentracing/pom.xml b/tcks/microprofile-opentracing/pom.xml index 500e04e84704d..9dc3eae41b770 100644 --- a/tcks/microprofile-opentracing/pom.xml +++ b/tcks/microprofile-opentracing/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile OpenTracing Parent - 2.0 + 3.0 diff --git a/tcks/microprofile-reactive-messaging/pom.xml b/tcks/microprofile-reactive-messaging/pom.xml index 810d7a597cf13..3f114a2c1c5ec 100644 --- a/tcks/microprofile-reactive-messaging/pom.xml +++ b/tcks/microprofile-reactive-messaging/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile Reactive Messaging - 2.0.1 + 3.0 diff --git a/tcks/microprofile-rest-client-reactive/pom.xml b/tcks/microprofile-rest-client-reactive/pom.xml index ff4b49466ab32..055d8e4916cc4 100644 --- a/tcks/microprofile-rest-client-reactive/pom.xml +++ b/tcks/microprofile-rest-client-reactive/pom.xml @@ -15,7 +15,7 @@ 8766 - 2.0 + 3.0 true false - javax.enterprise.context.Dependent + jakarta.enterprise.context.Dependent true true true diff --git a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java index 4460e7b62a9ea..05089bda68688 100644 --- a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java +++ b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java @@ -4,7 +4,7 @@ import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.eclipse.microprofile.rest.client.tck.providers.ReturnWithURLRequestFilter; diff --git a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java index 236ff6c8cde3a..17ebb8fec0725 100644 --- a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java +++ b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.tck.restclient.cdi; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java index f7554a4a3d945..cebcc6496184d 100644 --- a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java +++ b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Target({ METHOD, TYPE }) diff --git a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java index 2437dfdebd51f..795a9f9b52ddb 100644 --- a/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java +++ b/tcks/microprofile-rest-client-reactive/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java @@ -2,10 +2,10 @@ import java.lang.reflect.Method; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Loggable @Interceptor diff --git a/tcks/microprofile-rest-client/pom.xml b/tcks/microprofile-rest-client/pom.xml index f3d227a190adb..ef817cdcbb60f 100644 --- a/tcks/microprofile-rest-client/pom.xml +++ b/tcks/microprofile-rest-client/pom.xml @@ -14,7 +14,7 @@ Quarkus - TCK - MicroProfile REST Client - 2.0 + 3.0 + org.eclipse.microprofile.rest.client.tck.timeout.TimeoutBuilderIndependentOfMPConfigTest + org.eclipse.microprofile.rest.client.tck.timeout.TimeoutTest + org.eclipse.microprofile.rest.client.tck.timeout.TimeoutViaMPConfigTest + org.eclipse.microprofile.rest.client.tck.timeout.TimeoutViaMPConfigWithConfigKeyTest org.eclipse.microprofile.rest.client.tck.cditests.HasConversationScopeTest diff --git a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java index 4460e7b62a9ea..05089bda68688 100644 --- a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java +++ b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/CDIInterceptorTest.java @@ -4,7 +4,7 @@ import static org.testng.Assert.assertNull; import static org.testng.Assert.assertTrue; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.eclipse.microprofile.rest.client.inject.RestClient; import org.eclipse.microprofile.rest.client.tck.providers.ReturnWithURLRequestFilter; diff --git a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java index 236ff6c8cde3a..17ebb8fec0725 100644 --- a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java +++ b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/ClientWithURIAndInterceptor.java @@ -1,7 +1,7 @@ package io.quarkus.tck.restclient.cdi; -import javax.ws.rs.GET; -import javax.ws.rs.Path; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; diff --git a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java index f7554a4a3d945..cebcc6496184d 100644 --- a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java +++ b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/Loggable.java @@ -7,7 +7,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; @InterceptorBinding @Target({ METHOD, TYPE }) diff --git a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java index 2437dfdebd51f..795a9f9b52ddb 100644 --- a/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java +++ b/tcks/microprofile-rest-client/src/test/java/io/quarkus/tck/restclient/cdi/LoggableInterceptor.java @@ -2,10 +2,10 @@ import java.lang.reflect.Method; -import javax.annotation.Priority; -import javax.interceptor.AroundInvoke; -import javax.interceptor.Interceptor; -import javax.interceptor.InvocationContext; +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; @Loggable @Interceptor diff --git a/tcks/resteasy-reactive/pom.xml b/tcks/resteasy-reactive/pom.xml index e834a1cda6d58..53c51f2e962a0 100644 --- a/tcks/resteasy-reactive/pom.xml +++ b/tcks/resteasy-reactive/pom.xml @@ -17,7 +17,7 @@ - 67e8e59456a5c2cdf3370f7ed38f7f6b576177b9 + 34795c1d2159c420298916d640df239f249f4935 ${skipTests} ${exec.skip} diff --git a/test-framework/arquillian/src/main/java/io/quarkus/arquillian/InjectionEnricher.java b/test-framework/arquillian/src/main/java/io/quarkus/arquillian/InjectionEnricher.java index cf64dd40a206d..79c816d4c59f6 100644 --- a/test-framework/arquillian/src/main/java/io/quarkus/arquillian/InjectionEnricher.java +++ b/test-framework/arquillian/src/main/java/io/quarkus/arquillian/InjectionEnricher.java @@ -11,8 +11,8 @@ import java.util.function.BiFunction; import java.util.function.Supplier; -import javax.enterprise.context.spi.CreationalContext; -import javax.enterprise.inject.spi.BeanManager; +import jakarta.enterprise.context.spi.CreationalContext; +import jakarta.enterprise.inject.spi.BeanManager; import org.jboss.arquillian.container.spi.context.annotation.DeploymentScoped; import org.jboss.arquillian.core.api.InstanceProducer; diff --git a/test-framework/arquillian/src/main/java/io/quarkus/arquillian/MethodParameterInjectionPoint.java b/test-framework/arquillian/src/main/java/io/quarkus/arquillian/MethodParameterInjectionPoint.java index 82ac304c32d46..b55c4d9f1fefc 100644 --- a/test-framework/arquillian/src/main/java/io/quarkus/arquillian/MethodParameterInjectionPoint.java +++ b/test-framework/arquillian/src/main/java/io/quarkus/arquillian/MethodParameterInjectionPoint.java @@ -8,13 +8,13 @@ import java.util.HashSet; import java.util.Set; -import javax.enterprise.inject.Default; -import javax.enterprise.inject.spi.Annotated; -import javax.enterprise.inject.spi.AnnotatedCallable; -import javax.enterprise.inject.spi.AnnotatedParameter; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.InjectionPoint; -import javax.inject.Qualifier; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.spi.Annotated; +import jakarta.enterprise.inject.spi.AnnotatedCallable; +import jakarta.enterprise.inject.spi.AnnotatedParameter; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.InjectionPoint; +import jakarta.inject.Qualifier; public class MethodParameterInjectionPoint implements InjectionPoint { private Method method; diff --git a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/Foo.java b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/Foo.java index 08504edd18cfe..791f9db977665 100644 --- a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/Foo.java +++ b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/Foo.java @@ -1,8 +1,8 @@ package io.quarkus.arquillian.test; -import javax.enterprise.context.Dependent; +import jakarta.enterprise.context.Dependent; @Dependent public class Foo { -} \ No newline at end of file +} diff --git a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/MethodParameterInjectionTest.java b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/MethodParameterInjectionTest.java index ed2ddd25771ca..594a4c54f3be5 100644 --- a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/MethodParameterInjectionTest.java +++ b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/MethodParameterInjectionTest.java @@ -11,11 +11,11 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.inject.Qualifier; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Qualifier; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit5.ArquillianExtension; diff --git a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleClass.java b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleClass.java index 92a180d719bf0..532bd2f101f2e 100644 --- a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleClass.java +++ b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleClass.java @@ -1,7 +1,7 @@ package io.quarkus.arquillian.test; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; @@ -14,4 +14,4 @@ public class SimpleClass { @Inject Foo foo; -} \ No newline at end of file +} diff --git a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleTest.java b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleTest.java index 3c2933e5bd560..6a3c190799d64 100644 --- a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleTest.java +++ b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleTest.java @@ -5,8 +5,8 @@ import java.util.concurrent.atomic.AtomicInteger; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.jboss.arquillian.container.test.api.Deployment; diff --git a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleWarTest.java b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleWarTest.java index f23bf69fc6275..6d89fe0a12ebd 100644 --- a/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleWarTest.java +++ b/test-framework/arquillian/src/test/java/io/quarkus/arquillian/test/SimpleWarTest.java @@ -2,7 +2,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.junit5.ArquillianExtension; diff --git a/test-framework/common/src/main/java/io/quarkus/test/Mock.java b/test-framework/common/src/main/java/io/quarkus/test/Mock.java index 9476308555b01..48e27538e1bd9 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/Mock.java +++ b/test-framework/common/src/main/java/io/quarkus/test/Mock.java @@ -8,10 +8,10 @@ import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.annotation.Priority; -import javax.enterprise.context.Dependent; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Stereotype; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.Dependent; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Stereotype; /** * The built-in stereotype intended for use with mock beans injected in tests. diff --git a/test-framework/common/src/main/java/io/quarkus/test/TestReactiveTransaction.java b/test-framework/common/src/main/java/io/quarkus/test/TestReactiveTransaction.java index 2ef6345b48f91..c9f6ae6c0f1e1 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/TestReactiveTransaction.java +++ b/test-framework/common/src/main/java/io/quarkus/test/TestReactiveTransaction.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * Indicates that this method should be run in a rollback only reactive transaction. diff --git a/test-framework/common/src/main/java/io/quarkus/test/TestTransaction.java b/test-framework/common/src/main/java/io/quarkus/test/TestTransaction.java index 2a729cd560a01..f3819436ef888 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/TestTransaction.java +++ b/test-framework/common/src/main/java/io/quarkus/test/TestTransaction.java @@ -5,7 +5,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import javax.interceptor.InterceptorBinding; +import jakarta.interceptor.InterceptorBinding; /** * Indicates that this method should be run in a rollback only JTA transaction. diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/TestInstantiator.java b/test-framework/common/src/main/java/io/quarkus/test/common/TestInstantiator.java index 4fa1e92a3a19d..59215a6250827 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/TestInstantiator.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/TestInstantiator.java @@ -15,7 +15,7 @@ public static Object instantiateTest(Class testClass, ClassLoader classLoader try { Class actualTestClass = Class.forName(testClass.getName(), true, Thread.currentThread().getContextClassLoader()); - Class cdi = Thread.currentThread().getContextClassLoader().loadClass("javax.enterprise.inject.spi.CDI"); + Class cdi = Thread.currentThread().getContextClassLoader().loadClass("jakarta.enterprise.inject.spi.CDI"); Object instance = cdi.getMethod("current").invoke(null); Method selectMethod = cdi.getMethod("select", Class.class, Annotation[].class); Object cdiInstance = selectMethod.invoke(instance, actualTestClass, new Annotation[0]); diff --git a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java index 2284f19120cf7..f2714e742faf8 100644 --- a/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java +++ b/test-framework/junit5-internal/src/main/java/io/quarkus/test/QuarkusProdModeTest.java @@ -37,7 +37,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.inject.Inject; +import jakarta.inject.Inject; import org.jboss.logmanager.Logger; import org.jboss.shrinkwrap.api.ShrinkWrap; diff --git a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/CreateMockitoMocksCallback.java b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/CreateMockitoMocksCallback.java index 2bf06b2c55ce8..d54dae369115f 100644 --- a/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/CreateMockitoMocksCallback.java +++ b/test-framework/junit5-mockito/src/main/java/io/quarkus/test/junit/mockito/internal/CreateMockitoMocksCallback.java @@ -9,9 +9,9 @@ import java.util.Optional; import java.util.Set; -import javax.enterprise.inject.spi.Bean; -import javax.enterprise.inject.spi.BeanManager; -import javax.inject.Qualifier; +import jakarta.enterprise.inject.spi.Bean; +import jakarta.enterprise.inject.spi.BeanManager; +import jakarta.inject.Qualifier; import org.mockito.Mockito; diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/AbstractJvmQuarkusTestExtension.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/AbstractJvmQuarkusTestExtension.java index 5c73ff7f00568..af079e89bb715 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/AbstractJvmQuarkusTestExtension.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/AbstractJvmQuarkusTestExtension.java @@ -16,7 +16,7 @@ import java.util.function.Consumer; import java.util.stream.Collectors; -import javax.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Alternative; import org.jboss.jandex.Index; import org.junit.jupiter.api.extension.ExtensionContext; diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java index f3aa07dc40270..be8c2323e5069 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java @@ -29,8 +29,8 @@ import java.util.function.BiConsumer; import java.util.stream.Collectors; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; import org.apache.commons.lang3.RandomStringUtils; import org.eclipse.microprofile.config.Config; diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java index 06fa8a6951574..c1878377cbb70 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusMock.java @@ -2,16 +2,16 @@ import java.lang.annotation.Annotation; -import javax.enterprise.inject.spi.CDI; -import javax.enterprise.util.TypeLiteral; +import jakarta.enterprise.inject.spi.CDI; +import jakarta.enterprise.util.TypeLiteral; import org.junit.jupiter.api.TestInstance; /** * Utility class that can be used to mock CDI normal scoped beans. * - * This includes beans that are {@link javax.enterprise.context.ApplicationScoped} and - * {@link javax.enterprise.context.RequestScoped}. + * This includes beans that are {@link jakarta.enterprise.context.ApplicationScoped} and + * {@link jakarta.enterprise.context.RequestScoped}. * * To use this inject the bean into a test, and then invoke the mock * method with your mock. diff --git a/test-framework/keycloak-server/pom.xml b/test-framework/keycloak-server/pom.xml index 237e1ca9c2203..406071e7fa18b 100644 --- a/test-framework/keycloak-server/pom.xml +++ b/test-framework/keycloak-server/pom.xml @@ -20,6 +20,12 @@ org.keycloak keycloak-core + + + com.sun.activation + jakarta.activation + + org.testcontainers @@ -35,6 +41,10 @@ + + org.eclipse.angus + angus-activation + io.quarkus quarkus-test-common diff --git a/test-framework/kubernetes-client/pom.xml b/test-framework/kubernetes-client/pom.xml index ad83c16dba30f..f05ef9e662662 100644 --- a/test-framework/kubernetes-client/pom.xml +++ b/test-framework/kubernetes-client/pom.xml @@ -62,8 +62,8 @@ jakarta.annotation-api - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/test-framework/oidc-server/src/main/java/io/quarkus/test/oidc/server/OidcWiremockTestResource.java b/test-framework/oidc-server/src/main/java/io/quarkus/test/oidc/server/OidcWiremockTestResource.java index 88bc2ec98a50a..5a2bd28f60ace 100644 --- a/test-framework/oidc-server/src/main/java/io/quarkus/test/oidc/server/OidcWiremockTestResource.java +++ b/test-framework/oidc-server/src/main/java/io/quarkus/test/oidc/server/OidcWiremockTestResource.java @@ -17,8 +17,8 @@ import java.util.Map; import java.util.Set; -import javax.json.Json; -import javax.json.JsonObject; +import jakarta.json.Json; +import jakarta.json.JsonObject; import org.jboss.logging.Logger; import org.jose4j.keys.X509Util; diff --git a/test-framework/openshift-client/pom.xml b/test-framework/openshift-client/pom.xml index 734f9725baeb3..a17483675c3e6 100644 --- a/test-framework/openshift-client/pom.xml +++ b/test-framework/openshift-client/pom.xml @@ -52,8 +52,8 @@ jakarta.annotation-api - org.jboss.spec.javax.xml.bind - jboss-jaxb-api_2.3_spec + jakarta.xml.bind + jakarta.xml.bind-api diff --git a/test-framework/security-jwt/src/main/java/io/quarkus/test/security/jwt/JwtTestSecurityIdentityAugmentorProducer.java b/test-framework/security-jwt/src/main/java/io/quarkus/test/security/jwt/JwtTestSecurityIdentityAugmentorProducer.java index 2685c86ca5b56..8b4c84f120304 100644 --- a/test-framework/security-jwt/src/main/java/io/quarkus/test/security/jwt/JwtTestSecurityIdentityAugmentorProducer.java +++ b/test-framework/security-jwt/src/main/java/io/quarkus/test/security/jwt/JwtTestSecurityIdentityAugmentorProducer.java @@ -6,8 +6,8 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; import org.eclipse.microprofile.jwt.Claims; import org.eclipse.microprofile.jwt.JsonWebToken; diff --git a/test-framework/security-oidc/src/main/java/io/quarkus/test/security/oidc/OidcTestSecurityIdentityAugmentorProducer.java b/test-framework/security-oidc/src/main/java/io/quarkus/test/security/oidc/OidcTestSecurityIdentityAugmentorProducer.java index 41be295b3d560..accf1ce2042f3 100644 --- a/test-framework/security-oidc/src/main/java/io/quarkus/test/security/oidc/OidcTestSecurityIdentityAugmentorProducer.java +++ b/test-framework/security-oidc/src/main/java/io/quarkus/test/security/oidc/OidcTestSecurityIdentityAugmentorProducer.java @@ -7,12 +7,12 @@ import java.util.UUID; import java.util.stream.Collectors; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.json.Json; -import javax.json.JsonObjectBuilder; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.json.Json; +import jakarta.json.JsonObjectBuilder; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.jwt.Claims; diff --git a/test-framework/security/src/main/java/io/quarkus/test/security/QuarkusSecurityTestExtension.java b/test-framework/security/src/main/java/io/quarkus/test/security/QuarkusSecurityTestExtension.java index a2f773fb6de88..d119fc4a4b2c6 100644 --- a/test-framework/security/src/main/java/io/quarkus/test/security/QuarkusSecurityTestExtension.java +++ b/test-framework/security/src/main/java/io/quarkus/test/security/QuarkusSecurityTestExtension.java @@ -7,8 +7,8 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.enterprise.inject.Instance; -import javax.enterprise.inject.spi.CDI; +import jakarta.enterprise.inject.Instance; +import jakarta.enterprise.inject.spi.CDI; import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.security.runtime.QuarkusPrincipal; diff --git a/test-framework/security/src/main/java/io/quarkus/test/security/TestAuthController.java b/test-framework/security/src/main/java/io/quarkus/test/security/TestAuthController.java index f9960aec31103..e58f41b38b47a 100644 --- a/test-framework/security/src/main/java/io/quarkus/test/security/TestAuthController.java +++ b/test-framework/security/src/main/java/io/quarkus/test/security/TestAuthController.java @@ -1,10 +1,10 @@ package io.quarkus.test.security; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Alternative; -import javax.interceptor.Interceptor; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.interceptor.Interceptor; import io.quarkus.runtime.LaunchMode; import io.quarkus.security.spi.runtime.AuthorizationController; diff --git a/test-framework/security/src/main/java/io/quarkus/test/security/TestHttpAuthenticationMechanism.java b/test-framework/security/src/main/java/io/quarkus/test/security/TestHttpAuthenticationMechanism.java index 2e77b2c4b7882..a716c933e9b67 100644 --- a/test-framework/security/src/main/java/io/quarkus/test/security/TestHttpAuthenticationMechanism.java +++ b/test-framework/security/src/main/java/io/quarkus/test/security/TestHttpAuthenticationMechanism.java @@ -3,9 +3,9 @@ import java.util.Collections; import java.util.Set; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import io.quarkus.runtime.LaunchMode; import io.quarkus.security.identity.IdentityProviderManager; diff --git a/test-framework/security/src/main/java/io/quarkus/test/security/TestIdentityAssociation.java b/test-framework/security/src/main/java/io/quarkus/test/security/TestIdentityAssociation.java index 338fdc0cde875..85dfe76543e3b 100644 --- a/test-framework/security/src/main/java/io/quarkus/test/security/TestIdentityAssociation.java +++ b/test-framework/security/src/main/java/io/quarkus/test/security/TestIdentityAssociation.java @@ -1,12 +1,12 @@ package io.quarkus.test.security; -import javax.annotation.PostConstruct; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Alternative; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import io.quarkus.runtime.LaunchMode; import io.quarkus.security.identity.SecurityIdentity; diff --git a/test-framework/security/src/main/java/io/quarkus/test/security/TestPrincipalProducer.java b/test-framework/security/src/main/java/io/quarkus/test/security/TestPrincipalProducer.java index 5de64e970c770..fd11e5ca10487 100644 --- a/test-framework/security/src/main/java/io/quarkus/test/security/TestPrincipalProducer.java +++ b/test-framework/security/src/main/java/io/quarkus/test/security/TestPrincipalProducer.java @@ -2,13 +2,13 @@ import java.security.Principal; -import javax.annotation.Priority; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Alternative; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.interceptor.Interceptor; +import jakarta.annotation.Priority; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Alternative; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.interceptor.Interceptor; import io.quarkus.security.identity.SecurityIdentity; From f5aad1d38b68e324f4d13a05b50bbf10017a6103 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 3 Feb 2023 19:00:44 +0100 Subject: [PATCH 174/250] Remove integration-tests/kafka-avro - see kafka-avro-apicurio2 instead --- integration-tests/kafka-avro/pom.xml | 348 ------------------ .../kafka-avro/src/main/avro/pet.avsc | 15 - .../quarkus/it/kafka/avro/AvroEndpoint.java | 71 ---- .../it/kafka/avro/AvroKafkaCreator.java | 154 -------- .../src/main/resources/application.properties | 10 - ...pecificRecordJacksonSerializationTest.java | 36 -- .../KafkaAndSchemaRegistryTestResource.java | 40 -- .../java/io/quarkus/it/kafka/KafkaAvroIT.java | 10 - .../io/quarkus/it/kafka/KafkaAvroTest.java | 137 ------- integration-tests/pom.xml | 1 - 10 files changed, 822 deletions(-) delete mode 100644 integration-tests/kafka-avro/pom.xml delete mode 100644 integration-tests/kafka-avro/src/main/avro/pet.avsc delete mode 100644 integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java delete mode 100644 integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java delete mode 100644 integration-tests/kafka-avro/src/main/resources/application.properties delete mode 100644 integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java delete mode 100644 integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAndSchemaRegistryTestResource.java delete mode 100644 integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroIT.java delete mode 100644 integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java diff --git a/integration-tests/kafka-avro/pom.xml b/integration-tests/kafka-avro/pom.xml deleted file mode 100644 index 58c6e3ae90a99..0000000000000 --- a/integration-tests/kafka-avro/pom.xml +++ /dev/null @@ -1,348 +0,0 @@ - - - - quarkus-integration-tests-parent - io.quarkus - 999-SNAPSHOT - - 4.0.0 - - quarkus-integration-test-kafka-avro - Quarkus - Integration Tests - Kafka Avro - The Apache Kafka Avro integration tests module - - - 1.2.2.Final - - - - - io.quarkus - quarkus-integration-test-class-transformer - - - io.quarkus - quarkus-integration-test-shared-library - - - - - io.quarkus - quarkus-resteasy - - - io.quarkus - quarkus-resteasy-jackson - - - - - io.quarkus - quarkus-kafka-client - - - - - io.quarkus - quarkus-confluent-registry-avro - - - - - io.quarkus - quarkus-avro - - - - - io.quarkus - quarkus-rest-client - - - - - io.confluent - kafka-avro-serializer - 5.5.0 - - - io.swagger - swagger-core - - - jakarta.xml.bind - jakarta.xml.bind-api - - - jakarta.ws.rs - jakarta.ws.rs-api - - - - jakarta.el - jakarta.el-api - - - - - - io.apicurio - apicurio-registry-utils-serde - ${apicurio.version} - - - io.apicurio - apicurio-registry-client - - - org.jboss.spec.javax.interceptor - jboss-interceptors-api_1.2_spec - - - jakarta.activation - jakarta.activation-api - - - com.worldturner.medeia - medeia-validator-jackson - - - - - io.apicurio - apicurio-registry-client - ${apicurio.version} - - - org.jboss.spec.javax.interceptor - jboss-interceptors-api_1.2_spec - - - jakarta.activation - jakarta.activation-api - - - com.worldturner.medeia - medeia-validator-jackson - - - org.jboss.spec.javax.ws.rs - jboss-jaxrs-api_2.1_spec - - - - - - com.google.guava - guava - 31.1-jre - - - org.checkerframework - checker-qual - - - - - - - io.quarkus - quarkus-test-kafka-companion - test - - - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - - - jakarta.xml.bind - jakarta.xml.bind-api - - - - - io.strimzi - strimzi-test-container - test - - - org.testcontainers - testcontainers - test - - - - - io.quarkus - quarkus-avro-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-integration-test-class-transformer-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-kafka-client-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-confluent-registry-avro-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-rest-client-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-resteasy-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-resteasy-jackson-deployment - ${project.version} - pom - test - - - * - * - - - - - - - - confluent - https://packages.confluent.io/maven/ - - false - - - - - - - - io.quarkus - quarkus-maven-plugin - - - - generate-code - build - - - - - - - maven-failsafe-plugin - - true - - - - - maven-surefire-plugin - - true - - - - - - - - test-kafka - - - test-containers - - - - - - maven-surefire-plugin - - false - - - - maven-failsafe-plugin - - false - - - - - - - - diff --git a/integration-tests/kafka-avro/src/main/avro/pet.avsc b/integration-tests/kafka-avro/src/main/avro/pet.avsc deleted file mode 100644 index ab16e83ff438c..0000000000000 --- a/integration-tests/kafka-avro/src/main/avro/pet.avsc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "namespace": "io.quarkus.it.kafka.avro", - "type": "record", - "name": "Pet", - "fields": [ - { - "name": "name", - "type": "string" - }, - { - "name": "color", - "type": "string" - } - ] -} \ No newline at end of file diff --git a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java deleted file mode 100644 index fc8148471aafa..0000000000000 --- a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroEndpoint.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.quarkus.it.kafka.avro; - -import java.time.Duration; - -import jakarta.inject.Inject; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.POST; -import jakarta.ws.rs.Path; - -import org.apache.kafka.clients.consumer.ConsumerRecord; -import org.apache.kafka.clients.consumer.ConsumerRecords; -import org.apache.kafka.clients.consumer.KafkaConsumer; -import org.apache.kafka.clients.producer.KafkaProducer; -import org.apache.kafka.clients.producer.ProducerRecord; - -import io.vertx.core.json.JsonObject; - -/** - * Endpoint to test the Avro support - */ -@Path("/avro") -public class AvroEndpoint { - - @Inject - AvroKafkaCreator creator; - - @GET - @Path("/confluent") - public JsonObject getConfluent() { - return get(creator.createConfluentConsumer("test-avro-confluent-consumer", "test-avro-confluent-consumer")); - } - - @POST - @Path("/confluent") - public void sendConfluent(Pet pet) { - KafkaProducer p = creator.createConfluentProducer("test-avro-confluent"); - send(p, pet, "test-avro-confluent-producer"); - } - - @GET - @Path("/apicurio") - public JsonObject getApicurio() { - return get(creator.createApicurioConsumer("test-avro-apicurio-consumer", "test-avro-apicurio-consumer")); - } - - @POST - @Path("/apicurio") - public void sendApicurio(Pet pet) { - KafkaProducer p = creator.createApicurioProducer("test-avro-apicurio"); - send(p, pet, "test-avro-apicurio-producer"); - } - - private JsonObject get(KafkaConsumer consumer) { - final ConsumerRecords records = consumer.poll(Duration.ofMillis(60000)); - if (records.isEmpty()) { - return null; - } - ConsumerRecord consumerRecord = records.iterator().next(); - Pet p = consumerRecord.value(); - // We cannot serialize the returned Pet directly, it contains non-serializable object such as the schema. - JsonObject result = new JsonObject(); - result.put("name", p.getName()); - result.put("color", p.getColor()); - return result; - } - - private void send(KafkaProducer producer, Pet pet, String topic) { - producer.send(new ProducerRecord<>(topic, 0, pet)); - producer.flush(); - } -} diff --git a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java b/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java deleted file mode 100644 index e0bccff520cb1..0000000000000 --- a/integration-tests/kafka-avro/src/main/java/io/quarkus/it/kafka/avro/AvroKafkaCreator.java +++ /dev/null @@ -1,154 +0,0 @@ -package io.quarkus.it.kafka.avro; - -import java.util.Collections; -import java.util.Properties; -import java.util.UUID; - -import jakarta.enterprise.context.ApplicationScoped; - -import org.apache.kafka.clients.consumer.ConsumerConfig; -import org.apache.kafka.clients.consumer.KafkaConsumer; -import org.apache.kafka.clients.producer.KafkaProducer; -import org.apache.kafka.clients.producer.ProducerConfig; -import org.apache.kafka.common.serialization.IntegerDeserializer; -import org.apache.kafka.common.serialization.IntegerSerializer; -import org.eclipse.microprofile.config.inject.ConfigProperty; - -import io.apicurio.registry.utils.serde.AbstractKafkaSerDe; -import io.apicurio.registry.utils.serde.AbstractKafkaSerializer; -import io.apicurio.registry.utils.serde.AvroKafkaDeserializer; -import io.apicurio.registry.utils.serde.AvroKafkaSerializer; -import io.apicurio.registry.utils.serde.avro.AvroDatumProvider; -import io.apicurio.registry.utils.serde.avro.DefaultAvroDatumProvider; -import io.apicurio.registry.utils.serde.strategy.GetOrCreateIdStrategy; -import io.confluent.kafka.serializers.AbstractKafkaSchemaSerDeConfig; -import io.confluent.kafka.serializers.KafkaAvroDeserializer; -import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig; -import io.confluent.kafka.serializers.KafkaAvroSerializer; - -/** - * Create Avro Kafka Consumers and Producers - */ -@ApplicationScoped -public class AvroKafkaCreator { - - @ConfigProperty(name = "kafka.bootstrap.servers") - String bootstrap; - @ConfigProperty(name = "schema.url.confluent") - String confluent; - @ConfigProperty(name = "schema.url.apicurio") - String apicurio; - - public KafkaConsumer createConfluentConsumer(String groupdIdConfig, String subscribtionName) { - return createConfluentConsumer(bootstrap, confluent, groupdIdConfig, subscribtionName); - } - - public KafkaProducer createConfluentProducer(String clientId) { - return createConfluentProducer(bootstrap, confluent, clientId); - } - - public KafkaConsumer createApicurioConsumer(String groupdIdConfig, String subscribtionName) { - return createApicurioConsumer(bootstrap, apicurio, groupdIdConfig, subscribtionName); - } - - public KafkaProducer createApicurioProducer(String clientId) { - return createApicurioProducer(bootstrap, apicurio, clientId); - } - - public static KafkaConsumer createConfluentConsumer(String bootstrap, String confluent, - String groupdIdConfig, String subscribtionName) { - Properties p = getConfluentConsumerProperties(bootstrap, confluent, groupdIdConfig); - return createConsumer(p, subscribtionName); - } - - public static KafkaConsumer createApicurioConsumer(String bootstrap, String apicurio, - String groupdIdConfig, String subscribtionName) { - Properties p = getApicurioConsumerProperties(bootstrap, apicurio, groupdIdConfig); - return createConsumer(p, subscribtionName); - } - - public static KafkaProducer createConfluentProducer(String bootstrap, String confluent, - String clientId) { - Properties p = getConfluentProducerProperties(bootstrap, confluent, clientId); - return createProducer(p); - } - - public static KafkaProducer createApicurioProducer(String bootstrap, String apicurio, - String clientId) { - Properties p = getApicurioProducerProperties(bootstrap, apicurio, clientId); - return createProducer(p); - } - - private static KafkaConsumer createConsumer(Properties props, String subscribtionName) { - if (!props.containsKey(ConsumerConfig.CLIENT_ID_CONFIG)) { - props.put(ConsumerConfig.CLIENT_ID_CONFIG, UUID.randomUUID().toString()); - } - KafkaConsumer consumer = new KafkaConsumer<>(props); - consumer.subscribe(Collections.singletonList(subscribtionName)); - return consumer; - } - - private static KafkaProducer createProducer(Properties props) { - if (!props.containsKey(ProducerConfig.CLIENT_ID_CONFIG)) { - props.put(ProducerConfig.CLIENT_ID_CONFIG, UUID.randomUUID().toString()); - } - return new KafkaProducer<>(props); - } - - private static Properties getConfluentConsumerProperties(String bootstrap, String confluent, - String groupdIdConfig) { - Properties props = getGenericConsumerProperties(bootstrap, groupdIdConfig); - props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, KafkaAvroDeserializer.class.getName()); - props.put(AbstractKafkaSchemaSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG, confluent); - props.put(KafkaAvroDeserializerConfig.SPECIFIC_AVRO_READER_CONFIG, true); - return props; - } - - public static Properties getApicurioConsumerProperties(String bootstrap, String apicurio, String groupdIdConfig) { - Properties props = getGenericConsumerProperties(bootstrap, groupdIdConfig); - props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, AvroKafkaDeserializer.class.getName()); - props.put(AbstractKafkaSerDe.REGISTRY_URL_CONFIG_PARAM, apicurio); - // this is a workaround for Apicurio Registry 1.2.2.Final bug: if `avro-datum-provider` - // isn't set to `DefaultAvroDatumProvider` explicitly, `use-specific-avro-reader` isn't processed - props.put(AvroDatumProvider.REGISTRY_AVRO_DATUM_PROVIDER_CONFIG_PARAM, - DefaultAvroDatumProvider.class.getName()); - props.put(AvroDatumProvider.REGISTRY_USE_SPECIFIC_AVRO_READER_CONFIG_PARAM, true); - return props; - } - - private static Properties getGenericConsumerProperties(String bootstrap, String groupdIdConfig) { - Properties props = new Properties(); - props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrap); - props.put(ConsumerConfig.GROUP_ID_CONFIG, groupdIdConfig); - props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, IntegerDeserializer.class.getName()); - props.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, "true"); - props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest"); - props.put(ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG, "1000"); - return props; - } - - private static Properties getConfluentProducerProperties(String bootstrap, String confluent, String clientId) { - Properties props = getGenericProducerProperties(bootstrap, clientId); - props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, KafkaAvroSerializer.class.getName()); - props.put(AbstractKafkaSchemaSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG, confluent); - return props; - } - - private static Properties getApicurioProducerProperties(String bootstrap, String apicurio, String clientId) { - Properties props = getGenericProducerProperties(bootstrap, clientId); - props.put(ProducerConfig.ACKS_CONFIG, "all"); - props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, AvroKafkaSerializer.class.getName()); - props.put(AbstractKafkaSerDe.REGISTRY_URL_CONFIG_PARAM, apicurio); - props.put(AbstractKafkaSerializer.REGISTRY_GLOBAL_ID_STRATEGY_CONFIG_PARAM, - GetOrCreateIdStrategy.class.getName()); - return props; - } - - private static Properties getGenericProducerProperties(String bootstrap, String clientId) { - Properties props = new Properties(); - props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrap); - props.put(ProducerConfig.CLIENT_ID_CONFIG, clientId); - props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, IntegerSerializer.class.getName()); - return props; - } -} diff --git a/integration-tests/kafka-avro/src/main/resources/application.properties b/integration-tests/kafka-avro/src/main/resources/application.properties deleted file mode 100644 index c1b0831aa2f29..0000000000000 --- a/integration-tests/kafka-avro/src/main/resources/application.properties +++ /dev/null @@ -1,10 +0,0 @@ -quarkus.log.category.kafka.level=WARN -quarkus.log.category.\"org.apache.kafka\".level=WARN -quarkus.log.category.\"org.apache.zookeeper\".level=WARN - -# enable health check -quarkus.kafka.health.enabled=true - -# using QuarkusTestResourceLifecycleManager in this test -quarkus.kafka.devservices.enabled=false -quarkus.apicurio-registry.devservices.enabled=false diff --git a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java deleted file mode 100644 index 8b4ff31181c2a..0000000000000 --- a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/AvroSpecificRecordJacksonSerializationTest.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.quarkus.it.kafka; - -import jakarta.inject.Inject; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; - -import io.quarkus.it.kafka.avro.Pet; -import io.quarkus.test.junit.QuarkusTest; - -/** - * This test verifies that the Avro classes can be serialized using Jackson. - * By default, they can't as the Avro class contains non-serializable fields. - * - * There is a custom serializer registered explicitly that allow the serialization. - */ -@QuarkusTest -public class AvroSpecificRecordJacksonSerializationTest { - - @Inject - ObjectMapper mapper; - - @Test - void testSerialization() throws JsonProcessingException { - Assertions.assertTrue(mapper.getRegisteredModuleIds().contains("AvroSpecificRecordModule")); - - Pet pet = new Pet("roxanne", "gray"); - String s = mapper.writer().writeValueAsString(pet); - // The serializer preserves the order of the field. - Assertions.assertEquals(s, "{\"name\":\"roxanne\",\"color\":\"gray\"}"); - } - -} diff --git a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAndSchemaRegistryTestResource.java b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAndSchemaRegistryTestResource.java deleted file mode 100644 index ef247aad563e5..0000000000000 --- a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAndSchemaRegistryTestResource.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.quarkus.it.kafka; - -import java.util.HashMap; -import java.util.Map; - -import org.testcontainers.containers.GenericContainer; - -import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; - -public class KafkaAndSchemaRegistryTestResource implements QuarkusTestResourceLifecycleManager { - - private static GenericContainer registry; - - public static String getConfluentSchemaRegistryUrl() { - return "http://" + registry.getHost() + ":" + registry.getMappedPort(8080) + "/api/ccompat"; - } - - public static String getApicurioSchemaRegistryUrl() { - return "http://" + registry.getHost() + ":" + registry.getMappedPort(8080) + "/api"; - } - - @Override - public Map start() { - registry = new GenericContainer<>("apicurio/apicurio-registry-mem:1.2.2.Final") - .withExposedPorts(8080) - .withEnv("QUARKUS_PROFILE", "prod"); - registry.start(); - Map properties = new HashMap<>(); - properties.put("schema.url.confluent", - "http://" + registry.getHost() + ":" + registry.getMappedPort(8080) + "/api/ccompat"); - properties.put("schema.url.apicurio", - "http://" + registry.getHost() + ":" + registry.getMappedPort(8080) + "/api"); - return properties; - } - - @Override - public void stop() { - registry.stop(); - } -} diff --git a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroIT.java b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroIT.java deleted file mode 100644 index 4a2f287947a0c..0000000000000 --- a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroIT.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.quarkus.it.kafka; - -import io.quarkus.test.common.QuarkusTestResource; -import io.quarkus.test.junit.QuarkusIntegrationTest; - -@QuarkusIntegrationTest -@QuarkusTestResource(KafkaAndSchemaRegistryTestResource.class) -public class KafkaAvroIT extends KafkaAvroTest { - -} diff --git a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java b/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java deleted file mode 100644 index 521e62fe06a76..0000000000000 --- a/integration-tests/kafka-avro/src/test/java/io/quarkus/it/kafka/KafkaAvroTest.java +++ /dev/null @@ -1,137 +0,0 @@ -package io.quarkus.it.kafka; - -import static io.confluent.kafka.serializers.AbstractKafkaSchemaSerDeConfig.SCHEMA_REGISTRY_URL_CONFIG; -import static io.confluent.kafka.serializers.KafkaAvroDeserializerConfig.SPECIFIC_AVRO_READER_CONFIG; - -import java.util.Map; - -import org.apache.kafka.clients.consumer.ConsumerRecord; -import org.apache.kafka.clients.producer.ProducerConfig; -import org.apache.kafka.clients.producer.ProducerRecord; -import org.apache.kafka.common.serialization.Deserializer; -import org.apache.kafka.common.serialization.Serde; -import org.apache.kafka.common.serialization.Serdes; -import org.apache.kafka.common.serialization.Serializer; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import io.apicurio.registry.utils.serde.AbstractKafkaSerDe; -import io.apicurio.registry.utils.serde.AbstractKafkaSerializer; -import io.apicurio.registry.utils.serde.AvroKafkaDeserializer; -import io.apicurio.registry.utils.serde.AvroKafkaSerializer; -import io.apicurio.registry.utils.serde.avro.AvroDatumProvider; -import io.apicurio.registry.utils.serde.avro.DefaultAvroDatumProvider; -import io.apicurio.registry.utils.serde.strategy.GetOrCreateIdStrategy; -import io.confluent.kafka.serializers.KafkaAvroDeserializer; -import io.confluent.kafka.serializers.KafkaAvroSerializer; -import io.quarkus.it.kafka.avro.Pet; -import io.quarkus.test.common.QuarkusTestResource; -import io.quarkus.test.junit.QuarkusTest; -import io.quarkus.test.kafka.InjectKafkaCompanion; -import io.quarkus.test.kafka.KafkaCompanionResource; -import io.restassured.RestAssured; -import io.smallrye.reactive.messaging.kafka.companion.ConsumerBuilder; -import io.smallrye.reactive.messaging.kafka.companion.ConsumerTask; -import io.smallrye.reactive.messaging.kafka.companion.KafkaCompanion; -import io.smallrye.reactive.messaging.kafka.companion.ProducerBuilder; - -@QuarkusTest -@QuarkusTestResource(KafkaAndSchemaRegistryTestResource.class) -@QuarkusTestResource(KafkaCompanionResource.class) -public class KafkaAvroTest { - - private static final String CONFLUENT_PATH = "/avro/confluent"; - private static final String APICURIO_PATH = "/avro/apicurio"; - - @InjectKafkaCompanion - KafkaCompanion companion; - - @Test - public void testConfluentAvroProducer() { - configureConfluentSerde(); - ConsumerBuilder consumer = companion.consume(Integer.class, Pet.class); - ConsumerTask consumeTask = consumer.withGroupId("test-avro-confluent") - .fromTopics("test-avro-confluent-producer", 1); - testAvroProducer(consumeTask, CONFLUENT_PATH); - } - - @Test - public void testConfluentAvroConsumer() { - configureConfluentSerde(); - ProducerBuilder producer = companion.produce(Integer.class, Pet.class); - producer.withClientId("test-avro-confluent-test"); - testAvroConsumer(producer, CONFLUENT_PATH, "test-avro-confluent-consumer"); - } - - @Test - public void testApicurioAvroProducer() { - configureApicurioSerde(); - ConsumerBuilder consumer = companion.consume(Integer.class, Pet.class); - ConsumerTask consumeTask = consumer.withGroupId("test-avro-apicurio") - .fromTopics("test-avro-apicurio-producer", 1); - testAvroProducer(consumeTask, APICURIO_PATH); - } - - @Test - public void testApicurioAvroConsumer() { - configureApicurioSerde(); - ProducerBuilder producer = companion.produce(Integer.class, Pet.class); - producer.withClientId("test-avro-apicurio-test") - .withProp(ProducerConfig.ACKS_CONFIG, "all"); - testAvroConsumer(producer, APICURIO_PATH, "test-avro-apicurio-consumer"); - } - - private void testAvroProducer(ConsumerTask consumeTask, String path) { - RestAssured.given() - .header("content-type", "application/json") - .body("{\"name\":\"neo\", \"color\":\"tricolor\"}") - .post(path); - ConsumerRecord records = consumeTask.awaitCompletion().getFirstRecord(); - Assertions.assertEquals(records.key(), (Integer) 0); - Pet pet = records.value(); - Assertions.assertEquals("neo", pet.getName()); - Assertions.assertEquals("tricolor", pet.getColor()); - } - - private void testAvroConsumer(ProducerBuilder producer, String path, String topic) { - producer.fromRecords(new ProducerRecord<>(topic, 1, createPet())).awaitCompletion(); - Pet retrieved = RestAssured.when().get(path).as(Pet.class); - Assertions.assertEquals("neo", retrieved.getName()); - Assertions.assertEquals("white", retrieved.getColor()); - } - - private Pet createPet() { - Pet pet = new Pet(); - pet.setName("neo"); - pet.setColor("white"); - return pet; - } - - private void configureConfluentSerde() { - Serde petSerde = serdeFrom(new KafkaAvroSerializer(), new KafkaAvroDeserializer()); - petSerde.configure(Map.of( - SCHEMA_REGISTRY_URL_CONFIG, KafkaAndSchemaRegistryTestResource.getConfluentSchemaRegistryUrl(), - SPECIFIC_AVRO_READER_CONFIG, "true"), false); - companion.registerSerde(Pet.class, petSerde); - } - - private void configureApicurioSerde() { - Serde petSerde = Serdes.serdeFrom(new AvroKafkaSerializer<>(), new AvroKafkaDeserializer<>()); - petSerde.configure(Map.of( - AbstractKafkaSerDe.REGISTRY_URL_CONFIG_PARAM, KafkaAndSchemaRegistryTestResource.getApicurioSchemaRegistryUrl(), - // procuder - // this is a workaround for Apicurio Registry 1.2.2.Final bug: if `avro-datum-provider` - // isn't set to `DefaultAvroDatumProvider` explicitly, `use-specific-avro-reader` isn't processed - AvroDatumProvider.REGISTRY_USE_SPECIFIC_AVRO_READER_CONFIG_PARAM, "true", - AvroDatumProvider.REGISTRY_AVRO_DATUM_PROVIDER_CONFIG_PARAM, DefaultAvroDatumProvider.class.getName(), - // consumer - AbstractKafkaSerializer.REGISTRY_GLOBAL_ID_STRATEGY_CONFIG_PARAM, GetOrCreateIdStrategy.class.getName()), - false); - companion.registerSerde(Pet.class, petSerde); - } - - @SuppressWarnings({ "rawtypes" }) - Serde serdeFrom(Serializer serializer, Deserializer deserializer) { - return (Serde) Serdes.serdeFrom(serializer, deserializer); - } -} diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index c397a25fa1a10..0f0915c08b608 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -165,7 +165,6 @@ kafka-sasl-elytron kafka-oauth-keycloak kafka-snappy - kafka-avro kafka-avro-apicurio2 kafka-streams kafka-devservices From ac64ef473e125c49dd81244f57fed19bb7d1ede3 Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Wed, 31 Aug 2022 17:20:25 +0200 Subject: [PATCH 175/250] Adjust ArC code to CDI 4.0.1 (cherry picked from commit c16cfd127010f223fe249702cb5fc6d035a47d2c) (cherry picked from commit 2bc4516b7882f0b79be48bf6bf6a43275989a10f) --- .../main/java/io/quarkus/arc/InstanceHandle.java | 3 ++- .../java/io/quarkus/arc/impl/ArcCDIProvider.java | 10 ++++++++++ .../io/quarkus/arc/impl/BeanManagerImpl.java | 16 ---------------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java index e3845a27ba81a..c03ba183b3dfc 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/InstanceHandle.java @@ -2,6 +2,7 @@ import jakarta.enterprise.context.Dependent; import jakarta.enterprise.context.spi.AlterableContext; +import jakarta.enterprise.inject.Instance; /** * Represents an instance handle. @@ -10,7 +11,7 @@ * * @param */ -public interface InstanceHandle extends AutoCloseable { +public interface InstanceHandle extends AutoCloseable, Instance.Handle { /** * diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java index 97712f0ae7295..33681ba9b6fee 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/ArcCDIProvider.java @@ -71,6 +71,16 @@ public void destroy(Object instance) { this.instanceDelegate.destroy(instance); } + @Override + public Handle getHandle() { + return this.instanceDelegate.getHandle(); + } + + @Override + public Iterable> handles() { + return this.instanceDelegate.handles(); + } + @Override public Iterator iterator() { return instanceDelegate.iterator(); diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java index 8cbd1b0064659..e85b713fc55a3 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/BeanManagerImpl.java @@ -3,7 +3,6 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.util.Arrays; -import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Objects; @@ -31,7 +30,6 @@ import jakarta.enterprise.inject.spi.Decorator; import jakarta.enterprise.inject.spi.Extension; import jakarta.enterprise.inject.spi.InjectionPoint; -import jakarta.enterprise.inject.spi.InjectionTarget; import jakarta.enterprise.inject.spi.InjectionTargetFactory; import jakarta.enterprise.inject.spi.InterceptionFactory; import jakarta.enterprise.inject.spi.InterceptionType; @@ -121,14 +119,6 @@ public void validate(InjectionPoint injectionPoint) { throw new UnsupportedOperationException(); } - // Deprecated method which can be safely removed once we use CDI 4.0+ - @Deprecated - public void fireEvent(Object event, Annotation... qualifiers) { - Set eventQualifiers = new HashSet<>(); - Collections.addAll(eventQualifiers, qualifiers); - new EventImpl(event.getClass(), eventQualifiers).fire(event); - } - @Override public Set> resolveObserverMethods(T event, Annotation... qualifiers) { Type eventType = Types.getCanonicalType(event.getClass()); @@ -242,12 +232,6 @@ public AnnotatedType createAnnotatedType(Class type) { throw new UnsupportedOperationException(); } - // Deprecated method which can be safely removed once we use CDI 4.0+ - @Deprecated - public InjectionTarget createInjectionTarget(AnnotatedType type) { - throw new UnsupportedOperationException(); - } - @Override public InjectionTargetFactory getInjectionTargetFactory(AnnotatedType annotatedType) { throw new UnsupportedOperationException(); From 8d793000fef08f58429a2c5f4941cb5396cb0494 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 1 Sep 2022 18:31:13 +0300 Subject: [PATCH 176/250] Add first implementations of new JAX-RS 3.1 APIs (cherry picked from commit 9134fa862c35ee77095ffe0cb69f67e817ff3acd) (cherry picked from commit 7bfb03f26fcded57195a7e35653a515a3b46f662) (cherry picked from commit a4c161ea3258dc4d4ea397552f9f1e9495723c65) (cherry picked from commit 2694acf4aba6d2d2972e9ecae4b5246c11a40235) --- .../common/jaxrs/RuntimeDelegateImpl.java | 29 +++++++++++++++++++ .../server/jaxrs/SseBroadcasterImpl.java | 13 +++++++-- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java index 50bb0723098ad..efa84eb922653 100644 --- a/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java +++ b/independent-projects/resteasy-reactive/common/runtime/src/main/java/org/jboss/resteasy/reactive/common/jaxrs/RuntimeDelegateImpl.java @@ -3,10 +3,13 @@ import java.util.Date; import java.util.Locale; import java.util.ServiceLoader; +import java.util.concurrent.CompletionStage; +import jakarta.ws.rs.SeBootstrap; import jakarta.ws.rs.core.Application; import jakarta.ws.rs.core.CacheControl; import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.EntityPart; import jakarta.ws.rs.core.EntityTag; import jakarta.ws.rs.core.Link; import jakarta.ws.rs.core.MediaType; @@ -115,4 +118,30 @@ public HeaderDelegate createHeaderDelegate(Class type) throws IllegalA public Link.Builder createLinkBuilder() { return new LinkBuilderImpl(); } + + @Override + public SeBootstrap.Configuration.Builder createConfigurationBuilder() { + // RR does not implement currently implement the bootstrapping API + throw new UnsupportedOperationException("Pending implementation"); + } + + @Override + public CompletionStage bootstrap(Application application, + SeBootstrap.Configuration configuration) { + // RR does not implement currently implement the bootstrapping API + throw new UnsupportedOperationException("Pending implementation"); + } + + @Override + public CompletionStage bootstrap(Class aClass, + SeBootstrap.Configuration configuration) { + // RR does not implement currently implement the bootstrapping API + throw new UnsupportedOperationException("Pending implementation"); + } + + @Override + public EntityPart.Builder createEntityPartBuilder(String s) throws IllegalArgumentException { + // TODO: figure out how to implement this + throw new UnsupportedOperationException("Pending implementation"); + } } diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java index 0d40b41f9af53..7088c56f96d21 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java @@ -105,13 +105,20 @@ private void checkClosed() { @Override public synchronized void close() { + close(true); + } + + @Override + public synchronized void close(boolean cascading) { if (isClosed) { return; } isClosed = true; - for (SseEventSink sink : sinks) { - // this will in turn fire close events to our listeners - sink.close(); + if (cascading) { + for (SseEventSink sink : sinks) { + // this will in turn fire close events to our listeners + sink.close(); + } } } From becd0f493e9de97bf628cd312ed8e06d1a9d3a1e Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Fri, 9 Sep 2022 09:35:26 +0200 Subject: [PATCH 177/250] For metrics, count JAX-RS requests ending with 500 as unsuccessful (all other codes as successful) (cherry picked from commit e60f9ba6599d23b141bbab9d4e240148326daa18) (cherry picked from commit bc853f3683a873f7e7487280562c9c63a2585c7d) (cherry picked from commit 4947419844fc0c553257bc18db5c91db94847416) (cherry picked from commit 600b9f103adfc49ac46b1f4ea2bbf8ab2de129a4) --- .../smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java | 6 ++++-- .../quarkus/smallrye/metrics/jaxrs/MetricsResource.java | 2 +- .../metrics/runtime/QuarkusRestEasyMetricsFilter.java | 9 ++++++--- .../metrics/runtime/QuarkusRestMetricsFilter.java | 9 ++++----- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java index f64e2d1ccea06..c7ff7722a78c8 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/JaxRsMetricsTestCase.java @@ -51,7 +51,9 @@ public void testMethodReturningServerError() throws InterruptedException { when() .get("/error") .then() - .statusCode(500); + .statusCode(501); + // we only consider requests ending with a 500 as "unsuccessful", + // so a 501 should count towards successful SimpleTimer metric = metricRegistry.simpleTimer("REST.request", new Tag("class", METRIC_RESOURCE_CLASS_NAME), new Tag("method", "error")); @@ -71,7 +73,7 @@ public void testMethodThrowingException() { assertEquals(0, metric.getCount()); assertEquals(0, metric.getElapsedTime().toNanos()); - // calls throwing an unmapped exception should only be reflected in the REST.request.unmappedException.total metric + // calls ending with status code 500 should only be reflected in the REST.request.unmappedException.total metric Counter exceptionCounter = metricRegistry.counter("REST.request.unmappedException.total", new Tag("class", METRIC_RESOURCE_CLASS_NAME), new Tag("method", "exception")); diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java index 5090b369d0b5f..04122ffcdba25 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/jaxrs/MetricsResource.java @@ -22,7 +22,7 @@ public String hello(@PathParam("name") String name) { @Path("/error") @GET public Response error() { - return Response.serverError().build(); + return Response.status(501).build(); } @Path("/exception") diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java index 474a8dae954d4..84968332ca457 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestEasyMetricsFilter.java @@ -28,6 +28,7 @@ import jakarta.ws.rs.container.ContainerResponseFilter; import jakarta.ws.rs.container.ResourceInfo; import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; import io.quarkus.vertx.http.runtime.CurrentVertxRequest; import io.vertx.ext.web.RoutingContext; @@ -63,9 +64,11 @@ public void filter(final ContainerRequestContext requestContext) { @Override public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) { - // mark the request as successful if it finished without exception or with a mapped exception - // if it ended with an unmapped exception, this filter is not called by RESTEasy - requestContext.setProperty("smallrye.metrics.jaxrs.successful", true); + Response.StatusType statusInfo = responseContext.getStatusInfo(); + // consider all requests ending with 500 as unsuccessful, and anything else as successful + if (statusInfo != null && statusInfo.getStatusCode() != 500) { + requestContext.setProperty("smallrye.metrics.jaxrs.successful", true); + } } } diff --git a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java index f720c5c9539e2..dee84c3521a3a 100644 --- a/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java +++ b/extensions/smallrye-metrics/runtime/src/main/java/io/quarkus/smallrye/metrics/runtime/QuarkusRestMetricsFilter.java @@ -4,6 +4,7 @@ import java.lang.reflect.Method; +import jakarta.ws.rs.container.ContainerResponseContext; import jakarta.ws.rs.container.ResourceInfo; import org.jboss.resteasy.reactive.server.ServerResponseFilter; @@ -16,7 +17,7 @@ public class QuarkusRestMetricsFilter { @ServerResponseFilter - public void filter(ResourceInfo resourceInfo, Throwable throwable) { + public void filter(ResourceInfo resourceInfo, ContainerResponseContext responseContext) { Class resourceClass = resourceInfo.getResourceClass(); Method resourceMethod = resourceInfo.getResourceMethod(); if ((resourceClass == null) || (resourceMethod == null)) { @@ -26,9 +27,7 @@ public void filter(ResourceInfo resourceInfo, Throwable throwable) { FilterUtil.finishRequest(System.nanoTime(), resourceInfo.getResourceClass(), resourceInfo.getResourceMethod().getName(), resourceInfo.getResourceMethod().getParameterTypes(), - // FIXME: we need to know whether the exception is mapped or not, how to find out? - // for now let's assume all are unmapped, and therefore if there was an exception, - // increment the failure counter rather than the successful calls counter - () -> throwable == null); + // consider all requests ending with 500 as unsuccessful, and anything else as successful + () -> responseContext.getStatus() != 500); } } From 9d65df136e4d9fac577160019cadfe7094ad77d6 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 20 Sep 2022 11:33:00 +0200 Subject: [PATCH 178/250] Provide a RESTEasy Classic ThresholdConverter (cherry picked from commit 55b72299586bdb379a5a257d2f3011a681db376b) (cherry picked from commit 8181f17ee7a3fb27f7a10369d7f111e72ed48751) (cherry picked from commit 5bfa54210e7a95cd1338aa555f6388a54ebbe7b0) --- .../runtime/config/ThresholdConverter.java | 70 +++++++++++++++++++ ....eclipse.microprofile.config.spi.Converter | 1 + 2 files changed, 71 insertions(+) create mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ThresholdConverter.java create mode 100644 extensions/resteasy-classic/resteasy-common/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ThresholdConverter.java b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ThresholdConverter.java new file mode 100644 index 0000000000000..3744afff1cf19 --- /dev/null +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/config/ThresholdConverter.java @@ -0,0 +1,70 @@ +package io.quarkus.resteasy.common.runtime.config; + +import static io.quarkus.runtime.configuration.ConverterSupport.DEFAULT_QUARKUS_CONVERTER_PRIORITY; + +import java.io.Serializable; +import java.time.Duration; +import java.util.Locale; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import jakarta.annotation.Priority; + +import org.eclipse.microprofile.config.spi.Converter; +import org.jboss.resteasy.spi.config.SizeUnit; +import org.jboss.resteasy.spi.config.Threshold; + +/** + * A converter for a {@link Threshold} interface. + */ +@Priority(DEFAULT_QUARKUS_CONVERTER_PRIORITY) +public class ThresholdConverter implements Converter, Serializable { + + public static final Threshold NONE = Threshold.of(-1L, SizeUnit.BYTE); + public static final Threshold DEFAULT = Threshold.of(512L, SizeUnit.KILOBYTE); + private static final Pattern PATTERN = Pattern.compile("(?-?(?!0)\\d+)\\s*(?(?:ZB|EB|TB|PB|GB|MB|KB|B)\\b)?"); + + public ThresholdConverter() { + } + + /** + * The converter accepts a value which start with a number by implicitly appending `PT` to it. + * If the value consists only of a number, it implicitly treats the value as seconds. + * Otherwise, tries to convert the value assuming that it is in the accepted ISO-8601 duration format. + * + * @param value duration as String + * @return {@link Duration} + */ + @Override + public Threshold convert(String value) { + value = value.trim(); + if (value.isEmpty()) { + return null; + } + + // The value should be something like 1 MB or 1MB + final Matcher matcher = PATTERN.matcher(value.toUpperCase(Locale.ROOT)); + if (!matcher.find()) { + return DEFAULT; + } + final String stringSize = matcher.group("size"); + final String stringUnit = matcher.group("unit"); + final long size; + if (stringSize == null || stringSize.isBlank()) { + return DEFAULT; + } else { + size = Long.parseLong(stringSize); + } + if (size < 0L) { + return NONE; + } + SizeUnit unit = null; + for (SizeUnit u : SizeUnit.values()) { + if (u.abbreviation().equals(stringUnit)) { + unit = u; + break; + } + } + return Threshold.of(size, unit == null ? SizeUnit.BYTE : unit); + } +} diff --git a/extensions/resteasy-classic/resteasy-common/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter b/extensions/resteasy-classic/resteasy-common/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter new file mode 100644 index 0000000000000..efa644813dcda --- /dev/null +++ b/extensions/resteasy-classic/resteasy-common/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.Converter @@ -0,0 +1 @@ +io.quarkus.resteasy.common.runtime.config.ThresholdConverter \ No newline at end of file From 379e257d5b1a822bd011a1c773857a59b0e438fb Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Fri, 6 Jan 2023 17:36:47 +0000 Subject: [PATCH 179/250] Re-apply (breaking) change to not load kotlin parent first (cherry picked from commit 9f77fa932d243709d8839ed2e1e376943d4f98be) --- extensions/kotlin/runtime/pom.xml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/extensions/kotlin/runtime/pom.xml b/extensions/kotlin/runtime/pom.xml index 7c6a7545d6c2e..a92dd5751b376 100644 --- a/extensions/kotlin/runtime/pom.xml +++ b/extensions/kotlin/runtime/pom.xml @@ -19,22 +19,6 @@ io.quarkus quarkus-extension-maven-plugin - - org.jetbrains.kotlin:kotlin-stdlib-jdk8 - org.jetbrains.kotlin:kotlin-stdlib-jdk7 - org.jetbrains.kotlin:kotlin-reflect - org.jetbrains.kotlin:kotlin-stdlib - org.jetbrains.kotlin:kotlin-stdlib-common - org.jetbrains:annotations - - - org.jetbrains.kotlin:kotlin-stdlib-jdk8 - org.jetbrains.kotlin:kotlin-stdlib-jdk7 - org.jetbrains.kotlin:kotlin-reflect - org.jetbrains.kotlin:kotlin-stdlib - org.jetbrains.kotlin:kotlin-stdlib-common - org.jetbrains:annotations - - au.com.dius:pact-jvm-provider-junit5 - au.com.dius:pact-jvm-provider - au.com.dius:pact-jvm-core-support - au.com.dius:pact-jvm-core-pact-broker - au.com.dius:pact-jvm-core-model - au.com.dius:pact-jvm-core-matchers - au.com.dius:pact-jvm-junit5 - au.com.dius:pact-jvm-consumer-java8 - au.com.dius:pact-jvm-consumer - - au.com.dius.pact.provider:junit5 - au.com.dius.pact:provider - au.com.dius.pact.core:support - au.com.dius.pact.core:pactbroker - au.com.dius.pact.core:model - au.com.dius.pact.core:matcher - au.com.dius.pact.consumer:junit5 - au.com.dius.pact:consumer - org.jboss.byteman:byteman From 0ef9b186ab70b2c47db078d66c331e275f0b599c Mon Sep 17 00:00:00 2001 From: Julien Ponge Date: Wed, 14 Dec 2022 12:14:16 +0100 Subject: [PATCH 181/250] Migration to Mutiny 2 and JDK Flow APIs on top of Jakarta migration Co-authored-by: Julien Ponge Co-authored-by: Ozan Gunalp (cherry picked from commit 328f53ddcf3597830c765bbfc98d306b4b6a2d84) (cherry picked from commit a7d6c5976183484cdee353eae0b7deedab3ee984) (cherry picked from commit 92bee31bcdfd2078fc1e0e7610d93dce20d7f540) (cherry picked from commit 3ebf6f472f730ddf0d9f02a89b9cb78943406053) --- bom/application/pom.xml | 18 +++++--- .../grpc/server/GrpcReflectionTest.java | 9 ++-- .../java/io/quarkus/mailer/Attachment.java | 3 +- .../src/main/java/io/quarkus/mailer/Mail.java | 3 +- .../mailer/runtime/MutinyMailerImpl.java | 2 +- .../io/quarkus/mailer/AttachmentTest.java | 10 ++-- extensions/mongodb-client/runtime/pom.xml | 4 ++ .../impl/ReactiveMongoCollectionImpl.java | 14 +++--- .../impl/ReactiveMongoDatabaseImpl.java | 9 ++-- .../io/quarkus/mongodb/impl/Wrappers.java | 10 ++-- extensions/narayana-jta/runtime/pom.xml | 4 ++ .../TransactionalInterceptorBase.java | 46 ++++++++++++++++--- .../web/runtime/MultiJsonArraySupport.java | 11 ++--- .../vertx/web/runtime/MultiNdjsonSupport.java | 4 +- .../vertx/web/runtime/MultiSseSupport.java | 9 ++-- .../vertx/web/runtime/MultiSupport.java | 5 +- .../resteasy-mutiny-common/runtime/pom.xml | 4 ++ .../mutiny/common/runtime/MultiProvider.java | 5 +- .../mutiny/common/test/MultiProviderTest.java | 4 +- .../server/test/stream/StreamResource.java | 13 +++++- .../server/test/stream/StreamTestCase.java | 4 ++ .../reactivemessaging/amqp/ProducingBean.java | 4 +- .../amqp/devmode/nohttp/Producer.java | 4 +- .../QuarkusMediatorConfigurationUtil.java | 7 +-- .../deployment/ReactiveMessagingDotNames.java | 3 +- .../SmallRyeBlockingSubscriberTest.java | 4 +- .../TransactionalSubscriberTest.java | 4 +- .../blocking/BlockingSubscriberTest.java | 4 +- .../SmallRyeBlockingSubscriberTest.java | 4 +- .../channels/DeprecatedChannelConsumer.java | 3 +- .../signatures/IncomingsTest.java | 6 +-- .../ConnectorAttachmentChannelTest.java | 4 +- .../ConnectorAttachmentCustomEmitterTest.java | 4 +- .../ConnectorAttachmentIncomingTest.java | 4 +- ...sabledConnectorAttachmentIncomingTest.java | 4 +- .../wiring/IncomingChannelWithDotsTest.java | 4 +- .../TwoConnectorsAttachmentIncomingTest.java | 7 ++- ...tedContextConnectorFactoryInterceptor.java | 4 +- .../runtime/QuarkusMediatorConfiguration.java | 15 ++++++ ...odeSupportConnectorFactoryInterceptor.java | 12 ++--- independent-projects/arc/pom.xml | 2 +- independent-projects/qute/pom.xml | 2 +- .../impl/multipart/MultiByteHttpData.java | 2 +- .../processor/ResteasyReactiveDotNames.java | 3 +- .../resteasy-reactive/common/runtime/pom.xml | 8 ++++ .../resteasy-reactive/pom.xml | 17 ++++++- .../scanning/AsyncReturnTypeScanner.java | 6 ++- .../handlers/PublisherResponseHandler.java | 16 +++++-- .../vertx/test/stream/StreamResource.java | 10 +++- .../vertx/test/stream/StreamTestCase.java | 4 ++ .../quarkus/test/devconsole/MyProcessor.java | 11 ++--- .../reactive/ReactiveStreamOpsResource.java | 3 +- .../book/ReactiveBookEntityResource.kt | 4 +- .../book/ReactiveBookRepositoryResource.kt | 4 +- .../book/ReactiveBookEntityResource.java | 4 +- .../book/ReactiveBookRepositoryResource.java | 4 +- .../test/mutiny/MutinyContextEndpoint.java | 4 +- 57 files changed, 263 insertions(+), 133 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 6e1d7b25a8d29..ad5e6c795e6cc 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -59,15 +59,15 @@ 4.0.1 4.0.0 3.1.1 - 2.0.1 + 2.1.0.Beta1 3.0.0 6.1.0 4.0.0 2.0.0 1.0.13 - 2.7.0 - 2.30.1 - 4.2.0 + 3.0.0 + 3.2.0 + 4.2.0.RC1 1.4.1 2.1.0 2.1.1 @@ -144,9 +144,9 @@ 3.1.1 4.1.87.Final 1.8.0 - 1.0.3 + 1.0.4 3.5.0.Final - 1.9.0 + 2.1.0 3.3.2 1.8.0 1.1.8.4 @@ -216,6 +216,7 @@ 0.1.3 2.9.2 0.8.9 + 1.0.0 @@ -5451,6 +5452,11 @@ + + io.smallrye.reactive + mutiny-zero-flow-adapters + ${mutiny-zero.version} + org.eclipse.microprofile.reactive-streams-operators microprofile-reactive-streams-operators-api diff --git a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcReflectionTest.java b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcReflectionTest.java index 1e748b893d4ce..80d495f1e33ae 100644 --- a/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcReflectionTest.java +++ b/extensions/grpc/deployment/src/test/java/io/quarkus/grpc/server/GrpcReflectionTest.java @@ -5,6 +5,7 @@ import java.util.Arrays; import java.util.List; +import java.util.concurrent.Flow; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; @@ -12,8 +13,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; import com.google.protobuf.ByteString; @@ -233,15 +232,15 @@ public void testRetrievingAllExtensionNumbersOfType() { assertThat(list).containsExactlyInAnyOrderElementsOf(expected); } - private static class ResettableSubscriber implements Subscriber { + private static class ResettableSubscriber implements Flow.Subscriber { - private Subscription subscription; + private Flow.Subscription subscription; private volatile T last; private boolean completed; private Throwable failure; @Override - public void onSubscribe(Subscription subscription) { + public void onSubscribe(Flow.Subscription subscription) { this.subscription = subscription; } diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Attachment.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Attachment.java index bc3e31c329600..7e11540c1eb99 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Attachment.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Attachment.java @@ -3,8 +3,7 @@ import java.io.File; import java.util.Iterator; import java.util.NoSuchElementException; - -import org.reactivestreams.Publisher; +import java.util.concurrent.Flow.Publisher; import io.smallrye.mutiny.Multi; diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Mail.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Mail.java index 07e094bcf5b6f..5ee50038adc2e 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Mail.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/Mail.java @@ -2,8 +2,7 @@ import java.io.File; import java.util.*; - -import org.reactivestreams.Publisher; +import java.util.concurrent.Flow.Publisher; /** * Represents an e-mail. diff --git a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java index e69674e7adcf5..302656b6e58a6 100644 --- a/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java +++ b/extensions/mailer/runtime/src/main/java/io/quarkus/mailer/runtime/MutinyMailerImpl.java @@ -6,6 +6,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.Flow.Publisher; import java.util.function.Function; import java.util.stream.Collectors; @@ -13,7 +14,6 @@ import jakarta.inject.Inject; import org.jboss.logging.Logger; -import org.reactivestreams.Publisher; import io.quarkus.mailer.Attachment; import io.quarkus.mailer.Mail; diff --git a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/AttachmentTest.java b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/AttachmentTest.java index cc73a1ec7bad1..b1bd405c634e2 100644 --- a/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/AttachmentTest.java +++ b/extensions/mailer/runtime/src/test/java/io/quarkus/mailer/AttachmentTest.java @@ -7,12 +7,12 @@ import java.util.Iterator; import java.util.NoSuchElementException; import java.util.UUID; +import java.util.concurrent.Flow; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.reactivestreams.Publisher; import io.quarkus.mailer.runtime.MutinyMailerImpl; import io.smallrye.mutiny.Multi; @@ -70,7 +70,7 @@ void testInlineAttachmentCreationFromFile() { @Test void testAttachmentCreationFromStream() { - Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) + Flow.Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) .onItem().transformToMulti(af -> af.toMulti() .onItem().transformToIterable(this::getBytes)); @@ -109,7 +109,7 @@ public Byte next() { @Test void testInlineAttachmentCreationFromStream() { - Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) + Flow.Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) .onItem().transformToMulti(af -> af.toMulti() .onItem().transformToIterable(this::getBytes)); @@ -128,7 +128,7 @@ void testInlineAttachmentCreationFromStream() { @Test void testAttachmentCreationWithDescription() { - Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) + Flow.Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) .onItem().transformToMulti(af -> af.toMulti() .onItem().transformToIterable(this::getBytes)); @@ -154,7 +154,7 @@ private String getContent(Attachment attachment) { @Test void testInlineAttachmentCreationWithDescription() { - Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) + Flow.Publisher publisher = vertx.fileSystem().open(LOREM.getAbsolutePath(), new OpenOptions().setRead(true)) .onItem().transformToMulti(af -> af.toMulti() .onItem().transformToIterable(this::getBytes)); diff --git a/extensions/mongodb-client/runtime/pom.xml b/extensions/mongodb-client/runtime/pom.xml index d9e0efbdeb740..b76174a626e58 100644 --- a/extensions/mongodb-client/runtime/pom.xml +++ b/extensions/mongodb-client/runtime/pom.xml @@ -24,6 +24,10 @@ io.quarkus quarkus-mutiny + + io.smallrye.reactive + mutiny-zero-flow-adapters + io.quarkus quarkus-vertx diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoCollectionImpl.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoCollectionImpl.java index 1196ff7fc668e..acac2af661e43 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoCollectionImpl.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoCollectionImpl.java @@ -1,6 +1,7 @@ package io.quarkus.mongodb.impl; import java.util.List; +import java.util.concurrent.Flow; import org.bson.Document; import org.bson.codecs.configuration.CodecRegistry; @@ -47,6 +48,7 @@ import io.quarkus.mongodb.reactive.ReactiveMongoCollection; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; +import mutiny.zero.flow.adapters.AdaptersToFlow; public class ReactiveMongoCollectionImpl implements ReactiveMongoCollection { @@ -262,11 +264,11 @@ public Multi aggregate(ClientSession clientSession, List return Wrappers.toMulti(collection.aggregate(clientSession, pipeline, clazz)); } - private AggregatePublisher apply(AggregateOptions options, AggregatePublisher publisher) { + private Flow.Publisher apply(AggregateOptions options, AggregatePublisher publisher) { if (options == null) { - return publisher; + return AdaptersToFlow.publisher(publisher); } - return options.apply(publisher); + return AdaptersToFlow.publisher(options.apply(publisher)); } @Override @@ -409,11 +411,11 @@ public Multi mapReduce(String mapFunction, String reduceFunction, MapReduceOp return Multi.createFrom().publisher(apply(options, collection.mapReduce(mapFunction, reduceFunction))); } - private MapReducePublisher apply(MapReduceOptions options, MapReducePublisher mapReduce) { + private Flow.Publisher apply(MapReduceOptions options, MapReducePublisher mapReduce) { if (options == null) { - return mapReduce; + return AdaptersToFlow.publisher(mapReduce); } - return options.apply(mapReduce); + return AdaptersToFlow.publisher(options.apply(mapReduce)); } @Override diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoDatabaseImpl.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoDatabaseImpl.java index 41249cdf9f7ba..b439c44f8cdd5 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoDatabaseImpl.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/ReactiveMongoDatabaseImpl.java @@ -1,6 +1,7 @@ package io.quarkus.mongodb.impl; import java.util.List; +import java.util.concurrent.Flow; import org.bson.Document; import org.bson.conversions.Bson; @@ -22,6 +23,7 @@ import io.quarkus.mongodb.reactive.ReactiveMongoDatabase; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; +import mutiny.zero.flow.adapters.AdaptersToFlow; public class ReactiveMongoDatabaseImpl implements ReactiveMongoDatabase { @@ -127,12 +129,11 @@ public Multi listCollections(Class clazz, CollectionListOptions option return Multi.createFrom().publisher(apply(options, database.listCollections(clazz))); } - private ListCollectionsPublisher apply(CollectionListOptions options, - ListCollectionsPublisher collections) { + private Flow.Publisher apply(CollectionListOptions options, ListCollectionsPublisher collections) { if (options == null) { - return collections; + return AdaptersToFlow.publisher(collections); } else { - return options.apply(collections); + return AdaptersToFlow.publisher(options.apply(collections)); } } diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/Wrappers.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/Wrappers.java index 7cb38ba3d350b..f9474f1899689 100644 --- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/Wrappers.java +++ b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/impl/Wrappers.java @@ -8,6 +8,7 @@ import io.smallrye.mutiny.Uni; import io.vertx.core.Context; import io.vertx.core.Vertx; +import mutiny.zero.flow.adapters.AdaptersToFlow; class Wrappers { @@ -17,7 +18,7 @@ private Wrappers() { static Uni toUni(Publisher publisher) { Context context = Vertx.currentContext(); - Uni uni = Uni.createFrom().publisher(publisher); + Uni uni = Uni.createFrom().publisher(AdaptersToFlow.publisher(publisher)); if (context != null) { return uni.emitOn(command -> context.runOnContext(x -> command.run())); } @@ -27,15 +28,16 @@ static Uni toUni(Publisher publisher) { static Multi toMulti(Publisher publisher) { Context context = Vertx.currentContext(); if (context != null) { - return Multi.createFrom().publisher(publisher).emitOn(command -> context.runOnContext(x -> command.run())); + return Multi.createFrom().publisher(AdaptersToFlow.publisher(publisher)) + .emitOn(command -> context.runOnContext(x -> command.run())); } else { - return Multi.createFrom().publisher(publisher); + return Multi.createFrom().publisher(AdaptersToFlow.publisher(publisher)); } } static Uni> toUniOfList(Publisher publisher) { Context context = Vertx.currentContext(); - Uni> uni = Multi.createFrom().publisher(publisher) + Uni> uni = Multi.createFrom().publisher(AdaptersToFlow.publisher(publisher)) .collect().asList(); if (context != null) { diff --git a/extensions/narayana-jta/runtime/pom.xml b/extensions/narayana-jta/runtime/pom.xml index a15244b309cac..6a9caf4cbd5fc 100644 --- a/extensions/narayana-jta/runtime/pom.xml +++ b/extensions/narayana-jta/runtime/pom.xml @@ -51,6 +51,10 @@ io.smallrye.reactive smallrye-reactive-converter-mutiny + + io.smallrye.reactive + mutiny-zero-flow-adapters + org.graalvm.nativeimage svm diff --git a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java index c281e78eae50b..d965b3b1da999 100644 --- a/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java +++ b/extensions/narayana-jta/runtime/src/main/java/io/quarkus/narayana/jta/runtime/interceptor/TransactionalInterceptorBase.java @@ -9,6 +9,7 @@ import java.util.concurrent.CompletionException; import java.util.concurrent.CompletionStage; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Flow; import java.util.function.Function; import jakarta.inject.Inject; @@ -33,6 +34,8 @@ import io.smallrye.mutiny.Multi; import io.smallrye.reactive.converters.ReactiveTypeConverter; import io.smallrye.reactive.converters.Registry; +import mutiny.zero.flow.adapters.AdaptersToFlow; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public abstract class TransactionalInterceptorBase implements Serializable { @@ -138,8 +141,7 @@ protected Object invokeInOurTx(InvocationContext ic, TransactionManager tm, Runn // handle asynchronously if not throwing if (!throwing && ret != null) { ReactiveTypeConverter converter = null; - if (ret instanceof CompletionStage == false - && (ret instanceof Publisher == false || ic.getMethod().getReturnType() != Publisher.class)) { + if (!isCompletionStage(ret) && !isSomePublisher(ic, ret)) { @SuppressWarnings({ "rawtypes", "unchecked" }) Optional> lookup = Registry.lookup((Class) ret.getClass()); if (lookup.isPresent()) { @@ -151,12 +153,15 @@ protected Object invokeInOurTx(InvocationContext ic, TransactionManager tm, Runn } } } - if (ret instanceof CompletionStage) { + if (isCompletionStage(ret)) { ret = handleAsync(tm, tx, ic, ret, afterEndTransaction); // convert back if (converter != null) ret = converter.fromCompletionStage((CompletionStage) ret); - } else if (ret instanceof Publisher) { + } else if (isFlowPublisher(ret)) { + // FIXME this needs to be tested + ret = handleAsync(tm, tx, ic, ret, afterEndTransaction); + } else if (isLegacyPublisher(ret)) { ret = handleAsync(tm, tx, ic, ret, afterEndTransaction); // convert back if (converter != null) @@ -173,6 +178,23 @@ protected Object invokeInOurTx(InvocationContext ic, TransactionManager tm, Runn return ret; } + private static boolean isLegacyPublisher(Object ret) { + return ret instanceof Publisher; + } + + private boolean isSomePublisher(InvocationContext ic, Object ret) { + return isLegacyPublisher(ret) || (ic.getMethod().getReturnType() == Publisher.class) + || isFlowPublisher(ret) || (ic.getMethod().getReturnType() == Flow.Publisher.class); + } + + private static boolean isFlowPublisher(Object ret) { + return ret instanceof Flow.Publisher; + } + + private boolean isCompletionStage(Object ret) { + return ret instanceof CompletionStage; + } + private int getTransactionTimeoutFromAnnotation(InvocationContext ic) { TransactionConfiguration configAnnotation = getTransactionConfiguration(ic); @@ -223,7 +245,7 @@ protected Object handleAsync(TransactionManager tm, Transaction tx, InvocationCo // Suspend the transaction to remove it from the main request thread tm.suspend(); afterEndTransaction.run(); - if (ret instanceof CompletionStage) { + if (isCompletionStage(ret)) { return ((CompletionStage) ret).handle((v, t) -> { try { doInTransaction(tm, tx, () -> { @@ -249,8 +271,15 @@ protected Object handleAsync(TransactionManager tm, Transaction tx, InvocationCo throw new CompletionException(t); return v; }); - } else if (ret instanceof Publisher) { - ret = Multi.createFrom().publisher((Publisher) ret) + } else if (isLegacyPublisher(ret) || isFlowPublisher(ret)) { + Flow.Publisher pub; + boolean isLegacyRS = !isFlowPublisher(ret); + if (isLegacyRS) { + pub = AdaptersToFlow.publisher((Publisher) ret); + } else { + pub = (Flow.Publisher) ret; + } + ret = Multi.createFrom().publisher(pub) .onFailure().invoke(t -> { try { doInTransaction(tm, tx, () -> handleExceptionNoThrow(ic, t, tx)); @@ -276,6 +305,9 @@ protected Object handleAsync(TransactionManager tm, Transaction tx, InvocationCo throw new RuntimeException(e); } }); + if (isLegacyRS) { + ret = AdaptersToReactiveStreams.publisher((Multi) ret); + } } return ret; } diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiJsonArraySupport.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiJsonArraySupport.java index 38417f89b7ad0..f7da1f6d3e4ae 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiJsonArraySupport.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiJsonArraySupport.java @@ -1,10 +1,9 @@ package io.quarkus.vertx.web.runtime; +import java.util.concurrent.Flow; +import java.util.concurrent.Flow.Subscriber; import java.util.function.Function; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; - import io.smallrye.mutiny.Multi; import io.vertx.core.AsyncResult; import io.vertx.core.Handler; @@ -37,10 +36,10 @@ public Buffer apply(String s) { private static void write(Multi multi, RoutingContext rc) { HttpServerResponse response = rc.response(); multi.subscribe().withSubscriber(new Subscriber() { - Subscription upstream; + Flow.Subscription upstream; @Override - public void onSubscribe(Subscription subscription) { + public void onSubscribe(Flow.Subscription subscription) { this.upstream = subscription; this.upstream.request(1); } @@ -78,7 +77,7 @@ public void onComplete() { }); } - private static void onWriteDone(Subscription subscription, AsyncResult ar, RoutingContext rc) { + private static void onWriteDone(Flow.Subscription subscription, AsyncResult ar, RoutingContext rc) { if (ar.failed()) { rc.fail(ar.cause()); } else { diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiNdjsonSupport.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiNdjsonSupport.java index 4d7da7b2fc5c8..907ea871ae112 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiNdjsonSupport.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiNdjsonSupport.java @@ -1,7 +1,7 @@ package io.quarkus.vertx.web.runtime; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; +import java.util.concurrent.Flow.Subscriber; +import java.util.concurrent.Flow.Subscription; import io.smallrye.mutiny.Multi; import io.vertx.core.AsyncResult; diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSseSupport.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSseSupport.java index 11962e9bdd75c..1c3c323628760 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSseSupport.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSseSupport.java @@ -1,11 +1,10 @@ package io.quarkus.vertx.web.runtime; +import java.util.concurrent.Flow; +import java.util.concurrent.Flow.Subscription; import java.util.concurrent.atomic.AtomicLong; import java.util.function.Function; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; - import io.quarkus.vertx.web.ReactiveRoutes; import io.smallrye.mutiny.Multi; import io.vertx.core.AsyncResult; @@ -52,7 +51,7 @@ private static void onWriteDone(Subscription subscription, AsyncResult ar, public static void write(Multi multi, RoutingContext rc) { HttpServerResponse response = rc.response(); - multi.subscribe().withSubscriber(new Subscriber() { + multi.subscribe().withSubscriber(new Flow.Subscriber() { Subscription upstream; @Override @@ -86,7 +85,7 @@ public void onComplete() { public static void subscribeBuffer(Multi multi, RoutingContext rc) { HttpServerResponse response = rc.response(); - multi.subscribe().withSubscriber(new Subscriber() { + multi.subscribe().withSubscriber(new Flow.Subscriber() { Subscription upstream; final AtomicLong count = new AtomicLong(); diff --git a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSupport.java b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSupport.java index 58634cd62469f..efde297927100 100644 --- a/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSupport.java +++ b/extensions/reactive-routes/runtime/src/main/java/io/quarkus/vertx/web/runtime/MultiSupport.java @@ -1,11 +1,10 @@ package io.quarkus.vertx.web.runtime; +import java.util.concurrent.Flow.Subscriber; +import java.util.concurrent.Flow.Subscription; import java.util.function.Consumer; import java.util.function.Function; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; - import io.smallrye.mutiny.Multi; import io.vertx.core.AsyncResult; import io.vertx.core.Handler; diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/pom.xml b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/pom.xml index f9bc83e92c9e7..cf3625af52f05 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/pom.xml @@ -22,6 +22,10 @@ io.quarkus quarkus-mutiny + + io.smallrye.reactive + mutiny-zero-flow-adapters + org.jboss.resteasy resteasy-client diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiProvider.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiProvider.java index fa53954b5168e..a8fcdac529730 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiProvider.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/main/java/io/quarkus/resteasy/mutiny/common/runtime/MultiProvider.java @@ -4,10 +4,11 @@ import org.reactivestreams.Publisher; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class MultiProvider implements AsyncStreamProvider> { @Override public Publisher toAsyncStream(Multi multi) { - return multi; + return AdaptersToReactiveStreams.publisher(multi); } -} \ No newline at end of file +} diff --git a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/MultiProviderTest.java b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/MultiProviderTest.java index 1144b7e535044..9ff98a595da42 100644 --- a/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/MultiProviderTest.java +++ b/extensions/resteasy-classic/resteasy-mutiny-common/runtime/src/test/java/io/quarkus/resteasy/mutiny/common/test/MultiProviderTest.java @@ -8,6 +8,7 @@ import io.quarkus.resteasy.mutiny.common.runtime.MultiProvider; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToFlow; public class MultiProviderTest { @@ -17,7 +18,8 @@ public class MultiProviderTest { public void test() { Multi multi = Multi.createFrom().items(1, 2, 3); Publisher publisher = provider.toAsyncStream(multi); - List list = Multi.createFrom().publisher(publisher).collect().asList().await().indefinitely(); + List list = Multi.createFrom().publisher(AdaptersToFlow.publisher(publisher)).collect().asList().await() + .indefinitely(); Assertions.assertEquals(1, list.get(0)); Assertions.assertEquals(2, list.get(1)); Assertions.assertEquals(3, list.get(2)); diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java index c42dea196633a..a6f8ea1df87a7 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamResource.java @@ -1,6 +1,7 @@ package io.quarkus.resteasy.reactive.server.test.stream; import java.util.Date; +import java.util.concurrent.Flow; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; @@ -20,6 +21,7 @@ import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.infrastructure.Infrastructure; import io.vertx.core.buffer.Buffer; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; @Path("stream") public class StreamResource { @@ -43,10 +45,17 @@ public Multi getStreamedText() { @Path("text/stream/publisher") @GET @Produces(MediaType.TEXT_PLAIN) - public Publisher getStreamedTextPublisher() { + public Flow.Publisher getStreamedTextPublisher() { return Multi.createFrom().items("foo", "bar"); } + @Path("text/stream/legacy-publisher") + @GET + @Produces(MediaType.TEXT_PLAIN) + public Publisher getStreamedTextLegacyPublisher() { + return AdaptersToReactiveStreams.publisher(Multi.createFrom().items("foo", "bar")); + } + @Path("byte-arrays/collect") @GET @Produces(MediaType.TEXT_PLAIN) @@ -78,7 +87,7 @@ public Multi getStreamedCharArrays() { @Path("char-arrays/stream/publisher") @GET @Produces(MediaType.TEXT_PLAIN) - public Publisher getStreamedCharArraysPublisher() { + public Flow.Publisher getStreamedCharArraysPublisher() { return Multi.createFrom().items("foo".toCharArray(), "bar".toCharArray()); } diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java index 75e9830a024f2..7a2135bd216cd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/stream/StreamTestCase.java @@ -105,6 +105,10 @@ public void testStreaming() throws Exception { .then() .statusCode(200) .body(Matchers.equalTo("foobar")); + RestAssured.get("/stream/text/stream/legacy-publisher") + .then() + .statusCode(200) + .body(Matchers.equalTo("foobar")); RestAssured.get("/stream/text/collect") .then() .statusCode(200) diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java index 93771a283c998..d708936335aa2 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/ProducingBean.java @@ -1,11 +1,11 @@ package io.quarkus.smallrye.reactivemessaging.amqp; import java.time.Duration; +import java.util.concurrent.Flow; import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import org.reactivestreams.Publisher; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; @@ -14,7 +14,7 @@ public class ProducingBean { @Outgoing("source") - public Publisher generate() { + public Flow.Publisher generate() { return Multi.createFrom().range(1, 11) .map(Integer::longValue) .map(i -> i * 2) diff --git a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java index f7ae0181c2a3a..812ed0ac96845 100644 --- a/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java +++ b/extensions/smallrye-reactive-messaging-amqp/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/amqp/devmode/nohttp/Producer.java @@ -1,18 +1,18 @@ package io.quarkus.smallrye.reactivemessaging.amqp.devmode.nohttp; import java.time.Duration; +import java.util.concurrent.Flow; import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import org.reactivestreams.Publisher; import io.smallrye.mutiny.Multi; @ApplicationScoped public class Producer { @Outgoing("source") - public Publisher generate() { + public Flow.Publisher generate() { return Multi.createFrom().ticks().every(Duration.ofMillis(200)) .onOverflow().drop() .map(i -> i * 1); diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/QuarkusMediatorConfigurationUtil.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/QuarkusMediatorConfigurationUtil.java index 59b0c766fae65..858b60cfd4195 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/QuarkusMediatorConfigurationUtil.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/QuarkusMediatorConfigurationUtil.java @@ -114,11 +114,8 @@ public static QuarkusMediatorConfiguration create(MethodInfo methodInfo, boolean configuration.setProduction(validationOutput.getProduction()); configuration.setConsumption(validationOutput.getConsumption()); configuration.setIngestedPayloadType(validationOutput.getIngestedPayloadType()); - if (validationOutput.getUseBuilderTypes()) { - configuration.setUseBuilderTypes(validationOutput.getUseBuilderTypes()); - } else { - configuration.setUseBuilderTypes(false); - } + configuration.setUseBuilderTypes(validationOutput.getUseBuilderTypes()); + configuration.setUseReactiveStreams(validationOutput.getUseReactiveStreams()); if (acknowledgment == null) { acknowledgment = mediatorConfigurationSupport.processDefaultAcknowledgement(shape, diff --git a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java index b43bddc727e68..b9db175cfb784 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/main/java/io/quarkus/smallrye/reactivemessaging/deployment/ReactiveMessagingDotNames.java @@ -55,9 +55,8 @@ public final class ReactiveMessagingDotNames { static final DotName EMITTER_FACTORY_FOR = DotName.createSimple(EmitterFactoryFor.class.getName()); static final DotName INCOMING_CONNECTOR_FACTORY = DotName.createSimple(IncomingConnectorFactory.class.getName()); - static final DotName OUTGOING_CONNECTOR_FACTORY = DotName.createSimple(OutgoingConnectorFactory.class.getName()); - static final DotName INBOUND_CONNECTOR = DotName.createSimple(InboundConnector.class.getName()); + static final DotName OUTGOING_CONNECTOR_FACTORY = DotName.createSimple(OutgoingConnectorFactory.class.getName()); static final DotName OUTBOUND_CONNECTOR = DotName.createSimple(OutboundConnector.class.getName()); static final DotName SMALLRYE_BLOCKING = DotName.createSimple(io.smallrye.common.annotation.Blocking.class.getName()); diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java index 4d89322315f35..68af7c38ffd81 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/SmallRyeBlockingSubscriberTest.java @@ -5,6 +5,7 @@ import java.io.File; import java.util.List; +import java.util.concurrent.Flow; import java.util.stream.Collectors; import jakarta.enterprise.context.ApplicationScoped; @@ -13,7 +14,6 @@ import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.smallrye.reactivemessaging.blocking.beans.IncomingUsingSmallRyeBlocking; import io.quarkus.test.QuarkusUnitTest; @@ -47,7 +47,7 @@ public void testIncomingUsingRunOnWorkerThread() { @ApplicationScoped public static class ProduceIn { @Outgoing("in") - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("a", "b", "c", "d", "e", "f"); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java index 04b6134a478a7..81e3a7639d388 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/TransactionalSubscriberTest.java @@ -5,6 +5,7 @@ import java.io.File; import java.util.List; +import java.util.concurrent.Flow; import java.util.stream.Collectors; import jakarta.enterprise.context.ApplicationScoped; @@ -13,7 +14,6 @@ import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.smallrye.reactivemessaging.blocking.beans.IncomingUsingTransactional; import io.quarkus.test.QuarkusUnitTest; @@ -47,7 +47,7 @@ public void testIncomingUsingRunOnWorkerThread() { @ApplicationScoped public static class ProduceIn { @Outgoing("in") - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("a", "b", "c", "d", "e", "f"); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java index 76a4eb3fd2eb6..9db7283577cea 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/BlockingSubscriberTest.java @@ -5,6 +5,7 @@ import java.io.File; import java.util.List; +import java.util.concurrent.Flow; import java.util.stream.Collectors; import jakarta.enterprise.context.ApplicationScoped; @@ -13,7 +14,6 @@ import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.smallrye.reactivemessaging.blocking.beans.IncomingCustomTwoBlockingBean; import io.quarkus.smallrye.reactivemessaging.blocking.beans.IncomingCustomUnorderedBlockingBean; @@ -72,7 +72,7 @@ public void testIncomingBlockingCustomPoolTwo() { public static class ProduceIn { @Outgoing("in") @Broadcast(2) - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("a", "b", "c", "d", "e", "f"); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java index f2792b6cca643..dddaaf8838292 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/blocking/SmallRyeBlockingSubscriberTest.java @@ -5,6 +5,7 @@ import java.io.File; import java.util.List; +import java.util.concurrent.Flow; import java.util.stream.Collectors; import jakarta.enterprise.context.ApplicationScoped; @@ -13,7 +14,6 @@ import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.smallrye.reactivemessaging.blocking.beans.IncomingUsingSmallRyeBlocking; import io.quarkus.test.QuarkusUnitTest; @@ -47,7 +47,7 @@ public void testIncomingUsingRunOnWorkerThread() { @ApplicationScoped public static class ProduceIn { @Outgoing("in") - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("a", "b", "c", "d", "e", "f"); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java index 9ec142ab201a9..084ddf6a2678c 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/channels/DeprecatedChannelConsumer.java @@ -13,6 +13,7 @@ import io.smallrye.mutiny.Multi; import io.smallrye.reactive.messaging.annotations.Channel; +import mutiny.zero.flow.adapters.AdaptersToFlow; @ApplicationScoped public class DeprecatedChannelConsumer { @@ -22,7 +23,7 @@ public class DeprecatedChannelConsumer { Publisher> sourceStream; public List consume() { - return Multi.createFrom().publisher(sourceStream) + return Multi.createFrom().publisher(AdaptersToFlow.publisher(sourceStream)) .onItem().transform(Message::getPayload) .collect().asList() .await().indefinitely(); diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java index 4102b9e5124a6..8800f0cc06904 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/signatures/IncomingsTest.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.Flow; import jakarta.enterprise.context.ApplicationScoped; import jakarta.inject.Inject; @@ -13,7 +14,6 @@ import org.eclipse.microprofile.reactive.messaging.Outgoing; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; @@ -39,7 +39,7 @@ public void testIncomingsWithTwoSources() { public static class ProducerOnA { @Outgoing("a") - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("a", "b", "c"); } @@ -49,7 +49,7 @@ public Publisher produce() { public static class ProducerOnB { @Outgoing("b") - public Publisher produce() { + public Flow.Publisher produce() { return Multi.createFrom().items("d", "e", "f"); } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java index 647fea7bb98f7..3b9650e229ec0 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentChannelTest.java @@ -23,6 +23,7 @@ import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class ConnectorAttachmentChannelTest { @@ -45,7 +46,8 @@ static class MyDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java index 37ef0f8a9fc51..e8dfb8b826dc6 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentCustomEmitterTest.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.Objects; import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.Flow; import jakarta.annotation.PostConstruct; import jakarta.enterprise.context.ApplicationScoped; @@ -24,7 +25,6 @@ import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -import org.reactivestreams.Publisher; import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; @@ -89,7 +89,7 @@ interface CustomEmitter extends EmitterType { static class CustomEmitterImpl implements MessagePublisherProvider, CustomEmitter { @Override - public Publisher> getPublisher() { + public Flow.Publisher> getPublisher() { return Multi.createFrom().range(0, 5).map(Message::of).map(m -> (Message) m); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java index 9c0842b500c35..4968931d27d56 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/ConnectorAttachmentIncomingTest.java @@ -22,6 +22,7 @@ import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class ConnectorAttachmentIncomingTest { @@ -44,7 +45,8 @@ static class MyDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java index 82a04a471ff40..dd059d54a748d 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/DisabledConnectorAttachmentIncomingTest.java @@ -23,6 +23,7 @@ import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class DisabledConnectorAttachmentIncomingTest { @@ -48,7 +49,8 @@ static class MyDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java index 2217eebb3161e..9ffb14588289b 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/IncomingChannelWithDotsTest.java @@ -22,6 +22,7 @@ import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class IncomingChannelWithDotsTest { @@ -44,7 +45,8 @@ static class MyDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } diff --git a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java index 68f708c54b04f..5ffe5ef6888cf 100644 --- a/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java +++ b/extensions/smallrye-reactive-messaging/deployment/src/test/java/io/quarkus/smallrye/reactivemessaging/wiring/TwoConnectorsAttachmentIncomingTest.java @@ -23,6 +23,7 @@ import io.quarkus.test.QuarkusUnitTest; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; public class TwoConnectorsAttachmentIncomingTest { @@ -47,7 +48,8 @@ static class MyDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } @@ -57,7 +59,8 @@ static class MySecondDummyConnector implements IncomingConnectorFactory { @Override public PublisherBuilder> getPublisherBuilder(Config config) { - return ReactiveStreams.fromPublisher(Multi.createFrom().range(0, 5).map(Message::of)); + return ReactiveStreams + .fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().range(0, 5).map(Message::of))); } } diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java index 3bb3703f4af2e..7ac562c0b1f4a 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/DuplicatedContextConnectorFactoryInterceptor.java @@ -1,6 +1,7 @@ package io.quarkus.smallrye.reactivemessaging.runtime; import java.util.Optional; +import java.util.concurrent.Flow; import jakarta.annotation.Priority; import jakarta.interceptor.AroundInvoke; @@ -9,7 +10,6 @@ import org.eclipse.microprofile.reactive.messaging.Message; import org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder; -import org.reactivestreams.Publisher; import io.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle; import io.smallrye.common.vertx.VertxContext; @@ -29,7 +29,7 @@ public Object intercept(InvocationContext ctx) throws Exception { return result.map(DuplicatedContextConnectorFactoryInterceptor::setMessageContextSafe); } if (ctx.getMethod().getName().equals("getPublisher")) { - Publisher> result = (Publisher>) ctx.proceed(); + Flow.Publisher> result = (Flow.Publisher>) ctx.proceed(); return Multi.createFrom().publisher(result) .map(DuplicatedContextConnectorFactoryInterceptor::setMessageContextSafe); } diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java index 48c3309a2dc1d..054e1111d8960 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/QuarkusMediatorConfiguration.java @@ -53,6 +53,8 @@ public class QuarkusMediatorConfiguration implements MediatorConfiguration { private Type ingestedPayload; + private boolean useReactiveStreams = false; + public String getBeanId() { return beanId; } @@ -260,4 +262,17 @@ public void setBlockingExecutionOrdered(boolean blockingExecutionOrdered) { public void setWorkerPoolName(String workerPoolName) { this.workerPoolName = workerPoolName; } + + public boolean isUseReactiveStreams() { + return useReactiveStreams; + } + + public void setUseReactiveStreams(boolean usesReactiveStreams) { + this.useReactiveStreams = usesReactiveStreams; + } + + @Override + public boolean usesReactiveStreams() { + return useReactiveStreams; + } } diff --git a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java index e006416e9a4b8..ffeaae2e883b6 100644 --- a/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java +++ b/extensions/smallrye-reactive-messaging/runtime/src/main/java/io/quarkus/smallrye/reactivemessaging/runtime/devmode/DevModeSupportConnectorFactoryInterceptor.java @@ -1,6 +1,7 @@ package io.quarkus.smallrye.reactivemessaging.runtime.devmode; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Flow; import java.util.function.Supplier; import jakarta.annotation.Priority; @@ -12,7 +13,6 @@ import org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder; import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; import org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder; -import org.reactivestreams.Publisher; import org.reactivestreams.Subscriber; import org.reactivestreams.Subscription; @@ -50,7 +50,7 @@ public Object intercept(InvocationContext ctx) throws Exception { }); } if (ctx.getMethod().getName().equals("getPublisher")) { - Publisher> result = (Publisher>) ctx.proceed(); + Flow.Publisher> result = (Flow.Publisher>) ctx.proceed(); return Multi.createFrom().publisher(result) .onItem().transformToUniAndConcatenate(msg -> Uni.createFrom().emitter(e -> { onMessage.get().whenComplete((restarted, error) -> { @@ -94,12 +94,12 @@ public void onComplete() { }); } if (ctx.getMethod().getName().equals("getSubscriber")) { - Subscriber> result = (Subscriber>) ctx.proceed(); - return new Subscriber>() { - private Subscriber> subscriber; + Flow.Subscriber> result = (Flow.Subscriber>) ctx.proceed(); + return new Flow.Subscriber>() { + private Flow.Subscriber> subscriber; @Override - public void onSubscribe(Subscription s) { + public void onSubscribe(Flow.Subscription s) { subscriber = result; subscriber.onSubscribe(s); } diff --git a/independent-projects/arc/pom.xml b/independent-projects/arc/pom.xml index beffa29e305c8..289d0292e34b7 100644 --- a/independent-projects/arc/pom.xml +++ b/independent-projects/arc/pom.xml @@ -52,7 +52,7 @@ 2.1.1 1.6.0.Final 3.0.0 - 1.8.0 + 2.1.0 3.0.0-M8 1.6.8 diff --git a/independent-projects/qute/pom.xml b/independent-projects/qute/pom.xml index 2000c354185aa..3b50866e86d90 100644 --- a/independent-projects/qute/pom.xml +++ b/independent-projects/qute/pom.xml @@ -47,7 +47,7 @@ 3.5.0.Final 3.0.0-M8 1.6.8 - 1.9.0 + 2.1.0 diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/MultiByteHttpData.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/MultiByteHttpData.java index 3223884280ba7..f85b6c136b5d4 100644 --- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/MultiByteHttpData.java +++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/multipart/MultiByteHttpData.java @@ -20,10 +20,10 @@ import java.io.InputStream; import java.nio.charset.Charset; import java.util.concurrent.Executor; +import java.util.concurrent.Flow.Subscription; import java.util.function.Consumer; import org.jboss.logging.Logger; -import org.reactivestreams.Subscription; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; diff --git a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java index a80eba40712df..dd8e13857d185 100644 --- a/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java +++ b/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/ResteasyReactiveDotNames.java @@ -21,6 +21,7 @@ import java.util.SortedSet; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; +import java.util.concurrent.Flow.Publisher; import jakarta.annotation.Priority; import jakarta.enterprise.context.ApplicationScoped; @@ -93,7 +94,6 @@ import org.jboss.resteasy.reactive.RestSseElementType; import org.jboss.resteasy.reactive.RestStreamElementType; import org.jboss.resteasy.reactive.Separator; -import org.reactivestreams.Publisher; import io.smallrye.common.annotation.Blocking; import io.smallrye.common.annotation.NonBlocking; @@ -205,6 +205,7 @@ public final class ResteasyReactiveDotNames { public static final DotName COMPLETION_STAGE = DotName.createSimple(CompletionStage.class.getName()); public static final DotName COMPLETABLE_FUTURE = DotName.createSimple(CompletableFuture.class.getName()); public static final DotName PUBLISHER = DotName.createSimple(Publisher.class.getName()); + public static final DotName LEGACY_PUBLISHER = DotName.createSimple(org.reactivestreams.Publisher.class.getName()); public static final DotName REST_RESPONSE = DotName.createSimple(RestResponse.class.getName()); public static final DotName INTEGER = DotName.createSimple(Integer.class.getName()); diff --git a/independent-projects/resteasy-reactive/common/runtime/pom.xml b/independent-projects/resteasy-reactive/common/runtime/pom.xml index 69002f5afe25b..2447d17a34748 100644 --- a/independent-projects/resteasy-reactive/common/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/common/runtime/pom.xml @@ -22,6 +22,14 @@ io.smallrye.reactive mutiny + + org.reactivestreams + reactive-streams + + + io.smallrye.reactive + mutiny-zero-flow-adapters + io.smallrye.common smallrye-common-annotation diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index df3d4d1aad2ea..4a0ee489451c4 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -59,7 +59,7 @@ 3.0.0-M8 1.6.8 - 1.9.0 + 2.1.0 1.13.2 4.3.5 4.5.1 @@ -70,7 +70,9 @@ 3.0.2 3.0.0 4.2.0 - 2.25.0 + 3.0.0 + 1.0.4 + 1.0.0 3.4 @@ -217,11 +219,22 @@ ${vertx.version} + + org.reactivestreams + reactive-streams + ${reactive-streams.version} + + io.smallrye.reactive mutiny ${mutiny.version} + + io.smallrye.reactive + mutiny-zero-flow-adapters + ${mutiny-zero.version} + io.smallrye.reactive smallrye-mutiny-vertx-core diff --git a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/AsyncReturnTypeScanner.java b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/AsyncReturnTypeScanner.java index d04a8d4133af4..5cf0e9ce56ad4 100644 --- a/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/AsyncReturnTypeScanner.java +++ b/independent-projects/resteasy-reactive/server/processor/src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/AsyncReturnTypeScanner.java @@ -2,6 +2,7 @@ import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.COMPLETABLE_FUTURE; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.COMPLETION_STAGE; +import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.LEGACY_PUBLISHER; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.MULTI; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.PUBLISHER; import static org.jboss.resteasy.reactive.common.processor.ResteasyReactiveDotNames.UNI; @@ -32,7 +33,7 @@ public List scan(MethodInfo method, ClassInfo actualEndp return Collections.singletonList(new FixedHandlerChainCustomizer(new UniResponseHandler(), HandlerChainCustomizer.Phase.AFTER_METHOD_INVOKE)); } - if (returnTypeName.equals(MULTI) || returnTypeName.equals(PUBLISHER)) { + if (returnTypeName.equals(MULTI) || returnTypeName.equals(PUBLISHER) || returnTypeName.equals(LEGACY_PUBLISHER)) { return Collections.singletonList(new FixedHandlerChainCustomizer(new PublisherResponseHandler(), HandlerChainCustomizer.Phase.AFTER_METHOD_INVOKE)); } @@ -43,6 +44,7 @@ public List scan(MethodInfo method, ClassInfo actualEndp public boolean isMethodSignatureAsync(MethodInfo method) { DotName returnTypeName = method.returnType().name(); return returnTypeName.equals(COMPLETION_STAGE) || returnTypeName.equals(COMPLETABLE_FUTURE) || - returnTypeName.equals(UNI) || returnTypeName.equals(MULTI) || returnTypeName.equals(PUBLISHER); + returnTypeName.equals(UNI) || returnTypeName.equals(MULTI) || returnTypeName.equals(PUBLISHER) || + returnTypeName.equals(LEGACY_PUBLISHER); } } diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java index c06a031fe7713..d10f6fcfdaecd 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/PublisherResponseHandler.java @@ -6,6 +6,9 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.concurrent.Flow.Publisher; +import java.util.concurrent.Flow.Subscriber; +import java.util.concurrent.Flow.Subscription; import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.function.Consumer; @@ -23,9 +26,8 @@ import org.jboss.resteasy.reactive.server.model.HandlerChainCustomizer.Phase; import org.jboss.resteasy.reactive.server.spi.ServerRestHandler; import org.jboss.resteasy.reactive.server.spi.StreamingResponse; -import org.reactivestreams.Publisher; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; + +import mutiny.zero.flow.adapters.AdaptersToFlow; /** * This handler is used to push streams of data to the client. @@ -246,8 +248,12 @@ public void handle(ResteasyReactiveRequestContext requestContext) @Override public void handle(ResteasyReactiveRequestContext requestContext) throws Exception { // FIXME: handle Response with entity being a Multi - if (requestContext.getResult() instanceof Publisher) { - Publisher result = (Publisher) requestContext.getResult(); + Object requestContextResult = requestContext.getResult(); + if (requestContextResult instanceof org.reactivestreams.Publisher) { + requestContextResult = AdaptersToFlow.publisher((org.reactivestreams.Publisher) requestContextResult); + } + if (requestContextResult instanceof Publisher) { + Publisher result = (Publisher) requestContextResult; // FIXME: if we make a pretend Response and go through the normal route, we will get // media type negotiation and fixed entity writer set up, perhaps it's better than // cancelling the normal route? diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java index 17d71f5f4bc5f..41aebefcb6d1b 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamResource.java @@ -1,6 +1,7 @@ package org.jboss.resteasy.reactive.server.vertx.test.stream; import java.util.Date; +import java.util.concurrent.Flow.Publisher; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; @@ -11,12 +12,12 @@ import jakarta.ws.rs.core.MediaType; import org.jboss.resteasy.reactive.common.util.MultiCollectors; -import org.reactivestreams.Publisher; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; import io.smallrye.mutiny.infrastructure.Infrastructure; import io.vertx.core.buffer.Buffer; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; @Path("stream") public class StreamResource { @@ -44,6 +45,13 @@ public Publisher getStreamedTextPublisher() { return Multi.createFrom().items("foo", "bar"); } + @Path("text/stream/legacy-publisher") + @GET + @Produces(MediaType.TEXT_PLAIN) + public org.reactivestreams.Publisher getStreamedTextLegacyPublisher() { + return AdaptersToReactiveStreams.publisher(Multi.createFrom().items("foo", "bar")); + } + @Path("byte-arrays/collect") @GET @Produces(MediaType.TEXT_PLAIN) diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java index 10ff84498cda4..d97c50659ec71 100644 --- a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/stream/StreamTestCase.java @@ -104,6 +104,10 @@ public void testStreaming() throws Exception { .then() .statusCode(200) .body(Matchers.equalTo("foobar")); + RestAssured.get("/stream/text/stream/legacy-publisher") + .then() + .statusCode(200) + .body(Matchers.equalTo("foobar")); RestAssured.get("/stream/text/collect") .then() .statusCode(200) diff --git a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java index affecb9fdf6c6..d9a63239dff43 100644 --- a/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java +++ b/integration-tests/devmode/src/test/java/io/quarkus/test/devconsole/MyProcessor.java @@ -1,5 +1,7 @@ package io.quarkus.test.devconsole; +import java.util.concurrent.Flow; + import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.event.Observes; import jakarta.enterprise.inject.Instance; @@ -8,9 +10,6 @@ import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Incoming; import org.eclipse.microprofile.reactive.messaging.Outgoing; -import org.reactivestreams.Publisher; -import org.reactivestreams.Subscriber; -import org.reactivestreams.Subscription; import io.smallrye.reactive.messaging.annotations.Broadcast; import io.vertx.core.http.HttpServerResponse; @@ -21,14 +20,14 @@ public class MyProcessor { @Inject @Channel("processed") - Instance> channel; + Instance> channel; public void init(@Observes Router router) { router.get().handler(rc -> { HttpServerResponse response = rc.response(); - channel.get().subscribe(new Subscriber() { + channel.get().subscribe(new Flow.Subscriber() { @Override - public void onSubscribe(Subscription subscription) { + public void onSubscribe(Flow.Subscription subscription) { response.putHeader("Transfer-encoding", "chunked"); subscription.request(2); } diff --git a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java index 828d18c69d3ab..a78519c8d7ca6 100644 --- a/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java +++ b/integration-tests/main/src/main/java/io/quarkus/it/reactive/ReactiveStreamOpsResource.java @@ -6,6 +6,7 @@ import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams; import io.smallrye.mutiny.Multi; +import mutiny.zero.flow.adapters.AdaptersToReactiveStreams; @Path("/reactive") public class ReactiveStreamOpsResource { @@ -30,7 +31,7 @@ public String stream1() { @Path("/stream-mutiny") public String stream2() { StringBuilder builder = new StringBuilder(); - ReactiveStreams.fromPublisher(Multi.createFrom().items("d", "e", "f")) + ReactiveStreams.fromPublisher(AdaptersToReactiveStreams.publisher(Multi.createFrom().items("d", "e", "f"))) .map(String::toUpperCase) .forEach(builder::append) .run(); diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt index 8237bed5f257c..9984585251220 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.kt @@ -19,9 +19,9 @@ import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import org.jboss.resteasy.reactive.RestStreamElementType -import org.reactivestreams.Publisher import java.net.URI import java.time.LocalDate.parse +import java.util.concurrent.Flow @Path("/reactive/books/entity") class ReactiveBookEntityResource { @@ -43,7 +43,7 @@ class ReactiveBookEntityResource { @Path("/stream") @Produces(MediaType.SERVER_SENT_EVENTS) @RestStreamElementType(MediaType.APPLICATION_JSON) - fun streamBooks(@QueryParam("sort") sort: String?): Publisher { + fun streamBooks(@QueryParam("sort") sort: String?): Flow.Publisher { return if (sort != null) { ReactiveBookEntity.streamAll(Sort.ascending(sort)) } else ReactiveBookEntity.streamAll() diff --git a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt index 3ca8977a3dcc0..bdd3f2baa8c0c 100644 --- a/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt +++ b/integration-tests/mongodb-panache-kotlin/src/main/kotlin/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.kt @@ -21,9 +21,9 @@ import jakarta.ws.rs.core.Response import org.bson.types.ObjectId import org.jboss.logging.Logger import org.jboss.resteasy.reactive.RestStreamElementType -import org.reactivestreams.Publisher import java.net.URI import java.time.LocalDate +import java.util.concurrent.Flow @Path("/reactive/books/repository") class ReactiveBookRepositoryResource { @@ -48,7 +48,7 @@ class ReactiveBookRepositoryResource { @Path("/stream") @Produces(MediaType.SERVER_SENT_EVENTS) @RestStreamElementType(MediaType.APPLICATION_JSON) - fun streamBooks(@QueryParam("sort") sort: String?): Publisher { + fun streamBooks(@QueryParam("sort") sort: String?): Flow.Publisher { return if (sort != null) { reactiveBookRepository.streamAll(Sort.ascending(sort)) } else reactiveBookRepository.streamAll() diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java index 38d640841f6b9..eddd1391f6189 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookEntityResource.java @@ -3,6 +3,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.List; +import java.util.concurrent.Flow; import jakarta.annotation.PostConstruct; import jakarta.ws.rs.*; @@ -12,7 +13,6 @@ import org.bson.types.ObjectId; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.RestStreamElementType; -import org.reactivestreams.Publisher; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; @@ -41,7 +41,7 @@ public Uni> getBooks(@QueryParam("sort") String sort) { @Path("/stream") @Produces(MediaType.SERVER_SENT_EVENTS) @RestStreamElementType(MediaType.APPLICATION_JSON) - public Publisher streamBooks(@QueryParam("sort") String sort) { + public Flow.Publisher streamBooks(@QueryParam("sort") String sort) { if (sort != null) { return ReactiveBookEntity.streamAll(Sort.ascending(sort)); } diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java index b0c97b81524b7..96e21828edc16 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/reactive/book/ReactiveBookRepositoryResource.java @@ -3,6 +3,7 @@ import java.net.URI; import java.time.LocalDate; import java.util.List; +import java.util.concurrent.Flow; import jakarta.annotation.PostConstruct; import jakarta.inject.Inject; @@ -13,7 +14,6 @@ import org.bson.types.ObjectId; import org.jboss.logging.Logger; import org.jboss.resteasy.reactive.RestStreamElementType; -import org.reactivestreams.Publisher; import io.quarkus.it.mongodb.panache.book.Book; import io.quarkus.panache.common.Parameters; @@ -45,7 +45,7 @@ public Uni> getBooks(@QueryParam("sort") String sort) { @Path("/stream") @Produces(MediaType.SERVER_SENT_EVENTS) @RestStreamElementType(MediaType.APPLICATION_JSON) - public Publisher streamBooks(@QueryParam("sort") String sort) { + public Flow.Publisher streamBooks(@QueryParam("sort") String sort) { if (sort != null) { return reactiveBookRepository.streamAll(Sort.ascending(sort)); } diff --git a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java index d3e442c56e6b3..26b82ed2877cb 100644 --- a/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java +++ b/integration-tests/smallrye-context-propagation/src/test/java/io/quarkus/context/test/mutiny/MutinyContextEndpoint.java @@ -4,6 +4,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; +import java.util.concurrent.Flow; import jakarta.annotation.PreDestroy; import jakarta.inject.Inject; @@ -23,7 +24,6 @@ import org.eclipse.microprofile.context.ManagedExecutor; import org.eclipse.microprofile.context.ThreadContext; import org.junit.jupiter.api.Assertions; -import org.reactivestreams.Publisher; import org.wildfly.common.Assert; import io.quarkus.arc.Arc; @@ -455,7 +455,7 @@ public Multi transactionPropagationWithMulti() throws SystemException { @Transactional @GET @Path("/transaction-multi-2") - public Publisher transactionPropagationWithMulti2() { + public Flow.Publisher transactionPropagationWithMulti2() { Multi ret = Multi.createFrom().item("OK"); // now delete both entities Assertions.assertEquals(2, Person.deleteAll()); From 5e07541fbcbbab75051411d07d6640b5432b39ed Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 09:57:58 +0200 Subject: [PATCH 182/250] Bump to Kotlin 1.8.10 Supersedes: #30219, #30832 --- bom/application/pom.xml | 2 +- build-parent/pom.xml | 2 +- .../src/test/java/io/quarkus/gradle/QuarkusPluginTest.java | 2 +- devtools/gradle/gradle.properties | 2 +- independent-projects/arc/tests/pom.xml | 2 +- .../conditional-dependencies-kotlin/build.gradle.kts | 4 ++-- jakarta/transform.sh | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index ad5e6c795e6cc..088f760983a63 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -158,7 +158,7 @@ 2.13.0 2.2.0 1.0.0 - 1.7.22 + 1.8.10 1.6.4 1.4.1 3.3.1 diff --git a/build-parent/pom.xml b/build-parent/pom.xml index d94bd0fcc607c..06ae625465c19 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -20,7 +20,7 @@ 3.10.1 - 1.7.22 + 1.8.10 1.7.20 2.13.8 4.8.0 diff --git a/devtools/gradle/gradle-application-plugin/src/test/java/io/quarkus/gradle/QuarkusPluginTest.java b/devtools/gradle/gradle-application-plugin/src/test/java/io/quarkus/gradle/QuarkusPluginTest.java index 0edaafdaf50d0..107f407dd6f6e 100644 --- a/devtools/gradle/gradle-application-plugin/src/test/java/io/quarkus/gradle/QuarkusPluginTest.java +++ b/devtools/gradle/gradle-application-plugin/src/test/java/io/quarkus/gradle/QuarkusPluginTest.java @@ -99,7 +99,7 @@ public void shouldReturnMultipleOutputSourceDirectories() { @Test public void shouldNotFailOnProjectDependenciesWithoutMain() throws IOException { - var kotlinVersion = System.getProperty("kotlin_version", "1.7.22"); + var kotlinVersion = System.getProperty("kotlin_version", "1.8.10"); var settingFile = testProjectDir.resolve("settings.gradle.kts"); var mppProjectDir = testProjectDir.resolve("mpp"); var quarkusProjectDir = testProjectDir.resolve("quarkus"); diff --git a/devtools/gradle/gradle.properties b/devtools/gradle/gradle.properties index 133e709814ac5..f0de20a934820 100644 --- a/devtools/gradle/gradle.properties +++ b/devtools/gradle/gradle.properties @@ -1,2 +1,2 @@ version = 999-SNAPSHOT -kotlin_version = 1.7.22 +kotlin_version = 1.8.10 diff --git a/independent-projects/arc/tests/pom.xml b/independent-projects/arc/tests/pom.xml index cb28436b23edf..66e0f09fb0f02 100644 --- a/independent-projects/arc/tests/pom.xml +++ b/independent-projects/arc/tests/pom.xml @@ -48,7 +48,7 @@ org.jetbrains.kotlin kotlin-stdlib - 1.7.22 + 1.8.10 test diff --git a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts index bb69c02f58958..4770bda577dc1 100644 --- a/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts +++ b/integration-tests/gradle/src/main/resources/conditional-dependencies-kotlin/build.gradle.kts @@ -1,6 +1,6 @@ plugins { - kotlin("jvm") version "1.7.22" - kotlin("plugin.allopen") version "1.7.22" + kotlin("jvm") version "1.8.10" + kotlin("plugin.allopen") version "1.8.10" id("io.quarkus") } diff --git a/jakarta/transform.sh b/jakarta/transform.sh index 13d7a9accbe21..5e762f2a868a6 100755 --- a/jakarta/transform.sh +++ b/jakarta/transform.sh @@ -34,7 +34,7 @@ if [ "${REWRITE_OFFLINE-false}" != "true" ]; then # Build Kotlin Maven Plugin to allow skipping main compilation # (skipping test compilation is supported but not main) rm -rf target/kotlin - git clone -b v1.7.22-jakarta --depth 1 https://github.com/gsmet/kotlin.git target/kotlin + git clone -b v1.8.10-jakarta --depth 1 https://github.com/gsmet/kotlin.git target/kotlin pushd target/kotlin/libraries/tools/kotlin-maven-plugin mvn -B clean install -DskipTests -DskipITs popd From 29318a2ecd159568feb78821eb59134ad59b6040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 18 Jan 2023 10:37:34 +0100 Subject: [PATCH 183/250] Fail by default when encountering interceptor annotations on private methods --- .../io/quarkus/arc/deployment/ArcConfig.java | 6 +- .../FailingPrivateInterceptedMethodTest.java | 5 +- .../IgnoredPrivateInterceptedMethodTest.java | 5 +- .../deployment/DeploymentExceptionsTest.java | 25 +------ .../PrivateMethodExceptionsTest.java | 72 +++++++++++++++++++ 5 files changed, 83 insertions(+), 30 deletions(-) create mode 100644 extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/PrivateMethodExceptionsTest.java diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java index 9ea0451e9e748..f8dab3754211b 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ArcConfig.java @@ -77,12 +77,12 @@ public class ArcConfig { public boolean transformPrivateInjectedFields; /** - * If set to true, the build fails if a private method that is neither an observer nor a producer, is annotated with an - * interceptor binding. + * If set to true (the default), the build fails if a private method that is neither an observer nor a producer, is + * annotated with an interceptor binding. * An example of this is the use of {@code Transactional} on a private method of a bean. * If set to false, Quarkus simply logs a warning that the annotation will be ignored. */ - @ConfigItem(defaultValue = "false") + @ConfigItem(defaultValue = "true") public boolean failOnInterceptedPrivateMethod; /** diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java index 87bc7768536d5..fb3fb4bfb7051 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java @@ -16,7 +16,6 @@ import jakarta.interceptor.InterceptorBinding; import jakarta.interceptor.InvocationContext; -import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -27,9 +26,7 @@ public class FailingPrivateInterceptedMethodTest { @RegisterExtension static final QuarkusUnitTest config = new QuarkusUnitTest() .withApplicationRoot((jar) -> jar - .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class) - .addAsResource(new StringAsset("quarkus.arc.fail-on-intercepted-private-method=true"), - "application.properties")) + .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class)) .setExpectedException(DeploymentException.class); @Test diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java index 422ee302fe943..84071d16d0386 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java @@ -17,6 +17,7 @@ import jakarta.interceptor.InterceptorBinding; import jakarta.interceptor.InvocationContext; +import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -27,7 +28,9 @@ public class IgnoredPrivateInterceptedMethodTest { @RegisterExtension static final QuarkusUnitTest config = new QuarkusUnitTest() .withApplicationRoot((jar) -> jar - .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class)); + .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class) + .addAsResource(new StringAsset("quarkus.arc.fail-on-intercepted-private-method=false"), + "application.properties")); @Inject SimpleBean simpleBean; diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java index e93a65fd7599f..b903ccb8cfb7a 100644 --- a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/DeploymentExceptionsTest.java @@ -24,12 +24,13 @@ import io.quarkus.cache.CacheResult; import io.quarkus.cache.deployment.exception.ClassTargetException; import io.quarkus.cache.deployment.exception.KeyGeneratorConstructorException; -import io.quarkus.cache.deployment.exception.PrivateMethodTargetException; import io.quarkus.cache.deployment.exception.VoidReturnTypeTargetException; import io.quarkus.test.QuarkusUnitTest; /** * This class tests many kinds of {@link DeploymentException} causes related to caching annotations. + *

    + * See {@link PrivateMethodExceptionsTest} for tests related to annotations on private methods. */ public class DeploymentExceptionsTest { @@ -42,9 +43,7 @@ public class DeploymentExceptionsTest { .withApplicationRoot((jar) -> jar.addClasses(TestResource.class, TestBean.class)) .assertException(t -> { assertEquals(DeploymentException.class, t.getClass()); - assertEquals(11, t.getSuppressed().length); - assertPrivateMethodTargetException(t, "shouldThrowPrivateMethodTargetException", 1); - assertPrivateMethodTargetException(t, "shouldAlsoThrowPrivateMethodTargetException", 2); + assertEquals(8, t.getSuppressed().length); assertVoidReturnTypeTargetException(t, "showThrowVoidReturnTypeTargetException"); assertClassTargetException(t, TestResource.class, 1); assertClassTargetException(t, TestBean.class, 2); @@ -54,11 +53,6 @@ public class DeploymentExceptionsTest { assertKeyGeneratorConstructorException(t, KeyGen4.class); }); - private static void assertPrivateMethodTargetException(Throwable t, String expectedMethodName, long expectedCount) { - assertEquals(expectedCount, filterSuppressed(t, PrivateMethodTargetException.class) - .filter(s -> expectedMethodName.equals(s.getMethodInfo().name())).count()); - } - private static void assertVoidReturnTypeTargetException(Throwable t, String expectedMethodName) { assertEquals(1, filterSuppressed(t, VoidReturnTypeTargetException.class) .filter(s -> expectedMethodName.equals(s.getMethodInfo().name())).count()); @@ -88,19 +82,6 @@ public void shouldNotBeInvoked() { @CacheInvalidate(cacheName = "should-throw-class-target-exception") static class TestResource { - @GET - // Single annotation test. - @CacheInvalidateAll(cacheName = "should-throw-private-method-target-exception") - private void shouldThrowPrivateMethodTargetException() { - } - - @GET - // Repeated annotations test. - @CacheInvalidate(cacheName = "should-throw-private-method-target-exception") - @CacheInvalidate(cacheName = "should-throw-private-method-target-exception") - private void shouldAlsoThrowPrivateMethodTargetException() { - } - @GET @CacheResult(cacheName = "should-throw-void-return-type-target-exception") public void showThrowVoidReturnTypeTargetException(String key) { diff --git a/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/PrivateMethodExceptionsTest.java b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/PrivateMethodExceptionsTest.java new file mode 100644 index 0000000000000..4913d8d0cb82f --- /dev/null +++ b/extensions/cache/deployment/src/test/java/io/quarkus/cache/test/deployment/PrivateMethodExceptionsTest.java @@ -0,0 +1,72 @@ +package io.quarkus.cache.test.deployment; + +import static java.util.Arrays.stream; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.fail; + +import java.util.stream.Stream; + +import jakarta.enterprise.inject.spi.DeploymentException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; + +import org.jboss.shrinkwrap.api.asset.StringAsset; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +import io.quarkus.cache.CacheInvalidate; +import io.quarkus.cache.CacheInvalidateAll; +import io.quarkus.cache.deployment.exception.PrivateMethodTargetException; +import io.quarkus.test.QuarkusUnitTest; + +/** + * This class tests {@link DeploymentException} causes related to caching annotations on private methods. + */ +public class PrivateMethodExceptionsTest { + + @RegisterExtension + static final QuarkusUnitTest TEST = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar.addClasses(TestResource.class) + // These checks are only useful if Arc's more generic check is disabled. + .addAsResource(new StringAsset("quarkus.arc.fail-on-intercepted-private-method=false"), + "application.properties")) + .assertException(t -> { + assertEquals(DeploymentException.class, t.getClass()); + assertEquals(3, t.getSuppressed().length); + assertPrivateMethodTargetException(t, "shouldThrowPrivateMethodTargetException", 1); + assertPrivateMethodTargetException(t, "shouldAlsoThrowPrivateMethodTargetException", 2); + }); + + private static void assertPrivateMethodTargetException(Throwable t, String expectedMethodName, long expectedCount) { + assertEquals(expectedCount, filterSuppressed(t, PrivateMethodTargetException.class) + .filter(s -> expectedMethodName.equals(s.getMethodInfo().name())).count()); + } + + private static Stream filterSuppressed(Throwable t, Class filterClass) { + return stream(t.getSuppressed()).filter(filterClass::isInstance).map(filterClass::cast); + } + + @Test + public void shouldNotBeInvoked() { + fail("This method should not be invoked"); + } + + @Path("/test") + static class TestResource { + + @GET + // Single annotation test. + @CacheInvalidateAll(cacheName = "should-throw-private-method-target-exception") + private void shouldThrowPrivateMethodTargetException() { + } + + @GET + // Repeated annotations test. + @CacheInvalidate(cacheName = "should-throw-private-method-target-exception") + @CacheInvalidate(cacheName = "should-throw-private-method-target-exception") + private void shouldAlsoThrowPrivateMethodTargetException() { + } + + } + +} From 9ddabe1178f993d25c76badaef4df1a8aa649830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 18 Jan 2023 12:37:35 +0100 Subject: [PATCH 184/250] Improve error message for quarkus.arc.fail-on-intercepted-private-method --- .../FailingPrivateInterceptedMethodTest.java | 6 +++++- .../IgnoredPrivateInterceptedMethodTest.java | 11 ++++++++++- .../main/java/io/quarkus/arc/processor/Methods.java | 7 ++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java index fb3fb4bfb7051..f54e42a950856 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/FailingPrivateInterceptedMethodTest.java @@ -3,6 +3,7 @@ import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; +import static org.assertj.core.api.Assertions.assertThat; import java.lang.annotation.Documented; import java.lang.annotation.Retention; @@ -27,7 +28,10 @@ public class FailingPrivateInterceptedMethodTest { static final QuarkusUnitTest config = new QuarkusUnitTest() .withApplicationRoot((jar) -> jar .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class)) - .setExpectedException(DeploymentException.class); + .assertException(e -> assertThat(e).isInstanceOf(DeploymentException.class) + .hasMessageContainingAll("@Simple will have no effect on method " + SimpleBean.class.getName() + ".foo", + "Either remove the annotation from the method", + "or turn this exception into a simple warning by setting configuration property 'quarkus.arc.fail-on-intercepted-private-method' to 'false'")); @Test public void testDeploymentFailed() { diff --git a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java index 84071d16d0386..2bb775bbe6e13 100644 --- a/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java +++ b/extensions/arc/deployment/src/test/java/io/quarkus/arc/test/interceptor/IgnoredPrivateInterceptedMethodTest.java @@ -3,11 +3,14 @@ import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; +import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; +import java.util.logging.Level; +import java.util.logging.LogRecord; import jakarta.annotation.Priority; import jakarta.inject.Inject; @@ -17,6 +20,7 @@ import jakarta.interceptor.InterceptorBinding; import jakarta.interceptor.InvocationContext; +import org.assertj.core.api.InstanceOfAssertFactories; import org.jboss.shrinkwrap.api.asset.StringAsset; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -30,7 +34,12 @@ public class IgnoredPrivateInterceptedMethodTest { .withApplicationRoot((jar) -> jar .addClasses(SimpleBean.class, SimpleInterceptor.class, Simple.class) .addAsResource(new StringAsset("quarkus.arc.fail-on-intercepted-private-method=false"), - "application.properties")); + "application.properties")) + .setLogRecordPredicate(record -> record.getLevel().intValue() >= Level.WARNING.intValue()) + .assertLogRecords(records -> assertThat(records) + .anySatisfy(record -> assertThat(record) + .extracting(LogRecord::getMessage, InstanceOfAssertFactories.STRING) + .contains("@Simple will have no effect on method " + SimpleBean.class.getName() + ".foo"))); @Inject SimpleBean simpleBean; diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java index 4f1d0eb4f743f..d7357a00c23cb 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java @@ -281,16 +281,17 @@ private static Set mergeBindings(BeanDeployment beanDeployme && !Annotations.contains(methodAnnotations, DotNames.OBSERVES_ASYNC)) { String message; if (methodLevelBindings.size() == 1) { - message = String.format("%s will have no effect on method %s.%s() because the method is private", + message = String.format("%s will have no effect on method %s.%s() because the method is private.", methodLevelBindings.iterator().next(), classInfo.name(), method.name()); } else { message = String.format( - "Annotations %s will have no effect on method %s.%s() because the method is private", + "Annotations %s will have no effect on method %s.%s() because the method is private.", methodLevelBindings.stream().map(AnnotationInstance::toString).collect(Collectors.joining(",")), classInfo.name(), method.name()); } if (beanDeployment.failOnInterceptedPrivateMethod) { - throw new DeploymentException(message); + throw new DeploymentException(message + + " Either remove the annotation from the method, or turn this exception into a simple warning by setting configuration property 'quarkus.arc.fail-on-intercepted-private-method' to 'false'."); } else { LOGGER.warn(message); } From d7f217b005fc4e5b436d7c0be5d70434fec64409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Fri, 16 Sep 2022 09:25:10 +0200 Subject: [PATCH 185/250] Elasticsearch Java Client --- .github/native-tests.json | 4 +- bom/application/pom.xml | 22 ++ .../java/io/quarkus/deployment/Feature.java | 1 + devtools/bom-descriptor-json/pom.xml | 13 + docs/pom.xml | 13 + .../deployment/pom.xml | 58 +++++ .../ElasticsearchJavaClientProcessor.java | 40 +++ extensions/elasticsearch-java-client/pom.xml | 23 ++ .../elasticsearch-java-client/runtime/pom.xml | 80 ++++++ .../ElasticsearchJavaClientProducer.java | 68 +++++ .../resources/META-INF/quarkus-extension.yaml | 23 ++ extensions/pom.xml | 1 + .../elasticsearch-java-client/pom.xml | 232 ++++++++++++++++++ .../quarkus/it/elasticsearch/java/Fruit.java | 7 + .../it/elasticsearch/java/FruitResource.java | 49 ++++ .../it/elasticsearch/java/FruitService.java | 57 +++++ .../src/main/resources/application.properties | 5 + .../it/elasticsearch/FruitResourceTest.java | 70 ++++++ .../elasticsearch/NativeFruitResourceIT.java | 9 + integration-tests/pom.xml | 1 + 20 files changed, 774 insertions(+), 2 deletions(-) create mode 100644 extensions/elasticsearch-java-client/deployment/pom.xml create mode 100644 extensions/elasticsearch-java-client/deployment/src/main/java/io/quarkus/elasticsearch/javaclient/deployment/ElasticsearchJavaClientProcessor.java create mode 100644 extensions/elasticsearch-java-client/pom.xml create mode 100644 extensions/elasticsearch-java-client/runtime/pom.xml create mode 100644 extensions/elasticsearch-java-client/runtime/src/main/java/io/quarkus/elasticsearch/javaclient/runtime/ElasticsearchJavaClientProducer.java create mode 100644 extensions/elasticsearch-java-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml create mode 100644 integration-tests/elasticsearch-java-client/pom.xml create mode 100644 integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/Fruit.java create mode 100644 integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitResource.java create mode 100644 integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitService.java create mode 100644 integration-tests/elasticsearch-java-client/src/main/resources/application.properties create mode 100644 integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/FruitResourceTest.java create mode 100644 integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/NativeFruitResourceIT.java diff --git a/.github/native-tests.json b/.github/native-tests.json index 83f7ffaa7f4a7..e26fbc7381705 100644 --- a/.github/native-tests.json +++ b/.github/native-tests.json @@ -38,8 +38,8 @@ }, { "category": "Data6", - "timeout": 70, - "test-modules": "elasticsearch-rest-client, elasticsearch-rest-high-level-client, hibernate-search-orm-elasticsearch, hibernate-search-orm-elasticsearch-tenancy, hibernate-search-orm-opensearch, hibernate-search-orm-elasticsearch-coordination-outbox-polling, hibernate-reactive-panache, hibernate-reactive-panache-kotlin", + "timeout": 80, + "test-modules": "elasticsearch-rest-client, elasticsearch-rest-high-level-client, elasticsearch-java-client, hibernate-search-orm-elasticsearch, hibernate-search-orm-elasticsearch-tenancy, hibernate-search-orm-opensearch, hibernate-search-orm-elasticsearch-coordination-outbox-polling, hibernate-reactive-panache, hibernate-reactive-panache-kotlin", "os-name": "ubuntu-latest" }, { diff --git a/bom/application/pom.xml b/bom/application/pom.xml index ad5e6c795e6cc..70b185200834a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -737,6 +737,16 @@ quarkus-elasticsearch-rest-high-level-client-deployment ${project.version} + + io.quarkus + quarkus-elasticsearch-java-client + ${project.version} + + + io.quarkus + quarkus-elasticsearch-java-client-deployment + ${project.version} + io.quarkus quarkus-security @@ -5142,6 +5152,18 @@ elasticsearch-rest-client ${elasticsearch-opensource-components.version} + + co.elastic.clients + elasticsearch-java + ${elasticsearch-opensource-components.version} + + + + org.apache.logging.log4j + log4j-core + + + org.elasticsearch.client elasticsearch-rest-high-level-client diff --git a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java index d21a35d623f12..c25beb1b26815 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java @@ -21,6 +21,7 @@ public enum Feature { ELASTICSEARCH_REST_CLIENT_COMMON, ELASTICSEARCH_REST_CLIENT, ELASTICSEARCH_REST_HIGH_LEVEL_CLIENT, + ELASTICSEARCH_JAVA_CLIENT, FLYWAY, GRPC_CLIENT, GRPC_SERVER, diff --git a/devtools/bom-descriptor-json/pom.xml b/devtools/bom-descriptor-json/pom.xml index 358b35dd454ee..541ac67e002f5 100644 --- a/devtools/bom-descriptor-json/pom.xml +++ b/devtools/bom-descriptor-json/pom.xml @@ -434,6 +434,19 @@ + + io.quarkus + quarkus-elasticsearch-java-client + ${project.version} + pom + test + + + * + * + + + io.quarkus quarkus-elasticsearch-rest-client diff --git a/docs/pom.xml b/docs/pom.xml index 1334f83fed7f9..584c5ace74944 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -443,6 +443,19 @@ + + io.quarkus + quarkus-elasticsearch-java-client-deployment + ${project.version} + pom + test + + + * + * + + + io.quarkus quarkus-elasticsearch-rest-client-deployment diff --git a/extensions/elasticsearch-java-client/deployment/pom.xml b/extensions/elasticsearch-java-client/deployment/pom.xml new file mode 100644 index 0000000000000..f6e1d2bc38851 --- /dev/null +++ b/extensions/elasticsearch-java-client/deployment/pom.xml @@ -0,0 +1,58 @@ + + + + io.quarkus + quarkus-elasticsearch-java-client-parent + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-elasticsearch-java-client-deployment + Quarkus - Elasticsearch Java client - Deployment + + + + io.quarkus + quarkus-core-deployment + + + io.quarkus + quarkus-elasticsearch-rest-client-common-deployment + + + io.quarkus + quarkus-elasticsearch-rest-client-deployment + + + io.quarkus + quarkus-jackson-deployment + + + io.quarkus + quarkus-elasticsearch-java-client + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + + + \ No newline at end of file diff --git a/extensions/elasticsearch-java-client/deployment/src/main/java/io/quarkus/elasticsearch/javaclient/deployment/ElasticsearchJavaClientProcessor.java b/extensions/elasticsearch-java-client/deployment/src/main/java/io/quarkus/elasticsearch/javaclient/deployment/ElasticsearchJavaClientProcessor.java new file mode 100644 index 0000000000000..d69b7b969c4eb --- /dev/null +++ b/extensions/elasticsearch-java-client/deployment/src/main/java/io/quarkus/elasticsearch/javaclient/deployment/ElasticsearchJavaClientProcessor.java @@ -0,0 +1,40 @@ +package io.quarkus.elasticsearch.javaclient.deployment; + +import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.deployment.Feature; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem; +import io.quarkus.elasticsearch.javaclient.runtime.ElasticsearchJavaClientProducer; + +class ElasticsearchJavaClientProcessor { + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(Feature.ELASTICSEARCH_JAVA_CLIENT); + } + + @BuildStep + AdditionalBeanBuildItem build() { + return AdditionalBeanBuildItem.unremovableOf(ElasticsearchJavaClientProducer.class); + } + + @BuildStep + RuntimeInitializedClassBuildItem runtimeInitializedClass() { + return new RuntimeInitializedClassBuildItem("org.elasticsearch.client.RequestOptions"); + } + + @BuildStep + ServiceProviderBuildItem serviceProvider() { + return new ServiceProviderBuildItem("jakarta.json.spi.JsonProvider", + "co.elastic.clients.json.jackson.JacksonJsonProvider"); + } + + @BuildStep + ReflectiveClassBuildItem reflectiveClass() { + return ReflectiveClassBuildItem.builder("org.eclipse.parsson.JsonProviderImpl").build(); + } + +} diff --git a/extensions/elasticsearch-java-client/pom.xml b/extensions/elasticsearch-java-client/pom.xml new file mode 100644 index 0000000000000..9b43c99349761 --- /dev/null +++ b/extensions/elasticsearch-java-client/pom.xml @@ -0,0 +1,23 @@ + + + + quarkus-extensions-parent + io.quarkus + 999-SNAPSHOT + ../pom.xml + + + 4.0.0 + + quarkus-elasticsearch-java-client-parent + Quarkus - Elasticsearch Java client - Parent + pom + + + deployment + runtime + + + \ No newline at end of file diff --git a/extensions/elasticsearch-java-client/runtime/pom.xml b/extensions/elasticsearch-java-client/runtime/pom.xml new file mode 100644 index 0000000000000..50690fb307437 --- /dev/null +++ b/extensions/elasticsearch-java-client/runtime/pom.xml @@ -0,0 +1,80 @@ + + + + io.quarkus + quarkus-elasticsearch-java-client-parent + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-elasticsearch-java-client + Quarkus - Elasticsearch Java client - Runtime + Connect to an Elasticsearch cluster using the Java client + + + + io.quarkus + quarkus-core + + + io.quarkus + quarkus-elasticsearch-rest-client-common + + + io.quarkus + quarkus-elasticsearch-rest-client + + + io.quarkus + quarkus-jackson + + + org.jboss.logmanager + log4j2-jboss-logmanager + + + + co.elastic.clients + elasticsearch-java + + + + + + + + io.quarkus + quarkus-extension-maven-plugin + + + compile + + extension-descriptor + + + ${project.groupId}:${project.artifactId}-deployment:${project.version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + io.quarkus + quarkus-extension-processor + ${project.version} + + + + + + + + diff --git a/extensions/elasticsearch-java-client/runtime/src/main/java/io/quarkus/elasticsearch/javaclient/runtime/ElasticsearchJavaClientProducer.java b/extensions/elasticsearch-java-client/runtime/src/main/java/io/quarkus/elasticsearch/javaclient/runtime/ElasticsearchJavaClientProducer.java new file mode 100644 index 0000000000000..a1374979ebfbd --- /dev/null +++ b/extensions/elasticsearch-java-client/runtime/src/main/java/io/quarkus/elasticsearch/javaclient/runtime/ElasticsearchJavaClientProducer.java @@ -0,0 +1,68 @@ +package io.quarkus.elasticsearch.javaclient.runtime; + +import java.io.IOException; +import java.io.UncheckedIOException; + +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Default; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.inject.Singleton; + +import org.elasticsearch.client.RestClient; + +import com.fasterxml.jackson.databind.ObjectMapper; + +import co.elastic.clients.elasticsearch.ElasticsearchAsyncClient; +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.json.jackson.JacksonJsonpMapper; +import co.elastic.clients.transport.ElasticsearchTransport; +import co.elastic.clients.transport.rest_client.RestClientTransport; + +@ApplicationScoped +public class ElasticsearchJavaClientProducer { + + @Inject + @Default + RestClient restClient; + + @Inject + ObjectMapper objectMapper; + + private ElasticsearchClient client; + private ElasticsearchAsyncClient asyncClient; + private ElasticsearchTransport transport; + + @PostConstruct + void initTransport() { + this.transport = new RestClientTransport(restClient, new JacksonJsonpMapper(objectMapper)); + } + + @Produces + @Singleton + public ElasticsearchClient blockingClient() { + this.client = new ElasticsearchClient(this.transport); + return this.client; + } + + @Produces + @Singleton + public ElasticsearchAsyncClient asyncClient() { + this.asyncClient = new ElasticsearchAsyncClient(this.transport); + return this.asyncClient; + } + + @PreDestroy + void destroy() { + try { + if (this.transport != null) { + this.transport.close(); + } + } catch (IOException ioe) { + throw new UncheckedIOException(ioe); + } + } + +} diff --git a/extensions/elasticsearch-java-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/elasticsearch-java-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml new file mode 100644 index 0000000000000..8b7e69b1d8cb5 --- /dev/null +++ b/extensions/elasticsearch-java-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -0,0 +1,23 @@ +--- +artifact: ${project.groupId}:${project.artifactId}:${project.version} +name: "Elasticsearch Java Client" +metadata: + keywords: + - "elasticsearch" + - "full text" + - "search" + guide: "https://quarkus.io/guides/elasticsearch" + categories: + - "data" + # WARNING: Before leaving preview, we will need to discuss backwards compatibility. + # These clients are forward-compatible, not backward-compatible, quoting: + # > The Elasticsearch Java client is forward compatible; meaning that the client supports + # > communicating with greater or equal minor versions of Elasticsearch. + # > Elasticsearch language clients are only backwards compatible with default distributions + # > and without guarantees made. + # Source: https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/introduction.html + # This means that upgrading the version of the client in Quarkus will force users to upgrade their cluster. + # We will need to discuss whether this is acceptable and how to mitigate it. + status: "preview" + config: + - "quarkus.elasticsearch." diff --git a/extensions/pom.xml b/extensions/pom.xml index bd445197240d4..39f767d438f5c 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -98,6 +98,7 @@ elasticsearch-rest-client-common elasticsearch-rest-client elasticsearch-rest-high-level-client + elasticsearch-java-client kafka-client kafka-streams mongodb-client diff --git a/integration-tests/elasticsearch-java-client/pom.xml b/integration-tests/elasticsearch-java-client/pom.xml new file mode 100644 index 0000000000000..a3bd81558cc3a --- /dev/null +++ b/integration-tests/elasticsearch-java-client/pom.xml @@ -0,0 +1,232 @@ + + + + quarkus-integration-tests-parent + io.quarkus + 999-SNAPSHOT + + + 4.0.0 + + quarkus-integration-test-elasticsearch-java-client + Quarkus - Integration Tests - Elasticsearch Java client + + + + io.quarkus + quarkus-elasticsearch-java-client + + + io.quarkus + quarkus-resteasy-jackson + + + io.quarkus + quarkus-smallrye-health + + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + + + + + io.quarkus + quarkus-elasticsearch-java-client-deployment + ${project.version} + pom + test + + + * + * + + + + + io.quarkus + quarkus-resteasy-jackson-deployment + ${project.version} + pom + test + + + * + * + + + + + io.quarkus + quarkus-smallrye-health-deployment + ${project.version} + pom + test + + + * + * + + + + + + + + + src/main/resources + true + + + + + io.quarkus + quarkus-maven-plugin + ${project.version} + + + + build + + + + + + maven-surefire-plugin + + true + + + + maven-failsafe-plugin + + true + + + + + + + + test-elasticsearch + + + test-containers + + + + + + maven-surefire-plugin + + false + + + + maven-failsafe-plugin + + false + + + + + + + + docker-elasticsearch + + + start-containers + + + + localhost:9200 + http + + + + + io.fabric8 + docker-maven-plugin + + + + ${elasticsearch.image} + elasticsearch + + + single-node + false + -Xms512m -Xmx512m + + + 9200:9200 + + + Elasticsearch: + default + cyan + + + + http://localhost:9200 + GET + 200 + + + + + + + true + + + + docker-start + process-test-classes + + stop + start + + + + docker-stop + post-integration-test + + stop + + + + + + org.codehaus.mojo + exec-maven-plugin + + + docker-prune + generate-resources + + exec + + + ${docker-prune.location} + + + + + + + + + + + \ No newline at end of file diff --git a/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/Fruit.java b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/Fruit.java new file mode 100644 index 0000000000000..f29ed26e50895 --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/Fruit.java @@ -0,0 +1,7 @@ +package io.quarkus.it.elasticsearch.java; + +public class Fruit { + public String id; + public String name; + public String color; +} diff --git a/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitResource.java b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitResource.java new file mode 100644 index 0000000000000..4063e04644e1e --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitResource.java @@ -0,0 +1,49 @@ +package io.quarkus.it.elasticsearch.java; + +import java.io.IOException; +import java.net.URI; +import java.util.List; +import java.util.UUID; + +import jakarta.inject.Inject; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; + +@Path("/fruits") +public class FruitResource { + @Inject + FruitService fruitService; + + @POST + public Response index(Fruit fruit) throws IOException { + if (fruit.id == null) { + fruit.id = UUID.randomUUID().toString(); + } + fruitService.index(fruit); + return Response.created(URI.create("/fruits/" + fruit.id)).build(); + } + + @GET + @Path("/{id}") + public Fruit get(@PathParam("id") String id) throws IOException { + return fruitService.get(id); + } + + @GET + @Path("/search") + public List search(@QueryParam("name") String name, @QueryParam("color") String color) throws IOException { + if (name != null) { + return fruitService.searchByName(name); + } else if (color != null) { + return fruitService.searchByColor(color); + } else { + throw new BadRequestException("Should provide name or color query parameter"); + } + } + +} diff --git a/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitService.java b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitService.java new file mode 100644 index 0000000000000..da2adad9bb686 --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/main/java/io/quarkus/it/elasticsearch/java/FruitService.java @@ -0,0 +1,57 @@ +package io.quarkus.it.elasticsearch.java; + +import java.io.IOException; +import java.util.List; +import java.util.stream.Collectors; + +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; + +import co.elastic.clients.elasticsearch.ElasticsearchClient; +import co.elastic.clients.elasticsearch._types.FieldValue; +import co.elastic.clients.elasticsearch._types.query_dsl.QueryBuilders; +import co.elastic.clients.elasticsearch.core.*; +import co.elastic.clients.elasticsearch.core.search.HitsMetadata; + +@ApplicationScoped +public class FruitService { + @Inject + ElasticsearchClient client; + + public void index(Fruit fruit) throws IOException { + IndexRequest request = IndexRequest.of( + b -> b.index("fruits") + .id(fruit.id) + .document(fruit)); + client.index(request); + } + + public Fruit get(String id) throws IOException { + GetRequest getRequest = GetRequest.of( + b -> b.index("fruits") + .id(id)); + GetResponse getResponse = client.get(getRequest, Fruit.class); + if (getResponse.found()) { + return getResponse.source(); + } + return null; + } + + public List searchByColor(String color) throws IOException { + return search("color", color); + } + + public List searchByName(String name) throws IOException { + return search("name", name); + } + + private List search(String term, String match) throws IOException { + SearchRequest searchRequest = SearchRequest.of( + b -> b.index("fruits") + .query(QueryBuilders.match().field(term).query(FieldValue.of(match)).build()._toQuery())); + + SearchResponse searchResponse = client.search(searchRequest, Fruit.class); + HitsMetadata hits = searchResponse.hits(); + return hits.hits().stream().map(hit -> hit.source()).collect(Collectors.toList()); + } +} diff --git a/integration-tests/elasticsearch-java-client/src/main/resources/application.properties b/integration-tests/elasticsearch-java-client/src/main/resources/application.properties new file mode 100644 index 0000000000000..4f57810e65b8e --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/main/resources/application.properties @@ -0,0 +1,5 @@ +quarkus.elasticsearch.hosts=${elasticsearch.hosts:localhost:9200} +quarkus.elasticsearch.protocol=${elasticsearch.protocol:http} +quarkus.elasticsearch.socket-timeout=10S +quarkus.elasticsearch.discovery.enabled=true +quarkus.elasticsearch.discovery.refresh-interval=1M \ No newline at end of file diff --git a/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/FruitResourceTest.java b/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/FruitResourceTest.java new file mode 100644 index 0000000000000..4bc598c7845d8 --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/FruitResourceTest.java @@ -0,0 +1,70 @@ +package io.quarkus.it.elasticsearch; + +import static io.restassured.RestAssured.get; +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.is; + +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import io.quarkus.it.elasticsearch.java.Fruit; +import io.quarkus.test.junit.QuarkusTest; +import io.restassured.RestAssured; +import io.restassured.common.mapper.TypeRef; + +@QuarkusTest +public class FruitResourceTest { + private static final TypeRef> LIST_OF_FRUIT_TYPE_REF = new TypeRef>() { + }; + + @Test + public void testEndpoint() throws InterruptedException { + // create a Fruit + Fruit fruit = new Fruit(); + fruit.id = "1"; + fruit.name = "Apple"; + fruit.color = "Green"; + given() + .contentType("application/json") + .body(fruit) + .when().post("/fruits") + .then() + .statusCode(201); + + // get the Fruit + Fruit result = get("/fruits/1").as(Fruit.class); + Assertions.assertNotNull(result); + Assertions.assertEquals("1", result.id); + Assertions.assertEquals("Apple", result.name); + Assertions.assertEquals("Green", result.color); + + // wait a few ms for the indexing to happened + Thread.sleep(1000); + + // search the Fruit + List results = get("/fruits/search?color=Green").as(LIST_OF_FRUIT_TYPE_REF); + Assertions.assertNotNull(results); + Assertions.assertFalse(results.isEmpty()); + Assertions.assertEquals("1", results.get(0).id); + Assertions.assertEquals("Apple", results.get(0).name); + Assertions.assertEquals("Green", results.get(0).color); + results = get("/fruits/search?name=Apple").as(LIST_OF_FRUIT_TYPE_REF); + Assertions.assertNotNull(results); + Assertions.assertFalse(results.isEmpty()); + Assertions.assertEquals("1", results.get(0).id); + Assertions.assertEquals("Apple", results.get(0).name); + Assertions.assertEquals("Green", results.get(0).color); + } + + @Test + public void testHealth() { + RestAssured.when().get("/q/health/ready").then() + .body("status", is("UP"), + "checks.status", containsInAnyOrder("UP"), + "checks.name", containsInAnyOrder("Elasticsearch cluster health check")); + } + +} diff --git a/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/NativeFruitResourceIT.java b/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/NativeFruitResourceIT.java new file mode 100644 index 0000000000000..281e1131b853a --- /dev/null +++ b/integration-tests/elasticsearch-java-client/src/test/java/io/quarkus/it/elasticsearch/NativeFruitResourceIT.java @@ -0,0 +1,9 @@ +package io.quarkus.it.elasticsearch; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +public class NativeFruitResourceIT extends FruitResourceTest { + + // Execute the same tests but in native mode. +} diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 0f0915c08b608..0268d4630a39d 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -307,6 +307,7 @@ ide-launcher elasticsearch-rest-client elasticsearch-rest-high-level-client + elasticsearch-java-client micrometer-mp-metrics micrometer-prometheus opentelemetry From e1110e9216033fa2d4e73274ac6b6924904095b2 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 10:29:43 +0100 Subject: [PATCH 186/250] Clean up Jakarta-related workflows --- .github/workflows/ci-actions-incremental.yml | 23 ++----------------- ...write.yml => jakarta-rewrite.yml.disabled} | 0 ...blish-3.0.yml => publish-3.0.yml.disabled} | 0 3 files changed, 2 insertions(+), 21 deletions(-) rename .github/workflows/{jakarta-rewrite.yml => jakarta-rewrite.yml.disabled} (100%) rename .github/workflows/{publish-3.0.yml => publish-3.0.yml.disabled} (100%) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index e18256e8801da..3bc9e0d5ab817 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -69,21 +69,6 @@ jobs: name: pull-request-number-${{ github.event.number }} path: pull-request-number retention-days: 1 - attach-report-issue-number: - runs-on: ubuntu-latest - name: Attach report issue number - if: github.ref_name == 'jakarta-rewrite' || github.ref_name == '3.0' - steps: - - name: Create file - shell: bash - run: | - echo -n 25363 > report-issue-number - - name: Upload report issue number - uses: actions/upload-artifact@v3 - with: - name: report-issue-number-25363 - path: report-issue-number - retention-days: 1 ci-sanity-check: name: "CI Sanity Check" runs-on: ubuntu-latest @@ -139,10 +124,6 @@ jobs: path: ~/.m2/repository # refresh cache every month to avoid unlimited growth key: q2maven-${{ steps.get-date.outputs.date }} - - name: Prepare Jakarta artifacts - if: github.ref_name == 'jakarta-rewrite' || github.ref_name == '3.0' - shell: bash - run: ./jakarta/prepare.sh - name: Build run: | ./mvnw -T1C $COMMON_MAVEN_ARGS -DskipTests -DskipITs -Dinvoker.skip -Dno-format -Dtcks -Prelocations clean install @@ -570,8 +551,8 @@ jobs: name: Quickstarts Compilation - JDK ${{matrix.java.name}} runs-on: ${{matrix.java.os-name}} needs: build-jdk11 - # Skip the jakarta-rewrite and 3.0 branches and main in forks - if: github.ref_name != 'jakarta-rewrite' && github.ref_name != '3.0' && (github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main')) + # Skip main in forks + if: github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main') timeout-minutes: 90 strategy: fail-fast: false diff --git a/.github/workflows/jakarta-rewrite.yml b/.github/workflows/jakarta-rewrite.yml.disabled similarity index 100% rename from .github/workflows/jakarta-rewrite.yml rename to .github/workflows/jakarta-rewrite.yml.disabled diff --git a/.github/workflows/publish-3.0.yml b/.github/workflows/publish-3.0.yml.disabled similarity index 100% rename from .github/workflows/publish-3.0.yml rename to .github/workflows/publish-3.0.yml.disabled From 85682161d9a158aa22cdeeb49be09afb7aaef650 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 10:05:39 +0000 Subject: [PATCH 187/250] Bump quarkus-http.version from 5.0.0.Alpha3 to 5.0.1.Final Bumps `quarkus-http.version` from 5.0.0.Alpha3 to 5.0.1.Final. Updates `quarkus-http-vertx-backend` from 5.0.0.Alpha3 to 5.0.1.Final Updates `quarkus-http-core` from 5.0.0.Alpha3 to 5.0.1.Final Updates `quarkus-http-http-core` from 5.0.0.Alpha3 to 5.0.1.Final Updates `quarkus-http-servlet` from 5.0.0.Alpha3 to 5.0.1.Final Updates `quarkus-http-websocket-vertx` from 5.0.0.Alpha3 to 5.0.1.Final Updates `quarkus-http-websocket-core` from 5.0.0.Alpha3 to 5.0.1.Final --- updated-dependencies: - dependency-name: io.quarkus.http:quarkus-http-vertx-backend dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.quarkus.http:quarkus-http-core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.quarkus.http:quarkus-http-http-core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.quarkus.http:quarkus-http-servlet dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.quarkus.http:quarkus-http-websocket-vertx dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.quarkus.http:quarkus-http-websocket-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 4dce796255eab..2ebd9bc139019 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -41,7 +41,7 @@ 1.22.0-alpha 1.22.0 1.8.1 - 5.0.0.Alpha3 + 5.0.1.Final 1.10.3 2.1.12 0.22.0 From f807bc398d8d33f4750ac175bcf319289b0f2e0a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 10:10:56 +0000 Subject: [PATCH 188/250] Bump microprofile-fault-tolerance-tck from 4.0 to 4.0.2 Bumps [microprofile-fault-tolerance-tck](https://github.com/eclipse/microprofile-fault-tolerance) from 4.0 to 4.0.2. - [Release notes](https://github.com/eclipse/microprofile-fault-tolerance/releases) - [Commits](https://github.com/eclipse/microprofile-fault-tolerance/compare/4.0...4.0.2) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.fault-tolerance:microprofile-fault-tolerance-tck dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tcks/microprofile-fault-tolerance/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcks/microprofile-fault-tolerance/pom.xml b/tcks/microprofile-fault-tolerance/pom.xml index e85a7dd4e1707..aecd365372264 100644 --- a/tcks/microprofile-fault-tolerance/pom.xml +++ b/tcks/microprofile-fault-tolerance/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Fault Tolerance - 4.0 + 4.0.2 From 71eb35d044c41847bf56841b3a0d8441be9a7541 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 10:11:49 +0000 Subject: [PATCH 189/250] Bump jakarta.activation-api from 2.1.0 to 2.1.1 Bumps [jakarta.activation-api](https://github.com/jakartaee/jaf-api) from 2.1.0 to 2.1.1. - [Release notes](https://github.com/jakartaee/jaf-api/releases) - [Commits](https://github.com/jakartaee/jaf-api/compare/2.1.0...2.1.1) --- updated-dependencies: - dependency-name: jakarta.activation:jakarta.activation-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 4dce796255eab..7d3cc586770b7 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -69,7 +69,7 @@ 3.2.0 4.2.0.RC1 1.4.1 - 2.1.0 + 2.1.1 2.1.1 4.0.1 2.0.1 From 1c361a38f01cc46911b0ad674ac10f5482e475de Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 11:13:31 +0100 Subject: [PATCH 190/250] Remove kafka-avro from native-tests.json The module has been dropped. --- .github/native-tests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/native-tests.json b/.github/native-tests.json index 83f7ffaa7f4a7..051f3b0c04294 100644 --- a/.github/native-tests.json +++ b/.github/native-tests.json @@ -57,7 +57,7 @@ { "category": "Messaging1", "timeout": 110, - "test-modules": "kafka, kafka-ssl, kafka-sasl, kafka-avro, kafka-avro-apicurio2, kafka-snappy, kafka-streams, reactive-messaging-kafka, kafka-oauth-keycloak", + "test-modules": "kafka, kafka-ssl, kafka-sasl, kafka-avro-apicurio2, kafka-snappy, kafka-streams, reactive-messaging-kafka, kafka-oauth-keycloak", "os-name": "ubuntu-latest" }, { From 993ebc3edf54b5d1f2fd8e6c759c08fda10fa331 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 10:14:11 +0000 Subject: [PATCH 191/250] Bump microprofile-health-tck from 4.0 to 4.0.1 Bumps [microprofile-health-tck](https://github.com/eclipse/microprofile-health) from 4.0 to 4.0.1. - [Release notes](https://github.com/eclipse/microprofile-health/releases) - [Commits](https://github.com/eclipse/microprofile-health/compare/4.0...4.0.1) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.health:microprofile-health-tck dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tcks/microprofile-health/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcks/microprofile-health/pom.xml b/tcks/microprofile-health/pom.xml index 0e74561113514..0f853320e62a8 100644 --- a/tcks/microprofile-health/pom.xml +++ b/tcks/microprofile-health/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Health - 4.0 + 4.0.1 From c7a4d5ceaa01ad643a839946b17f91bc3ef7b211 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:18:09 +0000 Subject: [PATCH 192/250] Bump javaparser-core from 3.24.2 to 3.25.0 Bumps [javaparser-core](https://github.com/javaparser/javaparser) from 3.24.2 to 3.25.0. - [Release notes](https://github.com/javaparser/javaparser/releases) - [Changelog](https://github.com/javaparser/javaparser/blob/master/changelog.md) - [Commits](https://github.com/javaparser/javaparser/compare/javaparser-parent-3.24.2...javaparser-parent-3.25.0) --- updated-dependencies: - dependency-name: com.github.javaparser:javaparser-core dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- build-parent/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 4dce796255eab..885cd26aed741 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -173,7 +173,7 @@ 4.8.2 1.7.1 0.34.0 - 3.24.2 + 3.25.0 3.14.9 1.17.2 0.1.1 diff --git a/build-parent/pom.xml b/build-parent/pom.xml index d94bd0fcc607c..fd10b47e553a8 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -39,7 +39,7 @@ 2.5.7 2.70.0 - 3.24.2 + 3.25.0 2.0.3.Final 6.0.1 From d971af28a28d742bd2cd84ae1d4e4542ddf4075e Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Wed, 1 Feb 2023 10:13:00 +0000 Subject: [PATCH 193/250] Support for MP JWT 2.1 with smallrye-jwt 4.2.0 --- bom/application/pom.xml | 2 +- tcks/microprofile-jwt/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 4dce796255eab..a4ba9efc75e8e 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -62,7 +62,7 @@ 2.1.0.Beta1 3.0.0 6.1.0 - 4.0.0 + 4.2.0 2.0.0 1.0.13 3.0.0 diff --git a/tcks/microprofile-jwt/pom.xml b/tcks/microprofile-jwt/pom.xml index 0c77c7768923f..b61bc2e3ecf41 100644 --- a/tcks/microprofile-jwt/pom.xml +++ b/tcks/microprofile-jwt/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile JWT - 2.0 + 2.1 From 9be74d9d21f616d553387969cee0bc907c28b0ca Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 12:15:03 +0100 Subject: [PATCH 194/250] Simplify reactive pool size configuration Follow-up of #30801 --- .../datasource/runtime/DataSourceReactiveRuntimeConfig.java | 4 ++-- .../reactive/db2/client/runtime/DB2PoolRecorder.java | 6 +----- .../reactive/mssql/client/runtime/MSSQLPoolRecorder.java | 6 +----- .../reactive/mysql/client/runtime/MySQLPoolRecorder.java | 6 +----- .../reactive/oracle/client/runtime/OraclePoolRecorder.java | 6 +----- .../quarkus/reactive/pg/client/runtime/PgPoolRecorder.java | 6 +----- 6 files changed, 7 insertions(+), 27 deletions(-) diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java index f1004d7d105b4..f7cfcd0e72846 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java @@ -31,8 +31,8 @@ public class DataSourceReactiveRuntimeConfig { /** * The datasource pool maximum size. */ - @ConfigItem(defaultValueDocumentation = "20") - public OptionalInt maxSize = OptionalInt.empty(); + @ConfigItem(defaultValue = "20") + public int maxSize = 20; /** * When a new connection object is created, the pool assigns it an event loop. diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java index 299821dd49d23..60103c3ad7303 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java @@ -94,11 +94,7 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, PoolOptions poolOptions; poolOptions = new PoolOptions(); - if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { - poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); - } else { - poolOptions.setMaxSize(20); - } + poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize); if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { int idleTimeout = Math.toIntExact(dataSourceReactiveRuntimeConfig.idleTimeout.get().toMillis()); diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java index ac34f3bc6e60d..e2e239be11ecc 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java @@ -94,11 +94,7 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, PoolOptions poolOptions; poolOptions = new PoolOptions(); - if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { - poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); - } else { - poolOptions.setMaxSize(20); - } + poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize); if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { int idleTimeout = Math.toIntExact(dataSourceReactiveRuntimeConfig.idleTimeout.get().toMillis()); diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java index d5f58d0fb7d16..be0e3e14e43a2 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java @@ -95,11 +95,7 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, PoolOptions poolOptions; poolOptions = new PoolOptions(); - if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { - poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); - } else { - poolOptions.setMaxSize(20); - } + poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize); if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { int idleTimeout = Math.toIntExact(dataSourceReactiveRuntimeConfig.idleTimeout.get().toMillis()); diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index a32dfcf4bcb5b..915e209f4de1e 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -88,11 +88,7 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, PoolOptions poolOptions; poolOptions = new PoolOptions(); - if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { - poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); - } else { - poolOptions.setMaxSize(20); - } + poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize); if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { int idleTimeout = Math.toIntExact(dataSourceReactiveRuntimeConfig.idleTimeout.get().toMillis()); diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java index 853f4e7dba23a..dc2dc0126bbc7 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java @@ -94,11 +94,7 @@ private PoolOptions toPoolOptions(Integer eventLoopCount, PoolOptions poolOptions; poolOptions = new PoolOptions(); - if (dataSourceReactiveRuntimeConfig.maxSize.isPresent()) { - poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize.getAsInt()); - } else { - poolOptions.setMaxSize(20); - } + poolOptions.setMaxSize(dataSourceReactiveRuntimeConfig.maxSize); if (dataSourceReactiveRuntimeConfig.idleTimeout.isPresent()) { int idleTimeout = Math.toIntExact(dataSourceReactiveRuntimeConfig.idleTimeout.get().toMillis()); From e2934d517fda6d3d3638f93f36d87577feb09378 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 12:31:48 +0100 Subject: [PATCH 195/250] Only run the quickstart compilation for main --- .github/workflows/ci-actions-incremental.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 3bc9e0d5ab817..dcc427bfb4acc 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -552,7 +552,7 @@ jobs: runs-on: ${{matrix.java.os-name}} needs: build-jdk11 # Skip main in forks - if: github.repository == 'quarkusio/quarkus' || !endsWith(github.ref, '/main') + if: (github.repository == 'quarkusio/quarkus' && (github.event_name != 'pull_request' || github.base_ref == 'main')) || !endsWith(github.ref, '/main') timeout-minutes: 90 strategy: fail-fast: false From b2e1deb42b866807a28b1d292de4649c5b9e5205 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 12:39:56 +0100 Subject: [PATCH 196/250] CI - Remove deprecated set-output calls See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/ci-actions-incremental.yml | 20 ++++++++++---------- .github/workflows/ci-fork-mvn-cache.yml | 2 +- .github/workflows/ci-istio.yml | 2 +- .github/workflows/deploy-snapshots.yml | 2 +- .github/workflows/doc-build.yml | 2 +- .github/workflows/jdk-early-access-build.yml | 2 +- .github/workflows/sonarcloud.yml | 2 +- .github/workflows/sonarcloud.yml.disabled | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 3bc9e0d5ab817..299fca8e81df5 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -115,7 +115,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache Maven Repository id: cache-maven @@ -152,7 +152,7 @@ jobs: GIB_ARGS+=" -Dgib.referenceBranch=refs/remotes/quarkusio/main -Dgib.fetchReferenceBranch -Dgib.disableIfBranchMatches='main|\d+\.\d+|.*backport.*'" fi echo "GIB_ARGS: $GIB_ARGS" - echo "::set-output name=gib_args::${GIB_ARGS}" + echo "gib_args=${GIB_ARGS}" >> $GITHUB_OUTPUT - name: Get GIB impacted modules id: get-gib-impacted # mvnw just for creating gib-impacted.log ("validate" should not waste much time if not incremental at all, e.g. on main) @@ -165,7 +165,7 @@ jobs: GIB_IMPACTED='' fi echo "GIB_IMPACTED: ${GIB_IMPACTED}" - echo "::set-output name=impacted_modules::${GIB_IMPACTED//$'\n'/'%0A'}" + echo "impacted_modules=${GIB_IMPACTED//$'\n'/'%0A'}" >> $GITHUB_OUTPUT - name: Tar Maven Repo shell: bash run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository @@ -212,13 +212,13 @@ jobs: echo "GIB_IMPACTED_MODULES: ${GIB_IMPACTED_MODULES}" json=$(.github/filter-native-tests-json.sh "${GIB_IMPACTED_MODULES}" | tr -d '\n') echo "${json}" - echo "::set-output name=matrix::${json}" + echo "matrix=${json}" >> $GITHUB_OUTPUT - name: Calculate matrix from matrix-jvm-tests.json id: calc-jvm-matrix run: | json=$(.github/filter-jvm-tests-json.sh) echo "${json}" - echo "::set-output name=matrix::${json}" + echo "matrix=${json}" >> $GITHUB_OUTPUT - name: Calculate run flags id: calc-run-flags run: | @@ -233,11 +233,11 @@ jobs: if ! echo -n "${GIB_IMPACTED_MODULES}" | grep -q 'tcks/.*'; then run_tcks=false; fi fi echo "run_jvm=${run_jvm}, run_devtools=${run_devtools}, run_gradle=${run_gradle}, run_maven=${run_maven}, run_tcks=${run_tcks}" - echo "::set-output name=run_jvm::${run_jvm}" - echo "::set-output name=run_devtools::${run_devtools}" - echo "::set-output name=run_gradle::${run_gradle}" - echo "::set-output name=run_maven::${run_maven}" - echo "::set-output name=run_tcks::${run_tcks}" + echo "run_jvm=${run_jvm}" >> $GITHUB_OUTPUT + echo "run_devtools=${run_devtools}" >> $GITHUB_OUTPUT + echo "run_gradle=${run_gradle}" >> $GITHUB_OUTPUT + echo "run_maven=${run_maven}" >> $GITHUB_OUTPUT + echo "run_tcks=${run_tcks}" >> $GITHUB_OUTPUT jvm-tests: name: JVM Tests - JDK ${{matrix.java.name}} diff --git a/.github/workflows/ci-fork-mvn-cache.yml b/.github/workflows/ci-fork-mvn-cache.yml index 7d25aa7f99454..f9ea652dc6e31 100644 --- a/.github/workflows/ci-fork-mvn-cache.yml +++ b/.github/workflows/ci-fork-mvn-cache.yml @@ -45,7 +45,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/ci-istio.yml b/.github/workflows/ci-istio.yml index d6911db99f1ae..56c80e6fa7cff 100644 --- a/.github/workflows/ci-istio.yml +++ b/.github/workflows/ci-istio.yml @@ -71,7 +71,7 @@ jobs: password: ${{ secrets.QUAY_QUARKUSCI_PASSWORD }} - name: Get kubeconfig id: kubeconfig - run: a="$(cat ~/.kube/config)"; a="${a//'%'/'%25'}"; a="${a//$'\n'/'%0A'}"; a="${a//$'\r'/'%0D'}"; echo "::set-output name=config::$a" + run: a="$(cat ~/.kube/config)"; a="${a//'%'/'%25'}"; a="${a//$'\n'/'%0A'}"; a="${a//$'\r'/'%0D'}"; echo "config=$a" >> $GITHUB_OUTPUT - name: Install Istio uses: huang195/actions-install-istio@v1.0.0 with: diff --git a/.github/workflows/deploy-snapshots.yml b/.github/workflows/deploy-snapshots.yml index a334168533a17..d574e472d10b9 100644 --- a/.github/workflows/deploy-snapshots.yml +++ b/.github/workflows/deploy-snapshots.yml @@ -28,7 +28,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index c01b537470125..9d35ee6ceba75 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -41,7 +41,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT - name: Cache Maven Repository id: cache-maven uses: actions/cache@v3 diff --git a/.github/workflows/jdk-early-access-build.yml b/.github/workflows/jdk-early-access-build.yml index 8ad76a1791a0c..f39c4fc100bd1 100644 --- a/.github/workflows/jdk-early-access-build.yml +++ b/.github/workflows/jdk-early-access-build.yml @@ -82,7 +82,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 2cef27edafde7..e903492fd3172 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -22,7 +22,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache SonarCloud packages uses: actions/cache@v3 diff --git a/.github/workflows/sonarcloud.yml.disabled b/.github/workflows/sonarcloud.yml.disabled index e86dfa4202da7..6badee103d86a 100644 --- a/.github/workflows/sonarcloud.yml.disabled +++ b/.github/workflows/sonarcloud.yml.disabled @@ -21,7 +21,7 @@ jobs: - name: Get Date id: get-date run: | - echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" + echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT shell: bash - name: Cache SonarCloud packages uses: actions/cache@v2 From 90c129b2b204b5ec62de83462661c4202efccaef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 14:25:07 +0000 Subject: [PATCH 197/250] Bump microprofile-rest-client-tck from 3.0 to 3.0.1 Bumps [microprofile-rest-client-tck](https://github.com/eclipse/microprofile-rest-client) from 3.0 to 3.0.1. - [Release notes](https://github.com/eclipse/microprofile-rest-client/releases) - [Commits](https://github.com/eclipse/microprofile-rest-client/compare/3.0...3.0.1) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.rest.client:microprofile-rest-client-tck dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tcks/microprofile-rest-client-reactive/pom.xml | 2 +- tcks/microprofile-rest-client/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tcks/microprofile-rest-client-reactive/pom.xml b/tcks/microprofile-rest-client-reactive/pom.xml index 055d8e4916cc4..49998bd869f75 100644 --- a/tcks/microprofile-rest-client-reactive/pom.xml +++ b/tcks/microprofile-rest-client-reactive/pom.xml @@ -15,7 +15,7 @@ 8766 - 3.0 + 3.0.1 - 2.27.1 + 2.28.0 From 12c7f7a31637cc8b8b9769472a7d7e736a5db0dd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:39:15 +0000 Subject: [PATCH 202/250] Bump microprofile-config-api from 3.0 to 3.0.2 Bumps [microprofile-config-api](https://github.com/eclipse/microprofile-config) from 3.0 to 3.0.2. - [Release notes](https://github.com/eclipse/microprofile-config/releases) - [Commits](https://github.com/eclipse/microprofile-config/compare/3.0...3.0.2) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.config:microprofile-config-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..fb61c791f61fa 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -45,7 +45,7 @@ 1.10.3 2.1.12 0.22.0 - 3.0 + 3.0.2 4.0.1 1.3 3.0 From bc271e29f8eeb94b263fceaa9412d8f1eb272520 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:40:05 +0000 Subject: [PATCH 203/250] Bump postgresql from 42.5.2 to 42.5.3 Bumps [postgresql](https://github.com/pgjdbc/pgjdbc) from 42.5.2 to 42.5.3. - [Release notes](https://github.com/pgjdbc/pgjdbc/releases) - [Changelog](https://github.com/pgjdbc/pgjdbc/blob/REL42.5.3/CHANGELOG.md) - [Commits](https://github.com/pgjdbc/pgjdbc/compare/REL42.5.2...REL42.5.3) --- updated-dependencies: - dependency-name: org.postgresql:postgresql dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..7d67c50f62d41 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -127,7 +127,7 @@ 9.2.0 2.3.2 2.1.214 - 42.5.2 + 42.5.3 3.1.2 8.0.30 11.2.3.jre11 From 3c27b411ebef920174a7df73dd54658d9cfefac0 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sat, 4 Feb 2023 17:43:30 +0100 Subject: [PATCH 204/250] Set Dependabot limit higher for the week-end --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9229fd760fb3f..fca4467922c51 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ updates: interval: daily time: "23:00" timezone: Europe/Paris - open-pull-requests-limit: 6 + open-pull-requests-limit: 15 labels: - area/dependencies allow: From bd4f7dd25816f655273e75e150b40644771f8be8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:45:13 +0000 Subject: [PATCH 205/250] Bump microprofile-config-tck from 3.0.1 to 3.0.2 Bumps [microprofile-config-tck](https://github.com/eclipse/microprofile-config) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/eclipse/microprofile-config/releases) - [Commits](https://github.com/eclipse/microprofile-config/compare/3.0.1...3.0.2) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.config:microprofile-config-tck dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- tcks/microprofile-config/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcks/microprofile-config/pom.xml b/tcks/microprofile-config/pom.xml index 4cff3b44d6181..1c8cd2e9ab7d4 100644 --- a/tcks/microprofile-config/pom.xml +++ b/tcks/microprofile-config/pom.xml @@ -13,7 +13,7 @@ Quarkus - TCK - MicroProfile Config - 3.0.1 + 3.0.2 From e315f37bb90fa01fde515dedfef3f8372a3ca8b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:51:16 +0000 Subject: [PATCH 206/250] Bump smallrye-open-api.version from 3.1.1 to 3.1.2 Bumps `smallrye-open-api.version` from 3.1.1 to 3.1.2. Updates `smallrye-open-api-core` from 3.1.1 to 3.1.2 - [Release notes](https://github.com/smallrye/smallrye-open-api/releases) - [Commits](https://github.com/smallrye/smallrye-open-api/compare/3.1.1...3.1.2) Updates `smallrye-open-api-jaxrs` from 3.1.1 to 3.1.2 Updates `smallrye-open-api-spring` from 3.1.1 to 3.1.2 Updates `smallrye-open-api-vertx` from 3.1.1 to 3.1.2 Updates `smallrye-open-api-ui` from 3.1.1 to 3.1.2 --- updated-dependencies: - dependency-name: io.smallrye:smallrye-open-api-core dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.smallrye:smallrye-open-api-jaxrs dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.smallrye:smallrye-open-api-spring dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.smallrye:smallrye-open-api-vertx dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.smallrye:smallrye-open-api-ui dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..2e52cc67e325a 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -58,7 +58,7 @@ 3.1.2 4.0.1 4.0.0 - 3.1.1 + 3.1.2 2.1.0.Beta1 3.0.0 6.1.0 From a5577706f4671679f290ed5bc9b0aa35d031789f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:54:57 +0000 Subject: [PATCH 207/250] Bump smallrye-mutiny-vertx-core from 3.0.0 to 3.2.0 Bumps smallrye-mutiny-vertx-core from 3.0.0 to 3.2.0. --- updated-dependencies: - dependency-name: io.smallrye.reactive:smallrye-mutiny-vertx-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- independent-projects/resteasy-reactive/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index 4a0ee489451c4..2dd7979f076ec 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -70,7 +70,7 @@ 3.0.2 3.0.0 4.2.0 - 3.0.0 + 3.2.0 1.0.4 1.0.0 From ddcf0cb8c8603851d467a390d3c1ab327f1fadb6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:55:53 +0000 Subject: [PATCH 208/250] Bump microprofile-openapi-api from 3.0 to 3.1 Bumps [microprofile-openapi-api](https://github.com/eclipse/microprofile-open-api) from 3.0 to 3.1. - [Release notes](https://github.com/eclipse/microprofile-open-api/releases) - [Commits](https://github.com/eclipse/microprofile-open-api/compare/3.0...3.1) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.openapi:microprofile-openapi-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..9a535a47555a9 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -53,7 +53,7 @@ 3.0 2.0 2.0-RC1 - 3.0 + 3.1 2.0.0 3.1.2 4.0.1 From 6ab5b754ef30d8f1a5fc8519f98f06e79e726d8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 16:58:23 +0000 Subject: [PATCH 209/250] Bump smallrye-opentracing.version from 3.0.0 to 3.0.3 Bumps `smallrye-opentracing.version` from 3.0.0 to 3.0.3. Updates `smallrye-opentracing` from 3.0.0 to 3.0.3 - [Release notes](https://github.com/smallrye/smallrye-opentracing/releases) - [Commits](https://github.com/smallrye/smallrye-opentracing/compare/3.0.0...3.0.3) Updates `smallrye-opentracing-contrib` from 3.0.0 to 3.0.3 - [Release notes](https://github.com/smallrye/smallrye-opentracing/releases) - [Commits](https://github.com/smallrye/smallrye-opentracing/compare/3.0.0...3.0.3) --- updated-dependencies: - dependency-name: io.smallrye:smallrye-opentracing dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.smallrye:smallrye-opentracing-contrib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..76a3d24ce7d2c 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -60,7 +60,7 @@ 4.0.0 3.1.1 2.1.0.Beta1 - 3.0.0 + 3.0.3 6.1.0 4.0.0 2.0.0 From 0f48e9b281624b4d4e3e3658856988ba249f4e6d Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Sat, 4 Feb 2023 13:58:10 -0300 Subject: [PATCH 210/250] Add concurrency configuration to the GitHub Action workflows --- .../code/quarkiverse/java/.github/workflows/build.yml | 10 +++++++++- .../quarkiverse/java/.github/workflows/pre-release.yml | 8 ++++++++ .../.github/workflows/quarkus-snapshot.tpl.qute.yaml | 8 ++++++++ .../quarkiverse/java/.github/workflows/release.yml | 8 ++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml index b42ba3bdf2f71..a709c3b0df13a 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/build.yml @@ -22,6 +22,14 @@ on: - '*.txt' - '.all-contributorsrc' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: build: name: Build on ${{ matrix.os }} @@ -48,4 +56,4 @@ jobs: run: mvn -B clean verify -Dno-format - name: Build with Maven (Native) - run: mvn -B verify -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip + run: mvn -B verify -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip \ No newline at end of file diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml index 63d9d0fa196f0..0a9e64eaa882f 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/pre-release.yml @@ -5,6 +5,14 @@ on: paths: - '.github/project.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: release: runs-on: ubuntu-latest diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml index 78cb989e266ee..ed334a3b39e75 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/quarkus-snapshot.tpl.qute.yaml @@ -18,6 +18,14 @@ env: ECOSYSTEM_CI_REPO_PATH: quarkiverse-{extension.id} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: build: name: "Build against latest Quarkus snapshot" diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml index 32bbddd82a3b5..0bd8c3f03137e 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus-extension/code/quarkiverse/java/.github/workflows/release.yml @@ -6,6 +6,14 @@ on: paths: - '.github/project.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + jobs: release: runs-on: ubuntu-latest From 1b0d9f130ca60c87db56c4ba7498845fb9b84326 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 17:30:49 +0000 Subject: [PATCH 211/250] Bump microprofile-rest-client-api from 3.0 to 3.0.1 Bumps [microprofile-rest-client-api](https://github.com/eclipse/microprofile-rest-client) from 3.0 to 3.0.1. - [Release notes](https://github.com/eclipse/microprofile-rest-client/releases) - [Commits](https://github.com/eclipse/microprofile-rest-client/compare/3.0...3.0.1) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.rest.client:microprofile-rest-client-api dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 836fc4bf36f16..1953e8906f13f 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -50,7 +50,7 @@ 1.3 3.0 1.0.1 - 3.0 + 3.0.1 2.0 2.0-RC1 3.0 From 6df81e0e9e52aecefd1fa3232f24a386167e8286 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 20:10:55 +0000 Subject: [PATCH 212/250] Bump org.eclipse.jgit from 6.3.0.202209071007-r to 6.4.0.202211300538-r Bumps org.eclipse.jgit from 6.3.0.202209071007-r to 6.4.0.202211300538-r. --- updated-dependencies: - dependency-name: org.eclipse.jgit:org.eclipse.jgit dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- docs/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pom.xml b/docs/pom.xml index 584c5ace74944..3a577ffb08349 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -25,7 +25,7 @@ 2.26.0.Final 21 10.4.0 - 6.3.0.202209071007-r + 6.4.0.202211300538-r https://quarkus.io https://github.com/quarkusio/quarkus From 1caad4efe810c8dbfb0bf8b3098d6d2b9c7cd6dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 4 Feb 2023 20:23:03 +0000 Subject: [PATCH 213/250] Bump resteasy-spring-web from 3.0.0.Beta3 to 3.0.1.Final Bumps resteasy-spring-web from 3.0.0.Beta3 to 3.0.1.Final. --- updated-dependencies: - dependency-name: org.jboss.resteasy.spring:resteasy-spring-web dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index afaf34934f2a1..2f60a0cf8db30 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -30,7 +30,7 @@ 1 1.1.1 2.0.0.Final - 3.0.0.Beta3 + 3.0.1.Final 6.2.1.Final 0.33.0 0.2.4 From 0f8a3c81412a192a77bf3ce691069df2d1f0e505 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 09:41:28 +0000 Subject: [PATCH 214/250] Bump microprofile-jwt-auth-api from 2.0 to 2.1 Bumps [microprofile-jwt-auth-api](https://github.com/eclipse/microprofile-jwt-auth) from 2.0 to 2.1. - [Release notes](https://github.com/eclipse/microprofile-jwt-auth/releases) - [Commits](https://github.com/eclipse/microprofile-jwt-auth/compare/2.0...2.1) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.jwt:microprofile-jwt-auth-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index c7388c9d84901..7d16d9f40829f 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -51,7 +51,7 @@ 3.0 1.0.1 3.0.1 - 2.0 + 2.1 2.0-RC1 3.1 2.0.0 From c288afdff1afb13f8d160a7901a9f7d67eba60c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 09:43:24 +0000 Subject: [PATCH 215/250] Bump eclipse-collections from 10.4.0 to 11.1.0 Bumps [eclipse-collections](https://github.com/eclipse/eclipse-collections) from 10.4.0 to 11.1.0. - [Release notes](https://github.com/eclipse/eclipse-collections/releases) - [Changelog](https://github.com/eclipse/eclipse-collections/blob/master/RELEASE_NOTE_DRAFT.md) - [Commits](https://github.com/eclipse/eclipse-collections/compare/10.4.0...11.1.0) --- updated-dependencies: - dependency-name: org.eclipse.collections:eclipse-collections dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- docs/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pom.xml b/docs/pom.xml index 3a577ffb08349..acbde9395664e 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -24,7 +24,7 @@ 1.5.0-beta.8 2.26.0.Final 21 - 10.4.0 + 11.1.0 6.4.0.202211300538-r https://quarkus.io From 7bc9b9aac841138cbc367c574750684e9b171454 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:10:02 +0000 Subject: [PATCH 216/250] Bump microprofile-reactive-streams-operators.version from 1.0.1 to 3.0 Bumps `microprofile-reactive-streams-operators.version` from 1.0.1 to 3.0. Updates `microprofile-reactive-streams-operators-api` from 1.0.1 to 3.0 - [Release notes](https://github.com/eclipse/microprofile-reactive-streams-operators/releases) - [Commits](https://github.com/eclipse/microprofile-reactive-streams-operators/compare/1.0.1...3.0) Updates `microprofile-reactive-streams-operators-core` from 1.0.1 to 3.0 - [Release notes](https://github.com/eclipse/microprofile-reactive-streams-operators/releases) - [Commits](https://github.com/eclipse/microprofile-reactive-streams-operators/compare/1.0.1...3.0) --- updated-dependencies: - dependency-name: org.eclipse.microprofile.reactive-streams-operators:microprofile-reactive-streams-operators-api dependency-type: direct:production update-type: version-update:semver-major - dependency-name: org.eclipse.microprofile.reactive-streams-operators:microprofile-reactive-streams-operators-core dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index c7388c9d84901..df3ec04f31b28 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -49,7 +49,7 @@ 4.0.1 1.3 3.0 - 1.0.1 + 3.0 3.0.1 2.0 2.0-RC1 From c69d6dca9c7cd7e5e7d086704d19e40a0f43b992 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Sun, 5 Feb 2023 13:14:09 +0100 Subject: [PATCH 217/250] Use wildcards for Quarkus and WildFly Dependabot rules --- .github/dependabot.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fca4467922c51..8bcded10f6260 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -36,13 +36,10 @@ updates: - dependency-name: org.glassfish:jakarta-el - dependency-name: com.google.cloud.tools:jib-core # Quarkus - - dependency-name: io.quarkus.gizmo:gizmo - - dependency-name: io.quarkus.http:* - - dependency-name: io.quarkus:quarkus-fs-util - - dependency-name: io.quarkus:quarkus-spring-*-api + - dependency-name: io.quarkus.*:* + - dependency-name: io.quarkus:* # Elytron - - dependency-name: org.wildfly.security:wildfly-elytron - - dependency-name: org.wildfly.security:wildfly-elytron-* + - dependency-name: org.wildfly.security:* - dependency-name: org.wildfly.openssl:* # JDBC Drivers - dependency-name: org.postgresql:postgresql From 52c897b5fa4eb8e1b0901e0803403abaef87cdfa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:23:17 +0000 Subject: [PATCH 218/250] Bump quarkus-security from 2.0.0.Alpha2 to 2.0.1.Final Bumps [quarkus-security](https://github.com/quarkus/quarkus-security) from 2.0.0.Alpha2 to 2.0.1.Final. - [Release notes](https://github.com/quarkus/quarkus-security/releases) - [Commits](https://github.com/quarkus/quarkus-security/commits) --- updated-dependencies: - dependency-name: io.quarkus.security:quarkus-security dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index c7388c9d84901..14f903c6e0b7d 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -185,7 +185,7 @@ 5.1.1 5.8.0 4.10.1 - 2.0.0.Alpha2 + 2.0.1.Final 20.0.3 1.15.0 3.30.0 From 2846018c5d42574290665952d56f2b8f929b5cc1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:31:18 +0000 Subject: [PATCH 219/250] Bump build-reporter-maven-extension from 2.2.0 to 2.3.1 Bumps [build-reporter-maven-extension](https://github.com/quarkusio/build-reporter) from 2.2.0 to 2.3.1. - [Release notes](https://github.com/quarkusio/build-reporter/releases) - [Commits](https://github.com/quarkusio/build-reporter/compare/2.2.0...2.3.1) --- updated-dependencies: - dependency-name: io.quarkus.bot:build-reporter-maven-extension dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 41a63a53fa543..119b891c23e3e 100644 --- a/pom.xml +++ b/pom.xml @@ -155,7 +155,7 @@ io.quarkus.bot build-reporter-maven-extension - 2.2.0 + 2.3.1 From c762d3bf8ae8f7f726e976000d965b901a58af25 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:40:46 +0000 Subject: [PATCH 220/250] Bump quarkus-platform-bom-maven-plugin from 0.0.51 to 0.0.75 Bumps [quarkus-platform-bom-maven-plugin](https://github.com/quarkusio/quarkus-platform-bom-generator) from 0.0.51 to 0.0.75. - [Release notes](https://github.com/quarkusio/quarkus-platform-bom-generator/releases) - [Commits](https://github.com/quarkusio/quarkus-platform-bom-generator/compare/0.0.51...0.0.75) --- updated-dependencies: - dependency-name: io.quarkus:quarkus-platform-bom-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 41a63a53fa543..695abb098b0b5 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ 1.6.8 4.3.0 - 0.0.51 + 0.0.75 false false From 5691787d01b917919f44b01bc87f0e72ffa2c9ef Mon Sep 17 00:00:00 2001 From: Foobartender Date: Wed, 1 Feb 2023 03:02:51 +0100 Subject: [PATCH 221/250] Remove duplicate notification of SseBroadcaster's onErrorListeners Follow-up to #30686 --- .../reactive/server/jaxrs/SseBroadcasterImpl.java | 7 ------- .../reactive/server/jaxrs/SseEventSinkImpl.java | 10 +--------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java index 7088c56f96d21..1c5a714415049 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseBroadcasterImpl.java @@ -127,11 +127,4 @@ synchronized void fireClose(SseEventSinkImpl sseEventSink) { listener.accept(sseEventSink); } } - - synchronized void fireException(SseEventSinkImpl sseEventSink, Throwable t) { - for (BiConsumer listener : onErrorListeners) { - listener.accept(sseEventSink, t); - } - } - } diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java index 6b8080faeb067..05280e20dc474 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/jaxrs/SseEventSinkImpl.java @@ -32,15 +32,7 @@ public CompletionStage send(OutboundSseEvent event) { if (isClosed()) throw new IllegalStateException("Already closed"); // NOTE: we can't cast event to OutboundSseEventImpl because the TCK sends us its own subclass - CompletionStage ret = SseUtil.send(context, event, Collections.emptyList()); - if (broadcaster != null) { - return ret.whenComplete((value, x) -> { - if (x != null) { - broadcaster.fireException(this, x); - } - }); - } - return ret; + return SseUtil.send(context, event, Collections.emptyList()); } @Override From a580de60121e3ab81d7ba5973ab31a8a4373557a Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 6 Feb 2023 08:36:37 +0200 Subject: [PATCH 222/250] Polish JarResultBuildStep --- .../io/quarkus/deployment/pkg/steps/JarResultBuildStep.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index 4bdd9a81007a2..d439e4d6312df 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -509,6 +509,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) }); } + @SuppressWarnings("deprecation") private JarBuildItem buildLegacyThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, OutputTargetBuildItem outputTargetBuildItem, TransformedClassesBuildItem transformedClasses, @@ -541,6 +542,7 @@ private JarBuildItem buildLegacyThinJar(CurateOutcomeBuildItem curateOutcomeBuil suffixToClassifier(packageConfig.getRunnerSuffix())); } + @SuppressWarnings("deprecation") private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, OutputTargetBuildItem outputTargetBuildItem, TransformedClassesBuildItem transformedClasses, @@ -644,7 +646,7 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, } } if (decompiler != null) { - wasDecompiledSuccessfully &= decompiler.decompile(transformedZip); + wasDecompiledSuccessfully = decompiler.decompile(transformedZip); } } //now generated classes and resources @@ -745,7 +747,7 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, //to memory, split them, discard comments, sort them, then write them to disk ByteArrayOutputStream out = new ByteArrayOutputStream(); outputTargetBuildItem.getBuildSystemProperties().store(out, null); - List lines = Arrays.stream(new String(out.toByteArray(), StandardCharsets.UTF_8).split("\n")) + List lines = Arrays.stream(out.toString(StandardCharsets.UTF_8).split("\n")) .filter(s -> !s.startsWith("#")).sorted().collect(Collectors.toList()); Path buildSystemProps = quarkus.resolve(BUILD_SYSTEM_PROPERTIES); try (OutputStream fileOutput = Files.newOutputStream(buildSystemProps)) { From 7f2bac8c5733680c3543db025136a3390d56289c Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 6 Feb 2023 08:38:59 +0200 Subject: [PATCH 223/250] Remove deprecated Fernflower configuration --- .../quarkus/deployment/pkg/PackageConfig.java | 31 ------------------- .../pkg/steps/JarResultBuildStep.java | 12 ++----- .../src/main/resources/application.properties | 2 +- .../src/main/resources/application.properties | 2 +- 4 files changed, 4 insertions(+), 43 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java index 0a33674a04a1d..0c227fe209e5e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java @@ -234,13 +234,6 @@ public String toString() { @ConfigItem(defaultValue = "true") public boolean includeDependencyList; - /** - * Fernflower Decompiler configuration - */ - @ConfigItem - @Deprecated(forRemoval = true) - public FernflowerConfig fernflower; - /** * Quiltflower Decompiler configuration */ @@ -290,30 +283,6 @@ public String getRunnerSuffix() { return addRunnerSuffix ? runnerSuffix : ""; } - @ConfigGroup - @Deprecated(forRemoval = true) - public static class FernflowerConfig { - - /** - * An advanced option that will decompile generated and transformed bytecode into the 'decompiled' directory. - * This is only taken into account when fast-jar is used. - */ - @ConfigItem(defaultValue = "false") - public boolean enabled; - - /** - * The git hash to use to download the fernflower tool from https://jitpack.io/com/github/fesh0r/fernflower/ - */ - @ConfigItem(defaultValue = "dbf407a655") - public String hash; - - /** - * The directory into which to save the fernflower tool if it doesn't exist - */ - @ConfigItem(defaultValue = "${user.home}/.quarkus") - public String jarDirectory; - } - @ConfigGroup public static class QuiltFlowerConfig { /** diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index d439e4d6312df..e571ffed38a15 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -601,19 +601,11 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, Path decompiledOutputDir = null; boolean wasDecompiledSuccessfully = true; Decompiler decompiler = null; - if (packageConfig.fernflower.enabled || packageConfig.quiltflower.enabled) { + if (packageConfig.quiltflower.enabled) { decompiledOutputDir = buildDir.getParent().resolve("decompiled"); FileUtil.deleteDirectory(decompiledOutputDir); Files.createDirectory(decompiledOutputDir); - if (packageConfig.fernflower.enabled) { - decompiler = new Decompiler.FernflowerDecompiler(); - Path jarDirectory = Paths.get(packageConfig.fernflower.jarDirectory); - if (!Files.exists(jarDirectory)) { - Files.createDirectory(jarDirectory); - } - decompiler.init(new Decompiler.Context(packageConfig.fernflower.hash, jarDirectory, decompiledOutputDir)); - decompiler.downloadIfNecessary(); - } else if (packageConfig.quiltflower.enabled) { + if (packageConfig.quiltflower.enabled) { decompiler = new Decompiler.QuiltflowerDecompiler(); Path jarDirectory = Paths.get(packageConfig.quiltflower.jarDirectory); if (!Files.exists(jarDirectory)) { diff --git a/integration-tests/hibernate-orm-panache/src/main/resources/application.properties b/integration-tests/hibernate-orm-panache/src/main/resources/application.properties index e085ce3a8e6bc..3867ff6b130b0 100644 --- a/integration-tests/hibernate-orm-panache/src/main/resources/application.properties +++ b/integration-tests/hibernate-orm-panache/src/main/resources/application.properties @@ -7,4 +7,4 @@ quarkus.hibernate-orm.database.generation=drop-and-create quarkus.hibernate-orm.statistics=true quarkus.hibernate-orm.metrics.enabled=true -quarkus.package.fernflower.enabled=true +quarkus.package.quiltflower.enabled=true diff --git a/integration-tests/resteasy-reactive-kotlin/standard/src/main/resources/application.properties b/integration-tests/resteasy-reactive-kotlin/standard/src/main/resources/application.properties index 8dbd9ed8a9db7..dbd2604ffa9a1 100644 --- a/integration-tests/resteasy-reactive-kotlin/standard/src/main/resources/application.properties +++ b/integration-tests/resteasy-reactive-kotlin/standard/src/main/resources/application.properties @@ -28,4 +28,4 @@ mp.messaging.incoming.countries-t2-in.topic=countries-t2 mp.messaging.incoming.countries-t2-in.auto.offset.reset=earliest mp.messaging.incoming.countries-t2-in.value.deserializer=org.apache.kafka.common.serialization.StringDeserializer -quarkus.package.fernflower.enabled=true +quarkus.package.quiltflower.enabled=true From 87f8c990c634ec26093cdf7d63917e58d2ab32b6 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 3 Feb 2023 17:44:40 +0200 Subject: [PATCH 224/250] Ensure that quarkus-application.dat is reproducible --- .../pkg/steps/JarResultBuildStep.java | 85 ++++++++++++++++--- .../runner/SerializedApplication.java | 7 +- 2 files changed, 77 insertions(+), 15 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index 4bdd9a81007a2..a092f2b52e3b0 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -622,13 +622,13 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, } } - List jars = new ArrayList<>(); + FastJarJars.FastJarJarsBuilder fastJarJarsBuilder = new FastJarJars.FastJarJarsBuilder(); List parentFirst = new ArrayList<>(); //we process in order of priority //transformed classes first if (!transformedClasses.getTransformedClassesByJar().isEmpty()) { Path transformedZip = quarkus.resolve(TRANSFORMED_BYTECODE_JAR); - jars.add(transformedZip); + fastJarJarsBuilder.setTransformed(transformedZip); try (FileSystem out = ZipUtils.newZip(transformedZip)) { for (Set transformedSet : transformedClasses .getTransformedClassesByJar().values()) { @@ -649,7 +649,7 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, } //now generated classes and resources Path generatedZip = quarkus.resolve(GENERATED_BYTECODE_JAR); - jars.add(generatedZip); + fastJarJarsBuilder.setGenerated(generatedZip); try (FileSystem out = ZipUtils.newZip(generatedZip)) { for (GeneratedClassBuildItem i : generatedClasses) { String fileName = i.getName().replace('.', '/') + ".class"; @@ -678,7 +678,7 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, //now the application classes Path runnerJar = appDir.resolve(outputTargetBuildItem.getBaseName() + DOT_JAR); - jars.add(runnerJar); + fastJarJarsBuilder.setRunner(runnerJar); if (!rebuild) { Predicate ignoredEntriesPredicate = getThinJarIgnoredEntriesPredicate(packageConfig); @@ -693,10 +693,11 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, final Map> copiedArtifacts = new HashMap<>(); for (ResolvedDependency appDep : curateOutcomeBuildItem.getApplicationModel().getRuntimeDependencies()) { if (!rebuild) { - copyDependency(parentFirstKeys, outputTargetBuildItem, copiedArtifacts, mainLib, baseLib, jars, true, + copyDependency(parentFirstKeys, outputTargetBuildItem, copiedArtifacts, mainLib, baseLib, + fastJarJarsBuilder::addDep, true, classPath, appDep, transformedClasses, removed); } else if (includeAppDep(appDep, outputTargetBuildItem.getIncludedOptionalDependencies(), removed)) { - appDep.getResolvedPaths().forEach(jars::add); + appDep.getResolvedPaths().forEach(fastJarJarsBuilder::addDep); } if (parentFirstKeys.contains(appDep.getKey())) { appDep.getResolvedPaths().forEach(parentFirst::add); @@ -709,7 +710,7 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, "Additional application archives can only be provided from the user providers directory. " + path + " is not present in " + userProviders); } - jars.add(path); + fastJarJarsBuilder.addDep(path); } } @@ -731,8 +732,22 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, Path appInfo = buildDir.resolve(QuarkusEntryPoint.QUARKUS_APPLICATION_DAT); try (OutputStream out = Files.newOutputStream(appInfo)) { - SerializedApplication.write(out, mainClassBuildItem.getClassName(), buildDir, jars, parentFirst, - nonExistentResources); + FastJarJars fastJarJars = fastJarJarsBuilder.build(); + List allJars = new ArrayList<>(); + if (fastJarJars.transformed != null) { + allJars.add(fastJarJars.transformed); + } + allJars.add(fastJarJars.generated); + allJars.add(fastJarJars.runner); + List sortedDeps = new ArrayList<>(fastJarJars.deps); + Collections.sort(sortedDeps); + allJars.addAll(sortedDeps); + List sortedParentFirst = new ArrayList<>(parentFirst); + Collections.sort(sortedParentFirst); + List sortedNonExistentResources = new ArrayList<>(nonExistentResources); + Collections.sort(sortedNonExistentResources); + SerializedApplication.write(out, mainClassBuildItem.getClassName(), buildDir, allJars, sortedParentFirst, + sortedNonExistentResources); } runnerJar.toFile().setReadable(true, false); @@ -765,7 +780,8 @@ private JarBuildItem buildThinJar(CurateOutcomeBuildItem curateOutcomeBuildItem, Path deploymentLib = libDir.resolve(DEPLOYMENT_LIB); Files.createDirectories(deploymentLib); for (ResolvedDependency appDep : curateOutcomeBuildItem.getApplicationModel().getDependencies()) { - copyDependency(parentFirstKeys, outputTargetBuildItem, copiedArtifacts, deploymentLib, baseLib, jars, + copyDependency(parentFirstKeys, outputTargetBuildItem, copiedArtifacts, deploymentLib, baseLib, (p) -> { + }, false, classPath, appDep, new TransformedClassesBuildItem(Map.of()), removed); //we don't care about transformation here, so just pass in an empty item } @@ -866,7 +882,7 @@ private Set getRemovedKeys(ClassLoadingConfig classLoadingConfig) { } private void copyDependency(Set parentFirstArtifacts, OutputTargetBuildItem outputTargetBuildItem, - Map> runtimeArtifacts, Path libDir, Path baseLib, List jars, + Map> runtimeArtifacts, Path libDir, Path baseLib, Consumer targetPathConsumer, boolean allowParentFirst, StringBuilder classPath, ResolvedDependency appDep, TransformedClassesBuildItem transformedClasses, Set removedDeps) throws IOException { @@ -888,7 +904,7 @@ private void copyDependency(Set parentFirstArtifacts, OutputTargetB classPath.append(" ").append(LIB).append("/").append(BOOT_LIB).append("/").append(fileName); } else { targetPath = libDir.resolve(fileName); - jars.add(targetPath); + targetPathConsumer.accept(targetPath); } runtimeArtifacts.computeIfAbsent(appDep.getKey(), (s) -> new ArrayList<>(1)).add(targetPath); @@ -1479,6 +1495,51 @@ public boolean test(String path) { } } + static class FastJarJars { + private final Path transformed; + private final Path generated; + private final Path runner; + private final List deps; + + public FastJarJars(FastJarJarsBuilder builder) { + this.transformed = builder.transformed; + this.generated = builder.generated; + this.runner = builder.runner; + this.deps = builder.deps; + } + + public static class FastJarJarsBuilder { + private Path transformed; + private Path generated; + private Path runner; + private final List deps = new ArrayList<>(); + + public FastJarJarsBuilder setTransformed(Path transformed) { + this.transformed = transformed; + return this; + } + + public FastJarJarsBuilder setGenerated(Path generated) { + this.generated = generated; + return this; + } + + public FastJarJarsBuilder setRunner(Path runner) { + this.runner = runner; + return this; + } + + public FastJarJarsBuilder addDep(Path dep) { + this.deps.add(dep); + return this; + } + + public FastJarJars build() { + return new FastJarJars(this); + } + } + } + private static class IsJsonFilePredicate implements BiPredicate { @Override diff --git a/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/SerializedApplication.java b/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/SerializedApplication.java index a838802f51db3..fab316850bd73 100644 --- a/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/SerializedApplication.java +++ b/independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/SerializedApplication.java @@ -15,6 +15,7 @@ import java.util.Enumeration; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; @@ -66,7 +67,7 @@ public static void write(OutputStream outputStream, String mainClass, Path appli data.writeInt(VERSION); data.writeUTF(mainClass); data.writeShort(classPath.size()); - Map> directlyIndexedResourcesToCPJarIndex = new HashMap<>(); + Map> directlyIndexedResourcesToCPJarIndex = new LinkedHashMap<>(); for (int i = 0; i < classPath.size(); i++) { Path jar = classPath.get(i); String relativePath = applicationRoot.relativize(jar).toString().replace('\\', '/'); @@ -199,8 +200,8 @@ private static List writeJar(DataOutputStream out, Path jar) throws IOEx } } - Set dirs = new HashSet<>(); - Map> fullyIndexedPaths = new HashMap<>(); + Set dirs = new LinkedHashSet<>(); + Map> fullyIndexedPaths = new LinkedHashMap<>(); Enumeration entries = zip.entries(); boolean hasDefaultPackage = false; while (entries.hasMoreElements()) { From 0ed5b7b4a7b1102e90757b38e0f4b402173e26ed Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Thu, 2 Feb 2023 13:47:06 +0100 Subject: [PATCH 225/250] ArC - reduce allocations for intercepted methods - forwarding lambdas are stateless and thus may become part of immutable InterceptedMethodMetadata - note that metadata are shared accross all invocations of an intercepted method --- .../InterceptedStaticMethodsProcessor.java | 17 +-- .../arc/processor/MethodDescriptors.java | 6 +- .../arc/processor/SubclassGenerator.java | 109 +++++++------- .../arc/impl/AbstractInvocationContext.java | 52 ++----- .../AroundConstructInvocationContext.java | 20 ++- .../impl/AroundInvokeInvocationContext.java | 138 ++++++++++++++---- .../arc/impl/InterceptedMethodMetadata.java | 11 +- .../arc/impl/InterceptedStaticMethods.java | 30 +--- .../quarkus/arc/impl/InvocationContexts.java | 19 +-- .../LifecycleCallbackInvocationContext.java | 31 +++- ...ceptor.java => FirstParamInterceptor.java} | 3 +- .../parameters/ParamInterceptorTest.java | 9 +- .../parameters/SecondParamInterceptor.java | 24 +++ .../parameters/ThirdParamInterceptor.java | 24 +++ 14 files changed, 306 insertions(+), 187 deletions(-) rename independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/{ParamInterceptor.java => FirstParamInterceptor.java} (95%) create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SecondParamInterceptor.java create mode 100644 independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ThirdParamInterceptor.java diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java index c8716fb2ed2d2..e570438c545ae 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/staticmethods/InterceptedStaticMethodsProcessor.java @@ -46,7 +46,6 @@ import io.quarkus.arc.impl.CreationalContextImpl; import io.quarkus.arc.impl.InterceptedMethodMetadata; import io.quarkus.arc.impl.InterceptedStaticMethods; -import io.quarkus.arc.impl.InterceptedStaticMethods.InterceptedStaticMethod; import io.quarkus.arc.processor.AnnotationLiteralProcessor; import io.quarkus.arc.processor.BeanProcessor; import io.quarkus.arc.processor.DotNames; @@ -77,7 +76,7 @@ public class InterceptedStaticMethodsProcessor { private static final Logger LOGGER = Logger.getLogger(InterceptedStaticMethodsProcessor.class); static final MethodDescriptor INTERCEPTED_STATIC_METHODS_REGISTER = MethodDescriptor - .ofMethod(InterceptedStaticMethods.class, "register", void.class, String.class, InterceptedStaticMethod.class); + .ofMethod(InterceptedStaticMethods.class, "register", void.class, String.class, InterceptedMethodMetadata.class); static final MethodDescriptor INTERCEPTED_STATIC_METHODS_AROUND_INVOKE = MethodDescriptor .ofMethod(InterceptedStaticMethods.class, "aroundInvoke", Object.class, String.class, Object[].class); @@ -322,23 +321,19 @@ private String implementInit(IndexView index, ClassCreator initializer, } } + // Create forwarding function + ResultHandle forwardingFunc = createForwardingFunction(init, interceptedStaticMethod.getTarget(), method); + // Now create metadata for the given intercepted method ResultHandle metadataHandle = init.newInstance(MethodDescriptors.INTERCEPTED_METHOD_METADATA_CONSTRUCTOR, - chainHandle, methodHandle, bindingsHandle); + chainHandle, methodHandle, bindingsHandle, forwardingFunc); // Needed when running on native image reflectiveMethods.produce(new ReflectiveMethodBuildItem(method)); - // Create forwarding function - ResultHandle forwardingFunc = createForwardingFunction(init, interceptedStaticMethod.getTarget(), method); - - ResultHandle staticMethodHandle = init.newInstance( - MethodDescriptor.ofConstructor(InterceptedStaticMethod.class, Function.class, InterceptedMethodMetadata.class), - forwardingFunc, metadataHandle); - // Call InterceptedStaticMethods.register() init.invokeStaticMethod(INTERCEPTED_STATIC_METHODS_REGISTER, init.load(interceptedStaticMethod.getHash()), - staticMethodHandle); + metadataHandle); init.returnValue(null); return name; } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java index 970c768e45c31..bc5f890b16348 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/MethodDescriptors.java @@ -163,9 +163,7 @@ public final class MethodDescriptors { public static final MethodDescriptor INVOCATION_CONTEXTS_PERFORM_AROUND_INVOKE = MethodDescriptor.ofMethod( InvocationContexts.class, - "performAroundInvoke", - Object.class, Object.class, Method.class, Function.class, Object[].class, List.class, - Set.class); + "performAroundInvoke", Object.class, Object.class, Object[].class, InterceptedMethodMetadata.class); public static final MethodDescriptor INVOCATION_CONTEXTS_AROUND_CONSTRUCT = MethodDescriptor.ofMethod( InvocationContexts.class, @@ -230,7 +228,7 @@ public final class MethodDescriptors { public static final MethodDescriptor INTERCEPTED_METHOD_METADATA_CONSTRUCTOR = MethodDescriptor.ofConstructor( InterceptedMethodMetadata.class, - List.class, Method.class, Set.class); + List.class, Method.class, Set.class, Function.class); public static final MethodDescriptor CREATIONAL_CTX_HAS_DEPENDENT_INSTANCES = MethodDescriptor.ofMethod( CreationalContextImpl.class, diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java index dcd1c2cfa8696..c19e063838bc4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/SubclassGenerator.java @@ -4,7 +4,6 @@ import static org.objectweb.asm.Opcodes.ACC_FINAL; import static org.objectweb.asm.Opcodes.ACC_PRIVATE; -import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collection; @@ -74,12 +73,6 @@ public class SubclassGenerator extends AbstractGenerator { protected static final String FIELD_NAME_PREDESTROYS = "arc$preDestroys"; protected static final String FIELD_NAME_CONSTRUCTED = "arc$constructed"; - protected static final FieldDescriptor FIELD_METADATA_METHOD = FieldDescriptor.of(InterceptedMethodMetadata.class, "method", - Method.class); - protected static final FieldDescriptor FIELD_METADATA_CHAIN = FieldDescriptor.of(InterceptedMethodMetadata.class, "chain", - List.class); - protected static final FieldDescriptor FIELD_METADATA_BINDINGS = FieldDescriptor.of(InterceptedMethodMetadata.class, - "bindings", Set.class); private final Predicate applicationClassPredicate; private final Set existingClasses; @@ -349,6 +342,7 @@ public String apply(List keys) { } MethodDescriptor methodDescriptor = MethodDescriptor.of(method); + MethodDescriptor originalMethodDescriptor = MethodDescriptor.of(method); InterceptionInfo interception = bean.getInterceptedMethods().get(method); DecorationInfo decoration = bean.getDecoratedMethods().get(method); MethodDescriptor forwardDescriptor = forwardingMethods.get(methodDescriptor); @@ -392,10 +386,58 @@ public String apply(List keys) { initMetadataMethodFinal.getMethodParam(1), initMetadataMethodFinal.load(bindingKey)); }); + DecoratorInfo decorator = decoration != null ? decoration.decorators.get(0) : null; + ResultHandle decoratorHandle = null; + if (decorator != null) { + decoratorHandle = initMetadataMethod.readInstanceField(FieldDescriptor.of(subclass.getClassName(), + decorator.getIdentifier(), Object.class.getName()), initMetadataMethod.getThis()); + } + + // Instantiate the forwarding function + // Function forward = ctx -> super.foo((java.lang.String)ctx.getParameters()[0]) + FunctionCreator func = initMetadataMethod.createFunction(Function.class); + BytecodeCreator funcBytecode = func.getBytecode(); + ResultHandle ctxHandle = funcBytecode.getMethodParam(0); + ResultHandle[] superParamHandles; + if (parameters.isEmpty()) { + superParamHandles = new ResultHandle[0]; + } else { + superParamHandles = new ResultHandle[parameters.size()]; + ResultHandle ctxParamsHandle = funcBytecode.invokeInterfaceMethod( + MethodDescriptor.ofMethod(InvocationContext.class, "getParameters", Object[].class), + ctxHandle); + // autoboxing is handled inside Gizmo + for (int i = 0; i < superParamHandles.length; i++) { + superParamHandles[i] = funcBytecode.readArrayValue(ctxParamsHandle, i); + } + } + // If a decorator is bound then invoke the method upon the decorator instance instead of the generated forwarding method + if (decorator != null) { + AssignableResultHandle funDecoratorInstance = funcBytecode.createVariable(Object.class); + funcBytecode.assign(funDecoratorInstance, decoratorHandle); + String declaringClass = decorator.getBeanClass().toString(); + if (decorator.isAbstract()) { + String baseName = DecoratorGenerator.createBaseName(decorator.getTarget().get().asClass()); + String targetPackage = DotNames.packageName(decorator.getProviderType().name()); + declaringClass = generatedNameFromTarget(targetPackage, baseName, + DecoratorGenerator.ABSTRACT_IMPL_SUFFIX); + } + MethodDescriptor virtualMethodDescriptor = MethodDescriptor.ofMethod(declaringClass, + originalMethodDescriptor.getName(), + originalMethodDescriptor.getReturnType(), originalMethodDescriptor.getParameterTypes()); + funcBytecode + .returnValue(funcBytecode.invokeVirtualMethod(virtualMethodDescriptor, funDecoratorInstance, + superParamHandles)); + } else { + ResultHandle superResult = funcBytecode.invokeVirtualMethod(forwardDescriptor, initMetadataMethod.getThis(), + superParamHandles); + funcBytecode.returnValue(superResult != null ? superResult : funcBytecode.loadNull()); + } + // Now create metadata for the given intercepted method ResultHandle methodMetadataHandle = initMetadataMethod.newInstance( MethodDescriptors.INTERCEPTED_METHOD_METADATA_CONSTRUCTOR, - chainHandle, methodHandle, bindingsHandle); + chainHandle, methodHandle, bindingsHandle, func.getInstance()); FieldDescriptor metadataField = FieldDescriptor.of(subclass.getClassName(), "arc$" + methodIdx++, InterceptedMethodMetadata.class.getName()); @@ -769,52 +811,6 @@ private void createInterceptedMethod(ClassOutput classOutput, BeanInfo bean, Met notConstructed.returnValue(notConstructed.invokeVirtualMethod(forwardMethod, notConstructed.getThis(), params)); } - ResultHandle decoratorHandle = null; - if (decorator != null) { - decoratorHandle = interceptedMethod.readInstanceField(FieldDescriptor.of(subclass.getClassName(), - decorator.getIdentifier(), Object.class.getName()), interceptedMethod.getThis()); - } - - // Forwarding function - // Function forward = ctx -> super.foo((java.lang.String)ctx.getParameters()[0]) - FunctionCreator func = interceptedMethod.createFunction(Function.class); - BytecodeCreator funcBytecode = func.getBytecode(); - ResultHandle ctxHandle = funcBytecode.getMethodParam(0); - ResultHandle[] superParamHandles; - if (parameters.isEmpty()) { - superParamHandles = new ResultHandle[0]; - } else { - superParamHandles = new ResultHandle[parameters.size()]; - ResultHandle ctxParamsHandle = funcBytecode.invokeInterfaceMethod( - MethodDescriptor.ofMethod(InvocationContext.class, "getParameters", Object[].class), - ctxHandle); - // autoboxing is handled inside Gizmo - for (int i = 0; i < superParamHandles.length; i++) { - superParamHandles[i] = funcBytecode.readArrayValue(ctxParamsHandle, i); - } - } - // If a decorator is bound then invoke the method upon the decorator instance instead of the generated forwarding method - if (decorator != null) { - AssignableResultHandle funDecoratorInstance = funcBytecode.createVariable(Object.class); - funcBytecode.assign(funDecoratorInstance, decoratorHandle); - String declaringClass = decorator.getBeanClass().toString(); - if (decorator.isAbstract()) { - String baseName = DecoratorGenerator.createBaseName(decorator.getTarget().get().asClass()); - String targetPackage = DotNames.packageName(decorator.getProviderType().name()); - declaringClass = generatedNameFromTarget(targetPackage, baseName, DecoratorGenerator.ABSTRACT_IMPL_SUFFIX); - } - MethodDescriptor methodDescriptor = MethodDescriptor.ofMethod( - declaringClass, originalMethodDescriptor.getName(), - originalMethodDescriptor.getReturnType(), originalMethodDescriptor.getParameterTypes()); - funcBytecode - .returnValue(funcBytecode.invokeVirtualMethod(methodDescriptor, funDecoratorInstance, superParamHandles)); - - } else { - ResultHandle superResult = funcBytecode.invokeVirtualMethod(forwardMethod, interceptedMethod.getThis(), - superParamHandles); - funcBytecode.returnValue(superResult != null ? superResult : funcBytecode.loadNull()); - } - for (Type declaredException : method.exceptions()) { interceptedMethod.addException(declaredException.name().toString()); } @@ -857,10 +853,7 @@ private void createInterceptedMethod(ClassOutput classOutput, BeanInfo bean, Met // InvocationContexts.performAroundInvoke(...) ResultHandle methodMetadataHandle = tryCatch.readInstanceField(metadataField, tryCatch.getThis()); ResultHandle ret = tryCatch.invokeStaticMethod(MethodDescriptors.INVOCATION_CONTEXTS_PERFORM_AROUND_INVOKE, - tryCatch.getThis(), - tryCatch.readInstanceField(FIELD_METADATA_METHOD, methodMetadataHandle), func.getInstance(), paramsHandle, - tryCatch.readInstanceField(FIELD_METADATA_CHAIN, methodMetadataHandle), - tryCatch.readInstanceField(FIELD_METADATA_BINDINGS, methodMetadataHandle)); + tryCatch.getThis(), paramsHandle, methodMetadataHandle); tryCatch.returnValue(ret); } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInvocationContext.java index 8bae659f2a40b..3feff00e1769e 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AbstractInvocationContext.java @@ -2,6 +2,7 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; +import java.lang.reflect.Executable; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; @@ -16,25 +17,14 @@ abstract class AbstractInvocationContext implements ArcInvocationContext { private static final Object[] EMPTY_PARAMS = new Object[0]; - protected final Method method; - protected final Constructor constructor; - protected final Set interceptorBindings; - protected final List chain; protected Object target; protected Object[] parameters; protected ContextDataMap contextData; - protected AbstractInvocationContext(Object target, Method method, - Constructor constructor, - Object[] parameters, ContextDataMap contextData, - Set interceptorBindings, List chain) { + protected AbstractInvocationContext(Object target, Object[] parameters, ContextDataMap contextData) { this.target = target; - this.method = method; - this.constructor = constructor; this.parameters = parameters != null ? parameters : EMPTY_PARAMS; - this.contextData = contextData != null ? contextData : new ContextDataMap(interceptorBindings); - this.interceptorBindings = interceptorBindings; - this.chain = chain; + this.contextData = contextData; } @Override @@ -42,15 +32,10 @@ public Map getContextData() { return contextData; } - @Override - public Set getInterceptorBindings() { - return interceptorBindings; - } - @SuppressWarnings("unchecked") @Override public T findIterceptorBinding(Class annotationType) { - for (Annotation annotation : interceptorBindings) { + for (Annotation annotation : getInterceptorBindings()) { if (annotation.annotationType().equals(annotationType)) { return (T) annotation; } @@ -62,7 +47,7 @@ public T findIterceptorBinding(Class annotationType) { @Override public List findIterceptorBindings(Class annotationType) { List found = new ArrayList<>(); - for (Annotation annotation : (Set) interceptorBindings) { + for (Annotation annotation : (Set) getInterceptorBindings()) { if (annotation.annotationType().equals(annotationType)) { found.add((T) annotation); } @@ -70,25 +55,9 @@ public List findIterceptorBindings(Class annotation return found; } - @Override - public Method getMethod() { - return method; - } - - @Override - public Object[] getParameters() { - return parameters; - } - - @Override - public void setParameters(Object[] params) { - validateParameters(params); - this.parameters = params; - } - - protected void validateParameters(Object[] params) { + protected void validateParameters(Executable executable, Object[] params) { int newParametersCount = Objects.requireNonNull(params).length; - Class[] parameterTypes = method.getParameterTypes(); + Class[] parameterTypes = executable.getParameterTypes(); if (parameterTypes.length != newParametersCount) { throw new IllegalArgumentException( "Wrong number of parameters - method has " + Arrays.toString(parameterTypes) + ", attempting to set " @@ -108,6 +77,11 @@ protected void validateParameters(Object[] params) { } } + @Override + public Method getMethod() { + return null; + } + @Override public Object getTarget() { return target; @@ -120,7 +94,7 @@ public Object getTimer() { @Override public Constructor getConstructor() { - return constructor; + return null; } } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundConstructInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundConstructInvocationContext.java index 24e4328e540be..532f9a51cb552 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundConstructInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundConstructInvocationContext.java @@ -11,16 +11,34 @@ */ class AroundConstructInvocationContext extends LifecycleCallbackInvocationContext { + private final Constructor constructor; private final Supplier aroundConstructForward; AroundConstructInvocationContext(Constructor constructor, Object[] parameters, Set interceptorBindings, List chain, Supplier aroundConstructForward) { - super(null, constructor, parameters, interceptorBindings, chain); + super(null, parameters, interceptorBindings, chain); this.aroundConstructForward = aroundConstructForward; + this.constructor = constructor; } protected void interceptorChainCompleted() throws Exception { target = aroundConstructForward.get(); } + @Override + public Constructor getConstructor() { + return constructor; + } + + @Override + public Object[] getParameters() { + return parameters; + } + + @Override + public void setParameters(Object[] params) { + validateParameters(constructor, params); + this.parameters = params; + } + } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java index c2d76f8b092e9..4a0fd83943795 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/AroundInvokeInvocationContext.java @@ -1,57 +1,77 @@ package io.quarkus.arc.impl; import java.lang.annotation.Annotation; +import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.List; +import java.util.Map; import java.util.Set; -import java.util.function.Function; -import jakarta.interceptor.InvocationContext; +import io.quarkus.arc.ArcInvocationContext; /** - * Special type of InvocationContext for AroundInvoke interceptors. + * An {@link javax.interceptor.InvocationContext} for {@link javax.interceptor.AroundInvoke} interceptors. *

    - * A new instance of {@link AroundInvokeInvocationContext} is created for each interceptor in the chain. This does not comply - * with the spec but allows for "asynchronous continuation" of an interceptor chain execution. In other words, it is possible to - * "cut off" the chain (interceptors executed before dispatch return immediately) and execute all remaining interceptors - * asynchronously, possibly on a different thread. + * A new instance is created for the first interceptor in the chain. Furthermore, subsequent interceptors receive a new instance + * of {@link NextAroundInvokeInvocationContext}. This does not comply with the spec but allows for "asynchronous continuation" + * of an interceptor chain execution. In other words, it is possible to "cut off" the chain (interceptors executed before + * dispatch return immediately) and execute all remaining interceptors asynchronously, possibly on a different thread. *

    * Note that context data and method parameters are mutable and are not guarded/synchronized. We expect them to be modified * before or after dispatch. If modified before and after dispatch an unpredictable behavior may occur. + *

    + * Note that {@link #getParameters()} only reflects modifications of the current interceptor. If an interceptor with higher + * priority in the same chain calls {@link #setParameters(Object[])} then the changes are not reflected. + * */ class AroundInvokeInvocationContext extends AbstractInvocationContext { - private final int position; - private final Function aroundInvokeForward; + private final InterceptedMethodMetadata metadata; + + AroundInvokeInvocationContext(Object target, Object[] args, InterceptedMethodMetadata metadata) { + super(target, args, new ContextDataMap(metadata.bindings)); + this.metadata = metadata; + } - AroundInvokeInvocationContext(Object target, Method method, Object[] parameters, - ContextDataMap contextData, Set interceptorBindings, int position, - List chain, Function aroundInvokeForward) { - super(target, method, null, parameters, contextData, interceptorBindings, chain); - this.position = position; - this.aroundInvokeForward = aroundInvokeForward; + static Object perform(Object target, Object[] args, InterceptedMethodMetadata metadata) throws Exception { + return metadata.chain.get(0).invoke(new AroundInvokeInvocationContext(target, args, metadata)); } - static Object perform(Object target, Method method, - Function aroundInvokeForward, Object[] parameters, - List chain, - Set interceptorBindings) throws Exception { + @Override + public Set getInterceptorBindings() { + return metadata.bindings; + } - return chain.get(0).invoke(new AroundInvokeInvocationContext(target, method, - parameters, null, interceptorBindings, 1, chain, aroundInvokeForward)); + public Method getMethod() { + return metadata.method; + } + + @Override + public Object[] getParameters() { + return parameters; + } + + @Override + public void setParameters(Object[] params) { + validateParameters(metadata.method, params); + this.parameters = params; } @Override public Object proceed() throws Exception { + return proceed(1); + } + + private Object proceed(int currentPosition) throws Exception { try { - if (position < chain.size()) { + if (currentPosition < metadata.chain.size()) { // Invoke the next interceptor in the chain - return chain.get(position).invoke(new AroundInvokeInvocationContext(target, method, - parameters, contextData, interceptorBindings, position + 1, chain, aroundInvokeForward)); + return metadata.chain.get(currentPosition) + .invoke(new NextAroundInvokeInvocationContext(currentPosition + 1, parameters)); } else { // Invoke the target method - return aroundInvokeForward.apply(this); + return metadata.aroundInvokeForward.apply(this); } } catch (InvocationTargetException e) { Throwable cause = e.getCause(); @@ -65,4 +85,72 @@ public Object proceed() throws Exception { } } + class NextAroundInvokeInvocationContext implements ArcInvocationContext { + + private final int position; + protected Object[] parameters; + + public NextAroundInvokeInvocationContext(int position, Object[] parameters) { + this.position = position; + this.parameters = parameters; + } + + @Override + public Object proceed() throws Exception { + return AroundInvokeInvocationContext.this.proceed(position); + } + + @Override + public Object getTarget() { + return AroundInvokeInvocationContext.this.getTarget(); + } + + @Override + public Object getTimer() { + return AroundInvokeInvocationContext.this.getTimer(); + } + + @Override + public Method getMethod() { + return AroundInvokeInvocationContext.this.getMethod(); + } + + @Override + public Constructor getConstructor() { + return AroundInvokeInvocationContext.this.getConstructor(); + } + + @Override + public Object[] getParameters() { + return parameters; + } + + @Override + public void setParameters(Object[] params) { + validateParameters(metadata.method, params); + this.parameters = params; + } + + @Override + public Map getContextData() { + return AroundInvokeInvocationContext.this.getContextData(); + } + + @Override + public Set getInterceptorBindings() { + return AroundInvokeInvocationContext.this.getInterceptorBindings(); + } + + @Override + public T findIterceptorBinding(Class annotationType) { + return AroundInvokeInvocationContext.this.findIterceptorBinding(annotationType); + } + + @Override + public List findIterceptorBindings(Class annotationType) { + return AroundInvokeInvocationContext.this.findIterceptorBindings(annotationType); + } + + } + } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedMethodMetadata.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedMethodMetadata.java index 58a7c429def0f..fe59b437c7636 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedMethodMetadata.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedMethodMetadata.java @@ -4,17 +4,26 @@ import java.lang.reflect.Method; import java.util.List; import java.util.Set; +import java.util.function.Function; +import jakarta.interceptor.InvocationContext; + +/** + * Immutable metadata for a specific intercepted method. + */ public class InterceptedMethodMetadata { public final List chain; public final Method method; public final Set bindings; + public final Function aroundInvokeForward; - public InterceptedMethodMetadata(List chain, Method method, Set bindings) { + public InterceptedMethodMetadata(List chain, Method method, Set bindings, + Function aroundInvokeForward) { this.chain = chain; this.method = method; this.bindings = bindings; + this.aroundInvokeForward = aroundInvokeForward; } } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java index 80c51464ecc36..cbe8e528d55a2 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InterceptedStaticMethods.java @@ -2,44 +2,28 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import java.util.function.Function; - -import jakarta.interceptor.InvocationContext; public final class InterceptedStaticMethods { - private static final ConcurrentMap METHODS = new ConcurrentHashMap<>(); + private static final ConcurrentMap METADATA = new ConcurrentHashMap<>(); private InterceptedStaticMethods() { } - public static void register(String key, InterceptedStaticMethod method) { - METHODS.putIfAbsent(key, method); + public static void register(String key, InterceptedMethodMetadata metadata) { + METADATA.putIfAbsent(key, metadata); } public static Object aroundInvoke(String key, Object[] args) throws Exception { - InterceptedStaticMethod method = METHODS.get(key); - if (method == null) { + InterceptedMethodMetadata metadata = METADATA.get(key); + if (metadata == null) { throw new IllegalArgumentException("Intercepted method metadata not found for key: " + key); } - return InvocationContexts.performAroundInvoke(null, method.metadata.method, method.forward, args, method.metadata.chain, - method.metadata.bindings); - } - - public static final class InterceptedStaticMethod { - - final Function forward; - final InterceptedMethodMetadata metadata; - - public InterceptedStaticMethod(Function forward, InterceptedMethodMetadata metadata) { - this.forward = forward; - this.metadata = metadata; - } - + return InvocationContexts.performAroundInvoke(null, args, metadata); } static void clear() { - METHODS.clear(); + METADATA.clear(); } } diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java index 5132867850d2f..51aee7b76d825 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/InvocationContexts.java @@ -2,10 +2,8 @@ import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; -import java.lang.reflect.Method; import java.util.List; import java.util.Set; -import java.util.function.Function; import java.util.function.Supplier; import jakarta.interceptor.InvocationContext; @@ -18,19 +16,14 @@ private InvocationContexts() { /** * * @param target - * @param method - * @param aroundInvokeForward * @param args - * @param chain - * @param interceptorBindings + * @param metadata * @return the return value * @throws Exception */ - public static Object performAroundInvoke(Object target, Method method, - Function aroundInvokeForward, Object[] args, - List chain, - Set interceptorBindings) throws Exception { - return AroundInvokeInvocationContext.perform(target, method, aroundInvokeForward, args, chain, interceptorBindings); + public static Object performAroundInvoke(Object target, Object[] args, InterceptedMethodMetadata metadata) + throws Exception { + return AroundInvokeInvocationContext.perform(target, args, metadata); } /** @@ -42,7 +35,7 @@ public static Object performAroundInvoke(Object target, Method method, */ public static InvocationContext postConstruct(Object target, List chain, Set interceptorBindings) { - return new LifecycleCallbackInvocationContext(target, null, null, interceptorBindings, chain); + return new LifecycleCallbackInvocationContext(target, null, interceptorBindings, chain); } /** @@ -54,7 +47,7 @@ public static InvocationContext postConstruct(Object target, List chain, Set interceptorBindings) { - return new LifecycleCallbackInvocationContext(target, null, null, interceptorBindings, chain); + return new LifecycleCallbackInvocationContext(target, null, interceptorBindings, chain); } /** diff --git a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LifecycleCallbackInvocationContext.java b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LifecycleCallbackInvocationContext.java index 6aa8ee4e6e48b..3d70c8c910fd7 100644 --- a/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LifecycleCallbackInvocationContext.java +++ b/independent-projects/arc/runtime/src/main/java/io/quarkus/arc/impl/LifecycleCallbackInvocationContext.java @@ -1,23 +1,27 @@ package io.quarkus.arc.impl; import java.lang.annotation.Annotation; -import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.List; import java.util.Set; /** - * A simple InvocationContext implementation used for PostConstruct and PreDestroy callbacks. + * A simple stateful {@link javax.interceptor.InvocationContext} implementation used for {@link javax.annotation.PostConstruct} + * and {@link javax.annotation.PreDestroy} callbacks. *

    * All lifecycle callback interceptors of a specific chain must be invoked on the same thread. */ class LifecycleCallbackInvocationContext extends AbstractInvocationContext { + protected final Set bindings; + protected final List chain; private int position = 0; - LifecycleCallbackInvocationContext(Object target, Constructor constructor, Object[] parameters, - Set interceptorBindings, List chain) { - super(target, null, constructor, parameters, null, interceptorBindings, chain); + LifecycleCallbackInvocationContext(Object target, Object[] parameters, + Set bindings, List chain) { + super(target, parameters, new ContextDataMap(bindings)); + this.chain = chain; + this.bindings = bindings; } @Override @@ -44,11 +48,26 @@ public Object proceed() throws Exception { } } + @Override + public Set getInterceptorBindings() { + return bindings; + } + + @Override + public Object[] getParameters() { + throw new IllegalStateException(); + } + + @Override + public void setParameters(Object[] params) { + throw new IllegalStateException(); + } + protected void interceptorChainCompleted() throws Exception { // No-op } - protected Object invokeNext() throws Exception { + private Object invokeNext() throws Exception { try { return chain.get(position++).invoke(this); } finally { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/FirstParamInterceptor.java similarity index 95% rename from independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java rename to independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/FirstParamInterceptor.java index 0182b0ad641cd..6ee50a46d13c5 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptor.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/FirstParamInterceptor.java @@ -8,11 +8,10 @@ @Simple @Priority(1) @Interceptor -public class ParamInterceptor { +public class FirstParamInterceptor { @AroundInvoke Object interceptParameters(InvocationContext ctx) throws Exception { - Object[] params = ctx.getParameters(); if (params.length == 1 && params[0] != null) { if (params[0] instanceof CharSequence) { diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptorTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptorTest.java index d27867c112d53..baac156da39d9 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptorTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ParamInterceptorTest.java @@ -15,7 +15,8 @@ public class ParamInterceptorTest { @RegisterExtension - public ArcTestContainer container = new ArcTestContainer(SimpleBean.class, Simple.class, ParamInterceptor.class); + public ArcTestContainer container = new ArcTestContainer(SimpleBean.class, Simple.class, FirstParamInterceptor.class, + SecondParamInterceptor.class, ThirdParamInterceptor.class); @Test public void testInterception() { @@ -40,13 +41,13 @@ public void testInterception() { }); simpleBean.setPrimitiveIntVal(0); - assertEquals("123456", simpleBean.getVal()); + assertEquals("123458", simpleBean.getVal()); simpleBean.setIntVal(1); - assertEquals("123456", simpleBean.getVal()); + assertEquals("123458", simpleBean.getVal()); simpleBean.setNumberVal(2L); - assertEquals("123456", simpleBean.getVal()); + assertEquals("123458", simpleBean.getVal()); handle.destroy(); } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SecondParamInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SecondParamInterceptor.java new file mode 100644 index 0000000000000..3badce0fd7be0 --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/SecondParamInterceptor.java @@ -0,0 +1,24 @@ +package io.quarkus.arc.test.interceptors.parameters; + +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; + +@Simple +@Priority(2) +@Interceptor +public class SecondParamInterceptor { + + @AroundInvoke + Object interceptParameters(InvocationContext ctx) throws Exception { + Object[] params = ctx.getParameters(); + if (params.length == 1 && params[0] != null) { + if (params[0] instanceof Number) { + params[0] = ((Number) params[0]).intValue() + 1; + } + ctx.setParameters(params); + } + return ctx.proceed(); + } +} diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ThirdParamInterceptor.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ThirdParamInterceptor.java new file mode 100644 index 0000000000000..c26a54c42114e --- /dev/null +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/parameters/ThirdParamInterceptor.java @@ -0,0 +1,24 @@ +package io.quarkus.arc.test.interceptors.parameters; + +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; + +@Simple +@Priority(2) +@Interceptor +public class ThirdParamInterceptor { + + @AroundInvoke + Object interceptParameters(InvocationContext ctx) throws Exception { + Object[] params = ctx.getParameters(); + if (params.length == 1 && params[0] != null) { + if (params[0] instanceof Number) { + params[0] = ((Number) params[0]).intValue() + 1; + } + ctx.setParameters(params); + } + return ctx.proceed(); + } +} From 8f942423aef93865e0b6edf36db3fcb6b94f5862 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 3 Feb 2023 09:43:47 +0100 Subject: [PATCH 226/250] ArC intercepted subclasses - skip non-bridge synthetic methods --- .../src/main/java/io/quarkus/arc/processor/Methods.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java index d7357a00c23cb..282701110245b 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java @@ -554,6 +554,9 @@ public boolean test(MethodInfo method) { // Skip bridge methods that have a corresponding "implementation method" on the same class // The algorithm we use to detect these methods is best effort, i.e. there might be use cases where the detection fails return hasImplementation(method); + } else if (method.isSynthetic()) { + // Skip non-bridge synthetic methods + return true; } if (method.hasAnnotation(DotNames.POST_CONSTRUCT) || method.hasAnnotation(DotNames.PRE_DESTROY)) { // @PreDestroy and @PostConstruct methods declared on the bean are NOT candidates for around invoke interception From 0d3d6920abf09a5c4e73952393947fa5fad0fb3b Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 3 Feb 2023 11:02:49 +0100 Subject: [PATCH 227/250] ArC intercepted subclasses - skip private methods - that are not observers/producers --- .../io/quarkus/arc/processor/BeanDeployment.java | 15 +++++++++++++++ .../java/io/quarkus/arc/processor/BeanInfo.java | 2 +- .../java/io/quarkus/arc/processor/Methods.java | 11 +++++++++-- .../arc/processor/SubclassSkipPredicateTest.java | 4 +++- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java index c2fb9ac8493d8..f3bf13d753cd6 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanDeployment.java @@ -674,6 +674,21 @@ Integer computeAlternativePriority(AnnotationTarget target, List return alternativePriorities != null ? alternativePriorities.compute(target, stereotypes) : null; } + Set getObserverAndProducerMethods() { + Set ret = new HashSet<>(); + for (ObserverInfo observer : observers) { + if (!observer.isSynthetic()) { + ret.add(observer.getObserverMethod()); + } + } + for (BeanInfo bean : beans) { + if (bean.isProducerMethod()) { + ret.add(bean.getTarget().get().asMethod()); + } + } + return ret; + } + private void buildContextPut(String key, Object value) { if (buildContext != null) { buildContext.putInternal(key, value); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java index b1d40056dff4c..f879fbe285d44 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java @@ -626,7 +626,7 @@ private Map initDecoratedMethods() { ClassInfo classInfo = target.get().asClass(); addDecoratedMethods(candidates, classInfo, classInfo, bound, new SubclassSkipPredicate(beanDeployment.getAssignabilityCheck()::isAssignableFrom, - beanDeployment.getBeanArchiveIndex())); + beanDeployment.getBeanArchiveIndex(), beanDeployment.getObserverAndProducerMethods())); Map decoratedMethods = new HashMap<>(candidates.size()); for (Entry entry : candidates.entrySet()) { diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java index 282701110245b..3c8740327d5b3 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Methods.java @@ -162,7 +162,7 @@ static Set addInterceptedMethodCandidates(BeanDeployment beanDeploym return addInterceptedMethodCandidates(beanDeployment, classInfo, classInfo, candidates, Set.copyOf(classLevelBindings), bytecodeTransformerConsumer, transformUnproxyableClasses, new SubclassSkipPredicate(beanDeployment.getAssignabilityCheck()::isAssignableFrom, - beanDeployment.getBeanArchiveIndex()), + beanDeployment.getBeanArchiveIndex(), beanDeployment.getObserverAndProducerMethods()), false, new HashSet<>()); } @@ -519,14 +519,17 @@ static class SubclassSkipPredicate implements Predicate { private final BiFunction assignableFromFun; private final IndexView beanArchiveIndex; + private final Set producersAndObservers; private ClassInfo clazz; private ClassInfo originalClazz; private List regularMethods; private Set bridgeMethods = new HashSet<>(); - public SubclassSkipPredicate(BiFunction assignableFromFun, IndexView beanArchiveIndex) { + public SubclassSkipPredicate(BiFunction assignableFromFun, IndexView beanArchiveIndex, + Set producersAndObservers) { this.assignableFromFun = assignableFromFun; this.beanArchiveIndex = beanArchiveIndex; + this.producersAndObservers = producersAndObservers; } void startProcessing(ClassInfo clazz, ClassInfo originalClazz) { @@ -558,6 +561,10 @@ public boolean test(MethodInfo method) { // Skip non-bridge synthetic methods return true; } + if (Modifier.isPrivate(method.flags()) && !producersAndObservers.contains(method)) { + // Skip a private method that is not and observer or producer + return true; + } if (method.hasAnnotation(DotNames.POST_CONSTRUCT) || method.hasAnnotation(DotNames.PRE_DESTROY)) { // @PreDestroy and @PostConstruct methods declared on the bean are NOT candidates for around invoke interception return true; diff --git a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java index 463818dd2ef76..683231f1d8b4b 100644 --- a/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java +++ b/independent-projects/arc/processor/src/test/java/io/quarkus/arc/processor/SubclassSkipPredicateTest.java @@ -5,6 +5,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; +import java.util.Collections; import java.util.List; import java.util.stream.Collectors; @@ -24,7 +25,8 @@ public class SubclassSkipPredicateTest { public void testPredicate() throws IOException { IndexView index = Basics.index(Base.class, Submarine.class, Long.class, Number.class); AssignabilityCheck assignabilityCheck = new AssignabilityCheck(index, null); - SubclassSkipPredicate predicate = new SubclassSkipPredicate(assignabilityCheck::isAssignableFrom, null); + SubclassSkipPredicate predicate = new SubclassSkipPredicate(assignabilityCheck::isAssignableFrom, null, + Collections.emptySet()); ClassInfo submarineClass = index.getClassByName(DotName.createSimple(Submarine.class.getName())); predicate.startProcessing(submarineClass, submarineClass); From eb9770a29fd9d45d298783b5db452b382700ab53 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 6 Feb 2023 10:03:24 +0100 Subject: [PATCH 228/250] Go back to limit of 6 PRs for Dependabot --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8bcded10f6260..5e2be585c1733 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ updates: interval: daily time: "23:00" timezone: Europe/Paris - open-pull-requests-limit: 15 + open-pull-requests-limit: 6 labels: - area/dependencies allow: From 116d5a68a48635f5a484d68e72b227d8c51b0902 Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Mon, 23 Jan 2023 17:02:24 +0100 Subject: [PATCH 229/250] Remove deprecated reactive datasource config properties - thread local pool - prepared statement caching at Pg and MySQL level --- .../runtime/DataSourceReactiveRuntimeConfig.java | 9 --------- .../db2/client/runtime/DB2PoolRecorder.java | 12 +----------- .../runtime/DataSourceReactiveDB2Config.java | 11 ----------- .../mssql/client/runtime/MSSQLPoolRecorder.java | 4 ---- .../runtime/DataSourceReactiveMySQLConfig.java | 9 --------- .../mysql/client/runtime/MySQLPoolRecorder.java | 12 +----------- .../oracle/client/runtime/OraclePoolRecorder.java | 4 ---- .../DataSourceReactivePostgreSQLConfig.java | 9 --------- .../reactive/pg/client/runtime/PgPoolRecorder.java | 14 ++------------ 9 files changed, 4 insertions(+), 80 deletions(-) diff --git a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java index f1004d7d105b4..2008de673fb09 100644 --- a/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java +++ b/extensions/reactive-datasource/runtime/src/main/java/io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java @@ -100,15 +100,6 @@ public class DataSourceReactiveRuntimeConfig { @ConfigItem public PfxConfiguration keyCertificatePfx = new PfxConfiguration(); - /** - * Deprecated: this was removed and is no longer available. - * - * @Deprecated - */ - @ConfigItem - @Deprecated - public Optional threadLocal = Optional.empty(); - /** * The number of reconnection attempts when a pooled connection cannot be established on first try. */ diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java index 299821dd49d23..7b7a867c6511c 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DB2PoolRecorder.java @@ -80,10 +80,6 @@ private DB2Pool initialize(Vertx vertx, // io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractClientName connectOptions.setMetricsName("db2|" + dataSourceName); - if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) { - log.warn( - "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); - } return createPool(vertx, poolOptions, connectOptions, dataSourceName); } @@ -161,13 +157,7 @@ private DB2ConnectOptions toConnectOptions(DataSourceRuntimeConfig dataSourceRun } } - if (dataSourceReactiveDB2Config.cachePreparedStatements.isPresent()) { - log.warn( - "datasource.reactive.db2.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead"); - connectOptions.setCachePreparedStatements(dataSourceReactiveDB2Config.cachePreparedStatements.get()); - } else { - connectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); - } + connectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); connectOptions.setSsl(dataSourceReactiveDB2Config.ssl); diff --git a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DataSourceReactiveDB2Config.java b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DataSourceReactiveDB2Config.java index c2d4f018eea4b..bb0ac8a9e82c7 100644 --- a/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DataSourceReactiveDB2Config.java +++ b/extensions/reactive-db2-client/runtime/src/main/java/io/quarkus/reactive/db2/client/runtime/DataSourceReactiveDB2Config.java @@ -1,22 +1,11 @@ package io.quarkus.reactive.db2.client.runtime; -import java.util.Optional; - import io.quarkus.runtime.annotations.ConfigGroup; import io.quarkus.runtime.annotations.ConfigItem; @ConfigGroup public class DataSourceReactiveDB2Config { - /** - * Whether prepared statements should be cached on the client side. - * - * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead. - */ - @ConfigItem - @Deprecated - public Optional cachePreparedStatements = Optional.empty(); - /** * Whether SSL/TLS is enabled. */ diff --git a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java index ac34f3bc6e60d..a263dc355707c 100644 --- a/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java +++ b/extensions/reactive-mssql-client/runtime/src/main/java/io/quarkus/reactive/mssql/client/runtime/MSSQLPoolRecorder.java @@ -80,10 +80,6 @@ private MSSQLPool initialize(Vertx vertx, // io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractClientName mssqlConnectOptions.setMetricsName("mssql|" + dataSourceName); - if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) { - log.warn( - "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); - } return createPool(vertx, poolOptions, mssqlConnectOptions, dataSourceName); } diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/DataSourceReactiveMySQLConfig.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/DataSourceReactiveMySQLConfig.java index e887b4930992d..c4d2219f919ae 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/DataSourceReactiveMySQLConfig.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/DataSourceReactiveMySQLConfig.java @@ -11,15 +11,6 @@ @ConfigGroup public class DataSourceReactiveMySQLConfig { - /** - * Whether prepared statements should be cached on the client side. - * - * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead. - */ - @ConfigItem - @Deprecated - public Optional cachePreparedStatements = Optional.empty(); - /** * Charset for connections. */ diff --git a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java index d5f58d0fb7d16..8bad16eb41536 100644 --- a/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java +++ b/extensions/reactive-mysql-client/runtime/src/main/java/io/quarkus/reactive/mysql/client/runtime/MySQLPoolRecorder.java @@ -81,10 +81,6 @@ private MySQLPool initialize(Vertx vertx, // io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractClientName mysqlConnectOptions.setMetricsName("mysql|" + dataSourceName); - if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) { - log.warn( - "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); - } return createPool(vertx, poolOptions, mysqlConnectOptions, dataSourceName); } @@ -166,13 +162,7 @@ private MySQLConnectOptions toMySQLConnectOptions(DataSourceRuntimeConfig dataSo } } - if (dataSourceReactiveMySQLConfig.cachePreparedStatements.isPresent()) { - log.warn( - "datasource.reactive.mysql.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead"); - mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveMySQLConfig.cachePreparedStatements.get()); - } else { - mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); - } + mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); if (dataSourceReactiveMySQLConfig.charset.isPresent()) { mysqlConnectOptions.setCharset(dataSourceReactiveMySQLConfig.charset.get()); diff --git a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java index a32dfcf4bcb5b..ae666521f8f9f 100644 --- a/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java +++ b/extensions/reactive-oracle-client/runtime/src/main/java/io/quarkus/reactive/oracle/client/runtime/OraclePoolRecorder.java @@ -74,10 +74,6 @@ private OraclePool initialize(Vertx vertx, // io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractClientName oracleConnectOptions.setMetricsName("oracle|" + dataSourceName); - if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) { - log.warn( - "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); - } return createPool(vertx, poolOptions, oracleConnectOptions, dataSourceName); } diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceReactivePostgreSQLConfig.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceReactivePostgreSQLConfig.java index 46f1d98f1399d..47607c9074dec 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceReactivePostgreSQLConfig.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/DataSourceReactivePostgreSQLConfig.java @@ -10,15 +10,6 @@ @ConfigGroup public class DataSourceReactivePostgreSQLConfig { - /** - * Whether prepared statements should be cached on the client side. - * - * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead. - */ - @ConfigItem - @Deprecated - public Optional cachePreparedStatements = Optional.empty(); - /** * The maximum number of inflight database commands that can be pipelined. */ diff --git a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java index 853f4e7dba23a..1377233895269 100644 --- a/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java +++ b/extensions/reactive-pg-client/runtime/src/main/java/io/quarkus/reactive/pg/client/runtime/PgPoolRecorder.java @@ -80,10 +80,7 @@ private PgPool initialize(Vertx vertx, // See io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractPrefix and // io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter.extractClientName pgConnectOptions.setMetricsName("postgresql|" + dataSourceName); - if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) { - log.warn( - "Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now."); - } + return createPool(vertx, poolOptions, pgConnectOptions, dataSourceName); } @@ -161,14 +158,7 @@ private PgConnectOptions toPgConnectOptions(DataSourceRuntimeConfig dataSourceRu } } - if (dataSourceReactivePostgreSQLConfig.cachePreparedStatements.isPresent()) { - log.warn( - "datasource.reactive.postgresql.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead"); - pgConnectOptions - .setCachePreparedStatements(dataSourceReactivePostgreSQLConfig.cachePreparedStatements.get()); - } else { - pgConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); - } + pgConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements); if (dataSourceReactivePostgreSQLConfig.pipeliningLimit.isPresent()) { pgConnectOptions.setPipeliningLimit(dataSourceReactivePostgreSQLConfig.pipeliningLimit.getAsInt()); From 47b10aed49150aa5e71d7eae9e79b69e6787a0f9 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Wed, 16 Nov 2022 16:08:36 +0100 Subject: [PATCH 230/250] Hibernate reactive panache refactoring - do not store the current reactive session in the CDI request context but instead in the vertx duplicated context - do not offload execution of a panache entity method on the current vertx context but instead validate that the method is executed on the vetx duplicated context - introduce WithSession, WithSessionOnDemand and WithTransaction bindings and interceptors - deprecate ReactiveTransactional - ReactiveTransactionalInterceptor can only be used for methods that return Uni/Multi; this is validated at build time - if resteasy-reactive is present then automatically add WithSessionOnDemand binding to all resource methods on classes that use a panache entity - also remove the quarkus-integration-test-hibernate-reactive-panache-blocking module - quarkus-test-vertx - run the test method on a duplicated vertx context even if the RunOnVertxContext is not present but the TestReactiveTransaction is --- .../asciidoc/hibernate-reactive-panache.adoc | 213 +++++++----- .../src/main/asciidoc/hibernate-reactive.adoc | 1 + .../ReactiveSessionFactoryProducer.java | 3 +- .../PanacheJpaCommonResourceProcessor.java | 125 ++++++- .../reactive/panache/common/WithSession.java | 28 ++ .../panache/common/WithSessionOnDemand.java | 27 ++ .../panache/common/WithTransaction.java | 29 ++ .../common/runtime/AbstractJpaOperations.java | 141 +++----- .../runtime/AbstractUniInterceptor.java | 18 + .../common/runtime/ReactiveTransactional.java | 11 +- .../ReactiveTransactionalInterceptor.java | 13 +- .../ReactiveTransactionalInterceptorBase.java | 134 -------- .../common/runtime/SessionOperations.java | 208 ++++++++++++ .../TestReactiveTransactionalInterceptor.java | 100 +++++- .../runtime/WithSessionInterceptor.java | 22 ++ .../WithSessionOnDemandInterceptor.java | 22 ++ .../runtime/WithTransactionInterceptor.java | 22 ++ .../PanacheHibernateResourceProcessor.java | 2 - .../hibernate/reactive/panache/Panache.java | 17 +- .../deployment/ResourceImplementor.java | 14 +- .../io/quarkus/arc/processor/BeanInfo.java | 46 ++- .../io/quarkus/arc/processor/BeanStream.java | 18 + .../com/example/reactive/ReactiveService.java | 7 +- .../pom.xml | 317 ------------------ .../io/quarkus/it/panache/reactive/Fruit.java | 21 -- .../it/panache/reactive/TestEndpoint.java | 43 --- .../src/main/resources/application.properties | 6 - .../PanacheFunctionalityInGraalITCase.java | 11 - .../reactive/PanacheFunctionalityTest.java | 22 -- .../kotlin/PanacheFunctionalityTest.kt | 132 ++++---- .../reactive/PanacheFunctionalityTest.java | 96 ++++-- .../panache/reactive/PanacheMockingTest.java | 211 +++++++----- .../reactive/TestReactiveTransactionTest.java | 3 + integration-tests/pom.xml | 1 - .../io/quarkus/it/kafka/KafkaReceivers.java | 2 + .../RunOnVertxContextTestMethodInvoker.java | 7 +- 36 files changed, 1125 insertions(+), 968 deletions(-) create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSession.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSessionOnDemand.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithTransaction.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractUniInterceptor.java delete mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/SessionOperations.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionInterceptor.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionOnDemandInterceptor.java create mode 100644 extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithTransactionInterceptor.java delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/pom.xml delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/src/main/resources/application.properties delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityInGraalITCase.java delete mode 100644 integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java diff --git a/docs/src/main/asciidoc/hibernate-reactive-panache.adoc b/docs/src/main/asciidoc/hibernate-reactive-panache.adoc index 849ad0b8d768c..dd742e6823b63 100644 --- a/docs/src/main/asciidoc/hibernate-reactive-panache.adoc +++ b/docs/src/main/asciidoc/hibernate-reactive-panache.adoc @@ -20,6 +20,8 @@ What we're doing in Panache allows you to write your Hibernate Reactive entities [source,java] ---- +import io.quarkus.hibernate.reactive.panache.PanacheEntity; + @Entity public class Person extends PanacheEntity { public String name; @@ -43,9 +45,9 @@ public class Person extends PanacheEntity { You have noticed how much more compact and readable the code is? Does this look interesting? Read on! -NOTE: the `list()` method might be surprising at first. It takes fragments of HQL (JP-QL) queries and contextualizes the rest. That makes for very concise but yet readable code. +NOTE: The `list()` method might be surprising at first. It takes fragments of HQL (JP-QL) queries and contextualizes the rest. That makes for very concise but yet readable code. -NOTE: what was described above is essentially the link:https://www.martinfowler.com/eaaCatalog/activeRecord.html[active record pattern], sometimes just called the entity pattern. +NOTE: What was described above is essentially the link:https://www.martinfowler.com/eaaCatalog/activeRecord.html[active record pattern], sometimes just called the entity pattern. Hibernate with Panache also allows for the use of the more classical link:https://martinfowler.com/eaaCatalog/repository.html[repository pattern] via `PanacheRepository`. == Solution @@ -718,16 +720,25 @@ PanacheQuery query = Person.find("select new MyView(d.race, AVG(d.we Hibernate Reactive in Quarkus currently does not support multiple persistence units. -== Transactions +[[transactions]] +== Sessions and Transactions + +First of all, most of the methods of a Panache entity must be invoked within the scope of a reactive `Mutiny.Session`. +In some cases, the session is opened automatically on demand. +For example, if a Panache entity method is invoked in a JAX-RS resource method in an application that includes the `quarkus-resteasy-reactive` extension. +For other cases, there are both a declarative and a programmatic way to ensure the session is opened. +You can annotate a CDI business method that returns `Uni` with the `@WithSession` annotation. +The method will be intercepted and the returned `Uni` will be triggered within a scope of a reactive session. +Alternatively, you can use the `Panache.withSession()` method to achieve the same effect. -Make sure to wrap methods modifying your database (e.g. `entity.persist()`) within a transaction. Marking a -CDI bean method `@ReactiveTransactional` will do that for you and make that method a transaction boundary. Alternatively, -you can use `Panache.withTransaction()` for the same effect. We recommend doing -so at your application entry point boundaries like your REST endpoint controllers. +NOTE: Note that a Panache entity may not be used from a blocking thread. See also xref:getting-started-reactive.adoc[Getting Started With Reactive] guide that explains the basics of reactive principles in Quarkus. -NOTE: You cannot use `@Transactional` with Hibernate Reactive for your transactions: you must use `@ReactiveTransactional`, -and your annotated method must return a `Uni` to be non-blocking. Otherwise, it needs be called from a non-`VertxThread` thread -and will become blocking. +Also make sure to wrap methods that modify the database or involve multiple queries (e.g. `entity.persist()`) within a transaction. +You can annotate a CDI business method that returns `Uni` with the `@WithTransaction` annotation. +The method will be intercepted and the returned `Uni` is triggered within a transaction boundary. +Alternatively, you can use the `Panache.withTransaction()` method for the same effect. + +IMPORTANT: You cannot use the `@Transactional` annotation with Hibernate Reactive for your transactions: you must use `@WithTransaction`, and your annotated method must return a `Uni` to be non-blocking. JPA batches changes you make to your entities and sends changes (it is called flush) at the end of the transaction or before a query. This is usually a good thing as it is more efficient. @@ -738,9 +749,9 @@ And your transaction still has to be committed. Here is an example of the usage of the flush method to allow making a specific action in case of `PersistenceException`: [source,java] ---- -@ReactiveTransactional +@WithTransaction public Uni create(Person person){ - //Here I use the persistAndFlush() shorthand method on a Panache repository to persist to database then flush the changes. + // Here we use the persistAndFlush() shorthand method on a Panache repository to persist to database then flush the changes. return person.persistAndFlush() .onFailure(PersistenceException.class) .recoverWithItem(() -> { @@ -752,12 +763,11 @@ public Uni create(Person person){ } ---- -The `@ReactiveTransactional` annotation will also work for testing. +The `@WithTransaction` annotation will also work for testing. This means that changes done during the test will be propagated to the database. If you want any changes made to be rolled back at the end of the test you can use the `io.quarkus.test.TestReactiveTransaction` annotation. -This will run the test method in a transaction, but roll it back once the test method is -complete to revert any database changes. +This will run the test method in a transaction, but roll it back once the test method is complete to revert any database changes. == Lock management @@ -841,6 +851,11 @@ public class PersonRepository implements PanacheRepositoryBase { } ---- +== Testing + +Testing reactive Panache entities in a `@QuarkusTest` is slightly more complicated than testing regular Panache entities due to the asynchronous nature of the APIs and the fact that all operations need to run on a Vert.x event loop. +The usage of `@RunOnVertxContext`, `@TestReactiveTransaction` and `UniAsserter` is described in the xref:hibernate-reactive.adoc#testing[Hibernate Reactive] guide. + == Mocking === Using the active record pattern @@ -886,81 +901,75 @@ You can write your mocking test like this: [source,java] ---- +import io.quarkus.test.vertx.UniAsserter; +import io.quarkus.test.vertx.RunOnVertxContext; + @QuarkusTest public class PanacheFunctionalityTest { + @RunOnVertxContext // <1> @Test - public void testPanacheMocking() { - PanacheMock.mock(Person.class); + public void testPanacheMocking(UniAsserter asserter) { // <2> + asserter.execute(() -> PanacheMock.mock(Person.class)); // Mocked classes always return a default value - Assertions.assertEquals(0, Person.count().await().indefinitely()); + asserter.assertEquals(() -> Person.count(), 0l); // Now let's specify the return value - Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(23l)); - Assertions.assertEquals(23, Person.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(23l))); + asserter.assertEquals(() -> Person.count(), 23l); // Now let's change the return value - Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(42l)); - Assertions.assertEquals(42, Person.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(42l))); + asserter.assertEquals(() -> Person.count(), 42l); // Now let's call the original method - Mockito.when(Person.count()).thenCallRealMethod(); - Assertions.assertEquals(0, Person.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(Person.count()).thenCallRealMethod()); + asserter.assertEquals(() -> Person.count(), 0l); // Check that we called it 4 times - PanacheMock.verify(Person.class, Mockito.times(4)).count();// <1> + asserter.execute(() -> { + PanacheMock.verify(Person.class, Mockito.times(4)).count(); // <3> + }); // Mock only with specific parameters - Person p = new Person(); - Mockito.when(Person.findById(12l)).thenReturn(Uni.createFrom().item(p)); - Assertions.assertSame(p, Person.findById(12l).await().indefinitely()); - Assertions.assertNull(Person.findById(42l).await().indefinitely()); + asserter.execute(() -> { + Person p = new Person(); + Mockito.when(Person.findById(12l)).thenReturn(Uni.createFrom().item(p)); + asserter.putData(key, p); + }); + asserter.assertThat(() -> Person.findById(12l), p -> Assertions.assertSame(p, asserter.getData(key))); + asserter.assertNull(() -> Person.findById(42l)); // Mock throwing - Mockito.when(Person.findById(12l)).thenThrow(new WebApplicationException()); - try { - Person.findById(12l); - Assertions.fail(); - } catch (WebApplicationException x) { - } + asserter.execute(() -> Mockito.when(Person.findById(12l)).thenThrow(new WebApplicationException())); + asserter.assertFailedWith(() -> { + try { + return Person.findById(12l); + } catch (Exception e) { + return Uni.createFrom().failure(e); + } + }, t -> assertEquals(WebApplicationException.class, t.getClass())); // We can even mock your custom methods - Mockito.when(Person.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList())); - Assertions.assertTrue(Person.findOrdered().await().indefinitely().isEmpty()); - - PanacheMock.verify(Person.class).findOrdered(); - PanacheMock.verify(Person.class, Mockito.atLeastOnce()).findById(Mockito.any()); - PanacheMock.verifyNoMoreInteractions(Person.class); - } -} ----- -<1> Be sure to call your `verify` and `do*` methods on `PanacheMock` rather than `Mockito`, otherwise you won't know -what mock object to pass. - -==== Mocking `Mutiny.Session` and entity instance methods - -If you need to mock entity instance methods, such as `persist()` you can do it by mocking the Hibernate Reactive `Mutiny.Session` object: + asserter.execute(() -> Mockito.when(Person.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList()))); + asserter.assertThat(() -> Person.findOrdered(), list -> list.isEmpty()); -[source,java] ----- -@QuarkusTest -public class PanacheMockingTest { - - @InjectMock - Mutiny.Session session; - - @Test - public void testPanacheSessionMocking() { - Person p = new Person(); - // mocked via Mutiny.Session mocking - p.persist().await().indefinitely(); - Assertions.assertNull(p.id); + asserter.execute(() -> { + PanacheMock.verify(Person.class).findOrdered(); + PanacheMock.verify(Person.class, Mockito.atLeastOnce()).findById(Mockito.any()); + PanacheMock.verifyNoMoreInteractions(Person.class); + }); - Mockito.verify(session, Mockito.times(1)).persist(Mockito.any()); + // IMPORTANT: We need to execute the asserter within a reactive session + asserter.surroundWith(u -> Panache.withSession(() -> u)); } } ---- +<1> Make sure the test method is run on the Vert.x event loop. +<2> The injected `UniAsserter` agrument is used to make assertions. +<3> Be sure to call your `verify` and `do*` methods on `PanacheMock` rather than `Mockito`, otherwise you won't know +what mock object to pass. === Using the repository pattern @@ -1014,56 +1023,76 @@ You can write your mocking test like this: [source,java] ---- +import io.quarkus.test.vertx.UniAsserter; +import io.quarkus.test.vertx.RunOnVertxContext; + @QuarkusTest public class PanacheFunctionalityTest { @InjectMock PersonRepository personRepository; + @RunOnVertxContext // <1> @Test - public void testPanacheRepositoryMocking() throws Throwable { + public void testPanacheRepositoryMocking(UniAsserter asserter) { // <2> + // Mocked classes always return a default value - Assertions.assertEquals(0, mockablePersonRepository.count().await().indefinitely()); + asserter.assertEquals(() -> mockablePersonRepository.count(), 0l); // Now let's specify the return value - Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(23l)); - Assertions.assertEquals(23, mockablePersonRepository.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(23l))); + asserter.assertEquals(() -> mockablePersonRepository.count(), 23l); // Now let's change the return value - Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(42l)); - Assertions.assertEquals(42, mockablePersonRepository.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(42l))); + asserter.assertEquals(() -> mockablePersonRepository.count(), 42l); // Now let's call the original method - Mockito.when(mockablePersonRepository.count()).thenCallRealMethod(); - Assertions.assertEquals(0, mockablePersonRepository.count().await().indefinitely()); + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenCallRealMethod()); + asserter.assertEquals(() -> mockablePersonRepository.count(), 0l); // Check that we called it 4 times - Mockito.verify(mockablePersonRepository, Mockito.times(4)).count(); + asserter.execute(() -> { + Mockito.verify(mockablePersonRepository, Mockito.times(4)).count(); + }); // Mock only with specific parameters - Person p = new Person(); - Mockito.when(mockablePersonRepository.findById(12l)).thenReturn(Uni.createFrom().item(p)); - Assertions.assertSame(p, mockablePersonRepository.findById(12l).await().indefinitely()); - Assertions.assertNull(mockablePersonRepository.findById(42l).await().indefinitely()); - + asserter.execute(() -> { + Person p = new Person(); + Mockito.when(mockablePersonRepository.findById(12l)).thenReturn(Uni.createFrom().item(p)); + asserter.putData(key, p); + }); + asserter.assertThat(() -> mockablePersonRepository.findById(12l), p -> Assertions.assertSame(p, asserter.getData(key))); + asserter.assertNull(() -> mockablePersonRepository.findById(42l)); + // Mock throwing - Mockito.when(mockablePersonRepository.findById(12l)).thenThrow(new WebApplicationException()); - try { - mockablePersonRepository.findById(12l); - Assertions.fail(); - } catch (WebApplicationException x) { - } + asserter.execute(() -> Mockito.when(mockablePersonRepository.findById(12l)).thenThrow(new WebApplicationException())); + asserter.assertFailedWith(() -> { + try { + return mockablePersonRepository.findById(12l); + } catch (Exception e) { + return Uni.createFrom().failure(e); + } + }, t -> assertEquals(WebApplicationException.class, t.getClass())); // We can even mock your custom methods - Mockito.when(mockablePersonRepository.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList())); - Assertions.assertTrue(mockablePersonRepository.findOrdered().await().indefinitely().isEmpty()); - - Mockito.verify(mockablePersonRepository).findOrdered(); - Mockito.verify(mockablePersonRepository, Mockito.atLeastOnce()).findById(Mockito.any()); - Mockito.verify(mockablePersonRepository).persist(Mockito. any()); - Mockito.verifyNoMoreInteractions(mockablePersonRepository); + asserter.execute(() -> Mockito.when(mockablePersonRepository.findOrdered()) + .thenReturn(Uni.createFrom().item(Collections.emptyList()))); + asserter.assertThat(() -> mockablePersonRepository.findOrdered(), list -> list.isEmpty()); + + asserter.execute(() -> { + Mockito.verify(mockablePersonRepository).findOrdered(); + Mockito.verify(mockablePersonRepository, Mockito.atLeastOnce()).findById(Mockito.any()); + Mockito.verify(mockablePersonRepository).persist(Mockito. any()); + Mockito.verifyNoMoreInteractions(mockablePersonRepository); + }); + + // IMPORTANT: We need to execute the asserter within a reactive session + asserter.surroundWith(u -> Panache.withSession(() -> u)); } } ---- +<1> Make sure the test method is run on the Vert.x event loop. +<2> The injected `UniAsserter` agrument is used to make assertions. == How and why we simplify Hibernate Reactive mappings diff --git a/docs/src/main/asciidoc/hibernate-reactive.adoc b/docs/src/main/asciidoc/hibernate-reactive.adoc index 8a64046d61581..8816dbcd6c04f 100644 --- a/docs/src/main/asciidoc/hibernate-reactive.adoc +++ b/docs/src/main/asciidoc/hibernate-reactive.adoc @@ -216,6 +216,7 @@ You can also inject an instance of `Uni` using the exact same me Uni session; ---- +[[testing]] === Testing Using Hibernate Reactive in a `@QuarkusTest` is slightly more involved than using Hibernate ORM due to the asynchronous nature of the APIs and the fact that all operations need to run on a Vert.x Event Loop. diff --git a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java index 0b7fecbf95405..e474441059d26 100644 --- a/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java +++ b/extensions/hibernate-reactive/runtime/src/main/java/io/quarkus/hibernate/reactive/runtime/ReactiveSessionFactoryProducer.java @@ -7,6 +7,7 @@ import jakarta.persistence.EntityManagerFactory; import jakarta.persistence.PersistenceUnit; +import org.hibernate.reactive.common.spi.Implementor; import org.hibernate.reactive.common.spi.MutinyImplementor; import org.hibernate.reactive.mutiny.Mutiny; import org.hibernate.reactive.mutiny.impl.MutinySessionFactoryImpl; @@ -28,7 +29,7 @@ public class ReactiveSessionFactoryProducer { @ApplicationScoped @DefaultBean @Unremovable - @Typed({ Mutiny.SessionFactory.class, MutinyImplementor.class }) + @Typed({ Mutiny.SessionFactory.class, MutinyImplementor.class, Implementor.class }) public MutinySessionFactoryImpl mutinySessionFactory() { if (jpaConfig.getDeactivatedPersistenceUnitNames() .contains(HibernateReactive.DEFAULT_REACTIVE_PERSISTENCE_UNIT_NAME)) { diff --git a/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java b/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java index cd9f5a983c1b3..fecb66017602c 100644 --- a/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java +++ b/extensions/panache/hibernate-reactive-panache-common/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheJpaCommonResourceProcessor.java @@ -1,10 +1,14 @@ package io.quarkus.hibernate.reactive.panache.common.deployment; +import java.lang.reflect.Modifier; +import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.Set; +import java.util.stream.Collectors; import jakarta.annotation.Priority; import jakarta.interceptor.Interceptor; @@ -12,14 +16,24 @@ import jakarta.persistence.NamedQuery; import org.jboss.jandex.AnnotationInstance; +import org.jboss.jandex.AnnotationTarget.Kind; import org.jboss.jandex.AnnotationValue; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; +import org.jboss.jandex.MethodInfo; import org.jboss.jandex.Type; import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.arc.deployment.AnnotationsTransformerBuildItem; import io.quarkus.arc.deployment.GeneratedBeanBuildItem; import io.quarkus.arc.deployment.GeneratedBeanGizmoAdaptor; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem; +import io.quarkus.arc.deployment.ValidationPhaseBuildItem.ValidationErrorBuildItem; +import io.quarkus.arc.processor.Annotations; +import io.quarkus.arc.processor.AnnotationsTransformer; +import io.quarkus.arc.processor.BeanInfo; +import io.quarkus.deployment.Capabilities; +import io.quarkus.deployment.Capability; import io.quarkus.deployment.IsTest; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; @@ -31,9 +45,16 @@ import io.quarkus.gizmo.ClassCreator; import io.quarkus.hibernate.orm.deployment.HibernateOrmEnabled; import io.quarkus.hibernate.orm.deployment.JpaModelBuildItem; +import io.quarkus.hibernate.reactive.panache.common.WithSession; +import io.quarkus.hibernate.reactive.panache.common.WithSessionOnDemand; +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.quarkus.hibernate.reactive.panache.common.runtime.PanacheHibernateRecorder; +import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactionalInterceptor; import io.quarkus.hibernate.reactive.panache.common.runtime.TestReactiveTransactionalInterceptor; +import io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionInterceptor; +import io.quarkus.hibernate.reactive.panache.common.runtime.WithSessionOnDemandInterceptor; +import io.smallrye.mutiny.Uni; @BuildSteps(onlyIf = HibernateOrmEnabled.class) public final class PanacheJpaCommonResourceProcessor { @@ -42,6 +63,19 @@ public final class PanacheJpaCommonResourceProcessor { private static final DotName DOTNAME_NAMED_QUERIES = DotName.createSimple(NamedQueries.class.getName()); private static final String TEST_REACTIVE_TRANSACTION = "io.quarkus.test.TestReactiveTransaction"; + private static final DotName REACTIVE_TRANSACTIONAL = DotName.createSimple(ReactiveTransactional.class.getName()); + private static final DotName WITH_SESSION_ON_DEMAND = DotName.createSimple(WithSessionOnDemand.class.getName()); + private static final DotName WITH_SESSION = DotName.createSimple(WithSession.class.getName()); + private static final DotName WITH_TRANSACTION = DotName.createSimple(WithTransaction.class.getName()); + private static final DotName UNI = DotName.createSimple(Uni.class.getName()); + private static final DotName PANACHE_ENTITY_BASE = DotName + .createSimple("io.quarkus.hibernate.reactive.panache.PanacheEntityBase"); + private static final DotName PANACHE_ENTITY = DotName.createSimple("io.quarkus.hibernate.reactive.panache.PanacheEntity"); + private static final DotName PANACHE_KOTLIN_ENTITY_BASE = DotName + .createSimple("io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntityBase"); + private static final DotName PANACHE_KOTLIN_ENTITY = DotName + .createSimple("io.quarkus.hibernate.reactive.panache.kotlin.PanacheEntity"); + @BuildStep(onlyIf = IsTest.class) void testTx(BuildProducer generatedBeanBuildItemBuildProducer, BuildProducer additionalBeans) { @@ -61,12 +95,101 @@ void testTx(BuildProducer generatedBeanBuildItemBuildPro } @BuildStep - void registerInterceptor(BuildProducer additionalBeans) { + void registerInterceptors(BuildProducer additionalBeans) { AdditionalBeanBuildItem.Builder builder = AdditionalBeanBuildItem.builder(); + builder.addBeanClass(WithSessionOnDemandInterceptor.class); + builder.addBeanClass(WithSessionInterceptor.class); builder.addBeanClass(ReactiveTransactionalInterceptor.class); additionalBeans.produce(builder.build()); } + @BuildStep + void validateInterceptedMethods(ValidationPhaseBuildItem validationPhase, + BuildProducer errors) { + List bindings = List.of(REACTIVE_TRANSACTIONAL, WITH_SESSION, WITH_SESSION_ON_DEMAND, WITH_TRANSACTION); + for (BeanInfo bean : validationPhase.getContext().beans().withAroundInvokeInterceptor()) { + for (Entry> e : bean.getInterceptedMethodsBindings().entrySet()) { + DotName returnTypeName = e.getKey().returnType().name(); + if (returnTypeName.equals(UNI)) { + // Method returns Uni - no need to iterate over the bindings + continue; + } + if (Annotations.containsAny(e.getValue(), bindings)) { + errors.produce(new ValidationErrorBuildItem( + new IllegalStateException( + "A method annotated with " + + bindings.stream().map(b -> "@" + b.withoutPackagePrefix()) + .collect(Collectors.toList()) + + " must return Uni: " + + e.getKey() + " declared on " + e.getKey().declaringClass()))); + } + } + } + } + + @BuildStep + void transformResourceMethods(CombinedIndexBuildItem index, Capabilities capabilities, + BuildProducer annotationsTransformer) { + if (capabilities.isPresent(Capability.RESTEASY_REACTIVE)) { + // Custom request method designators are not supported + List designators = List.of(DotName.createSimple("jakarta.ws.rs.GET"), + DotName.createSimple("jakarta.ws.rs.HEAD"), + DotName.createSimple("jakarta.ws.rs.DELETE"), DotName.createSimple("jakarta.ws.rs.OPTIONS"), + DotName.createSimple("jakarta.ws.rs.PATCH"), DotName.createSimple("jakarta.ws.rs.POST"), + DotName.createSimple("jakarta.ws.rs.PUT")); + List bindings = List.of(REACTIVE_TRANSACTIONAL, WITH_SESSION, WITH_SESSION_ON_DEMAND, WITH_TRANSACTION); + + // Collect all panache entities + Set entities = new HashSet<>(); + for (ClassInfo subclass : index.getIndex().getAllKnownSubclasses(PANACHE_ENTITY_BASE)) { + if (!subclass.name().equals(PANACHE_ENTITY)) { + entities.add(subclass.name()); + } + } + for (ClassInfo subclass : index.getIndex().getAllKnownImplementors(PANACHE_KOTLIN_ENTITY_BASE)) { + if (!subclass.name().equals(PANACHE_KOTLIN_ENTITY)) { + entities.add(subclass.name()); + } + } + Set entityUsers = new HashSet<>(); + for (DotName entity : entities) { + for (ClassInfo user : index.getIndex().getKnownUsers(entity)) { + entityUsers.add(user.name()); + } + } + + annotationsTransformer.produce(new AnnotationsTransformerBuildItem(new AnnotationsTransformer() { + @Override + public boolean appliesTo(Kind kind) { + return kind == Kind.METHOD; + } + + @Override + public void transform(TransformationContext context) { + MethodInfo method = context.getTarget().asMethod(); + Collection annotations = context.getAnnotations(); + if (method.isSynthetic() + || Modifier.isStatic(method.flags()) + || method.declaringClass().isInterface() + || !method.returnType().name().equals(UNI) + || !entityUsers.contains(method.declaringClass().name()) + || !Annotations.containsAny(annotations, designators) + || Annotations.containsAny(annotations, bindings)) { + return; + } + // Add @WithSessionOnDemand to a method that + // - is not static + // - is not synthetic + // - returns Uni + // - is declared in a class that uses a panache entity + // - is annotated with @GET, @POST, @PUT, @DELETE ,@PATCH ,@HEAD or @OPTIONS + // - is not annotated with @ReactiveTransactional, @WithSession, @WithSessionOnDemand, or @WithTransaction + context.transform().add(WITH_SESSION_ON_DEMAND).done(); + } + })); + } + } + @BuildStep void lookupNamedQueries(CombinedIndexBuildItem index, BuildProducer namedQueries, diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSession.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSession.java new file mode 100644 index 0000000000000..d9099daa3a3c5 --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSession.java @@ -0,0 +1,28 @@ +package io.quarkus.hibernate.reactive.panache.common; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import jakarta.interceptor.InterceptorBinding; + +/** + * Instructs Panache to perform the work represented by the {@link io.smallrye.mutiny.Uni} returned from the intercepted method + * within a scope of a reactive {@link org.hibernate.reactive.mutiny.Mutiny.Session}. + *

    + * If a reactive session exists when the {@link io.smallrye.mutiny.Uni} returned from the annotated method is + * triggered, then this session is reused. Otherwise, a new session is opened and eventually closed when the + * {@link io.smallrye.mutiny.Uni} completes. + *

    + * A method annotated with this annotation must return either {@link io.smallrye.mutiny.Uni}. If declared on a class then all + * methods that are intercepted must return {@link io.smallrye.mutiny.Uni}. + */ +@Inherited +@InterceptorBinding +@Target({ ElementType.TYPE, ElementType.METHOD }) +@Retention(value = RetentionPolicy.RUNTIME) +public @interface WithSession { + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSessionOnDemand.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSessionOnDemand.java new file mode 100644 index 0000000000000..3ebc4f4ac668f --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithSessionOnDemand.java @@ -0,0 +1,27 @@ +package io.quarkus.hibernate.reactive.panache.common; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import jakarta.interceptor.InterceptorBinding; + +/** + * Instructs Panache to trigger the {@link io.smallrye.mutiny.Uni} returned from the intercepted method within a scope of a + * reactive {@link org.hibernate.reactive.mutiny.Mutiny.Session} (if needed). If a reactive session exists when the + * {@link io.smallrye.mutiny.Uni} returned from the annotated method is triggered, then this session is reused. Otherwise, a new + * session is opened when needed and eventually closed when the + * {@link io.smallrye.mutiny.Uni} completes. + *

    + * A method annotated with this annotation must return {@link io.smallrye.mutiny.Uni}. If declared on a class then all methods + * that are intercepted must return {@link io.smallrye.mutiny.Uni}. + */ +@Inherited +@InterceptorBinding +@Target({ ElementType.TYPE, ElementType.METHOD }) +@Retention(value = RetentionPolicy.RUNTIME) +public @interface WithSessionOnDemand { + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithTransaction.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithTransaction.java new file mode 100644 index 0000000000000..71f063d778e0f --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/WithTransaction.java @@ -0,0 +1,29 @@ +package io.quarkus.hibernate.reactive.panache.common; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import jakarta.interceptor.InterceptorBinding; + +/** + * Instructs Panache to trigger the {@link io.smallrye.mutiny.Uni} returned from the intercepted method within a scope of a + * reactive {@link org.hibernate.reactive.mutiny.Mutiny.Transaction}. If a reactive session exists when the + * {@link io.smallrye.mutiny.Uni} returned from the annotated method is triggered, then this session is reused. Otherwise, a new + * session is opened and eventually closed when the + * {@link io.smallrye.mutiny.Uni} completes. + *

    + * A method annotated with this annotation must return {@link io.smallrye.mutiny.Uni}. If declared on a class then all methods + * that are intercepted must return {@link io.smallrye.mutiny.Uni}. + * + * @see org.hibernate.reactive.mutiny.Mutiny.SessionFactory#withTransaction(java.util.function.Function) + */ +@Inherited +@InterceptorBinding +@Target({ ElementType.TYPE, ElementType.METHOD }) +@Retention(value = RetentionPolicy.RUNTIME) +public @interface WithTransaction { + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java index 5fdf02d6d39de..15740abcabe2a 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java @@ -5,28 +5,19 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import java.util.Set; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.Executor; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; import java.util.stream.Stream; -import jakarta.enterprise.inject.spi.Bean; import jakarta.persistence.LockModeType; import org.hibernate.internal.util.LockModeConverter; import org.hibernate.reactive.mutiny.Mutiny; import org.hibernate.reactive.mutiny.Mutiny.Session; -import io.quarkus.arc.Arc; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; import io.quarkus.panache.hibernate.common.runtime.PanacheJpaUtil; import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; -import io.vertx.core.Vertx; public abstract class AbstractJpaOperations { @@ -34,29 +25,6 @@ public abstract class AbstractJpaOperations { static final long TIMEOUT_MS = 5000; private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; - private static void executeInVertxEventLoop(Runnable runnable) { - Vertx vertx = Arc.container().instance(Vertx.class).get(); - // this needs to be sync - CompletableFuture cf = new CompletableFuture<>(); - vertx.runOnContext(v -> { - try { - runnable.run(); - cf.complete(null); - } catch (Throwable t) { - cf.completeExceptionally(t); - } - }); - try { - cf.get(TIMEOUT_MS, TimeUnit.MILLISECONDS); - } catch (InterruptedException | ExecutionException | TimeoutException e) { - throw new RuntimeException(e); - } - } - - private static Session lookupSessionFromArc() { - return Arc.container().instance(Session.class).get(); - } - protected abstract PanacheQueryType createPanacheQuery(Uni session, String query, String orderBy, Object paramsArrayOrMap); @@ -109,62 +77,14 @@ public Uni delete(Object entity) { } public boolean isPersistent(Object entity) { - // only attempt to look up the request context session if it's already there: do not - // run the producer method otherwise, before we know which thread we're on - Session requestSession = isInRequestContext(Mutiny.Session.class) ? lookupSessionFromArc() - : null; - if (requestSession != null) { - return requestSession.contains(entity); - } else { - return false; - } + Mutiny.Session current = SessionOperations.getCurrentSession(); + return current != null ? current.contains(entity) : false; } public Uni flush() { return getSession().chain(Session::flush); } - // - // Private stuff - - public static Uni getSession() { - // Always check if we're running on the event loop: if not, - // we need to delegate the execution of all tasks on it. - if (io.vertx.core.Context.isOnEventLoopThread()) { - return Uni.createFrom().item(lookupSessionFromArc()); - } else { - // FIXME: we may need context propagation - final Executor executor = AbstractJpaOperations::executeInVertxEventLoop; - return Uni.createFrom().item(AbstractJpaOperations::lookupSessionFromArc) - .runSubscriptionOn(executor); - } - } - - private static boolean isInRequestContext(Class klass) { - Set> beans = Arc.container().beanManager().getBeans(klass); - if (beans.isEmpty()) - return false; - return Arc.container().requestContext().get(beans.iterator().next()) != null; - } - - public static Mutiny.Query bindParameters(Mutiny.Query query, Object[] params) { - if (params == null || params.length == 0) - return query; - for (int i = 0; i < params.length; i++) { - query.setParameter(i + 1, params[i]); - } - return query; - } - - public static Mutiny.Query bindParameters(Mutiny.Query query, Map params) { - if (params == null || params.size() == 0) - return query; - for (Entry entry : params.entrySet()) { - query.setParameter(entry.getKey(), entry.getValue()); - } - return query; - } - public int paramCount(Object[] params) { return params != null ? params.length : 0; } @@ -421,22 +341,6 @@ public IllegalStateException implementationInjectionMissing() { "This method is normally automatically overridden in subclasses: did you forget to annotate your entity with @Entity?"); } - public static Uni executeUpdate(String query, Object... params) { - return getSession().chain(session -> { - Mutiny.Query jpaQuery = session.createQuery(query); - bindParameters(jpaQuery, params); - return jpaQuery.executeUpdate(); - }); - } - - public static Uni executeUpdate(String query, Map params) { - return getSession().chain(session -> { - Mutiny.Query jpaQuery = session.createQuery(query); - bindParameters(jpaQuery, params); - return jpaQuery.executeUpdate(); - }); - } - public Uni executeUpdate(Class entityClass, String query, Object... params) { if (PanacheJpaUtil.isNamedQuery(query)) @@ -474,4 +378,45 @@ public Uni update(Class entityClass, String query, Parameters params public Uni update(Class entityClass, String query, Object... params) { return executeUpdate(entityClass, query, params); } + + // + // Static helpers + + public static Uni getSession() { + return SessionOperations.getSession(); + } + + public static Mutiny.Query bindParameters(Mutiny.Query query, Object[] params) { + if (params == null || params.length == 0) + return query; + for (int i = 0; i < params.length; i++) { + query.setParameter(i + 1, params[i]); + } + return query; + } + + public static Mutiny.Query bindParameters(Mutiny.Query query, Map params) { + if (params == null || params.size() == 0) + return query; + for (Entry entry : params.entrySet()) { + query.setParameter(entry.getKey(), entry.getValue()); + } + return query; + } + + public static Uni executeUpdate(String query, Object... params) { + return getSession().chain(session -> { + Mutiny.Query jpaQuery = session.createQuery(query); + bindParameters(jpaQuery, params); + return jpaQuery.executeUpdate(); + }); + } + + public static Uni executeUpdate(String query, Map params) { + return getSession().chain(session -> { + Mutiny.Query jpaQuery = session.createQuery(query); + bindParameters(jpaQuery, params); + return jpaQuery.executeUpdate(); + }); + } } diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractUniInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractUniInterceptor.java new file mode 100644 index 0000000000000..2b9b1ea23923c --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractUniInterceptor.java @@ -0,0 +1,18 @@ +package io.quarkus.hibernate.reactive.panache.common.runtime; + +import jakarta.interceptor.InvocationContext; + +import io.smallrye.mutiny.Uni; + +abstract class AbstractUniInterceptor { + + @SuppressWarnings("unchecked") + protected Uni proceedUni(InvocationContext context) { + try { + return ((Uni) context.proceed()); + } catch (Exception e) { + return Uni.createFrom().failure(e); + } + } + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java index 83afdbcd48230..9b8bb4be979ae 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactional.java @@ -10,18 +10,17 @@ import org.hibernate.reactive.mutiny.Mutiny; +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.smallrye.mutiny.Uni; -import io.vertx.core.impl.VertxThread; /** * Use this annotation on your method to run them in a reactive {@link Mutiny.Transaction}. + *

    + * The annotated method must return a {@link Uni}. * - * If the annotated method returns a {@link Uni}, this has exactly the same behaviour as if the method - * was enclosed in a call to {@link Mutiny.Session#withTransaction(java.util.function.Function)}. - * - * Otherwise, invocations are only allowed when not running from a {@link VertxThread} and the behaviour - * will be the same as a blocking call to {@link Mutiny.Session#withTransaction(java.util.function.Function)}. + * @deprecated Use {@link WithTransaction} instead. */ +@Deprecated(forRemoval = true) @Inherited @InterceptorBinding @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java index 74e11668f926f..fe3e3f797ef3a 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptor.java @@ -1,11 +1,20 @@ package io.quarkus.hibernate.reactive.panache.common.runtime; import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; -@Interceptor @ReactiveTransactional +@Interceptor @Priority(Interceptor.Priority.PLATFORM_BEFORE + 200) -public class ReactiveTransactionalInterceptor extends ReactiveTransactionalInterceptorBase { +public class ReactiveTransactionalInterceptor extends AbstractUniInterceptor { + + @AroundInvoke + public Object intercept(InvocationContext context) throws Exception { + // Note that intercepted methods annotated with @ReactiveTransactional are validated at build time + // The build fails if the method does not return Uni + return SessionOperations.withTransaction(() -> proceedUni(context)); + } } diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java deleted file mode 100644 index 3e51fcc1aad5f..0000000000000 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/ReactiveTransactionalInterceptorBase.java +++ /dev/null @@ -1,134 +0,0 @@ -package io.quarkus.hibernate.reactive.panache.common.runtime; - -import java.lang.annotation.Annotation; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.time.Duration; -import java.util.function.Function; - -import jakarta.interceptor.AroundInvoke; -import jakarta.interceptor.InvocationContext; - -import org.hibernate.reactive.mutiny.Mutiny.Transaction; - -import io.smallrye.mutiny.Uni; - -public abstract class ReactiveTransactionalInterceptorBase { - private static final String JUNIT_TEST_ANN = "org.junit.jupiter.api.Test"; - private static final String JUNIT_BEFORE_EACH_ANN = "org.junit.jupiter.api.BeforeEach"; - private static final String JUNIT_AFTER_EACH_ANN = "org.junit.jupiter.api.AfterEach"; - private static final String UNI_ASSERTER_CLASS = "io.quarkus.test.vertx.UniAsserter"; - - @SuppressWarnings("unchecked") - @AroundInvoke - public Object intercept(InvocationContext ic) throws Exception { - Class returnType = ic.getMethod().getReturnType(); - if (returnType == Uni.class) { - return AbstractJpaOperations.getSession().flatMap(session -> session.withTransaction(tx -> { - inTransactionCallback(tx); - try { - return (Uni) ic.proceed(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new RuntimeException(e); - } - })); - } else if (io.vertx.core.Context.isOnVertxThread()) { - if (isSpecialTestMethod(ic)) { - return handleSpecialTestMethod(ic); - } - throw new RuntimeException("Unsupported return type " + returnType + " in method " + ic.getMethod() - + ": only Uni is supported when using @ReactiveTransaction if you are running on a VertxThread"); - } else { - // we're not on a Vert.x thread, we can block, and we assume the intercepted method is blocking - // FIXME: should we require a @Blocking annotation? - Uni ret = AbstractJpaOperations.getSession().flatMap(session -> session.withTransaction(tx -> { - inTransactionCallback(tx); - try { - return Uni.createFrom().item(ic.proceed()); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new RuntimeException(e); - } - })); - return ret.await().atMost(Duration.ofMillis(AbstractJpaOperations.TIMEOUT_MS)); - } - } - - protected boolean isSpecialTestMethod(InvocationContext ic) { - Method method = ic.getMethod(); - return hasParameter(UNI_ASSERTER_CLASS, method) - && (hasAnnotation(JUNIT_TEST_ANN, method) - || hasAnnotation(JUNIT_BEFORE_EACH_ANN, method) - || hasAnnotation(JUNIT_AFTER_EACH_ANN, method)); - } - - protected Object handleSpecialTestMethod(InvocationContext ic) { - // let's not deal with generics/erasure - Class[] parameterTypes = ic.getMethod().getParameterTypes(); - Object uniAsserter = null; - Class uniAsserterClass = null; - for (int i = 0; i < parameterTypes.length; i++) { - Class klass = parameterTypes[i]; - if (klass.getName().equals(UNI_ASSERTER_CLASS)) { - uniAsserter = ic.getParameters()[i]; - uniAsserterClass = klass; - break; - } - } - if (uniAsserter == null) { - throw new AssertionError("We could not find the right UniAsserter parameter, please file a bug report"); - } - try { - Method execute = uniAsserterClass.getMethod("surroundWith", Function.class); - // here our execution differs: we can run the test method first, which uses the UniAsserter, and all its code is deferred - // by pushing execution into the asserter pipeline - try { - ic.proceed(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new RuntimeException(e); - } - // Now the pipeline is set up, we need to surround it with our transaction - execute.invoke(uniAsserter, new Function, Uni>() { - @Override - public Uni apply(Uni t) { - return AbstractJpaOperations.getSession().flatMap(session -> session.withTransaction(tx -> { - inTransactionCallback(tx); - return t; - })); - } - - }); - return null; - } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException - | InvocationTargetException e) { - throw new AssertionError("Reflective call to UniAsserter parameter failed, please file a bug report", e); - } - } - - private boolean hasParameter(String parameterType, Method method) { - // let's not deal with generics/erasure - for (Class klass : method.getParameterTypes()) { - if (klass.getName().equals(parameterType)) { - return true; - } - } - return false; - } - - private boolean hasAnnotation(String annotationName, Method method) { - for (Annotation annotation : method.getAnnotations()) { - if (annotation.annotationType().getName().equals(annotationName)) { - return true; - } - } - return false; - } - - protected void inTransactionCallback(Transaction tx) { - } -} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/SessionOperations.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/SessionOperations.java new file mode 100644 index 0000000000000..7f5655acf0c59 --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/SessionOperations.java @@ -0,0 +1,208 @@ +package io.quarkus.hibernate.reactive.panache.common.runtime; + +import java.util.function.Function; +import java.util.function.Supplier; + +import org.hibernate.reactive.common.spi.Implementor; +import org.hibernate.reactive.context.Context.Key; +import org.hibernate.reactive.context.impl.BaseKey; +import org.hibernate.reactive.mutiny.Mutiny; +import org.hibernate.reactive.mutiny.Mutiny.Session; +import org.hibernate.reactive.mutiny.Mutiny.SessionFactory; +import org.hibernate.reactive.mutiny.Mutiny.Transaction; + +import io.quarkus.arc.Arc; +import io.quarkus.arc.impl.LazyValue; +import io.quarkus.vertx.core.runtime.context.VertxContextSafetyToggle; +import io.smallrye.mutiny.Uni; +import io.vertx.core.Context; +import io.vertx.core.Vertx; + +/** + * Static util methods for {@link Mutiny.Session}. + */ +public final class SessionOperations { + + private static final String ERROR_MSG = "Hibernate Reactive Panache requires a safe (isolated) Vert.x sub-context, but the current context hasn't been flagged as such."; + + private static final LazyValue SESSION_FACTORY = new LazyValue<>( + new Supplier() { + @Override + public SessionFactory get() { + // Note that Mutiny.SessionFactory is @ApplicationScoped bean - it's safe to use the cached client proxy + Mutiny.SessionFactory sessionFactory = Arc.container().instance(Mutiny.SessionFactory.class).get(); + if (sessionFactory == null) { + throw new IllegalStateException("Mutiny.SessionFactory bean not found"); + } + return sessionFactory; + } + }); + + private static final LazyValue> SESSION_KEY = new LazyValue<>( + new Supplier>() { + + @Override + public Key get() { + return new BaseKey<>(Mutiny.Session.class, ((Implementor) SESSION_FACTORY.get()).getUuid()); + } + }); + + // This key is used to indicate that a reactive session should be opened lazily (when needed) in the current vertx context + private static final String SESSION_ON_DEMAND_KEY = "hibernate.reactive.panache.sessionOnDemand"; + + /** + * Marks the current vertx duplicated context as "lazy" which indicates that a reactive session should be opened lazily if + * needed. The opened session is eventually closed and the marking key is removed when the provided {@link Uni} completes. + * + * @param + * @param work + * @return a new {@link Uni} + * @see #getSession() + */ + static Uni withSessionOnDemand(Supplier> work) { + Context context = vertxContext(); + if (context.getLocal(SESSION_ON_DEMAND_KEY) != null) { + // context already marked - no need to set the key and close the session + return work.get(); + } else { + // mark the lazy session + context.putLocal(SESSION_ON_DEMAND_KEY, true); + // perform the work and eventually close the session and remove the key + return work.get().eventually(() -> { + context.removeLocal(SESSION_ON_DEMAND_KEY); + return closeSession(); + }); + } + } + + /** + * Performs the work in the scope of a reactive transaction. An existing session is reused if possible. + * + * @param + * @param work + * @return a new {@link Uni} + */ + public static Uni withTransaction(Supplier> work) { + return withSession(s -> { + return s.withTransaction(t -> work.get()); + }); + } + + /** + * Performs the work in the scope of a reactive transaction. An existing session is reused if possible. + * + * @param + * @param work + * @return a new {@link Uni} + */ + public static Uni withTransaction(Function> work) { + return withSession(s -> { + return s.withTransaction(t -> work.apply(t)); + }); + } + + /** + * Performs the work in the scope of a reactive session. An existing session is reused if possible. + * + * @param + * @param work + * @return a new {@link Uni} + */ + public static Uni withSession(Function> work) { + Context context = vertxContext(); + Key key = getSessionKey(); + Mutiny.Session current = context.getLocal(key); + if (current != null && current.isOpen()) { + // reactive session exists - reuse this session + return work.apply(current); + } else { + // reactive session does not exist - open a new one and close it when the returned Uni completes + return getSessionFactory() + .openSession() + .invoke(s -> context.putLocal(key, s)) + .chain(s -> work.apply(s)) + .eventually(() -> closeSession()); + } + } + + /** + * If there is a reactive session stored in the current Vert.x duplicated context then this session is reused. + *

    + * However, if there is no reactive session found then: + *

      + *
    1. if the current vertx duplicated context is marked as "lazy" then a new session is opened and stored it in the + * context
    2. + *
    3. otherwise an exception thrown
    4. + *
    + * + * @throws IllegalStateException If no reactive session was found in the context and the context was not marked to open a + * new session lazily + * @return the {@link Mutiny.Session} + */ + public static Uni getSession() { + Context context = vertxContext(); + Key key = getSessionKey(); + Mutiny.Session current = context.getLocal(key); + if (current != null && current.isOpen()) { + // reuse the existing reactive session + return Uni.createFrom().item(current); + } else { + if (context.getLocal(SESSION_ON_DEMAND_KEY) != null) { + // open a new reactive session and store it in the vertx duplicated context + // the context was marked as "lazy" which means that the session will be eventually closed + return getSessionFactory().openSession().invoke(s -> context.putLocal(key, s)); + } else { + throw new IllegalStateException("No current Mutiny.Session found" + + "\n\t- no reactive session was found in the context and the context was not marked to open a new session lazily" + + "\n\t- you might need to annotate the business method with @WithSession"); + } + } + } + + /** + * @return the current reactive session stored in the context, or {@code null} if no session exists + */ + public static Mutiny.Session getCurrentSession() { + Context context = vertxContext(); + Mutiny.Session current = context.getLocal(getSessionKey()); + if (current != null && current.isOpen()) { + return current; + } + return null; + } + + /** + * + * @return the current vertx duplicated context + * @throws IllegalStateException If no vertx context is found or is not a safe context as mandated by the + * {@link VertxContextSafetyToggle} + */ + private static Context vertxContext() { + Context context = Vertx.currentContext(); + if (context != null) { + VertxContextSafetyToggle.validateContextIfExists(ERROR_MSG, ERROR_MSG); + return context; + } else { + throw new IllegalStateException("No current Vertx context found"); + } + } + + static Uni closeSession() { + Context context = vertxContext(); + Key key = getSessionKey(); + Mutiny.Session current = context.getLocal(key); + if (current != null && current.isOpen()) { + return current.close().eventually(() -> context.removeLocal(key)); + } + return Uni.createFrom().voidItem(); + } + + static Key getSessionKey() { + return SESSION_KEY.get(); + } + + static Mutiny.SessionFactory getSessionFactory() { + return SESSION_FACTORY.get(); + } + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/TestReactiveTransactionalInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/TestReactiveTransactionalInterceptor.java index db626fb07ac8d..bd496d144831e 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/TestReactiveTransactionalInterceptor.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/TestReactiveTransactionalInterceptor.java @@ -1,12 +1,102 @@ package io.quarkus.hibernate.reactive.panache.common.runtime; -import org.hibernate.reactive.mutiny.Mutiny.Transaction; +import java.lang.annotation.Annotation; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.function.Function; -public class TestReactiveTransactionalInterceptor extends ReactiveTransactionalInterceptorBase { +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.InvocationContext; - @Override - protected void inTransactionCallback(Transaction tx) { - tx.markForRollback(); +import io.smallrye.mutiny.Uni; + +public class TestReactiveTransactionalInterceptor { + + private static final String JUNIT_TEST_ANN = "org.junit.jupiter.api.Test"; + private static final String JUNIT_BEFORE_EACH_ANN = "org.junit.jupiter.api.BeforeEach"; + private static final String JUNIT_AFTER_EACH_ANN = "org.junit.jupiter.api.AfterEach"; + private static final String UNI_ASSERTER_CLASS = "io.quarkus.test.vertx.UniAsserter"; + + @AroundInvoke + public Object intercept(InvocationContext context) throws Exception { + if (isSpecialTestMethod(context)) { + return handleSpecialTestMethod(context); + } + // TODO validate this requirement during build + throw new IllegalStateException( + "A test method annotated with @TestReactiveTransaction must accept io.quarkus.test.vertx.UniAsserter"); + } + + protected boolean isSpecialTestMethod(InvocationContext ic) { + Method method = ic.getMethod(); + return hasParameter(UNI_ASSERTER_CLASS, method) + && (hasAnnotation(JUNIT_TEST_ANN, method) + || hasAnnotation(JUNIT_BEFORE_EACH_ANN, method) + || hasAnnotation(JUNIT_AFTER_EACH_ANN, method)); + } + + protected Object handleSpecialTestMethod(InvocationContext ic) { + // let's not deal with generics/erasure + Class[] parameterTypes = ic.getMethod().getParameterTypes(); + Object uniAsserter = null; + Class uniAsserterClass = null; + for (int i = 0; i < parameterTypes.length; i++) { + Class klass = parameterTypes[i]; + if (klass.getName().equals(UNI_ASSERTER_CLASS)) { + uniAsserter = ic.getParameters()[i]; + uniAsserterClass = klass; + break; + } + } + if (uniAsserter == null) { + throw new AssertionError("We could not find the right UniAsserter parameter, please file a bug report"); + } + try { + Method execute = uniAsserterClass.getMethod("surroundWith", Function.class); + // here our execution differs: we can run the test method first, which uses the UniAsserter, and all its code is deferred + // by pushing execution into the asserter pipeline + try { + ic.proceed(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new RuntimeException(e); + } + // Now the pipeline is set up, we need to surround it with our transaction + execute.invoke(uniAsserter, new Function, Uni>() { + @Override + public Uni apply(Uni t) { + return SessionOperations.withTransaction(tx -> { + tx.markForRollback(); + return t; + }); + } + + }); + return null; + } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException + | InvocationTargetException e) { + throw new AssertionError("Reflective call to UniAsserter parameter failed, please file a bug report", e); + } + } + + private boolean hasParameter(String parameterType, Method method) { + // let's not deal with generics/erasure + for (Class klass : method.getParameterTypes()) { + if (klass.getName().equals(parameterType)) { + return true; + } + } + return false; + } + + private boolean hasAnnotation(String annotationName, Method method) { + for (Annotation annotation : method.getAnnotations()) { + if (annotation.annotationType().getName().equals(annotationName)) { + return true; + } + } + return false; } } diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionInterceptor.java new file mode 100644 index 0000000000000..a3457b40b18f9 --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionInterceptor.java @@ -0,0 +1,22 @@ +package io.quarkus.hibernate.reactive.panache.common.runtime; + +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; + +import io.quarkus.hibernate.reactive.panache.common.WithSession; + +@WithSession +@Interceptor +@Priority(Interceptor.Priority.PLATFORM_BEFORE + 200) +public class WithSessionInterceptor extends AbstractUniInterceptor { + + @AroundInvoke + public Object intercept(InvocationContext context) throws Exception { + // Note that intercepted methods annotated with @WithSession are validated at build time + // The build fails if a method does not return Uni + return SessionOperations.withSession(s -> proceedUni(context)); + } + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionOnDemandInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionOnDemandInterceptor.java new file mode 100644 index 0000000000000..8969e0a38653f --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithSessionOnDemandInterceptor.java @@ -0,0 +1,22 @@ +package io.quarkus.hibernate.reactive.panache.common.runtime; + +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; + +import io.quarkus.hibernate.reactive.panache.common.WithSessionOnDemand; + +@WithSessionOnDemand +@Interceptor +@Priority(Interceptor.Priority.PLATFORM_BEFORE + 200) +public class WithSessionOnDemandInterceptor extends AbstractUniInterceptor { + + @AroundInvoke + public Object intercept(InvocationContext context) throws Exception { + // Note that intercepted methods annotated with @WithSessionOnDemand are validated at build time + // The build fails if a method does not return Uni + return SessionOperations.withSessionOnDemand(() -> proceedUni(context)); + } + +} diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithTransactionInterceptor.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithTransactionInterceptor.java new file mode 100644 index 0000000000000..1063f47b99a09 --- /dev/null +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/WithTransactionInterceptor.java @@ -0,0 +1,22 @@ +package io.quarkus.hibernate.reactive.panache.common.runtime; + +import jakarta.annotation.Priority; +import jakarta.interceptor.AroundInvoke; +import jakarta.interceptor.Interceptor; +import jakarta.interceptor.InvocationContext; + +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; + +@WithTransaction +@Interceptor +@Priority(Interceptor.Priority.PLATFORM_BEFORE + 200) +public class WithTransactionInterceptor extends AbstractUniInterceptor { + + @AroundInvoke + public Object intercept(InvocationContext context) throws Exception { + // Note that intercepted methods annotated with @WithTransaction are validated at build time + // The build fails if the method does not return Uni + return SessionOperations.withTransaction(() -> proceedUni(context)); + } + +} diff --git a/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java b/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java index 635fde1265f35..194f123bf06e5 100644 --- a/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java +++ b/extensions/panache/hibernate-reactive-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/panache/common/deployment/PanacheHibernateResourceProcessor.java @@ -7,7 +7,6 @@ import java.util.stream.Collectors; import jakarta.persistence.Id; -import jakarta.persistence.Transient; import org.hibernate.reactive.mutiny.Mutiny; import org.jboss.jandex.AnnotationInstance; @@ -53,7 +52,6 @@ public final class PanacheHibernateResourceProcessor { private static final DotName DOTNAME_ID = DotName.createSimple(Id.class.getName()); protected static final String META_INF_PANACHE_ARCHIVE_MARKER = "META-INF/panache-archive.marker"; - private static final DotName DOTNAME_TRANSIENT = DotName.createSimple(Transient.class.getName()); private static final DotName DOTNAME_UNI = DotName.createSimple(Uni.class.getName()); private static final DotName DOTNAME_MULTI = DotName.createSimple(Multi.class.getName()); diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/Panache.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/Panache.java index 789e187629d11..17cbce5d4fe0c 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/Panache.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/Panache.java @@ -6,6 +6,7 @@ import org.hibernate.reactive.mutiny.Mutiny; import io.quarkus.hibernate.reactive.panache.common.runtime.AbstractJpaOperations; +import io.quarkus.hibernate.reactive.panache.common.runtime.SessionOperations; import io.quarkus.panache.common.Parameters; import io.smallrye.mutiny.Uni; @@ -16,13 +17,25 @@ */ public class Panache { + /** + * Obtains a {@link Uni} within the scope of a reactive session. If a reactive session exists then it is reused. If it + * does not exist not exist then open a new session that is automatically closed when the provided {@link Uni} completes. + * + * @param + * @param uniSupplier + * @return a new {@link Uni} + */ + public static Uni withSession(Supplier> uniSupplier) { + return SessionOperations.withSession(s -> uniSupplier.get()); + } + /** * Returns the current {@link Mutiny.Session} * * @return the current {@link Mutiny.Session} */ public static Uni getSession() { - return AbstractJpaOperations.getSession(); + return SessionOperations.getSession(); } /** @@ -36,7 +49,7 @@ public static Uni getSession() { * @see Panache#currentTransaction() */ public static Uni withTransaction(Supplier> work) { - return getSession().flatMap(session -> session.withTransaction(t -> work.get())); + return SessionOperations.withTransaction(() -> work.get()); } /** diff --git a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java index d55a8a35d0495..d89ca47d709cc 100644 --- a/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java +++ b/extensions/panache/hibernate-reactive-rest-data-panache/deployment/src/main/java/io/quarkus/hibernate/reactive/rest/data/panache/deployment/ResourceImplementor.java @@ -20,7 +20,8 @@ import io.quarkus.gizmo.MethodCreator; import io.quarkus.gizmo.MethodDescriptor; import io.quarkus.gizmo.ResultHandle; -import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; +import io.quarkus.hibernate.reactive.panache.common.WithSession; +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Sort; import io.quarkus.rest.data.panache.deployment.Constants; @@ -82,6 +83,7 @@ String implement(ClassOutput classOutput, DataAccessImplementor dataAccessImplem private void implementList(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("list", Uni.class, Page.class, Sort.class); + methodCreator.addAnnotation(WithSession.class); ResultHandle page = methodCreator.getMethodParam(0); ResultHandle sort = methodCreator.getMethodParam(1); ResultHandle columns = methodCreator.invokeVirtualMethod(ofMethod(Sort.class, "getColumns", List.class), sort); @@ -97,6 +99,7 @@ private void implementList(ClassCreator classCreator, DataAccessImplementor data private void implementListWithQuery(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("list", Uni.class, Page.class, Sort.class, String.class, Map.class); + methodCreator.addAnnotation(WithSession.class); ResultHandle page = methodCreator.getMethodParam(0); ResultHandle sort = methodCreator.getMethodParam(1); ResultHandle query = methodCreator.getMethodParam(2); @@ -118,6 +121,7 @@ private void implementListWithQuery(ClassCreator classCreator, DataAccessImpleme */ private void implementCount(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("count", Uni.class); + methodCreator.addAnnotation(WithSession.class); methodCreator.returnValue(dataAccessImplementor.count(methodCreator)); methodCreator.close(); } @@ -129,6 +133,7 @@ private void implementCount(ClassCreator classCreator, DataAccessImplementor dat private void implementListPageCount(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator(Constants.PAGE_COUNT_METHOD_PREFIX + "list", Uni.class, Page.class); + methodCreator.addAnnotation(WithSession.class); ResultHandle page = methodCreator.getMethodParam(0); methodCreator.returnValue(dataAccessImplementor.pageCount(methodCreator, page)); methodCreator.close(); @@ -136,6 +141,7 @@ private void implementListPageCount(ClassCreator classCreator, DataAccessImpleme private void implementGet(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("get", Uni.class, Object.class); + methodCreator.addAnnotation(WithSession.class); ResultHandle id = methodCreator.getMethodParam(0); methodCreator.returnValue(dataAccessImplementor.findById(methodCreator, id)); methodCreator.close(); @@ -144,7 +150,7 @@ private void implementGet(ClassCreator classCreator, DataAccessImplementor dataA private void implementAdd(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor, ResourceMethodListenerImplementor resourceMethodListenerImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("add", Uni.class, Object.class); - methodCreator.addAnnotation(ReactiveTransactional.class); + methodCreator.addAnnotation(WithTransaction.class); ResultHandle entity = methodCreator.getMethodParam(0); resourceMethodListenerImplementor.onBeforeAdd(methodCreator, entity); ResultHandle uni = dataAccessImplementor.persist(methodCreator, entity); @@ -156,7 +162,7 @@ private void implementAdd(ClassCreator classCreator, DataAccessImplementor dataA private void implementUpdate(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor, String entityType, ResourceMethodListenerImplementor resourceMethodListenerImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("update", Uni.class, Object.class, Object.class); - methodCreator.addAnnotation(ReactiveTransactional.class); + methodCreator.addAnnotation(WithTransaction.class); ResultHandle id = methodCreator.getMethodParam(0); ResultHandle entity = methodCreator.getMethodParam(1); // Set entity ID before executing an update to make sure that a requested object ID matches a given entity ID. @@ -171,7 +177,7 @@ private void implementUpdate(ClassCreator classCreator, DataAccessImplementor da private void implementDelete(ClassCreator classCreator, DataAccessImplementor dataAccessImplementor, ResourceMethodListenerImplementor resourceMethodListenerImplementor) { MethodCreator methodCreator = classCreator.getMethodCreator("delete", Uni.class, Object.class); - methodCreator.addAnnotation(ReactiveTransactional.class); + methodCreator.addAnnotation(WithTransaction.class); ResultHandle id = methodCreator.getMethodParam(0); resourceMethodListenerImplementor.onBeforeDelete(methodCreator, id); ResultHandle uni = dataAccessImplementor.deleteById(methodCreator, id); diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java index b1d40056dff4c..7cf76961b8464 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanInfo.java @@ -14,7 +14,6 @@ import java.util.Objects; import java.util.Optional; import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; import java.util.function.Consumer; import java.util.stream.Collectors; @@ -63,10 +62,10 @@ public class BeanInfo implements InjectionTargetInfo { private final DisposerInfo disposer; - private final Map interceptedMethods; - private final Map decoratedMethods; - - private final Map lifecycleInterceptors; + // These maps are initialized during BeanDeployment.init() + private volatile Map interceptedMethods; + private volatile Map decoratedMethods; + private volatile Map lifecycleInterceptors; private final boolean alternative; private final Integer priority; @@ -144,9 +143,9 @@ public class BeanInfo implements InjectionTargetInfo { this.params = params; // Identifier must be unique for a specific deployment this.identifier = Hashes.sha1(toString()); - this.interceptedMethods = new ConcurrentHashMap<>(); - this.decoratedMethods = new ConcurrentHashMap<>(); - this.lifecycleInterceptors = new ConcurrentHashMap<>(); + this.interceptedMethods = Collections.emptyMap(); + this.decoratedMethods = Collections.emptyMap(); + this.lifecycleInterceptors = Collections.emptyMap(); this.forceApplicationClass = forceApplicationClass; this.targetPackageName = targetPackageName; } @@ -294,6 +293,30 @@ Map getDecoratedMethods() { return decoratedMethods; } + /** + * @return {@code true} if the bean has an associated interceptor with the given binding, {@code false} otherwise + */ + public boolean hasAroundInvokeInterceptorWithBinding(DotName binding) { + if (interceptedMethods.isEmpty()) { + return false; + } + for (InterceptionInfo interception : interceptedMethods.values()) { + if (Annotations.contains(interception.bindings, binding)) { + return true; + } + } + return false; + } + + /** + * + * @return an immutable map of intercepted methods to the set of interceptor bindings + */ + public Map> getInterceptedMethodsBindings() { + return interceptedMethods.entrySet().stream() + .collect(Collectors.toUnmodifiableMap(Entry::getKey, e -> Collections.unmodifiableSet(e.getValue().bindings))); + } + List getInterceptedOrDecoratedMethods() { Set methods = new HashSet<>(interceptedMethods.keySet()); methods.addAll(decoratedMethods.keySet()); @@ -550,10 +573,11 @@ void init(List errors, Consumer bytecodeTransfor if (disposer != null) { disposer.init(errors); } - interceptedMethods.putAll(initInterceptedMethods(errors, bytecodeTransformerConsumer, transformUnproxyableClasses)); - decoratedMethods.putAll(initDecoratedMethods()); + interceptedMethods = Map + .copyOf(initInterceptedMethods(errors, bytecodeTransformerConsumer, transformUnproxyableClasses)); + decoratedMethods = Map.copyOf(initDecoratedMethods()); if (errors.isEmpty()) { - lifecycleInterceptors.putAll(initLifecycleInterceptors()); + lifecycleInterceptors = Map.copyOf(initLifecycleInterceptors()); } } diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanStream.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanStream.java index 106cdce96be40..a3c155faee4d4 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanStream.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanStream.java @@ -185,6 +185,24 @@ public BeanStream withName() { return this; } + /** + * + * @return the new stream of beans that have an associated interceptor + */ + public BeanStream withAroundInvokeInterceptor() { + stream = stream.filter(BeanInfo::hasAroundInvokeInterceptors); + return this; + } + + /** + * + * @return the new stream of beans that have an associated lifecycle interceptor + */ + public BeanStream withLifecycleInterceptor() { + stream = stream.filter(BeanInfo::hasLifecycleInterceptors); + return this; + } + /** * * @param id diff --git a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java index 4ef14e229842d..a86a636012740 100644 --- a/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java +++ b/integration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java @@ -10,6 +10,7 @@ import io.quarkus.arc.Arc; import io.quarkus.arc.ManagedContext; import io.quarkus.grpc.GrpcService; +import io.quarkus.hibernate.reactive.panache.Panache; import io.smallrye.common.vertx.ContextLocals; import io.smallrye.common.vertx.VertxContext; import io.smallrye.mutiny.Multi; @@ -56,8 +57,10 @@ public Multi watch(Test.Empty request) { Multi cached = broadcast.cache(); cached.subscribe().with(i -> { }); - Multi existing = Item. streamAll() - .map(item -> Test.Item.newBuilder().setText(item.text).build()); + + Multi existing = Panache.withSession(() -> Item. listAll()).toMulti().flatMap(list -> { + return Multi.createFrom().iterable(list); + }).map(item -> Test.Item.newBuilder().setText(item.text).build()); return Multi.createBy().concatenating() .streams(existing, cached.map(i -> i.text) .map(Test.Item.newBuilder()::setText) diff --git a/integration-tests/hibernate-reactive-panache-blocking/pom.xml b/integration-tests/hibernate-reactive-panache-blocking/pom.xml deleted file mode 100644 index 422231187646e..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/pom.xml +++ /dev/null @@ -1,317 +0,0 @@ - - - - quarkus-integration-tests-parent - io.quarkus - 999-SNAPSHOT - - 4.0.0 - - quarkus-integration-test-hibernate-reactive-panache-blocking - Quarkus - Integration Tests - Hibernate Reactive with Panache in Blocking mode - To test proper error reporting and safeguards when Panache Reactive is being used in combination with blocking technologies - - - vertx-reactive:postgresql://localhost:5432/hibernate_orm_test - - - - - io.quarkus - quarkus-hibernate-reactive-panache - - - io.quarkus - quarkus-resteasy - - - io.quarkus - quarkus-resteasy-jackson - - - io.quarkus - quarkus-core - - - io.quarkus - quarkus-reactive-pg-client - - - org.junit.jupiter - junit-jupiter-api - compile - - - - - io.quarkus - quarkus-junit5 - test - - - io.quarkus - quarkus-junit5-internal - test - - - io.rest-assured - rest-assured - test - - - io.quarkus - quarkus-test-h2 - test - - - io.quarkus - quarkus-panache-mock - test - - - net.bytebuddy - byte-buddy - - - - - org.assertj - assertj-core - test - - - org.awaitility - awaitility - test - - - - io.quarkus - quarkus-core-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-hibernate-reactive-panache-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-reactive-pg-client-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-resteasy-deployment - ${project.version} - pom - test - - - * - * - - - - - io.quarkus - quarkus-resteasy-jackson-deployment - ${project.version} - pom - test - - - * - * - - - - - - - - - src/main/resources - true - - - - - maven-surefire-plugin - - true - - - - maven-failsafe-plugin - - true - - - - io.quarkus - quarkus-maven-plugin - - - - build - - - - - - - - - - test-postgresql - - - test-containers - - - - - - maven-surefire-plugin - - false - - - - - prod-mode - test - - test - - - **/*PMT.java - - - - - - maven-failsafe-plugin - - false - - - - - - - - docker-postgresql - - - start-containers - - - - vertx-reactive:postgresql://localhost:5431/hibernate_orm_test - - - - - io.fabric8 - docker-maven-plugin - - - - ${postgres.image} - postgresql - - - hibernate_orm_test - hibernate_orm_test - hibernate_orm_test - - - 5431:5432 - - - - mapped - - 5432 - - - - - - - - - true - - - - docker-start - compile - - stop - start - - - - docker-stop - post-integration-test - - stop - - - - - - org.codehaus.mojo - exec-maven-plugin - - - docker-prune - generate-resources - - exec - - - ${docker-prune.location} - - - - - - - - - diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java deleted file mode 100644 index 9f9cf94e297c2..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/Fruit.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.quarkus.it.panache.reactive; - -import jakarta.persistence.Entity; - -import io.quarkus.hibernate.reactive.panache.PanacheEntity; - -@Entity -public class Fruit extends PanacheEntity { - - public String name; - public String color; - - public Fruit(String name, String color) { - this.name = name; - this.color = color; - } - - public Fruit() { - } - -} diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java b/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java deleted file mode 100644 index b42a1fb9cae7f..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.quarkus.it.panache.reactive; - -import java.util.List; - -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; - -import io.quarkus.hibernate.reactive.panache.Panache; -import io.quarkus.hibernate.reactive.panache.PanacheEntityBase; - -/** - * These tests cover for "mixed mode" usage of Panache Reactive from a blocking thread; - * this is known to be tricky as Hibernate Reactive requires running on the event loop, - * while Panache relies on the notion of "current Session" being stored in the current - * CDI context. - */ -@Path("test") -public class TestEndpoint { - - @GET - @Path("store3fruits") - public String testStorage() { - Fruit apple = new Fruit("apple", "red"); - Fruit orange = new Fruit("orange", "orange"); - Fruit banana = new Fruit("banana", "yellow"); - - Panache.withTransaction(() -> Fruit.persist(apple, orange, banana)).subscribeAsCompletionStage().join(); - - //We wants this same request to also perform a read, so to trigger a second lookup of the Mutiny.Session from ArC - return verifyStored(); - } - - @GET - @Path("load3fruits") - public String verifyStored() { - final List fruitsList = Panache.withTransaction(() -> Fruit.find("select name, color from Fruit") - .list()) - .subscribeAsCompletionStage() - .join(); - return fruitsList.size() == 3 ? "OK" : "KO"; - } - -} diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/main/resources/application.properties b/integration-tests/hibernate-reactive-panache-blocking/src/main/resources/application.properties deleted file mode 100644 index 6d0922b28d2fe..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/src/main/resources/application.properties +++ /dev/null @@ -1,6 +0,0 @@ -quarkus.datasource.db-kind=postgresql -quarkus.datasource.username=hibernate_orm_test -quarkus.datasource.password=hibernate_orm_test -quarkus.datasource.reactive.url=${postgres.reactive.url} - -quarkus.hibernate-orm.database.generation=drop-and-create diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityInGraalITCase.java b/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityInGraalITCase.java deleted file mode 100644 index 6f88d80421ba3..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityInGraalITCase.java +++ /dev/null @@ -1,11 +0,0 @@ -package io.quarkus.it.panache.reactive; - -import io.quarkus.test.junit.QuarkusIntegrationTest; - -/** - * Repeat all tests from {@link PanacheFunctionalityTest} in native image mode. - */ -@QuarkusIntegrationTest -public class PanacheFunctionalityInGraalITCase extends PanacheFunctionalityTest { - -} diff --git a/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java b/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java deleted file mode 100644 index fac550debcebd..0000000000000 --- a/integration-tests/hibernate-reactive-panache-blocking/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.quarkus.it.panache.reactive; - -import static org.hamcrest.Matchers.is; - -import org.junit.jupiter.api.Test; - -import io.quarkus.test.junit.QuarkusTest; -import io.restassured.RestAssured; - -/** - * Test various Panache operations running in Quarkus - */ -@QuarkusTest -public class PanacheFunctionalityTest { - - @Test - public void tests() { - RestAssured.when().get("/test/store3fruits").then().body(is("OK")); - RestAssured.when().get("/test/load3fruits").then().body(is("OK")); - } - -} diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt index a327e7222a566..7deefbbcf1936 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/test/kotlin/io/quarkus/it/panache/reactive/kotlin/PanacheFunctionalityTest.kt @@ -2,6 +2,8 @@ package io.quarkus.it.panache.reactive.kotlin import com.fasterxml.jackson.databind.ObjectMapper import io.quarkus.hibernate.reactive.panache.Panache +import io.quarkus.hibernate.reactive.panache.common.WithSession +import io.quarkus.hibernate.reactive.panache.common.WithTransaction import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional import io.quarkus.test.TestReactiveTransaction import io.quarkus.test.junit.DisabledOnIntegrationTest @@ -15,15 +17,13 @@ import io.smallrye.mutiny.Uni import jakarta.json.bind.JsonbBuilder import jakarta.persistence.PersistenceException import org.hamcrest.Matchers.`is` -import org.hibernate.reactive.mutiny.Mutiny import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.MethodOrderer import org.junit.jupiter.api.Order import org.junit.jupiter.api.Test import org.junit.jupiter.api.TestMethodOrder -import kotlin.time.Duration.Companion.minutes -import kotlin.time.toJavaDuration +import java.util.function.Supplier @QuarkusTest @TestMethodOrder(MethodOrderer.OrderAnnotation::class) @@ -55,14 +55,10 @@ open class PanacheFunctionalityTest { } @Test + @RunOnVertxContext @DisabledOnIntegrationTest - fun testPanacheInTest() { - assertEquals( - 0, - Person.count() - .await() - .atMost(5.minutes.toJavaDuration()) - ) + fun testPanacheInTest(asserter: UniAsserter) { + asserter.assertEquals({ Panache.withSession { Person.count() } }, 0L) } @Test @@ -164,52 +160,47 @@ open class PanacheFunctionalityTest { } @Test - @ReactiveTransactional + @RunOnVertxContext @DisabledOnIntegrationTest - fun testTransaction(): Uni { - val transaction: Mutiny.Transaction? = Panache.currentTransaction() - .await() - .atMost(5.minutes.toJavaDuration()) - Assertions.assertNotNull(transaction) - return Uni.createFrom().nullItem() + fun testTransaction(asserter: UniAsserter) { + asserter.assertNotNull { Panache.withTransaction { Panache.currentTransaction() } } } @Test + @RunOnVertxContext @DisabledOnIntegrationTest - fun testNoTransaction() { - val transaction: Mutiny.Transaction? = Panache.currentTransaction() - .await() - .atMost(5.minutes.toJavaDuration()) - Assertions.assertNull(transaction) + fun testNoTransaction(asserter: UniAsserter) { + asserter.assertNull { Panache.withSession { Panache.currentTransaction() } } } @Test + @RunOnVertxContext @DisabledOnIntegrationTest - fun testBug7102() { - createBug7102() - .flatMap { person: Person -> - getBug7102(person.id!!) - .flatMap { person1: Person -> - assertEquals("pero", person1.name) - updateBug7102(person.id!!) - }.flatMap { _ -> getBug7102(person.id!!) } - .map { person2: Person -> - assertEquals("jozo", person2.name) - null - } - }.flatMap { Person.deleteAll() } - .await() - .atMost(5.minutes.toJavaDuration()) + fun testBug7102(asserter: UniAsserter) { + asserter.execute { + createBug7102() + .flatMap { person: Person -> + getBug7102(person.id!!) + .flatMap { person1: Person -> + assertEquals("pero", person1.name) + updateBug7102(person.id!!) + }.flatMap { _ -> getBug7102(person.id!!) } + .map { person2: Person -> + assertEquals("jozo", person2.name) + null + } + }.flatMap { Panache.withSession { Person.deleteAll() } } + } } - @ReactiveTransactional + @WithTransaction fun createBug7102(): Uni { val person = Person() person.name = "pero" return person.persistAndFlush() } - @ReactiveTransactional + @WithTransaction fun updateBug7102(id: Long): Uni { return Person.findById(id) .map { person: Person? -> @@ -218,7 +209,7 @@ open class PanacheFunctionalityTest { } } - @ReactiveTransactional + @WithSession fun getBug7102(id: Long): Uni { return Person.findById(id) .map { it!! } @@ -247,40 +238,59 @@ open class PanacheFunctionalityTest { @Test @Order(200) - @ReactiveTransactional + @RunOnVertxContext @DisabledOnIntegrationTest fun testReactiveTransactional(asserter: UniAsserter) { - asserter.assertNotNull { Panache.currentTransaction() } - asserter.assertEquals({ Person.count() }, 0L) - asserter.assertNotNull { Person().persist() } - asserter.assertEquals({ Person.count() }, 1L) + asserter.assertEquals({ reactiveTransactional() }, 1L) + } + + @WithTransaction + fun reactiveTransactional(): Uni { + return Panache.currentTransaction() + .invoke { tx -> Assertions.assertNotNull(tx) } + .chain { tx -> Person.count() } + .invoke { count -> assertEquals(0L, count) } + .call(Supplier { Person().persist() }) + .chain { tx -> Person.count() } } @Test @Order(201) - @ReactiveTransactional + @RunOnVertxContext @DisabledOnIntegrationTest fun testReactiveTransactional2(asserter: UniAsserter) { - asserter.assertNotNull { Panache.currentTransaction() } - // make sure the previous one was NOT rolled back - asserter.assertEquals({ Person.count() }, 1L) - // now delete everything and cause a rollback - asserter.assertEquals({ Person.deleteAll() }, 1L) - asserter.execute { - Panache.currentTransaction().invoke { tx: Mutiny.Transaction -> tx.markForRollback() } - } + asserter.assertTrue { reactiveTransactional2() } + } + + @WithTransaction + fun reactiveTransactional2(): Uni { + return Panache.currentTransaction() + .invoke { tx -> Assertions.assertNotNull(tx) } + .chain(Supplier { Person.count() }) + .invoke { count -> assertEquals(1L, count) } + .chain(Supplier { Person.deleteAll() }) + .invoke { count -> assertEquals(1L, count) } + .chain(Supplier { Panache.currentTransaction() }) + .invoke { tx -> tx.markForRollback() } + .map { tx -> true } } @Test @Order(202) - @ReactiveTransactional + @RunOnVertxContext @DisabledOnIntegrationTest fun testReactiveTransactional3(asserter: UniAsserter) { - asserter.assertNotNull { Panache.currentTransaction() } - // make sure it was rolled back - asserter.assertEquals({ Person.count() }, 1L) - // and clean up - asserter.assertEquals({ Person.deleteAll() }, 1L) + asserter.assertEquals({ testReactiveTransactional3() }, 1L) + } + + @ReactiveTransactional + fun testReactiveTransactional3(): Uni { + return Panache.currentTransaction() + .invoke { tx -> Assertions.assertNotNull(tx) } + .chain { tx -> Person.count() } + // make sure it was rolled back + .invoke { count -> assertEquals(1L, count) } + .call(Supplier { Person.deleteAll() }) } @Test @@ -288,6 +298,6 @@ open class PanacheFunctionalityTest { @RunOnVertxContext @DisabledOnIntegrationTest fun testPersistenceException(asserter: UniAsserter) { - asserter.assertFailedWith({ Person().delete() }, PersistenceException::class.java) + asserter.assertFailedWith({ Panache.withSession { Person().delete() } }, PersistenceException::class.java) } } diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java index 5efc721fa7777..a3388fb0590be 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java @@ -2,12 +2,12 @@ import static org.hamcrest.Matchers.is; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; import jakarta.json.bind.Jsonb; import jakarta.json.bind.JsonbBuilder; import jakarta.persistence.PersistenceException; -import org.hibernate.reactive.mutiny.Mutiny.Transaction; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.MethodOrderer.OrderAnnotation; import org.junit.jupiter.api.Order; @@ -18,6 +18,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.quarkus.hibernate.reactive.panache.Panache; +import io.quarkus.hibernate.reactive.panache.common.WithSession; +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; import io.quarkus.test.TestReactiveTransaction; import io.quarkus.test.junit.DisabledOnIntegrationTest; @@ -65,9 +67,10 @@ public void testPanacheSerialisation() { } @DisabledOnIntegrationTest + @RunOnVertxContext @Test - public void testPanacheInTest() { - Assertions.assertEquals(0, Person.count().await().indefinitely()); + public void testPanacheInTest(UniAsserter asserter) { + asserter.assertEquals(() -> Panache.withSession(() -> Person.count()), 0l); } @Test @@ -157,25 +160,24 @@ public void testSortByNullPrecedence() { } @DisabledOnIntegrationTest - @ReactiveTransactional + @RunOnVertxContext @Test - Uni testTransaction() { - Transaction transaction = Panache.currentTransaction().await().indefinitely(); - Assertions.assertNotNull(transaction); - return Uni.createFrom().nullItem(); + void testTransaction(UniAsserter asserter) { + asserter.assertNotNull(() -> Panache.withTransaction(() -> Panache.currentTransaction())); } @DisabledOnIntegrationTest + @RunOnVertxContext @Test - void testNoTransaction() { - Transaction transaction = Panache.currentTransaction().await().indefinitely(); - Assertions.assertNull(transaction); + void testNoTransaction(UniAsserter asserter) { + asserter.assertNull(() -> Panache.withSession(() -> Panache.currentTransaction())); } @DisabledOnIntegrationTest + @RunOnVertxContext @Test - public void testBug7102() { - createBug7102() + public void testBug7102(UniAsserter asserter) { + asserter.execute(() -> createBug7102() .flatMap(person -> { return getBug7102(person.id) .flatMap(person1 -> { @@ -187,18 +189,17 @@ public void testBug7102() { Assertions.assertEquals("jozo", person2.name); return null; }); - }).flatMap(v -> Person.deleteAll()) - .await().indefinitely(); + }).flatMap(v -> Panache.withTransaction(() -> Person.deleteAll()))); } - @ReactiveTransactional + @WithTransaction Uni createBug7102() { Person personPanache = new Person(); personPanache.name = "pero"; return personPanache.persistAndFlush().map(v -> personPanache); } - @ReactiveTransactional + @WithTransaction Uni updateBug7102(Long id) { return Person. findById(id) .map(person -> { @@ -207,7 +208,7 @@ Uni updateBug7102(Long id) { }); } - @ReactiveTransactional + @WithSession Uni getBug7102(Long id) { return Person.findById(id); } @@ -234,39 +235,60 @@ public void testTestTransaction2(UniAsserter asserter) { } @DisabledOnIntegrationTest - @ReactiveTransactional + @RunOnVertxContext @Test @Order(200) public void testReactiveTransactional(UniAsserter asserter) { - asserter.assertNotNull(() -> Panache.currentTransaction()); - asserter.assertEquals(() -> Person.count(), 0l); - asserter.assertNotNull(() -> new Person().persist()); - asserter.assertEquals(() -> Person.count(), 1l); + asserter.assertEquals(() -> reactiveTransactional(), 1l); + } + + @WithTransaction + Uni reactiveTransactional() { + return Panache.currentTransaction() + .invoke(tx -> assertNotNull(tx)) + .chain(tx -> Person.count()) + .invoke(count -> assertEquals(0l, count)) + .call(() -> new Person().persist()) + .chain(tx -> Person.count()); } @DisabledOnIntegrationTest - @ReactiveTransactional + @RunOnVertxContext @Test @Order(201) public void testReactiveTransactional2(UniAsserter asserter) { - asserter.assertNotNull(() -> Panache.currentTransaction()); - // make sure the previous one was NOT rolled back - asserter.assertEquals(() -> Person.count(), 1l); - // now delete everything and cause a rollback - asserter.assertEquals(() -> Person.deleteAll(), 1l); - asserter.execute(() -> Panache.currentTransaction().invoke(tx -> tx.markForRollback())); + asserter.assertTrue(() -> reactiveTransactional2()); + } + + @WithTransaction + Uni reactiveTransactional2() { + return Panache.currentTransaction() + .invoke(tx -> assertNotNull(tx)) + .chain(tx -> Person.count()) + .invoke(count -> assertEquals(1l, count)) + .chain(() -> Person.deleteAll()) + .invoke(count -> assertEquals(1l, count)) + .chain(() -> Panache.currentTransaction()) + .invoke(tx -> tx.markForRollback()) + .map(tx -> true); } @DisabledOnIntegrationTest - @ReactiveTransactional + @RunOnVertxContext @Test @Order(202) public void testReactiveTransactional3(UniAsserter asserter) { - asserter.assertNotNull(() -> Panache.currentTransaction()); - // make sure it was rolled back - asserter.assertEquals(() -> Person.count(), 1l); - // and clean up - asserter.assertEquals(() -> Person.deleteAll(), 1l); + asserter.assertEquals(() -> testReactiveTransactional3(), 1l); + } + + @ReactiveTransactional + Uni testReactiveTransactional3() { + return Panache.currentTransaction() + .invoke(tx -> assertNotNull(tx)) + .chain(tx -> Person.count()) + // make sure it was rolled back + .invoke(count -> assertEquals(1l, count)) + .call(() -> Person.deleteAll()); } @DisabledOnIntegrationTest @@ -274,6 +296,6 @@ public void testReactiveTransactional3(UniAsserter asserter) { @Test @Order(300) public void testPersistenceException(UniAsserter asserter) { - asserter.assertFailedWith(() -> new Person().delete(), PersistenceException.class); + asserter.assertFailedWith(() -> Panache.withTransaction(() -> new Person().delete()), PersistenceException.class); } } diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java index 78931c8cdbc42..d8a87e05176ca 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheMockingTest.java @@ -1,5 +1,8 @@ package io.quarkus.it.panache.reactive; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; + import java.util.Collections; import jakarta.inject.Inject; @@ -11,57 +14,75 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; +import io.quarkus.hibernate.reactive.panache.Panache; import io.quarkus.hibernate.reactive.panache.PanacheRepositoryBase; import io.quarkus.panache.mock.PanacheMock; import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.junit.mockito.InjectMock; +import io.quarkus.test.vertx.RunOnVertxContext; +import io.quarkus.test.vertx.UniAsserter; import io.smallrye.mutiny.Uni; @QuarkusTest public class PanacheMockingTest { + @SuppressWarnings("static-access") @Test + @RunOnVertxContext @Order(1) - public void testPanacheMocking() { - PanacheMock.mock(Person.class); - - Assertions.assertEquals(0, Person.count().await().indefinitely()); - - Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(23l)); - Assertions.assertEquals(23, Person.count().await().indefinitely()); - - Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(42l)); - Assertions.assertEquals(42, Person.count().await().indefinitely()); - - Mockito.when(Person.count()).thenCallRealMethod(); - Assertions.assertEquals(0, Person.count().await().indefinitely()); - - PanacheMock.verify(Person.class, Mockito.times(4)).count(); - - Person p = new Person(); - Mockito.when(Person.findById(12l)).thenReturn(Uni.createFrom().item(p)); - Assertions.assertSame(p, Person.findById(12l).await().indefinitely()); - Assertions.assertNull(Person.findById(42l).await().indefinitely()); - - Person.persist(p).await().indefinitely(); - Assertions.assertNull(p.id); - - Mockito.when(Person.findById(12l)).thenThrow(new WebApplicationException()); - try { - Person.findById(12l); - Assertions.fail(); - } catch (WebApplicationException x) { - } - - Mockito.when(Person.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList())); - Assertions.assertTrue(Person.findOrdered().await().indefinitely().isEmpty()); - - PanacheMock.verify(Person.class).findOrdered(); - PanacheMock.verify(Person.class).persist(Mockito. any(), Mockito. any()); - PanacheMock.verify(Person.class, Mockito.atLeastOnce()).findById(Mockito.any()); - PanacheMock.verifyNoMoreInteractions(Person.class); - - Assertions.assertEquals(0, Person.methodWithPrimitiveParams(true, (byte) 0, (short) 0, 0, 2, 2.0f, 2.0, 'c')); + public void testPanacheMocking(UniAsserter asserter) { + String key = "person"; + + asserter.execute(() -> PanacheMock.mock(Person.class)); + asserter.assertEquals(() -> Person.count(), 0l); + + asserter.execute(() -> Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(23l))); + asserter.assertEquals(() -> Person.count(), 23l); + + asserter.execute(() -> Mockito.when(Person.count()).thenReturn(Uni.createFrom().item(42l))); + asserter.assertEquals(() -> Person.count(), 42l); + + asserter.execute(() -> Mockito.when(Person.count()).thenCallRealMethod()); + asserter.assertEquals(() -> Person.count(), 0l); + + asserter.execute(() -> { + // use block lambda here, otherwise mutiny fails with NPE + PanacheMock.verify(Person.class, Mockito.times(4)).count(); + }); + + asserter.execute(() -> { + Person p = new Person(); + Mockito.when(Person.findById(12l)).thenReturn(Uni.createFrom().item(p)); + asserter.putData(key, p); + }); + asserter.assertThat(() -> Person.findById(12l), p -> Assertions.assertSame(p, asserter.getData(key))); + asserter.assertNull(() -> Person.findById(42l)); + + asserter.execute(() -> Person.persist(asserter.getData(key))); + asserter.execute(() -> assertNull(((Person) asserter.getData(key)).id)); + + asserter.execute(() -> Mockito.when(Person.findById(12l)).thenThrow(new WebApplicationException())); + asserter.assertFailedWith(() -> { + try { + return Person.findById(12l); + } catch (Exception e) { + return Uni.createFrom().failure(e); + } + }, t -> assertEquals(WebApplicationException.class, t.getClass())); + + asserter.execute(() -> Mockito.when(Person.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList()))); + asserter.assertThat(() -> Person.findOrdered(), list -> list.isEmpty()); + + asserter.execute(() -> { + PanacheMock.verify(Person.class).findOrdered(); + PanacheMock.verify(Person.class).persist(Mockito. any(), Mockito. any()); + PanacheMock.verify(Person.class, Mockito.atLeastOnce()).findById(Mockito.any()); + PanacheMock.verifyNoMoreInteractions(Person.class); + Assertions.assertEquals(0, Person.methodWithPrimitiveParams(true, (byte) 0, (short) 0, 0, 2, 2.0f, 2.0, 'c')); + }); + + // Execute the asserter within a reactive session + asserter.surroundWith(u -> Panache.withSession(() -> u)); } @Test @@ -73,63 +94,85 @@ public void testPanacheMockingWasCleared() { @InjectMock MockablePersonRepository mockablePersonRepository; + @RunOnVertxContext @Test - public void testPanacheRepositoryMocking() throws Throwable { - Assertions.assertEquals(0, mockablePersonRepository.count().await().indefinitely()); - - Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(23l)); - Assertions.assertEquals(23, mockablePersonRepository.count().await().indefinitely()); - - Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(42l)); - Assertions.assertEquals(42, mockablePersonRepository.count().await().indefinitely()); - - Mockito.when(mockablePersonRepository.count()).thenCallRealMethod(); - Assertions.assertEquals(0, mockablePersonRepository.count().await().indefinitely()); - - Mockito.verify(mockablePersonRepository, Mockito.times(4)).count(); - - Person p = new Person(); - Mockito.when(mockablePersonRepository.findById(12l)).thenReturn(Uni.createFrom().item(p)); - Assertions.assertSame(p, mockablePersonRepository.findById(12l).await().indefinitely()); - Assertions.assertNull(mockablePersonRepository.findById(42l).await().indefinitely()); - - mockablePersonRepository.persist(p).await().indefinitely(); - Assertions.assertNull(p.id); - - Mockito.when(mockablePersonRepository.findById(12l)).thenThrow(new WebApplicationException()); - try { - mockablePersonRepository.findById(12l); - Assertions.fail(); - } catch (WebApplicationException x) { - } - - Mockito.when(mockablePersonRepository.findOrdered()).thenReturn(Uni.createFrom().item(Collections.emptyList())); - Assertions.assertTrue(mockablePersonRepository.findOrdered().await().indefinitely().isEmpty()); - - Mockito.verify(mockablePersonRepository).findOrdered(); - Mockito.verify(mockablePersonRepository, Mockito.atLeastOnce()).findById(Mockito.any()); - Mockito.verify(mockablePersonRepository).persist(Mockito. any()); - Mockito.verifyNoMoreInteractions(mockablePersonRepository); + public void testPanacheRepositoryMocking(UniAsserter asserter) throws Throwable { + String key = "person"; + + asserter.assertEquals(() -> mockablePersonRepository.count(), 0l); + + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(23l))); + asserter.assertEquals(() -> mockablePersonRepository.count(), 23l); + + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenReturn(Uni.createFrom().item(42l))); + asserter.assertEquals(() -> mockablePersonRepository.count(), 42l); + + asserter.execute(() -> Mockito.when(mockablePersonRepository.count()).thenCallRealMethod()); + asserter.assertEquals(() -> mockablePersonRepository.count(), 0l); + + asserter.execute(() -> { + // use block lambda here, otherwise mutiny fails with NPE + Mockito.verify(mockablePersonRepository, Mockito.times(4)).count(); + }); + + asserter.execute(() -> { + Person p = new Person(); + Mockito.when(mockablePersonRepository.findById(12l)).thenReturn(Uni.createFrom().item(p)); + asserter.putData(key, p); + }); + + asserter.assertThat(() -> mockablePersonRepository.findById(12l), p -> Assertions.assertSame(p, asserter.getData(key))); + asserter.assertNull(() -> mockablePersonRepository.findById(42l)); + + asserter.execute(() -> mockablePersonRepository.persist((Person) asserter.getData(key))); + asserter.execute(() -> assertNull(((Person) asserter.getData(key)).id)); + + asserter.execute(() -> Mockito.when(mockablePersonRepository.findById(12l)).thenThrow(new WebApplicationException())); + asserter.assertFailedWith(() -> { + try { + return mockablePersonRepository.findById(12l); + } catch (Exception e) { + return Uni.createFrom().failure(e); + } + }, t -> assertEquals(WebApplicationException.class, t.getClass())); + + asserter.execute(() -> Mockito.when(mockablePersonRepository.findOrdered()) + .thenReturn(Uni.createFrom().item(Collections.emptyList()))); + asserter.assertThat(() -> mockablePersonRepository.findOrdered(), list -> list.isEmpty()); + + asserter.execute(() -> { + Mockito.verify(mockablePersonRepository).findOrdered(); + Mockito.verify(mockablePersonRepository, Mockito.atLeastOnce()).findById(Mockito.any()); + Mockito.verify(mockablePersonRepository).persist(Mockito. any()); + Mockito.verifyNoMoreInteractions(mockablePersonRepository); + }); + + // Execute the asserter within a reactive session + asserter.surroundWith(u -> Panache.withSession(() -> u)); } @Inject PersonRepository realPersonRepository; + @SuppressWarnings({ "unchecked", "rawtypes" }) + @RunOnVertxContext @Test - public void testPanacheRepositoryBridges() { + public void testPanacheRepositoryBridges(UniAsserter asserter) { // normal method call - Assertions.assertNull(realPersonRepository.findById(0l).await().indefinitely()); + asserter.assertNull(() -> realPersonRepository.findById(0l)); // bridge call - Assertions.assertNull(((PanacheRepositoryBase) realPersonRepository).findById(0l).await().indefinitely()); + asserter.assertNull(() -> ((PanacheRepositoryBase) realPersonRepository).findById(0l)); // normal method call - Assertions.assertNull(realPersonRepository.findById(0l, LockModeType.NONE).await().indefinitely()); + asserter.assertNull(() -> realPersonRepository.findById(0l, LockModeType.NONE)); // bridge call - Assertions.assertNull( - ((PanacheRepositoryBase) realPersonRepository).findById(0l, LockModeType.NONE).await().indefinitely()); + asserter.assertNull(() -> ((PanacheRepositoryBase) realPersonRepository).findById(0l, LockModeType.NONE)); // normal method call - Assertions.assertEquals(false, realPersonRepository.deleteById(0l).await().indefinitely()); + asserter.assertFalse(() -> realPersonRepository.deleteById(0l)); // bridge call - Assertions.assertEquals(false, ((PanacheRepositoryBase) realPersonRepository).deleteById(0l).await().indefinitely()); + asserter.assertFalse(() -> ((PanacheRepositoryBase) realPersonRepository).deleteById(0l)); + + // Execute the asserter within a reactive session + asserter.surroundWith(u -> Panache.withSession(() -> u)); } } diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TestReactiveTransactionTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TestReactiveTransactionTest.java index 2a40905c07e42..241f7bf51e6e5 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TestReactiveTransactionTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TestReactiveTransactionTest.java @@ -6,17 +6,20 @@ import io.quarkus.hibernate.reactive.panache.Panache; import io.quarkus.test.TestReactiveTransaction; import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.vertx.RunOnVertxContext; import io.quarkus.test.vertx.UniAsserter; @QuarkusTest public class TestReactiveTransactionTest { + @RunOnVertxContext @TestReactiveTransaction @Test public void testTestTransaction(UniAsserter asserter) { asserter.assertNotNull(() -> Panache.currentTransaction()); } + @RunOnVertxContext @TestReactiveTransaction @BeforeEach public void beforeEach(UniAsserter asserter) { diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 0268d4630a39d..4a4c9e171debe 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -189,7 +189,6 @@ hibernate-reactive-postgresql hibernate-reactive-panache hibernate-reactive-panache-kotlin - hibernate-reactive-panache-blocking hibernate-search-orm-elasticsearch hibernate-search-orm-elasticsearch-coordination-outbox-polling hibernate-search-orm-opensearch diff --git a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java index e916c017a691d..c42b69dfd641e 100644 --- a/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java +++ b/integration-tests/reactive-messaging-hibernate-reactive/src/main/java/io/quarkus/it/kafka/KafkaReceivers.java @@ -15,6 +15,7 @@ import org.hibernate.reactive.mutiny.Mutiny; import io.quarkus.hibernate.reactive.panache.Panache; +import io.quarkus.hibernate.reactive.panache.common.WithSession; import io.smallrye.common.vertx.ContextLocals; import io.smallrye.common.vertx.VertxContext; import io.smallrye.mutiny.Uni; @@ -72,6 +73,7 @@ public CompletionStage consume(Message msg) { return msg.ack(); } + @WithSession public Uni> getFruits() { return Fruit.listAll(); } diff --git a/test-framework/vertx/src/main/java/io/quarkus/test/vertx/RunOnVertxContextTestMethodInvoker.java b/test-framework/vertx/src/main/java/io/quarkus/test/vertx/RunOnVertxContextTestMethodInvoker.java index 597f3dfcd5c5e..a348c0a83c430 100644 --- a/test-framework/vertx/src/main/java/io/quarkus/test/vertx/RunOnVertxContextTestMethodInvoker.java +++ b/test-framework/vertx/src/main/java/io/quarkus/test/vertx/RunOnVertxContextTestMethodInvoker.java @@ -41,10 +41,6 @@ public Object methodParamInstance(String paramClassName) { public boolean supportsMethod(Class originalTestClass, Method originalTestMethod) { return hasAnnotation(RunOnVertxContext.class, originalTestMethod.getAnnotations()) || hasAnnotation(RunOnVertxContext.class, originalTestClass.getAnnotations()) - || hasAnnotation("io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional", - originalTestMethod.getAnnotations()) - || hasAnnotation("io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional", - originalTestClass.getAnnotations()) || hasAnnotation(TestReactiveTransaction.class, originalTestMethod.getAnnotations()) || hasAnnotation(TestReactiveTransaction.class, originalTestClass.getAnnotations()); } @@ -102,7 +98,8 @@ private boolean shouldContextBeDuplicated(Class c, Method m) { runOnVertxContext = c.getAnnotation(RunOnVertxContext.class); } if (runOnVertxContext == null) { - return false; + // Use duplicated context if @TestReactiveTransaction is present + return m.isAnnotationPresent(TestReactiveTransaction.class); } else { return runOnVertxContext.duplicateContext(); } From 99c4b70aa90788d0524337c7829221fe421c63e3 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 3 Feb 2023 14:25:52 +0100 Subject: [PATCH 231/250] Hibernate reactive panache - remove all Multi stream() methods - neither Hibernate Reactive nor reactive clients support streaming - furthermore, we're not able to provide a Panache#withTransaction() alternative for Multi without bypassing Hibernate Reactive API --- .../common/runtime/AbstractJpaOperations.java | 35 ---- .../panache/kotlin/PanacheCompanion.kt | 145 -------------- .../reactive/panache/kotlin/PanacheQuery.kt | 12 -- .../panache/kotlin/PanacheRepositoryBase.kt | 149 --------------- .../kotlin/runtime/KotlinJpaOperations.kt | 3 - .../kotlin/runtime/PanacheQueryImpl.kt | 3 - .../reactive/panache/PanacheEntityBase.java | 165 ---------------- .../reactive/panache/PanacheQuery.java | 16 +- .../panache/PanacheRepositoryBase.java | 180 ------------------ .../panache/runtime/JpaOperations.java | 6 +- .../panache/runtime/PanacheQueryImpl.java | 6 - .../panache/reactive/kotlin/TestEndpoint.kt | 98 ---------- .../it/panache/reactive/TestEndpoint.java | 140 ++------------ 13 files changed, 15 insertions(+), 943 deletions(-) diff --git a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java index 15740abcabe2a..8cc1c50404282 100644 --- a/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java +++ b/extensions/panache/hibernate-reactive-panache-common/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/common/runtime/AbstractJpaOperations.java @@ -16,7 +16,6 @@ import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; import io.quarkus.panache.hibernate.common.runtime.PanacheJpaUtil; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; public abstract class AbstractJpaOperations { @@ -30,8 +29,6 @@ protected abstract PanacheQueryType createPanacheQuery(Uni sessi protected abstract Uni> list(PanacheQueryType query); - protected abstract Multi stream(PanacheQueryType query); - // // Instance methods @@ -177,30 +174,6 @@ public Uni> list(Class entityClass, String query, Sort sort, Paramete return list(find(entityClass, query, sort, params)); } - public Multi stream(Class entityClass, String query, Object... params) { - return stream(find(entityClass, query, params)); - } - - public Multi stream(Class entityClass, String query, Sort sort, Object... params) { - return stream(find(entityClass, query, sort, params)); - } - - public Multi stream(Class entityClass, String query, Map params) { - return stream(find(entityClass, query, params)); - } - - public Multi stream(Class entityClass, String query, Sort sort, Map params) { - return stream(find(entityClass, query, sort, params)); - } - - public Multi stream(Class entityClass, String query, Parameters params) { - return stream(find(entityClass, query, params)); - } - - public Multi stream(Class entityClass, String query, Sort sort, Parameters params) { - return stream(find(entityClass, query, sort, params)); - } - public PanacheQueryType findAll(Class entityClass) { String query = "FROM " + PanacheJpaUtil.getEntityName(entityClass); Uni session = getSession(); @@ -221,14 +194,6 @@ public Uni> listAll(Class entityClass, Sort sort) { return list(findAll(entityClass, sort)); } - public Multi streamAll(Class entityClass) { - return stream(findAll(entityClass)); - } - - public Multi streamAll(Class entityClass, Sort sort) { - return stream(findAll(entityClass, sort)); - } - @SuppressWarnings({ "rawtypes", "unchecked" }) public Uni count(Class entityClass) { return (Uni) getSession() diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt index 6695a175fd064..302281d733c56 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheCompanion.kt @@ -6,7 +6,6 @@ import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.quarkus.panache.common.impl.GenerateBridge import io.smallrye.common.annotation.CheckReturnValue -import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny @@ -54,7 +53,6 @@ interface PanacheCompanionBase { * @param params optional sequence of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, vararg params: Any): PanacheQuery = injectionMissing() @@ -67,7 +65,6 @@ interface PanacheCompanionBase { * @param params optional sequence of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, vararg params: Any): PanacheQuery = injectionMissing() @@ -79,7 +76,6 @@ interface PanacheCompanionBase { * @param params [Map] of named parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, params: Map): PanacheQuery = injectionMissing() @@ -92,7 +88,6 @@ interface PanacheCompanionBase { * @param params [Map] of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, params: Map): PanacheQuery = injectionMissing() @@ -104,7 +99,6 @@ interface PanacheCompanionBase { * @param params [Parameters] of named parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, params: Parameters): PanacheQuery = injectionMissing() @@ -117,7 +111,6 @@ interface PanacheCompanionBase { * @param params [Parameters] of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, params: Parameters): PanacheQuery = injectionMissing() @@ -127,7 +120,6 @@ interface PanacheCompanionBase { * * @return a new [PanacheQuery] instance to find all entities of this type. * @see [listAll] listAll - * @see [streamAll] streamAll */ @GenerateBridge fun findAll(): PanacheQuery = injectionMissing() @@ -138,7 +130,6 @@ interface PanacheCompanionBase { * @param sort the sort order to use * @return a new [PanacheQuery] instance to find all entities of this type. * @see [listAll] listAll - * @see [streamAll] streamAll */ @GenerateBridge fun findAll(sort: Sort): PanacheQuery = injectionMissing() @@ -151,7 +142,6 @@ interface PanacheCompanionBase { * @param params optional sequence of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -166,7 +156,6 @@ interface PanacheCompanionBase { * @param params optional sequence of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -180,7 +169,6 @@ interface PanacheCompanionBase { * @param params [Map] of named parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -195,7 +183,6 @@ interface PanacheCompanionBase { * @param params [Map] of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -209,7 +196,6 @@ interface PanacheCompanionBase { * @param params [Parameters] of named parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -224,7 +210,6 @@ interface PanacheCompanionBase { * @param params [Parameters] of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -236,7 +221,6 @@ interface PanacheCompanionBase { * * @return a [List] containing all results, without paging * @see [findAll] findAll - * @see [streamAll] streamAll */ @CheckReturnValue @GenerateBridge @@ -249,140 +233,11 @@ interface PanacheCompanionBase { * @param sort the sort order to use * @return a [List] containing all results, without paging * @see [findAll] findAll - * @see [streamAll] streamAll */ @CheckReturnValue @GenerateBridge fun listAll(sort: Sort): Uni> = injectionMissing() - /** - * Find entities matching a query, with optional indexed parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params optional sequence of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, vararg params: Any): Multi = injectionMissing() - - /** - * Find entities matching a query and the given sort options, with optional indexed parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params optional sequence of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, vararg params: Any): Multi = injectionMissing() - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params [Map] of named parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, params: Map): Multi = injectionMissing() - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params [Map] of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, params: Map): Multi = injectionMissing() - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params [Parameters] of named parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, params: Parameters): Multi = injectionMissing() - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params [Parameters] of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, params: Parameters): Multi = injectionMissing() - - /** - * Find all entities of this type. - * This method is a shortcut for `findAll().stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a [Stream] containing all results, without paging - * @see [findAll] findAll - * @see [listAll] listAll - */ - @CheckReturnValue - @GenerateBridge - fun streamAll(): Multi = injectionMissing() - - /** - * Find all entities of this type, in the given order. - * This method is a shortcut for `findAll(sort).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param sort the sort order to use - * @return a [Stream] containing all results, without paging - * @see [findAll] findAll - * @see [listAll] listAll - */ - @CheckReturnValue - @GenerateBridge - fun streamAll(sort: Sort): Multi = injectionMissing() - /** * Counts the number of this type of entity in the database. * diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt index 9db3027c9394d..246cb7850c157 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheQuery.kt @@ -3,7 +3,6 @@ package io.quarkus.hibernate.reactive.panache.kotlin import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters import io.smallrye.common.annotation.CheckReturnValue -import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni import jakarta.persistence.LockModeType import jakarta.persistence.NonUniqueResultException @@ -208,22 +207,11 @@ interface PanacheQuery { * Returns the current page of results as a [List]. * * @return the current page of results as a [List]. - * @see [PanacheQuery.stream] * @see [PanacheQuery.page] */ @CheckReturnValue fun list(): Uni> - /** - * Returns the current page of results as a Stream. - * - * @return the current page of results as a Stream. - * @see [PanacheQuery.list] - * @see [PanacheQuery.page] - */ - @CheckReturnValue - fun stream(): Multi - /** * Returns the first result of the current page index. This ignores the current page size to fetch * a single result. diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt index 3937b2b79a99b..0ca8dd2cb37e0 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/PanacheRepositoryBase.kt @@ -6,7 +6,6 @@ import io.quarkus.panache.common.Parameters import io.quarkus.panache.common.Sort import io.quarkus.panache.common.impl.GenerateBridge import io.smallrye.common.annotation.CheckReturnValue -import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny @@ -105,7 +104,6 @@ interface PanacheRepositoryBase { * @param params optional sequence of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, vararg params: Any): PanacheQuery = throw INSTANCE.implementationInjectionMissing() @@ -118,7 +116,6 @@ interface PanacheRepositoryBase { * @param params optional sequence of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, vararg params: Any): PanacheQuery = @@ -131,7 +128,6 @@ interface PanacheRepositoryBase { * @param params [Map] of named parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, params: Map): PanacheQuery = @@ -145,7 +141,6 @@ interface PanacheRepositoryBase { * @param params [Map] of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, params: Map): PanacheQuery = @@ -158,7 +153,6 @@ interface PanacheRepositoryBase { * @param params [Parameters] of named parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, params: Parameters): PanacheQuery = throw INSTANCE.implementationInjectionMissing() @@ -171,7 +165,6 @@ interface PanacheRepositoryBase { * @param params [Parameters] of indexed parameters * @return a new [PanacheQuery] instance for the given query * @see [list] list - * @see [stream] stream */ @GenerateBridge fun find(query: String, sort: Sort, params: Parameters): PanacheQuery = @@ -182,7 +175,6 @@ interface PanacheRepositoryBase { * * @return a new [PanacheQuery] instance to find all entities of this type. * @see [listAll] listAll - * @see [streamAll] streamAll */ @GenerateBridge fun findAll(): PanacheQuery = throw INSTANCE.implementationInjectionMissing() @@ -193,7 +185,6 @@ interface PanacheRepositoryBase { * @param sort the sort order to use * @return a new [PanacheQuery] instance to find all entities of this type. * @see [listAll] listAll - * @see [streamAll] streamAll */ @GenerateBridge fun findAll(sort: Sort): PanacheQuery = throw INSTANCE.implementationInjectionMissing() @@ -206,7 +197,6 @@ interface PanacheRepositoryBase { * @param params optional sequence of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -221,7 +211,6 @@ interface PanacheRepositoryBase { * @param params optional sequence of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -236,7 +225,6 @@ interface PanacheRepositoryBase { * @param params [Map] of named parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -252,7 +240,6 @@ interface PanacheRepositoryBase { * @param params [Map] of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -267,7 +254,6 @@ interface PanacheRepositoryBase { * @param params [Parameters] of named parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -282,7 +268,6 @@ interface PanacheRepositoryBase { * @param params [Parameters] of indexed parameters * @return a [List] containing all results, without paging * @see [find] find - * @see [stream] stream */ @CheckReturnValue @GenerateBridge @@ -295,7 +280,6 @@ interface PanacheRepositoryBase { * * @return a [List] containing all results, without paging * @see [findAll] findAll - * @see [streamAll] streamAll */ @CheckReturnValue @GenerateBridge @@ -310,144 +294,11 @@ interface PanacheRepositoryBase { * @param sort the sort order to use * @return a [List] containing all results, without paging * @see [findAll] findAll - * @see [streamAll] streamAll */ @CheckReturnValue @GenerateBridge fun listAll(sort: Sort): Uni> = throw INSTANCE.implementationInjectionMissing() - /** - * Find entities matching a query, with optional indexed parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params optional sequence of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, vararg params: Any): Multi = throw INSTANCE.implementationInjectionMissing() - - /** - * Find entities matching a query and the given sort options, with optional indexed parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params optional sequence of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, vararg params: Any): Multi = - throw INSTANCE.implementationInjectionMissing() - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params [Map] of named parameters - * @return a [Stream] containing all results, without paging - * @see [stream] stream - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, params: Map): Multi = - throw INSTANCE.implementationInjectionMissing() - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params [Map] of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, params: Map): Multi = - throw INSTANCE.implementationInjectionMissing() - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for `find(query, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param params [Parameters] of named parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, params: Parameters): Multi = throw INSTANCE.implementationInjectionMissing() - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for `find(query, sort, params).stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a query string - * @param sort the sort strategy to use - * @param params [Parameters] of indexed parameters - * @return a [Stream] containing all results, without paging - * @see [find] find - * @see [list] list - */ - @CheckReturnValue - @GenerateBridge - fun stream(query: String, sort: Sort, params: Parameters): Multi = - throw INSTANCE.implementationInjectionMissing() - - /** - * Find all entities of this type. - * This method is a shortcut for `findAll().stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a [Stream] containing all results, without paging - * @see [findAll] findAll - * @see [listAll] listAll - */ - @CheckReturnValue - @GenerateBridge - fun streamAll(sort: Sort): Multi = throw INSTANCE.implementationInjectionMissing() - - /** - * Find all entities of this type, in the given order. - * This method is a shortcut for `findAll().stream()`. - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a [Stream] containing all results, without paging - * @see [findAll] findAll - * @see [listAll] listAll - */ - @CheckReturnValue - @GenerateBridge - fun streamAll(): Multi = throw INSTANCE.implementationInjectionMissing() - /** * Counts the number of this type of entity in the database. * diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/KotlinJpaOperations.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/KotlinJpaOperations.kt index 4fe81ea2068b1..cee34a7b17273 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/KotlinJpaOperations.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/KotlinJpaOperations.kt @@ -1,7 +1,6 @@ package io.quarkus.hibernate.reactive.panache.kotlin.runtime import io.quarkus.hibernate.reactive.panache.common.runtime.AbstractJpaOperations -import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni import org.hibernate.reactive.mutiny.Mutiny @@ -11,8 +10,6 @@ class KotlinJpaOperations : AbstractJpaOperations>() { override fun list(query: PanacheQueryImpl<*>): Uni> = query.list() as Uni> - override fun stream(query: PanacheQueryImpl<*>): Multi<*> = query.stream() - companion object { /** * Provides the default implementations for quarkus to wire up. Should not be used by third party developers. diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt index 1d3ea5269d02c..0db700c637127 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/src/main/kotlin/io/quarkus/hibernate/reactive/panache/kotlin/runtime/PanacheQueryImpl.kt @@ -4,7 +4,6 @@ import io.quarkus.hibernate.reactive.panache.common.runtime.CommonPanacheQueryIm import io.quarkus.hibernate.reactive.panache.kotlin.PanacheQuery import io.quarkus.panache.common.Page import io.quarkus.panache.common.Parameters -import io.smallrye.mutiny.Multi import io.smallrye.mutiny.Uni import jakarta.persistence.LockModeType import org.hibernate.reactive.mutiny.Mutiny @@ -105,8 +104,6 @@ class PanacheQueryImpl : PanacheQuery { override fun list(): Uni> = delegate.list() - override fun stream(): Multi = delegate.stream() - override fun firstResult(): Uni = delegate.firstResult() override fun singleResult(): Uni = delegate.singleResult() diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java index 54ae5299fd740..33fb883467b0e 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheEntityBase.java @@ -18,7 +18,6 @@ import io.quarkus.panache.common.Sort; import io.quarkus.panache.common.impl.GenerateBridge; import io.smallrye.common.annotation.CheckReturnValue; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; /** @@ -422,170 +421,6 @@ public static Uni> listAll(Sort sort) { throw INSTANCE.implementationInjectionMissing(); } - /** - * Find entities matching a query, with optional indexed parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params optional sequence of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Object...) - * @see #stream(String, Map) - * @see #stream(String, Parameters) - * @see #find(String, Object...) - * @see #list(String, Object...) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Object... params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with optional indexed parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params optional sequence of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Object...) - * @see #stream(String, Sort, Map) - * @see #stream(String, Sort, Parameters) - * @see #find(String, Sort, Object...) - * @see #list(String, Sort, Object...) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Sort sort, Object... params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params {@link Map} of named parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Map) - * @see #stream(String, Object...) - * @see #stream(String, Parameters) - * @see #find(String, Map) - * @see #list(String, Map) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Map params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params {@link Map} of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Map) - * @see #stream(String, Sort, Object...) - * @see #stream(String, Sort, Parameters) - * @see #find(String, Sort, Map) - * @see #list(String, Sort, Map) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Sort sort, Map params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params {@link Parameters} of named parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Parameters) - * @see #stream(String, Object...) - * @see #stream(String, Map) - * @see #find(String, Parameters) - * @see #list(String, Parameters) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Parameters params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params {@link Parameters} of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Parameters) - * @see #stream(String, Sort, Object...) - * @see #stream(String, Sort, Map) - * @see #find(String, Sort, Parameters) - * @see #list(String, Sort, Parameters) - */ - @CheckReturnValue - @GenerateBridge - public static Multi stream(String query, Sort sort, Parameters params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find all entities of this type. - * This method is a shortcut for findAll().stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a {@link Stream} containing all results, without paging - * @see #streamAll(Sort) - * @see #findAll() - * @see #listAll() - */ - @CheckReturnValue - @GenerateBridge - public static Multi streamAll() { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find all entities of this type, in the given order. - * This method is a shortcut for findAll(sort).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param sort the sort order to use - * @return a {@link Stream} containing all results, without paging - * @see #streamAll() - * @see #findAll(Sort) - * @see #listAll(Sort) - */ - @CheckReturnValue - @GenerateBridge - public static Multi streamAll(Sort sort) { - throw INSTANCE.implementationInjectionMissing(); - } - /** * Counts the number of this type of entity in the database. * diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java index 515e26fcd3675..7ce81efb0a749 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheQuery.java @@ -2,7 +2,6 @@ import java.util.List; import java.util.Map; -import java.util.stream.Stream; import jakarta.persistence.LockModeType; import jakarta.persistence.NoResultException; @@ -14,13 +13,12 @@ import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Parameters; import io.smallrye.common.annotation.CheckReturnValue; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; /** *

    * Interface representing an entity query, which abstracts the use of paging, getting the number of results, and - * operating on {@link List} or {@link Stream}. + * operating on {@link List}. *

    *

    * Instances of this interface cannot mutate the query itself or its parameters: only paging information can be @@ -232,24 +230,12 @@ public interface PanacheQuery { * Returns the current page of results as a {@link List}. * * @return the current page of results as a {@link List}. - * @see #stream() * @see #page(Page) * @see #page() */ @CheckReturnValue public Uni> list(); - /** - * Returns the current page of results as a {@link Stream}. - * - * @return the current page of results as a {@link Stream}. - * @see #list() - * @see #page(Page) - * @see #page() - */ - @CheckReturnValue - public Multi stream(); - /** * Returns the first result of the current page index. This ignores the current page size to fetch * a single result. diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java index 46a696fcbcb31..0d8f7db73363e 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/PanacheRepositoryBase.java @@ -14,7 +14,6 @@ import io.quarkus.panache.common.Sort; import io.quarkus.panache.common.impl.GenerateBridge; import io.smallrye.common.annotation.CheckReturnValue; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; /** @@ -148,7 +147,6 @@ public default Uni findById(Id id, LockModeType lockModeType) { * @see #find(String, Map) * @see #find(String, Parameters) * @see #list(String, Object...) - * @see #stream(String, Object...) */ @GenerateBridge public default PanacheQuery find(String query, Object... params) { @@ -166,7 +164,6 @@ public default PanacheQuery find(String query, Object... params) { * @see #find(String, Sort, Map) * @see #find(String, Sort, Parameters) * @see #list(String, Sort, Object...) - * @see #stream(String, Sort, Object...) */ @GenerateBridge public default PanacheQuery find(String query, Sort sort, Object... params) { @@ -183,7 +180,6 @@ public default PanacheQuery find(String query, Sort sort, Object... para * @see #find(String, Object...) * @see #find(String, Parameters) * @see #list(String, Map) - * @see #stream(String, Map) */ @GenerateBridge public default PanacheQuery find(String query, Map params) { @@ -201,7 +197,6 @@ public default PanacheQuery find(String query, Map param * @see #find(String, Sort, Object...) * @see #find(String, Sort, Parameters) * @see #list(String, Sort, Map) - * @see #stream(String, Sort, Map) */ @GenerateBridge public default PanacheQuery find(String query, Sort sort, Map params) { @@ -218,7 +213,6 @@ public default PanacheQuery find(String query, Sort sort, Map find(String query, Parameters params) { @@ -236,7 +230,6 @@ public default PanacheQuery find(String query, Parameters params) { * @see #find(String, Sort, Map) * @see #find(String, Sort, Parameters) * @see #list(String, Sort, Parameters) - * @see #stream(String, Sort, Parameters) */ @GenerateBridge public default PanacheQuery find(String query, Sort sort, Parameters params) { @@ -249,7 +242,6 @@ public default PanacheQuery find(String query, Sort sort, Parameters par * @return a new {@link PanacheQuery} instance to find all entities of this type. * @see #findAll(Sort) * @see #listAll() - * @see #streamAll() */ @GenerateBridge public default PanacheQuery findAll() { @@ -263,7 +255,6 @@ public default PanacheQuery findAll() { * @return a new {@link PanacheQuery} instance to find all entities of this type. * @see #findAll() * @see #listAll(Sort) - * @see #streamAll(Sort) */ @GenerateBridge public default PanacheQuery findAll(Sort sort) { @@ -281,7 +272,6 @@ public default PanacheQuery findAll(Sort sort) { * @see #list(String, Map) * @see #list(String, Parameters) * @see #find(String, Object...) - * @see #stream(String, Object...) */ @CheckReturnValue @GenerateBridge @@ -301,7 +291,6 @@ public default Uni> list(String query, Object... params) { * @see #list(String, Sort, Map) * @see #list(String, Sort, Parameters) * @see #find(String, Sort, Object...) - * @see #stream(String, Sort, Object...) */ @CheckReturnValue @GenerateBridge @@ -320,7 +309,6 @@ public default Uni> list(String query, Sort sort, Object... params) * @see #list(String, Object...) * @see #list(String, Parameters) * @see #find(String, Map) - * @see #stream(String, Map) */ @CheckReturnValue @GenerateBridge @@ -340,7 +328,6 @@ public default Uni> list(String query, Map params) * @see #list(String, Sort, Object...) * @see #list(String, Sort, Parameters) * @see #find(String, Sort, Map) - * @see #stream(String, Sort, Map) */ @CheckReturnValue @GenerateBridge @@ -359,7 +346,6 @@ public default Uni> list(String query, Sort sort, Map> list(String query, Parameters params) { * @see #list(String, Sort, Object...) * @see #list(String, Sort, Map) * @see #find(String, Sort, Parameters) - * @see #stream(String, Sort, Parameters) */ @CheckReturnValue @GenerateBridge @@ -394,7 +379,6 @@ public default Uni> list(String query, Sort sort, Parameters params * @return a {@link List} containing all results, without paging * @see #listAll(Sort) * @see #findAll() - * @see #streamAll() */ @CheckReturnValue @GenerateBridge @@ -410,7 +394,6 @@ public default Uni> listAll() { * @return a {@link List} containing all results, without paging * @see #listAll() * @see #findAll(Sort) - * @see #streamAll(Sort) */ @CheckReturnValue @GenerateBridge @@ -418,169 +401,6 @@ public default Uni> listAll(Sort sort) { throw INSTANCE.implementationInjectionMissing(); } - /** - * Find entities matching a query, with optional indexed parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params optional sequence of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Object...) - * @see #stream(String, Map) - * @see #stream(String, Parameters) - * @see #find(String, Object...) - * @see #list(String, Object...) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Object... params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with optional indexed parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params optional sequence of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Object...) - * @see #stream(String, Sort, Map) - * @see #stream(String, Sort, Parameters) - * @see #find(String, Sort, Object...) - * @see #list(String, Sort, Object...) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Sort sort, Object... params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params {@link Map} of named parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Map) - * @see #stream(String, Object...) - * @see #stream(String, Parameters) - * @see #find(String, Map) - * @see #list(String, Map) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Map params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params {@link Map} of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Map) - * @see #stream(String, Sort, Object...) - * @see #stream(String, Sort, Parameters) - * @see #find(String, Sort, Map) - * @see #list(String, Sort, Map) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Sort sort, Map params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query, with named parameters. - * This method is a shortcut for find(query, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param params {@link Parameters} of named parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Sort, Parameters) - * @see #stream(String, Object...) - * @see #stream(String, Map) - * @see #find(String, Parameters) - * @see #list(String, Parameters) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Parameters params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find entities matching a query and the given sort options, with named parameters. - * This method is a shortcut for find(query, sort, params).stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @param query a {@link io.quarkus.hibernate.reactive.panache query string} - * @param sort the sort strategy to use - * @param params {@link Parameters} of indexed parameters - * @return a {@link Stream} containing all results, without paging - * @see #stream(String, Parameters) - * @see #stream(String, Sort, Object...) - * @see #stream(String, Sort, Map) - * @see #find(String, Sort, Parameters) - * @see #list(String, Sort, Parameters) - */ - @CheckReturnValue - @GenerateBridge - public default Multi stream(String query, Sort sort, Parameters params) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find all entities of this type. - * This method is a shortcut for findAll().stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a {@link Stream} containing all results, without paging - * @see #streamAll(Sort) - * @see #findAll() - * @see #listAll() - */ - @CheckReturnValue - @GenerateBridge - public default Multi streamAll(Sort sort) { - throw INSTANCE.implementationInjectionMissing(); - } - - /** - * Find all entities of this type, in the given order. - * This method is a shortcut for findAll().stream(). - * It requires a transaction to work. - * Without a transaction, the underlying cursor can be closed before the end of the stream. - * - * @return a {@link Stream} containing all results, without paging - * @see #streamAll() - * @see #findAll(Sort) - * @see #listAll(Sort) - */ - @CheckReturnValue - @GenerateBridge - public default Multi streamAll() { - throw INSTANCE.implementationInjectionMissing(); - } - /** * Counts the number of this type of entity in the database. * diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/JpaOperations.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/JpaOperations.java index cb97ea3527e79..bc671a43c83aa 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/JpaOperations.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/JpaOperations.java @@ -5,10 +5,10 @@ import org.hibernate.reactive.mutiny.Mutiny; import io.quarkus.hibernate.reactive.panache.common.runtime.AbstractJpaOperations; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; public class JpaOperations extends AbstractJpaOperations> { + public static final JpaOperations INSTANCE = new JpaOperations(); @Override @@ -23,8 +23,4 @@ protected Uni> list(PanacheQueryImpl query) { return (Uni) query.list(); } - @Override - protected Multi stream(PanacheQueryImpl query) { - return query.stream(); - } } diff --git a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java index 8f69bbb1a2f7f..6ae96e94c5a02 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java +++ b/extensions/panache/hibernate-reactive-panache/runtime/src/main/java/io/quarkus/hibernate/reactive/panache/runtime/PanacheQueryImpl.java @@ -12,7 +12,6 @@ import io.quarkus.hibernate.reactive.panache.common.runtime.CommonPanacheQueryImpl; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Parameters; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; public class PanacheQueryImpl implements PanacheQuery { @@ -149,11 +148,6 @@ public Uni> list() { return delegate.list(); } - @Override - public Multi stream() { - return delegate.stream(); - } - @Override public Uni firstResult() { return delegate.firstResult(); diff --git a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt index f0cfc823de404..1f7431fe74212 100644 --- a/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt +++ b/integration-tests/hibernate-reactive-panache-kotlin/src/main/kotlin/io/quarkus/it/panache/reactive/kotlin/TestEndpoint.kt @@ -174,10 +174,6 @@ class TestEndpoint { .flatMap { count -> assertEquals(1, count) query.list() - }.flatMap { list -> - assertEquals(1, list.size) - assertEquals(livePerson, list[0]) - query.stream().collect().asList() }.flatMap { list -> assertEquals(1, list.size) query.firstResult() @@ -252,12 +248,6 @@ class TestEndpoint { Person.listAll() }.flatMap { persons -> assertEquals(0, persons.size) - Person.findAll().stream().collect().asList() - }.flatMap { personStream -> - assertEquals(0, personStream.size) - Person.streamAll().collect().asList() - }.flatMap { personStream -> - assertEquals(0, personStream.size) assertThrows(NoResultException::class.java) { Person.findAll().singleResult() } @@ -292,14 +282,6 @@ class TestEndpoint { assertEquals(1, persons.size) assertEquals(person, persons[0]) Person.listAll() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.findAll().stream().collect().asList() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.streamAll().collect().asList() }.flatMap { persons -> assertEquals(1, persons.size) assertEquals(person, persons[0]) @@ -347,26 +329,6 @@ class TestEndpoint { assertEquals(1, persons.size) assertEquals(person, persons[0]) Person.find("name", "stef").list() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.find("name = ?1", "stef").stream().collect().asList() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.stream("name = ?1", "stef").collect().asList() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.stream("name = :name", with("name", "stef").map()).collect().asList() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.stream("name = :name", with("name", "stef")).collect().asList() - }.flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - Person.find("name", "stef").stream().collect().asList() }.flatMap { persons -> assertEquals(1, persons.size) assertEquals(person, persons[0]) @@ -725,12 +687,6 @@ class TestEndpoint { personDao.listAll() }.flatMap { persons -> assertEquals(0, persons.size) - personDao.findAll().stream().collect().asList() - }.flatMap { personStream -> - assertEquals(0, personStream.size) - personDao.streamAll().collect().asList() - }.flatMap { personStream -> - assertEquals(0, personStream.size) assertThrows(NoResultException::class.java) { personDao.findAll().singleResult() } @@ -774,17 +730,6 @@ class TestEndpoint { assertEquals(person, persons[0]) personDao.listAll() } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.findAll().stream() - .collect().asList() - } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.streamAll().collect().asList() - } .flatMap { persons -> assertEquals(1, persons.size) assertEquals(person, persons[0]) @@ -842,35 +787,6 @@ class TestEndpoint { assertEquals(person, persons[0]) personDao.find("name", "stef").list() } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.find("name = ?1", "stef").stream() - .collect().asList() - } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.stream("name = ?1", "stef").collect().asList() - } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.stream("name = :name", with("name", "stef").map()) - .collect().asList() - } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.stream("name = :name", with("name", "stef")) - .collect().asList() - } - .flatMap { persons -> - assertEquals(1, persons.size) - assertEquals(person, persons[0]) - personDao.find("name", "stef").stream() - .collect().asList() - } .flatMap { persons -> assertEquals(1, persons.size) assertEquals(person, persons[0]) @@ -1271,18 +1187,12 @@ class TestEndpoint { .flatMap { list -> assertEquals(order1, list) Person.listAll(sort1) - }.flatMap { list -> - assertEquals(order1, list) - Person.streamAll(sort1).collect().asList() }.flatMap { list -> assertEquals(order1, list) Person.find("name", sort2, "stef").list() }.flatMap { list -> assertEquals(order2, list) Person.list("name", sort2, "stef") - }.flatMap { list -> - assertEquals(order2, list) - Person.stream("name", sort2, "stef").collect().asList() }.flatMap { list -> assertEquals(order2, list) Person.find("name = :name", sort2, with("name", "stef").map()) @@ -1290,20 +1200,12 @@ class TestEndpoint { }.flatMap { list -> assertEquals(order2, list) Person.list("name = :name", sort2, with("name", "stef").map()) - }.flatMap { list -> - assertEquals(order2, list) - Person.stream("name = :name", sort2, with("name", "stef").map()) - .collect().asList() }.flatMap { list -> assertEquals(order2, list) Person.find("name = :name", sort2, with("name", "stef")).list() }.flatMap { list -> assertEquals(order2, list) Person.list("name = :name", sort2, with("name", "stef")) - }.flatMap { list -> - assertEquals(order2, list) - Person.stream("name = :name", sort2, with("name", "stef")) - .collect().asList() } }.flatMap { Person.deleteAll() } .map { count -> diff --git a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java index e6c54a13562ae..926c9dd2d87c3 100644 --- a/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java +++ b/integration-tests/hibernate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/TestEndpoint.java @@ -23,12 +23,12 @@ import io.quarkus.hibernate.reactive.panache.Panache; import io.quarkus.hibernate.reactive.panache.PanacheQuery; +import io.quarkus.hibernate.reactive.panache.common.WithTransaction; import io.quarkus.hibernate.reactive.panache.common.runtime.ReactiveTransactional; import io.quarkus.panache.common.Page; import io.quarkus.panache.common.Parameters; import io.quarkus.panache.common.Sort; import io.quarkus.panache.common.exception.PanacheQueryException; -import io.smallrye.mutiny.Multi; import io.smallrye.mutiny.Uni; /** @@ -48,19 +48,9 @@ public Uni testModel() { return Person.findAll().list() .flatMap(persons -> { Assertions.assertEquals(0, persons.size()); - return Person.listAll(); }).flatMap(persons -> { Assertions.assertEquals(0, persons.size()); - - return collect(Person.findAll().stream()); - }).flatMap(personStream -> { - Assertions.assertEquals(0, personStream.size()); - - return collect(Person.streamAll()); - }).flatMap(personStream -> { - - Assertions.assertEquals(0, personStream.size()); return assertThrows(NoResultException.class, () -> Person.findAll().singleResult(), "singleResult should have thrown"); }).flatMap(v -> Person.findAll().firstResult()) @@ -102,16 +92,6 @@ public Uni testModel() { Assertions.assertEquals(1, persons.size()); Assertions.assertEquals(person, persons.get(0)); - return collect(Person.findAll().stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(Person.streamAll()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - return Person.findAll().firstResult(); }).flatMap(personResult -> { Assertions.assertEquals(person, personResult); @@ -178,31 +158,6 @@ public Uni testModel() { Assertions.assertEquals(1, persons.size()); Assertions.assertEquals(person, persons.get(0)); - return collect(Person.find("name = ?1", "stef").stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(Person.stream("name = ?1", "stef")); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(Person.stream("name = :name", Parameters.with("name", "stef").map())); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(Person.stream("name = :name", Parameters.with("name", "stef"))); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(Person.find("name", "stef").stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - return Person.find("name", "stef").firstResult(); }).flatMap(personResult -> { Assertions.assertEquals(person, personResult); @@ -415,10 +370,6 @@ public Uni testModel() { .map(v -> "OK"); } - private Uni> collect(Multi stream) { - return stream.collect().asList(); - } - private Uni testUpdate() { return makeSavedPerson("p1") .flatMap(v -> makeSavedPerson("p2")) @@ -636,10 +587,6 @@ private Uni testSorting() { }).flatMap(list -> { Assertions.assertEquals(order1, list); - return collect(Person. streamAll(sort1)); - }).flatMap(list -> { - Assertions.assertEquals(order1, list); - return Person.find("name", sort2, "stef").list(); }).flatMap(list -> { Assertions.assertEquals(order2, list); @@ -648,10 +595,6 @@ private Uni testSorting() { }).flatMap(list -> { Assertions.assertEquals(order2, list); - return collect(Person. stream("name", sort2, "stef")); - }).flatMap(list -> { - Assertions.assertEquals(order2, list); - return Person.find("name = :name", sort2, Parameters.with("name", "stef").map()).list(); }).flatMap(list -> { Assertions.assertEquals(order2, list); @@ -660,20 +603,11 @@ private Uni testSorting() { }).flatMap(list -> { Assertions.assertEquals(order2, list); - return collect( - Person. stream("name = :name", sort2, Parameters.with("name", "stef").map())); - }).flatMap(list -> { - Assertions.assertEquals(order2, list); - return Person.find("name = :name", sort2, Parameters.with("name", "stef")).list(); }).flatMap(list -> { Assertions.assertEquals(order2, list); return Person.list("name = :name", sort2, Parameters.with("name", "stef")); - }).flatMap(list -> { - Assertions.assertEquals(order2, list); - - return collect(Person. stream("name = :name", sort2, Parameters.with("name", "stef"))); }); }).flatMap(v -> Person.deleteAll()) .map(count -> { @@ -792,7 +726,7 @@ private Uni testPersistDao(PersistTest persistTest) { @Inject NamedQueryWith2QueriesRepository namedQueryWith2QueriesRepository; - @ReactiveTransactional + @WithTransaction @GET @Path("model-dao") public Uni testModelDao() { @@ -802,16 +736,8 @@ public Uni testModelDao() { return personDao.listAll(); }).flatMap(persons -> { - Assertions.assertEquals(0, persons.size()); - - return collect(personDao.findAll().stream()); - }).flatMap(personStream -> { - Assertions.assertEquals(0, personStream.size()); - - return collect(personDao.streamAll()); - }).flatMap(personStream -> { - Assertions.assertEquals(0, personStream.size()); + Assertions.assertEquals(0, persons.size()); return assertThrows(NoResultException.class, () -> personDao.findAll().singleResult(), "singleResult should have thrown"); }).flatMap(v -> personDao.findAll().firstResult()) @@ -853,16 +779,6 @@ public Uni testModelDao() { Assertions.assertEquals(1, persons.size()); Assertions.assertEquals(person, persons.get(0)); - return collect(personDao.findAll().stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(personDao.streamAll()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - return personDao.findAll().firstResult(); }).flatMap(personResult -> { Assertions.assertEquals(person, personResult); @@ -923,31 +839,6 @@ public Uni testModelDao() { Assertions.assertEquals(1, persons.size()); Assertions.assertEquals(person, persons.get(0)); - return collect(personDao.find("name = ?1", "stef").stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(personDao.stream("name = ?1", "stef")); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(personDao.stream("name = :name", Parameters.with("name", "stef").map())); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(personDao.stream("name = :name", Parameters.with("name", "stef"))); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - - return collect(personDao.find("name", "stef").stream()); - }).flatMap(persons -> { - Assertions.assertEquals(1, persons.size()); - Assertions.assertEquals(person, persons.get(0)); - return personDao.find("name", "stef").firstResult(); }).flatMap(personResult -> { Assertions.assertEquals(person, personResult); @@ -1517,7 +1408,7 @@ private void checkMethod(Class klass, String name, Class returnType, Class Assertions.assertEquals(returnType, method.getReturnType()); } - @ReactiveTransactional + @WithTransaction @GET @Path("model1") public Uni testModel1() { @@ -1545,7 +1436,7 @@ public Uni testModel1() { }); } - @ReactiveTransactional + @WithTransaction @GET @Path("model2") public Uni testModel2() { @@ -1562,7 +1453,7 @@ public Uni testModel2() { }); } - @ReactiveTransactional + @WithTransaction @GET @Path("projection1") public Uni testProjection() { @@ -1606,7 +1497,7 @@ public Uni testProjection() { }); } - @ReactiveTransactional + @WithTransaction @GET @Path("projection2") public Uni testProjection2() { @@ -1688,7 +1579,7 @@ public Uni testProjection2() { .replaceWith("OK"); } - @ReactiveTransactional + @WithTransaction @GET @Path("model3") public Uni testModel3() { @@ -1751,7 +1642,7 @@ public Uni testBug5885() { .map(v -> "OK"); } - @ReactiveTransactional + @WithTransaction @GET @Path("composite") public Uni testCompositeKey() { @@ -1813,7 +1704,7 @@ public Uni testBug7721() { .map(v -> "OK")); } - @ReactiveTransactional + @WithTransaction @GET @Path("8254") public Uni testBug8254() { @@ -1857,7 +1748,7 @@ public Uni testBug8254() { }); } - @ReactiveTransactional + @WithTransaction @GET @Path("9025") public Uni testBug9025() { @@ -1876,7 +1767,7 @@ public Uni testBug9025() { }); } - @ReactiveTransactional + @WithTransaction @GET @Path("9036") public Uni testBug9036() { @@ -1915,11 +1806,6 @@ public Uni testBug9036() { assertEquals(1, list.size()); assertEquals(livePerson, list.get(0)); - - return collect(query.stream()); - }).flatMap(list -> { - assertEquals(1, list.size()); - return query.firstResult(); }).flatMap(result -> { assertEquals(livePerson, result); @@ -1944,7 +1830,7 @@ public Uni testBug9036() { @GET @Path("testSortByNullPrecedence") - @ReactiveTransactional + @WithTransaction public Uni testSortByNullPrecedence() { return Person.deleteAll() .flatMap(v -> { From 574d5094c927056b0b57c5fabf141ef113974c1c Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 6 Feb 2023 11:37:59 +0100 Subject: [PATCH 232/250] Remove the Jakarta transformation infrastructure Doing it in a single commit so that we can easily find the relevant information in the future. --- bom/application/pom.xml | 64 -- build-parent/pom.xml | 28 - devtools/maven/pom.xml | 25 - extensions/agroal/runtime/pom.xml | 24 - extensions/arc/deployment/pom.xml | 24 - .../runtime/pom.xml | 24 - extensions/elytron-security/runtime/pom.xml | 24 - extensions/hal/runtime/pom.xml | 24 - extensions/hibernate-envers/runtime/pom.xml | 24 - extensions/hibernate-orm/runtime/pom.xml | 25 - extensions/hibernate-reactive/runtime/pom.xml | 24 - .../runtime/pom.xml | 24 - .../runtime/pom.xml | 24 - .../hibernate-validator/runtime/pom.xml | 25 - extensions/infinispan-client/runtime/pom.xml | 25 - extensions/jaeger/runtime/pom.xml | 24 - extensions/jaxb/runtime/pom.xml | 24 - extensions/jsonp/runtime/pom.xml | 24 - .../runtime/pom.xml | 25 - .../keycloak-admin-client/runtime/pom.xml | 25 - .../keycloak-authorization/runtime/pom.xml | 24 - extensions/kubernetes-client/runtime/pom.xml | 25 - extensions/mailer/runtime/pom.xml | 24 - extensions/narayana-jta/runtime/pom.xml | 24 - extensions/narayana-lra/runtime/pom.xml | 25 - extensions/oidc-client/deployment/pom.xml | 21 - extensions/oidc/deployment/pom.xml | 21 - .../runtime/pom.xml | 24 - .../hibernate-orm-panache/runtime/pom.xml | 26 - .../runtime/pom.xml | 27 - .../runtime/pom.xml | 26 - .../panache/rest-data-panache/runtime/pom.xml | 24 - .../rest-client-jackson/runtime/pom.xml | 24 - .../rest-client-jaxb/runtime/pom.xml | 25 - .../rest-client/runtime/pom.xml | 24 - .../resteasy-common/runtime/pom.xml | 25 - .../resteasy-jackson/runtime/pom.xml | 24 - .../resteasy-jaxb/runtime/pom.xml | 25 - .../resteasy-links/deployment/pom.xml | 24 - .../resteasy-links/runtime/pom.xml | 24 - .../resteasy-multipart/runtime/pom.xml | 24 - .../spi-deployment/pom.xml | 25 - extensions/scheduler/runtime/pom.xml | 24 - .../apicurio/avro/runtime/pom.xml | 26 - .../apicurio/common/runtime/pom.xml | 25 - extensions/security-webauthn/runtime/pom.xml | 24 - .../smallrye-opentracing/runtime/pom.xml | 24 - .../runtime/pom.xml | 25 - .../spring-web/core/common-runtime/pom.xml | 24 - .../resteasy-classic/runtime/pom.xml | 24 - independent-projects/arc/pom.xml | 37 - independent-projects/bootstrap/bom/pom.xml | 24 - independent-projects/bootstrap/pom.xml | 39 - independent-projects/enforcer-rules/pom.xml | 25 - .../extension-maven-plugin/pom.xml | 39 - independent-projects/ide-config/pom.xml | 25 - independent-projects/qute/pom.xml | 25 - .../client/processor/pom.xml | 25 - .../resteasy-reactive/client/runtime/pom.xml | 25 - .../common/processor/pom.xml | 25 - .../resteasy-reactive/common/runtime/pom.xml | 25 - .../resteasy-reactive/common/types/pom.xml | 24 - .../resteasy-reactive/pom.xml | 66 -- .../resteasy-reactive/server/jackson/pom.xml | 24 - .../resteasy-reactive/server/jsonb/pom.xml | 25 - .../server/processor/pom.xml | 24 - .../resteasy-reactive/server/runtime/pom.xml | 24 - .../resteasy-reactive/server/vertx/pom.xml | 25 - independent-projects/revapi/pom.xml | 25 - .../tools/devtools-common/pom.xml | 24 - independent-projects/tools/pom.xml | 39 - .../class-transformer/deployment/pom.xml | 24 - .../keycloak-authorization/pom.xml | 21 - .../quarkus-standard-way-kafka/pom.xml | 21 - .../kubernetes/quarkus-standard-way/pom.xml | 21 - integration-tests/maven/pom.xml | 21 - .../oidc-client-reactive/pom.xml | 21 - integration-tests/oidc-client/pom.xml | 21 - integration-tests/oidc-code-flow/pom.xml | 21 - integration-tests/oidc-tenancy/pom.xml | 21 - .../oidc-token-propagation/pom.xml | 21 - integration-tests/oidc/pom.xml | 21 - integration-tests/shared-library/pom.xml | 24 - .../smallrye-jwt-oidc-webapp/pom.xml | 21 - .../smallrye-jwt-token-propagation/pom.xml | 21 - jakarta/README.md | 177 ---- jakarta/jakarta-renames.properties | 158 ---- jakarta/jakarta-text-adoc.properties | 1 - jakarta/overrides/jaxb/JAXBSubstitutions.java | 107 --- .../rest-client/QuarkusRestClientBuilder.java | 860 ------------------ jakarta/prepare.sh | 34 - jakarta/rewrite.yml | 841 ----------------- jakarta/transform.sh | 399 -------- pom.xml | 41 - tcks/microprofile-metrics/optional/pom.xml | 26 - tcks/microprofile-metrics/rest/pom.xml | 25 - tcks/microprofile-openapi/pom.xml | 26 - tcks/pom.xml | 21 - test-framework/keycloak-server/pom.xml | 25 - test-framework/kubernetes-client/pom.xml | 25 - test-framework/openshift-client/pom.xml | 25 - 101 files changed, 4966 deletions(-) delete mode 100644 jakarta/README.md delete mode 100644 jakarta/jakarta-renames.properties delete mode 100644 jakarta/jakarta-text-adoc.properties delete mode 100644 jakarta/overrides/jaxb/JAXBSubstitutions.java delete mode 100644 jakarta/overrides/rest-client/QuarkusRestClientBuilder.java delete mode 100755 jakarta/prepare.sh delete mode 100644 jakarta/rewrite.yml delete mode 100755 jakarta/transform.sh diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 5b6144f12cd80..5899d69819804 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -6334,68 +6334,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.managed - io.quarkus.maven.javax.versions - io.quarkus.jakarta-versions - io.quarkus.jakarta-el - io.quarkus.jakarta-jaxrs-jaxb - io.quarkus.jakarta-security - io.quarkus.smallrye - io.quarkus.bom.resteasy-microprofile - io.quarkus.bom.resteasy-spring-web - io.quarkus.bom.resteasy-cdi - io.quarkus.jakarta-json - io.quarkus.keycloak-admin-client - io.quarkus.infinispan - - - - - - - - jakarta-rewrite-cleanup - - - jakarta-rewrite-cleanup - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - io.quarkus.jakarta-jaxrs-jaxb-cleanup - io.quarkus.jakarta-security-cleanup - io.quarkus.jakarta-json-cleanup - - - - - - - diff --git a/build-parent/pom.xml b/build-parent/pom.xml index d1d12aba0a97e..239a6e98215af 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -1283,33 +1283,5 @@ mcr.microsoft.com/azure-sql-edge:1.0.6 - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - io.quarkus.build-parent - io.quarkus.jakarta-json-cleanup - - - - - - diff --git a/devtools/maven/pom.xml b/devtools/maven/pom.xml index 839b86bce4462..1ccf4e43baf75 100644 --- a/devtools/maven/pom.xml +++ b/devtools/maven/pom.xml @@ -240,29 +240,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-json-switch - - - - - - - - diff --git a/extensions/agroal/runtime/pom.xml b/extensions/agroal/runtime/pom.xml index dad9e456b4293..1721b08c751c9 100644 --- a/extensions/agroal/runtime/pom.xml +++ b/extensions/agroal/runtime/pom.xml @@ -98,28 +98,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - - - - - - - diff --git a/extensions/arc/deployment/pom.xml b/extensions/arc/deployment/pom.xml index d3ae086a16991..c94e5e71adecf 100644 --- a/extensions/arc/deployment/pom.xml +++ b/extensions/arc/deployment/pom.xml @@ -70,28 +70,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.extensions.arc - - - - - - - diff --git a/extensions/elytron-security-properties-file/runtime/pom.xml b/extensions/elytron-security-properties-file/runtime/pom.xml index 1fff93e0a6590..cace75c796d46 100644 --- a/extensions/elytron-security-properties-file/runtime/pom.xml +++ b/extensions/elytron-security-properties-file/runtime/pom.xml @@ -86,28 +86,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-security-switch - - - - - - - diff --git a/extensions/elytron-security/runtime/pom.xml b/extensions/elytron-security/runtime/pom.xml index f72f64b88ff00..0e2eb4ad6ad34 100644 --- a/extensions/elytron-security/runtime/pom.xml +++ b/extensions/elytron-security/runtime/pom.xml @@ -100,28 +100,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-security-switch - - - - - - - diff --git a/extensions/hal/runtime/pom.xml b/extensions/hal/runtime/pom.xml index 7e5ca0cd3df41..d039cb3b17211 100644 --- a/extensions/hal/runtime/pom.xml +++ b/extensions/hal/runtime/pom.xml @@ -67,28 +67,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/hibernate-envers/runtime/pom.xml b/extensions/hibernate-envers/runtime/pom.xml index 629766711b228..700f9c46af6b2 100644 --- a/extensions/hibernate-envers/runtime/pom.xml +++ b/extensions/hibernate-envers/runtime/pom.xml @@ -81,28 +81,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - - - - - - - diff --git a/extensions/hibernate-orm/runtime/pom.xml b/extensions/hibernate-orm/runtime/pom.xml index 6606e900865f6..3ec6f51c661d2 100644 --- a/extensions/hibernate-orm/runtime/pom.xml +++ b/extensions/hibernate-orm/runtime/pom.xml @@ -166,29 +166,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - io.quarkus.jakarta-jaxb-switch - - - - - - - diff --git a/extensions/hibernate-reactive/runtime/pom.xml b/extensions/hibernate-reactive/runtime/pom.xml index f4f48e52338d0..f1142522a41ab 100644 --- a/extensions/hibernate-reactive/runtime/pom.xml +++ b/extensions/hibernate-reactive/runtime/pom.xml @@ -82,28 +82,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - - - - - - - diff --git a/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml b/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml index a701c04782af4..b85a5bc6e7930 100644 --- a/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml +++ b/extensions/hibernate-search-orm-coordination-outbox-polling/runtime/pom.xml @@ -56,28 +56,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-search-switch - - - - - - - diff --git a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml index 2f63595535d7c..4c589c34b08da 100644 --- a/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml +++ b/extensions/hibernate-search-orm-elasticsearch/runtime/pom.xml @@ -79,28 +79,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-search-switch - - - - - - - diff --git a/extensions/hibernate-validator/runtime/pom.xml b/extensions/hibernate-validator/runtime/pom.xml index e0cdc46659e27..04c16aaa433ac 100644 --- a/extensions/hibernate-validator/runtime/pom.xml +++ b/extensions/hibernate-validator/runtime/pom.xml @@ -126,29 +126,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-el-switch - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/infinispan-client/runtime/pom.xml b/extensions/infinispan-client/runtime/pom.xml index 6ed6bde6be56d..b4372d96f7970 100644 --- a/extensions/infinispan-client/runtime/pom.xml +++ b/extensions/infinispan-client/runtime/pom.xml @@ -169,29 +169,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.infinispan - - - - - - - - diff --git a/extensions/jaeger/runtime/pom.xml b/extensions/jaeger/runtime/pom.xml index 3f02d002fe8ac..3127ed541f8b5 100644 --- a/extensions/jaeger/runtime/pom.xml +++ b/extensions/jaeger/runtime/pom.xml @@ -88,28 +88,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/jaxb/runtime/pom.xml b/extensions/jaxb/runtime/pom.xml index 253895f4381bc..f9bfc26a0249f 100644 --- a/extensions/jaxb/runtime/pom.xml +++ b/extensions/jaxb/runtime/pom.xml @@ -69,28 +69,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - diff --git a/extensions/jsonp/runtime/pom.xml b/extensions/jsonp/runtime/pom.xml index 898f6c578b3bd..649e4da7478e6 100644 --- a/extensions/jsonp/runtime/pom.xml +++ b/extensions/jsonp/runtime/pom.xml @@ -55,28 +55,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-json-switch - - - - - - - diff --git a/extensions/keycloak-admin-client-reactive/runtime/pom.xml b/extensions/keycloak-admin-client-reactive/runtime/pom.xml index 71044ae353d3f..187025e73e797 100644 --- a/extensions/keycloak-admin-client-reactive/runtime/pom.xml +++ b/extensions/keycloak-admin-client-reactive/runtime/pom.xml @@ -96,29 +96,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.keycloak-admin-client - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/keycloak-admin-client/runtime/pom.xml b/extensions/keycloak-admin-client/runtime/pom.xml index 0df3021cf55b8..6e02535f0a76a 100644 --- a/extensions/keycloak-admin-client/runtime/pom.xml +++ b/extensions/keycloak-admin-client/runtime/pom.xml @@ -120,29 +120,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.keycloak-admin-client - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/keycloak-authorization/runtime/pom.xml b/extensions/keycloak-authorization/runtime/pom.xml index 6b5a2dea22a3f..c3aa7fe23d1ff 100644 --- a/extensions/keycloak-authorization/runtime/pom.xml +++ b/extensions/keycloak-authorization/runtime/pom.xml @@ -80,28 +80,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/kubernetes-client/runtime/pom.xml b/extensions/kubernetes-client/runtime/pom.xml index 83f098136304d..3af70c66b044d 100644 --- a/extensions/kubernetes-client/runtime/pom.xml +++ b/extensions/kubernetes-client/runtime/pom.xml @@ -97,29 +97,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - - diff --git a/extensions/mailer/runtime/pom.xml b/extensions/mailer/runtime/pom.xml index 58b54d7a95fda..c41ef93492f26 100644 --- a/extensions/mailer/runtime/pom.xml +++ b/extensions/mailer/runtime/pom.xml @@ -87,28 +87,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/narayana-jta/runtime/pom.xml b/extensions/narayana-jta/runtime/pom.xml index 6a9caf4cbd5fc..c0fc1bff3b037 100644 --- a/extensions/narayana-jta/runtime/pom.xml +++ b/extensions/narayana-jta/runtime/pom.xml @@ -113,28 +113,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - - - - - - - diff --git a/extensions/narayana-lra/runtime/pom.xml b/extensions/narayana-lra/runtime/pom.xml index e850b4c6e592c..ef5fcdd8154e4 100644 --- a/extensions/narayana-lra/runtime/pom.xml +++ b/extensions/narayana-lra/runtime/pom.xml @@ -87,29 +87,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/oidc-client/deployment/pom.xml b/extensions/oidc-client/deployment/pom.xml index f543483f1fc23..bf898cb715317 100644 --- a/extensions/oidc-client/deployment/pom.xml +++ b/extensions/oidc-client/deployment/pom.xml @@ -235,26 +235,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/extensions/oidc/deployment/pom.xml b/extensions/oidc/deployment/pom.xml index 63df4b39d5ef3..78334a851e1d3 100644 --- a/extensions/oidc/deployment/pom.xml +++ b/extensions/oidc/deployment/pom.xml @@ -153,26 +153,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml b/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml index a9fe8b3c162ba..578d057aceefd 100644 --- a/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml @@ -185,28 +185,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.hibernate-orm-narayana-switch - - - - - - - diff --git a/extensions/panache/hibernate-orm-panache/runtime/pom.xml b/extensions/panache/hibernate-orm-panache/runtime/pom.xml index 4a708c4966046..65857115b52f4 100644 --- a/extensions/panache/hibernate-orm-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-orm-panache/runtime/pom.xml @@ -109,30 +109,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.hibernate-orm-narayana-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml index c1b27a5186537..5d59ded747275 100644 --- a/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml @@ -202,31 +202,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.hibernate-orm-narayana-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - - diff --git a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml index ca85b7e664c57..a85e3fbbec663 100644 --- a/extensions/panache/hibernate-reactive-panache/runtime/pom.xml +++ b/extensions/panache/hibernate-reactive-panache/runtime/pom.xml @@ -117,30 +117,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.hibernate-orm-narayana-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/panache/rest-data-panache/runtime/pom.xml b/extensions/panache/rest-data-panache/runtime/pom.xml index c905319dfba34..eb85730cf9334 100644 --- a/extensions/panache/rest-data-panache/runtime/pom.xml +++ b/extensions/panache/rest-data-panache/runtime/pom.xml @@ -86,28 +86,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml b/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml index 9208f6581a8b0..fac53f0dd0636 100644 --- a/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml @@ -70,28 +70,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - diff --git a/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml b/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml index 0cceee986a1aa..2f63d341234dd 100644 --- a/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml @@ -61,29 +61,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/resteasy-classic/rest-client/runtime/pom.xml b/extensions/resteasy-classic/rest-client/runtime/pom.xml index 2fbf536881bc5..a686b72ff9d3c 100644 --- a/extensions/resteasy-classic/rest-client/runtime/pom.xml +++ b/extensions/resteasy-classic/rest-client/runtime/pom.xml @@ -129,28 +129,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.rest-client - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-common/runtime/pom.xml b/extensions/resteasy-classic/resteasy-common/runtime/pom.xml index 3b5fcc8cfd91c..f9419bb6f8dc7 100644 --- a/extensions/resteasy-classic/resteasy-common/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-common/runtime/pom.xml @@ -133,29 +133,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.resteasy-common - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml b/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml index 25749f3804871..2ba0c70529ccb 100644 --- a/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-jackson/runtime/pom.xml @@ -75,28 +75,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml b/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml index cb7fba02c5f17..255e3b9648662 100644 --- a/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-jaxb/runtime/pom.xml @@ -74,29 +74,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-links/deployment/pom.xml b/extensions/resteasy-classic/resteasy-links/deployment/pom.xml index ceb9252d73c0c..fa714c1f5e625 100644 --- a/extensions/resteasy-classic/resteasy-links/deployment/pom.xml +++ b/extensions/resteasy-classic/resteasy-links/deployment/pom.xml @@ -60,28 +60,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-el-switch - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-links/runtime/pom.xml b/extensions/resteasy-classic/resteasy-links/runtime/pom.xml index 7757eeb11a623..ab01673fb6366 100644 --- a/extensions/resteasy-classic/resteasy-links/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-links/runtime/pom.xml @@ -85,28 +85,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml b/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml index 60fceb672b5db..117e52ceb69ef 100644 --- a/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml +++ b/extensions/resteasy-classic/resteasy-multipart/runtime/pom.xml @@ -74,28 +74,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - - diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml index ee5ecf62f34bd..99606445d41cd 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-common/spi-deployment/pom.xml @@ -22,29 +22,4 @@ jakarta.ws.rs-api - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/extensions/scheduler/runtime/pom.xml b/extensions/scheduler/runtime/pom.xml index d2bbc8257e621..5a297c05df81a 100644 --- a/extensions/scheduler/runtime/pom.xml +++ b/extensions/scheduler/runtime/pom.xml @@ -61,28 +61,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-el-switch - - - - - - - diff --git a/extensions/schema-registry/apicurio/avro/runtime/pom.xml b/extensions/schema-registry/apicurio/avro/runtime/pom.xml index 3eab1ddf7b99c..9cfafe29bd518 100644 --- a/extensions/schema-registry/apicurio/avro/runtime/pom.xml +++ b/extensions/schema-registry/apicurio/avro/runtime/pom.xml @@ -62,30 +62,4 @@ - - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.exclude-javax-jaxrs - - - - - - - - diff --git a/extensions/schema-registry/apicurio/common/runtime/pom.xml b/extensions/schema-registry/apicurio/common/runtime/pom.xml index b14f017cb2585..5e04248f4f574 100644 --- a/extensions/schema-registry/apicurio/common/runtime/pom.xml +++ b/extensions/schema-registry/apicurio/common/runtime/pom.xml @@ -53,29 +53,4 @@ true - - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.exclude-javax-jaxrs - - - - - - - diff --git a/extensions/security-webauthn/runtime/pom.xml b/extensions/security-webauthn/runtime/pom.xml index 5ecfbe27820c9..8985e30c5ec8c 100644 --- a/extensions/security-webauthn/runtime/pom.xml +++ b/extensions/security-webauthn/runtime/pom.xml @@ -66,28 +66,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/smallrye-opentracing/runtime/pom.xml b/extensions/smallrye-opentracing/runtime/pom.xml index 8d8916cef1a72..991ad47e2eba5 100644 --- a/extensions/smallrye-opentracing/runtime/pom.xml +++ b/extensions/smallrye-opentracing/runtime/pom.xml @@ -107,28 +107,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/spring-cloud-config-client/runtime/pom.xml b/extensions/spring-cloud-config-client/runtime/pom.xml index ed577fcc0b69d..ec47f9fb1fc03 100644 --- a/extensions/spring-cloud-config-client/runtime/pom.xml +++ b/extensions/spring-cloud-config-client/runtime/pom.xml @@ -112,29 +112,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/extensions/spring-web/core/common-runtime/pom.xml b/extensions/spring-web/core/common-runtime/pom.xml index 5333d7c12395c..8c1e2c5776518 100644 --- a/extensions/spring-web/core/common-runtime/pom.xml +++ b/extensions/spring-web/core/common-runtime/pom.xml @@ -39,28 +39,4 @@ quarkus-spring-context-api - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/extensions/spring-web/resteasy-classic/runtime/pom.xml b/extensions/spring-web/resteasy-classic/runtime/pom.xml index 52896d906c0aa..3d9da2b6bd54c 100644 --- a/extensions/spring-web/resteasy-classic/runtime/pom.xml +++ b/extensions/spring-web/resteasy-classic/runtime/pom.xml @@ -63,28 +63,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.resteasy-spring-web - - - - - - - diff --git a/independent-projects/arc/pom.xml b/independent-projects/arc/pom.xml index 289d0292e34b7..028b5350d8882 100644 --- a/independent-projects/arc/pom.xml +++ b/independent-projects/arc/pom.xml @@ -477,43 +477,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-versions - - - - - - diff --git a/independent-projects/bootstrap/bom/pom.xml b/independent-projects/bootstrap/bom/pom.xml index 67df74fdc018c..21c3c6981d5de 100644 --- a/independent-projects/bootstrap/bom/pom.xml +++ b/independent-projects/bootstrap/bom/pom.xml @@ -437,28 +437,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.allow - io.quarkus.maven.javax.managed - - - - - - - diff --git a/independent-projects/bootstrap/pom.xml b/independent-projects/bootstrap/pom.xml index d7ae1cbad26ba..6b1b835d9c06e 100644 --- a/independent-projects/bootstrap/pom.xml +++ b/independent-projects/bootstrap/pom.xml @@ -402,44 +402,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-versions - io.quarkus.maven.javax.versions - io.quarkus.smallrye - - - - - - diff --git a/independent-projects/enforcer-rules/pom.xml b/independent-projects/enforcer-rules/pom.xml index 79560a1981ac3..4d2b5d952299d 100644 --- a/independent-projects/enforcer-rules/pom.xml +++ b/independent-projects/enforcer-rules/pom.xml @@ -349,30 +349,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - diff --git a/independent-projects/extension-maven-plugin/pom.xml b/independent-projects/extension-maven-plugin/pom.xml index 29ce4f5a25cfa..999b87ff16c0f 100644 --- a/independent-projects/extension-maven-plugin/pom.xml +++ b/independent-projects/extension-maven-plugin/pom.xml @@ -520,44 +520,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-versions - io.quarkus.maven.javax.versions - io.quarkus.smallrye - - - - - - diff --git a/independent-projects/ide-config/pom.xml b/independent-projects/ide-config/pom.xml index 796b4347ec106..54de602613b3b 100644 --- a/independent-projects/ide-config/pom.xml +++ b/independent-projects/ide-config/pom.xml @@ -172,31 +172,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - diff --git a/independent-projects/qute/pom.xml b/independent-projects/qute/pom.xml index 3b50866e86d90..964f323b1db06 100644 --- a/independent-projects/qute/pom.xml +++ b/independent-projects/qute/pom.xml @@ -400,31 +400,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - diff --git a/independent-projects/resteasy-reactive/client/processor/pom.xml b/independent-projects/resteasy-reactive/client/processor/pom.xml index bf6cbab1028db..548d3d4d05a90 100644 --- a/independent-projects/resteasy-reactive/client/processor/pom.xml +++ b/independent-projects/resteasy-reactive/client/processor/pom.xml @@ -68,29 +68,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/client/runtime/pom.xml b/independent-projects/resteasy-reactive/client/runtime/pom.xml index 9855adf1df501..efef7d34efad3 100644 --- a/independent-projects/resteasy-reactive/client/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/client/runtime/pom.xml @@ -61,29 +61,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/common/processor/pom.xml b/independent-projects/resteasy-reactive/common/processor/pom.xml index 6f185848d2939..edb7fd84aaf92 100644 --- a/independent-projects/resteasy-reactive/common/processor/pom.xml +++ b/independent-projects/resteasy-reactive/common/processor/pom.xml @@ -62,29 +62,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/common/runtime/pom.xml b/independent-projects/resteasy-reactive/common/runtime/pom.xml index 2447d17a34748..f2f734993f3d7 100644 --- a/independent-projects/resteasy-reactive/common/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/common/runtime/pom.xml @@ -65,29 +65,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - io.quarkus.jakarta-json-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/common/types/pom.xml b/independent-projects/resteasy-reactive/common/types/pom.xml index b7f19951dc69c..8c846d3b6a63c 100644 --- a/independent-projects/resteasy-reactive/common/types/pom.xml +++ b/independent-projects/resteasy-reactive/common/types/pom.xml @@ -20,28 +20,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/pom.xml b/independent-projects/resteasy-reactive/pom.xml index 2dd7979f076ec..a41774327e1f5 100644 --- a/independent-projects/resteasy-reactive/pom.xml +++ b/independent-projects/resteasy-reactive/pom.xml @@ -735,72 +735,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-versions - io.quarkus.jakarta-jaxrs-jaxb - io.quarkus.jakarta-json - - - - - - - - jakarta-rewrite-cleanup - - - jakarta-rewrite-cleanup - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - io.quarkus.jakarta-jaxrs-jaxb-cleanup - io.quarkus.jakarta-json-cleanup - - - - - - diff --git a/independent-projects/resteasy-reactive/server/jackson/pom.xml b/independent-projects/resteasy-reactive/server/jackson/pom.xml index 152416c4b6f01..4e26135ad5433 100644 --- a/independent-projects/resteasy-reactive/server/jackson/pom.xml +++ b/independent-projects/resteasy-reactive/server/jackson/pom.xml @@ -74,28 +74,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/server/jsonb/pom.xml b/independent-projects/resteasy-reactive/server/jsonb/pom.xml index 5084266ca6829..9e4bc57cc277a 100644 --- a/independent-projects/resteasy-reactive/server/jsonb/pom.xml +++ b/independent-projects/resteasy-reactive/server/jsonb/pom.xml @@ -78,29 +78,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - io.quarkus.jakarta-json-cleanup - - - - - - - - diff --git a/independent-projects/resteasy-reactive/server/processor/pom.xml b/independent-projects/resteasy-reactive/server/processor/pom.xml index 6eee986b3064e..954dd53e6e02f 100644 --- a/independent-projects/resteasy-reactive/server/processor/pom.xml +++ b/independent-projects/resteasy-reactive/server/processor/pom.xml @@ -81,28 +81,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/server/runtime/pom.xml b/independent-projects/resteasy-reactive/server/runtime/pom.xml index 0e8f945c40561..30c15219f74db 100644 --- a/independent-projects/resteasy-reactive/server/runtime/pom.xml +++ b/independent-projects/resteasy-reactive/server/runtime/pom.xml @@ -54,28 +54,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/independent-projects/resteasy-reactive/server/vertx/pom.xml b/independent-projects/resteasy-reactive/server/vertx/pom.xml index c6f0e316761de..4e4ea50e5e650 100644 --- a/independent-projects/resteasy-reactive/server/vertx/pom.xml +++ b/independent-projects/resteasy-reactive/server/vertx/pom.xml @@ -111,29 +111,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - io.quarkus.jakarta-jaxb-switch - - - - - - - - diff --git a/independent-projects/revapi/pom.xml b/independent-projects/revapi/pom.xml index 63847e55eb2f0..693cd2f093734 100644 --- a/independent-projects/revapi/pom.xml +++ b/independent-projects/revapi/pom.xml @@ -98,30 +98,5 @@ true - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - diff --git a/independent-projects/tools/devtools-common/pom.xml b/independent-projects/tools/devtools-common/pom.xml index c2805f5cac5db..d60ebfeb39e54 100644 --- a/independent-projects/tools/devtools-common/pom.xml +++ b/independent-projects/tools/devtools-common/pom.xml @@ -120,28 +120,4 @@ 2.0.1 - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.allow - - - - - - - diff --git a/independent-projects/tools/pom.xml b/independent-projects/tools/pom.xml index 3a23177e80ffb..eeb96c809d4ab 100644 --- a/independent-projects/tools/pom.xml +++ b/independent-projects/tools/pom.xml @@ -523,44 +523,5 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.managed - io.quarkus.maven.javax.versions - io.quarkus.jakarta-versions - - - - - - diff --git a/integration-tests/class-transformer/deployment/pom.xml b/integration-tests/class-transformer/deployment/pom.xml index c3b09d8bfe0c9..1500dc2e6129b 100644 --- a/integration-tests/class-transformer/deployment/pom.xml +++ b/integration-tests/class-transformer/deployment/pom.xml @@ -44,28 +44,4 @@ - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - - diff --git a/integration-tests/keycloak-authorization/pom.xml b/integration-tests/keycloak-authorization/pom.xml index c2ad8eeac7c0a..89355bb377ee7 100644 --- a/integration-tests/keycloak-authorization/pom.xml +++ b/integration-tests/keycloak-authorization/pom.xml @@ -182,27 +182,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.keycloak-admin-client - - - - - - diff --git a/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml b/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml index 1b6ac8e2d05df..0d755826914b1 100644 --- a/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml +++ b/integration-tests/kubernetes/quarkus-standard-way-kafka/pom.xml @@ -222,27 +222,6 @@ true - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - diff --git a/integration-tests/kubernetes/quarkus-standard-way/pom.xml b/integration-tests/kubernetes/quarkus-standard-way/pom.xml index 684082bf762d4..becd9466f2c8f 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/pom.xml +++ b/integration-tests/kubernetes/quarkus-standard-way/pom.xml @@ -247,27 +247,6 @@ true - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - diff --git a/integration-tests/maven/pom.xml b/integration-tests/maven/pom.xml index 61a71dc9f1e43..b40f5ad482b02 100644 --- a/integration-tests/maven/pom.xml +++ b/integration-tests/maven/pom.xml @@ -184,26 +184,5 @@ true - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - diff --git a/integration-tests/oidc-client-reactive/pom.xml b/integration-tests/oidc-client-reactive/pom.xml index 00b772c39d080..ba1cbd1174b17 100644 --- a/integration-tests/oidc-client-reactive/pom.xml +++ b/integration-tests/oidc-client-reactive/pom.xml @@ -216,27 +216,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/oidc-client/pom.xml b/integration-tests/oidc-client/pom.xml index 27039ffc402ec..0d946cb01900c 100644 --- a/integration-tests/oidc-client/pom.xml +++ b/integration-tests/oidc-client/pom.xml @@ -269,27 +269,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/oidc-code-flow/pom.xml b/integration-tests/oidc-code-flow/pom.xml index 44b0a5be19815..32103961c4bc2 100644 --- a/integration-tests/oidc-code-flow/pom.xml +++ b/integration-tests/oidc-code-flow/pom.xml @@ -224,27 +224,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/oidc-tenancy/pom.xml b/integration-tests/oidc-tenancy/pom.xml index 8bc14a0320453..3dd069ed3efd7 100644 --- a/integration-tests/oidc-tenancy/pom.xml +++ b/integration-tests/oidc-tenancy/pom.xml @@ -205,27 +205,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/oidc-token-propagation/pom.xml b/integration-tests/oidc-token-propagation/pom.xml index 3946dc4513eaa..faae12b1cc214 100644 --- a/integration-tests/oidc-token-propagation/pom.xml +++ b/integration-tests/oidc-token-propagation/pom.xml @@ -189,27 +189,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/oidc/pom.xml b/integration-tests/oidc/pom.xml index 226501ea37986..8e31591d1d9ed 100644 --- a/integration-tests/oidc/pom.xml +++ b/integration-tests/oidc/pom.xml @@ -191,27 +191,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/shared-library/pom.xml b/integration-tests/shared-library/pom.xml index 555c19ca29b32..1090242a76e9b 100644 --- a/integration-tests/shared-library/pom.xml +++ b/integration-tests/shared-library/pom.xml @@ -25,28 +25,4 @@ jakarta.ws.rs-api - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/integration-tests/smallrye-jwt-oidc-webapp/pom.xml b/integration-tests/smallrye-jwt-oidc-webapp/pom.xml index 2aa9cfa6aa79c..d8e3343d5ab5b 100644 --- a/integration-tests/smallrye-jwt-oidc-webapp/pom.xml +++ b/integration-tests/smallrye-jwt-oidc-webapp/pom.xml @@ -266,27 +266,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/integration-tests/smallrye-jwt-token-propagation/pom.xml b/integration-tests/smallrye-jwt-token-propagation/pom.xml index 947d08bb5abba..8334ede03074c 100644 --- a/integration-tests/smallrye-jwt-token-propagation/pom.xml +++ b/integration-tests/smallrye-jwt-token-propagation/pom.xml @@ -283,27 +283,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-switch - - - - - - diff --git a/jakarta/README.md b/jakarta/README.md deleted file mode 100644 index 36748c3913f3a..0000000000000 --- a/jakarta/README.md +++ /dev/null @@ -1,177 +0,0 @@ -# Jakarta migration - -## Status - -You can follow the status of the Jakarta migration in [the dedicated project tab](https://github.com/orgs/quarkusio/projects/13/views/20). - -The build status is published in an [issue with a full report](https://github.com/quarkusio/quarkus/issues/25363). -Just scroll to the bottom for the latest. - -## Testing - -To test the Jakarta work, there are two approaches: - -- Use the snapshots we publish nightly -- Build the `jakarta-rewrite` branch yourself - -### Using snapshots - -Snapshots of the `jakarta-rewrite` branch containing the transformed artifacts are published nightly on https://s01.oss.sonatype.org/content/repositories/snapshots/ . - -Add the following snippet to your `pom.xml` to enable the s01 OSSRH snapshots repository: - -```xml - - - s01 OSSRH Snapshots - s01-ossrh-snapshots-repo - https://s01.oss.sonatype.org/content/repositories/snapshots/ - default - - false - always - warn - - - true - daily - fail - - - -``` - -The published artifacts have the `999-jakarta-SNAPSHOT` version so make sure to use this version in your projects. - -### Build locally - -Then you can build the `jakarta-rewrite` branch locally: - -``` -git checkout jakarta-rewrite -./mvnw -Dquickly -``` - -The installed artifacts have the `999-jakarta-SNAPSHOT` version so make sure to use this version in your projects. - -## Transforming - -This directory contains scripts and configuration files to automate the migration to Jakarta EE 10 soon. - -This is a work in progress and some pieces are still missing (JPA 3.1 and Hibernate ORM 6 for instance). - -### jakarta/transform.sh - -`jakarta/transform.sh` is the main script to run. -It has to be run from the root of the Quarkus repository. - -It is highly recommended to run the script in a specific tree (or at least a specific branch) as it will commit the changes to the current branch. - -If you don't want to run the extension tests and just want to check that the build is working, you can run: - -``` -REWRITE_NO_TESTS=true jakarta/transform.sh -``` - -If you are offline and can't fetch the external projects, do: -``` -REWRITE_OFFLINE=true jakarta/transform.sh -``` -Obviously, you need to have run a full build before. -Also keep in mind you should run a full build from time to time to get the potential updates to OpenRewrite. - -You can combine both `REWRITE_NO_TESTS` and `REWRITE_OFFLINE` in a single run if that fits you. - -It consists of several steps that leverage various tools: - -- [OpenRewrite](https://github.com/openrewrite/rewrite) - rewrites the POM files -- [Eclipse Transformer](https://projects.eclipse.org/projects/technology.transformer) - rewrites the classes - -Note that this script also builds: - -- A patched version of OpenRewrite (while waiting for integration of our patches) -- A patched version of the Rewrite Maven Plugin (to point to the patched OpenRewrite version) -- A patched version of the Kotlin Maven Plugin (to allow skipping the `main` compilation, it's required for the OpenRewrite run) - -### Approach - -#### OpenRewrite - -The OpenRewrite transformation is done in one unique step to alleviate the dependency issues we had before switching to this approach. -You don't need to run OpenRewrite for the modules you add to `transform.sh`, you just need to adjust the configuration. - -OpenRewrite recipes are declared in the `jakarta/rewrite.yml` file. - -Documentation for writing recipes can be found: - -- In the [official documentation](https://docs.openrewrite.org/reference/recipes/maven) -- In the [source for those not already released](https://github.com/gsmet/rewrite/tree/main/rewrite-maven/src/main/java/org/openrewrite/maven) (things are very simple there and well documented in the source) - -Recipes are not applied on all POM files, you need to declare the ones you want to apply to a given target POM when changes are necessary. -Note that in most cases, you don't need to apply any changes. - -The active recipes have to be declared in the target POM with a `plugin` block in the `` section similar to: - -```xml - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.managed - io.quarkus.maven.javax.versions - io.quarkus.jakarta-versions - - - -``` - -If you declare the `rewrite-maven-plugin` in a POM that is a parent POM, make sure the plugin is not inherited by adding `false` to the `` block -as it's highly probable you don't want to apply the same rule to the child POM files: - -```xml - - false - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.maven.javax.managed - io.quarkus.maven.javax.versions - io.quarkus.jakarta-versions - - - -``` - -:warning: Not all recipes are equal and please be extremely careful when adjusting existing recipes. - -In particular, be extremely care with the `io.quarkus.jakarta-versions` recipe: - -- It is used for several POM files -- It shouldn't add any content that is not common to all these POM files (for instance, adding some new dependencies is forbidden as there is a good chance you don't want to add them in all the POM adjusted by `io.quarkus.jakarta-versions`) -- If you need to go further than just updating versions, create a specific recipe such as `io.quarkus.jakarta-jaxrs-jaxb` - -#### Eclipse Transformer - -The transformer phase is done at a more granular level but, typically, for now we transform the whole `extensions` subdirectory at once. -There's not much to say about this phase. -AFAICS, it just works. - -### Experimenting - -It is recommended to do the experiments in a separate copy of the Quarkus repository and: - -- do the adjustments in a work branch of your original Quarkus repository, for instance `jakarta-work` -- commit in this branch -- then sync the branch and run the migration scripts in the separate `quarkus-jakarta` repository - -That way, you can easily reinitialize your `quarkus-jakarta` copy after having attempted a migration. - -Note that the `transform.sh` script replaces the `999-SNAPSHOT` version with `999-jakarta-SNAPSHOT` and will remove all `999-jakarta-SNAPSHOT` Quarkus artifacts that are in your local Maven repository. - -You can for instance use the following approach: - -- create a `quarkus-jakarta` copy of your `quarkus` repository -- add a `jakarta` remote to this `quarkus-jakarta` copy: `git remote add jakarta ../quarkus/` -- then you can run the following command to perform a full migration: `rm -rf ~/.m2/repository/io/quarkus && git checkout -- . && git pull jakarta jakarta-work && ./jakarta/transform.sh ; paplay /usr/share/sounds/freedesktop/stereo/complete.oga` (the last part plays a sound on Linux when done, if you use macOS, remove it) diff --git a/jakarta/jakarta-renames.properties b/jakarta/jakarta-renames.properties deleted file mode 100644 index 5a84f1fe33d02..0000000000000 --- a/jakarta/jakarta-renames.properties +++ /dev/null @@ -1,158 +0,0 @@ -# Default jakarta configuration for package renames. -# -# Format: -# currentPackageName=newPackageName -# -# The current package name may contain a ".*" suffix. The suffix indicates -# that sub-packages are to be matched. For example: -# -# javax.servlet.*=jakartax.servlet -# -# This will cause sub-packages like javax.servlet.annotation -# to be replaced with jakartax.servlet.annotation -# -# By default, sub-packages are not updated. -# -# Package renames apply in several ways: -# Class references in .class files are updated. -# Qualified class names which appear in java string constants in .class files are updated. -# Qualified resource references which appear in java string constants in .class files are updated. -# Package references in manifest (MANIFEST.MF) and feature manifest (featureName.mf) files are updated. -# - -javax.activation=jakarta.activation -javax.annotation.security=jakarta.annotation.security -javax.annotation.sql=jakarta.annotation.sql -javax.annotation=jakarta.annotation -javax.batch.api.chunk.listener=jakarta.batch.api.chunk.listener -javax.batch.api.chunk=jakarta.batch.api.chunk -javax.batch.api.listener=jakarta.batch.api.listener -javax.batch.api.partition=jakarta.batch.api.partition -javax.batch.api=jakarta.batch.api -javax.batch.operations=jakarta.batch.operations -javax.batch.runtime.context=jakarta.batch.runtime.context -javax.batch.runtime=jakarta.batch.runtime -javax.decorator=jakarta.decorator -javax.ejb.embeddable=jakarta.ejb.embeddable -javax.ejb.spi=jakarta.ejb.spi -javax.ejb=jakarta.ejb -javax.el=jakarta.el -javax.enterprise.concurrent=jakarta.enterprise.concurrent -javax.enterprise.context.control=jakarta.enterprise.context.control -javax.enterprise.context.spi=jakarta.enterprise.context.spi -javax.enterprise.context=jakarta.enterprise.context -javax.enterprise.event=jakarta.enterprise.event -javax.enterprise.inject.literal=jakarta.enterprise.inject.literal -javax.enterprise.inject.se=jakarta.enterprise.inject.se -javax.enterprise.inject.spi.configurator=jakarta.enterprise.inject.spi.configurator -javax.enterprise.inject.spi=jakarta.enterprise.inject.spi -javax.enterprise.inject=jakarta.enterprise.inject -javax.enterprise.util=jakarta.enterprise.util -javax.faces.annotation=jakarta.faces.annotation -javax.faces.application=jakarta.faces.application -javax.faces.bean=jakarta.faces.bean -javax.faces.component.behavior=jakarta.faces.component.behavior -javax.faces.component.html=jakarta.faces.component.html -javax.faces.component.search=jakarta.faces.component.search -javax.faces.component.visit=jakarta.faces.component.visit -javax.faces.component=jakarta.faces.component -javax.faces.context=jakarta.faces.context -javax.faces.convert=jakarta.faces.convert -javax.faces.el=jakarta.faces.el -javax.faces.event=jakarta.faces.event -javax.faces.flow.builder=jakarta.faces.flow.builder -javax.faces.flow=jakarta.faces.flow -javax.faces.lifecycle=jakarta.faces.lifecycle -javax.faces.model=jakarta.faces.model -javax.faces.push=jakarta.faces.push -javax.faces.render=jakarta.faces.render -javax.faces.validator=jakarta.faces.validator -javax.faces.view.facelets=jakarta.faces.view.facelets -javax.faces.view=jakarta.faces.view -javax.faces.webapp=jakarta.faces.webapp -javax.faces=jakarta.faces -javax.inject=jakarta.inject -javax.interceptor=jakarta.interceptor -javax.jms=jakarta.jms -javax.json.bind.adapter=jakarta.json.bind.adapter -javax.json.bind.annotation=jakarta.json.bind.annotation -javax.json.bind.config=jakarta.json.bind.config -javax.json.bind.serializer=jakarta.json.bind.serializer -javax.json.bind.spi=jakarta.json.bind.spi -javax.json.bind=jakarta.json.bind -javax.json.spi=jakarta.json.spi -javax.json.stream=jakarta.json.stream -javax.json=jakarta.json -javax.jws.soap=jakarta.jws.soap -javax.jws=jakarta.jws -javax.mail.event=jakarta.mail.event -javax.mail.internet=jakarta.mail.internet -javax.mail.search=jakarta.mail.search -javax.mail.util=jakarta.mail.util -javax.mail=jakarta.mail -javax.persistence.criteria=jakarta.persistence.criteria -javax.persistence.metamodel=jakarta.persistence.metamodel -javax.persistence.spi=jakarta.persistence.spi -javax.persistence=jakarta.persistence -javax.resource.cci=jakarta.resource.cci -javax.resource.spi.endpoint=jakarta.resource.spi.endpoint -javax.resource.spi.security=jakarta.resource.spi.security -javax.resource.spi.work=jakarta.resource.spi.work -javax.resource.spi=jakarta.resource.spi -javax.resource=jakarta.resource -javax.security.auth.message.callback=jakarta.security.auth.message.callback -javax.security.auth.message.config=jakarta.security.auth.message.config -javax.security.auth.message.module=jakarta.security.auth.message.module -javax.security.auth.message=jakarta.security.auth.message -javax.security.enterprise.authentication.mechanism.http=jakarta.security.enterprise.authentication.mechanism.http -javax.security.enterprise.credential=jakarta.security.enterprise.credential -javax.security.enterprise.identitystore=jakarta.security.enterprise.identitystore -javax.security.enterprise=jakarta.security.enterprise -javax.security.jacc=jakarta.security.jacc -javax.servlet.annotation=jakarta.servlet.annotation -javax.servlet.descriptor=jakarta.servlet.descriptor -javax.servlet.http=jakarta.servlet.http -javax.servlet.jsp.el=jakarta.servlet.jsp.el -javax.servlet.jsp.jstl.core=jakarta.servlet.jsp.jstl.core -javax.servlet.jsp.jstl.fmt=jakarta.servlet.jsp.jstl.fmt -javax.servlet.jsp.jstl.sql=jakarta.servlet.jsp.jstl.sql -javax.servlet.jsp.jstl.tlv=jakarta.servlet.jsp.jstl.tlv -javax.servlet.jsp.jstl=jakarta.servlet.jsp.jstl -javax.servlet.jsp.resources=jakarta.servlet.jsp.resources -javax.servlet.jsp.tagext=jakarta.servlet.jsp.tagext -javax.servlet.jsp=jakarta.servlet.jsp -javax.servlet.resources=jakarta.servlet.resources -javax.servlet=jakarta.servlet -javax.transaction=jakarta.transaction -javax.validation.bootstrap=jakarta.validation.bootstrap -javax.validation.constraints=jakarta.validation.constraints -javax.validation.constraintvalidation=jakarta.validation.constraintvalidation -javax.validation.executable=jakarta.validation.executable -javax.validation.groups=jakarta.validation.groups -javax.validation.metadata=jakarta.validation.metadata -javax.validation.spi=jakarta.validation.spi -javax.validation.valueextraction=jakarta.validation.valueextraction -javax.validation=jakarta.validation -javax.websocket.server=jakarta.websocket.server -javax.websocket=jakarta.websocket -javax.ws.rs.client=jakarta.ws.rs.client -javax.ws.rs.container=jakarta.ws.rs.container -javax.ws.rs.core=jakarta.ws.rs.core -javax.ws.rs.ext=jakarta.ws.rs.ext -javax.ws.rs.sse=jakarta.ws.rs.sse -javax.ws.rs=jakarta.ws.rs -javax.xml.bind.annotation.adapters=jakarta.xml.bind.annotation.adapters -javax.xml.bind.annotation=jakarta.xml.bind.annotation -javax.xml.bind.attachment=jakarta.xml.bind.attachment -javax.xml.bind.helpers=jakarta.xml.bind.helpers -javax.xml.bind.util=jakarta.xml.bind.util -javax.xml.bind=jakarta.xml.bind -javax.xml.soap=jakarta.xml.soap -javax.xml.ws.handler.soap=jakarta.xml.ws.handler.soap -javax.xml.ws.handler=jakarta.xml.ws.handler -javax.xml.ws.http=jakarta.xml.ws.http -javax.xml.ws.soap=jakarta.xml.ws.soap -javax.xml.ws.spi.http=jakarta.xml.ws.spi.http -javax.xml.ws.spi=jakarta.xml.ws.spi -javax.xml.ws.wsaddressing=jakarta.xml.ws.wsaddressing -javax.xml.ws=jakarta.xml.ws diff --git a/jakarta/jakarta-text-adoc.properties b/jakarta/jakarta-text-adoc.properties deleted file mode 100644 index 639b5aec20b31..0000000000000 --- a/jakarta/jakarta-text-adoc.properties +++ /dev/null @@ -1 +0,0 @@ -*.adoc=jakarta-renames.properties diff --git a/jakarta/overrides/jaxb/JAXBSubstitutions.java b/jakarta/overrides/jaxb/JAXBSubstitutions.java deleted file mode 100644 index 994e9c523d4df..0000000000000 --- a/jakarta/overrides/jaxb/JAXBSubstitutions.java +++ /dev/null @@ -1,107 +0,0 @@ -package io.quarkus.jaxb.runtime.graal; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.util.HashMap; -import java.util.Map; - -import javax.xml.bind.annotation.XmlSeeAlso; - -import com.oracle.svm.core.annotate.Alias; -import com.oracle.svm.core.annotate.RecomputeFieldValue; -import com.oracle.svm.core.annotate.Substitute; -import com.oracle.svm.core.annotate.TargetClass; -import org.glassfish.jaxb.core.v2.model.annotation.Locatable; -import org.glassfish.jaxb.runtime.v2.model.annotation.LocatableAnnotation; - -@TargetClass(className = "org.glassfish.jaxb.core.v2.model.nav.ReflectionNavigator") -final class Target_org_glassfish_jaxb_core_v2_model_nav_ReflectionNavigator { - - @Substitute - public Field[] getEnumConstants(Class clazz) { - try { - Object[] values = clazz.getEnumConstants(); - Field[] fields = new Field[values.length]; - for (int i = 0; i < values.length; i++) { - fields[i] = clazz.getField(((Enum) values[i]).name()); - } - return fields; - } catch (NoSuchFieldException e) { - // impossible - throw new NoSuchFieldError(clazz.getName() + ": " + e.getMessage()); - } - } - -} - -@TargetClass(className = "org.glassfish.jaxb.runtime.v2.model.annotation.RuntimeInlineAnnotationReader") -final class Target_org_glassfish_jaxb_runtime_v2_model_annotation_RuntimeInlineAnnotationReader { - - @Alias - @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.NewInstance, declClass = HashMap.class) - private Map, Map> packageCache; - - @Substitute - public A getFieldAnnotation(Class annotation, Field field, Locatable srcPos) { - return field.getAnnotation(annotation); - } - - @Substitute - public Annotation[] getAllFieldAnnotations(Field field, Locatable srcPos) { - return field.getAnnotations(); - } - - @Substitute - public A getMethodAnnotation(Class annotation, Method method, Locatable srcPos) { - return method.getAnnotation(annotation); - } - - @Substitute - public Annotation[] getAllMethodAnnotations(Method method, Locatable srcPos) { - return method.getAnnotations(); - } - - @Substitute - @SuppressWarnings("unchecked") - public A getMethodParameterAnnotation(Class annotation, Method method, int paramIndex, - Locatable srcPos) { - Annotation[] pa = method.getParameterAnnotations()[paramIndex]; - for (Annotation a : pa) { - if (a.annotationType() == annotation) - return (A) a; - } - return null; - } - - @Substitute - public A getClassAnnotation(Class a, Class clazz, Locatable srcPos) { - A ann = ((Class) clazz).getAnnotation(a); - return (ann != null && ann.annotationType() == XmlSeeAlso.class) ? LocatableAnnotation.create(ann, srcPos) : ann; - } - - @Substitute - @SuppressWarnings("unchecked") - public A getPackageAnnotation(Class a, Class clazz, Locatable srcPos) { - Package p = clazz.getPackage(); - if (p == null) - return null; - - Map cache = packageCache.get(a); - if (cache == null) { - cache = new HashMap<>(); - packageCache.put(a, cache); - } - - if (cache.containsKey(p)) - return (A) cache.get(p); - else { - A ann = p.getAnnotation(a); - cache.put(p, ann); - return ann; - } - } -} - -class JAXBSubstitutions { -} diff --git a/jakarta/overrides/rest-client/QuarkusRestClientBuilder.java b/jakarta/overrides/rest-client/QuarkusRestClientBuilder.java deleted file mode 100644 index 07dd31a1dcaea..0000000000000 --- a/jakarta/overrides/rest-client/QuarkusRestClientBuilder.java +++ /dev/null @@ -1,860 +0,0 @@ -package io.quarkus.restclient.runtime; - -import static org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.PROPERTY_PROXY_HOST; -import static org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.PROPERTY_PROXY_PORT; -import static org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.PROPERTY_PROXY_SCHEME; - -import java.io.Closeable; -import java.lang.annotation.Annotation; -import java.lang.reflect.AnnotatedElement; -import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.lang.reflect.Parameter; -import java.lang.reflect.Proxy; -import java.net.InetSocketAddress; -import java.net.ProxySelector; -import java.net.URI; -import java.net.URISyntaxException; -import java.net.URL; -import java.security.AccessController; -import java.security.KeyManagementException; -import java.security.KeyStore; -import java.security.NoSuchAlgorithmException; -import java.security.PrivilegedAction; -import java.security.SecureRandom; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.Set; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.TimeUnit; - -import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.SSLContext; -import javax.net.ssl.TrustManager; - -import jakarta.enterprise.inject.spi.BeanManager; -import jakarta.enterprise.inject.spi.CDI; -import jakarta.ws.rs.BeanParam; -import jakarta.ws.rs.HttpMethod; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.PathParam; -import jakarta.ws.rs.Priorities; -import jakarta.ws.rs.core.Configuration; -import jakarta.ws.rs.core.MediaType; -import jakarta.ws.rs.ext.ParamConverterProvider; - -import io.quarkus.runtime.ImageMode; -import org.eclipse.microprofile.config.Config; -import org.eclipse.microprofile.config.ConfigProvider; -import org.eclipse.microprofile.rest.client.RestClientBuilder; -import org.eclipse.microprofile.rest.client.RestClientDefinitionException; -import org.eclipse.microprofile.rest.client.annotation.RegisterProvider; -import org.eclipse.microprofile.rest.client.ext.AsyncInvocationInterceptorFactory; -import org.eclipse.microprofile.rest.client.ext.QueryParamStyle; -import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper; -import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; -import org.jboss.logging.Logger; -import org.jboss.resteasy.client.jaxrs.ClientHttpEngine; -import org.jboss.resteasy.client.jaxrs.ResteasyClient; -import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; -import org.jboss.resteasy.client.jaxrs.engines.PassthroughTrustManager; -import org.jboss.resteasy.client.jaxrs.engines.URLConnectionClientEngineBuilder; -import org.jboss.resteasy.client.jaxrs.internal.LocalResteasyProviderFactory; -import org.jboss.resteasy.concurrent.ContextualExecutorService; -import org.jboss.resteasy.concurrent.ContextualExecutors; -import org.jboss.resteasy.microprofile.client.ConfigurationWrapper; -import org.jboss.resteasy.microprofile.client.DefaultMediaTypeFilter; -import org.jboss.resteasy.microprofile.client.DefaultResponseExceptionMapper; -import org.jboss.resteasy.microprofile.client.ExceptionMapping; -import org.jboss.resteasy.microprofile.client.MethodInjectionFilter; -import org.jboss.resteasy.microprofile.client.ProxyInvocationHandler; -import org.jboss.resteasy.microprofile.client.RestClientListeners; -import org.jboss.resteasy.microprofile.client.RestClientProxy; -import org.jboss.resteasy.microprofile.client.async.AsyncInterceptorRxInvokerProvider; -import org.jboss.resteasy.microprofile.client.async.AsyncInvocationInterceptorThreadContext; -import org.jboss.resteasy.microprofile.client.header.ClientHeaderProviders; -import org.jboss.resteasy.microprofile.client.header.ClientHeadersRequestFilter; -import org.jboss.resteasy.microprofile.client.impl.MpClient; -import org.jboss.resteasy.microprofile.client.impl.MpClientBuilderImpl; -import org.jboss.resteasy.microprofile.client.publisher.MpPublisherMessageBodyReader; -import org.jboss.resteasy.specimpl.ResteasyUriBuilderImpl; -import org.jboss.resteasy.spi.ResteasyProviderFactory; -import org.jboss.resteasy.spi.ResteasyUriBuilder; - -import io.quarkus.restclient.NoopHostnameVerifier; -import io.quarkus.resteasy.common.runtime.QuarkusInjectorFactory; -import io.quarkus.runtime.graal.DisabledSSLContext; -import io.quarkus.runtime.ssl.SslContextConfiguration; - -public class QuarkusRestClientBuilder implements RestClientBuilder { - - private static final String RESTEASY_PROPERTY_PREFIX = "resteasy."; - - private static final String DEFAULT_MAPPER_PROP = "microprofile.rest.client.disable.default.mapper"; - private static final Logger LOGGER = Logger.getLogger(QuarkusRestClientBuilder.class); - private static final DefaultMediaTypeFilter DEFAULT_MEDIA_TYPE_FILTER = new DefaultMediaTypeFilter(); - private static final String TLS_TRUST_ALL = "quarkus.tls.trust-all"; - - public static final MethodInjectionFilter METHOD_INJECTION_FILTER = new MethodInjectionFilter(); - public static final ClientHeadersRequestFilter HEADERS_REQUEST_FILTER = new ClientHeadersRequestFilter(); - - static ResteasyProviderFactory PROVIDER_FACTORY; - - public static void setProviderFactory(ResteasyProviderFactory providerFactory) { - PROVIDER_FACTORY = providerFactory; - } - - public QuarkusRestClientBuilder() { - builderDelegate = new MpClientBuilderImpl(); - - if (PROVIDER_FACTORY != null) { - ResteasyProviderFactory localProviderFactory = new LocalResteasyProviderFactory(PROVIDER_FACTORY); - if (ResteasyProviderFactory.peekInstance() != null) { - localProviderFactory.initializeClientProviders(ResteasyProviderFactory.getInstance()); - } - builderDelegate.providerFactory(localProviderFactory); - } - if (getBeanManager() != null) { - builderDelegate.getProviderFactory() - .setInjectorFactory(new QuarkusInjectorFactory()); - } - configurationWrapper = new ConfigurationWrapper(builderDelegate.getConfiguration()); - - try { - // configuration MP may not be available. - config = ConfigProvider.getConfig(); - } catch (Throwable e) { - - } - } - - public Configuration getConfigurationWrapper() { - return configurationWrapper; - } - - @Override - public RestClientBuilder followRedirects(boolean followRedirect) { - this.followRedirect = followRedirect; - return this; - } - - public boolean isFollowRedirects() { - return this.followRedirect; - } - - @Override - public RestClientBuilder queryParamStyle(QueryParamStyle queryParamStyle) { - this.queryParamStyle = queryParamStyle; - return this; - } - - @Override - public RestClientBuilder proxyAddress(String host, int port) { - if (host == null) { - throw new IllegalArgumentException("proxyHost must not be null"); - } - if (port <= 0 || port > 65535) { - throw new IllegalArgumentException("Invalid port number"); - } - this.proxyHost = host; - this.proxyPort = port; - return this; - } - - @Override - public RestClientBuilder baseUrl(URL url) { - try { - baseURI = url.toURI(); - return this; - } catch (URISyntaxException e) { - throw new RuntimeException(e.getMessage()); - } - } - - @Override - public RestClientBuilder baseUri(URI uri) { - baseURI = uri; - return this; - } - - @Override - public RestClientBuilder connectTimeout(long l, TimeUnit timeUnit) { - connectTimeout = l; - connectTimeoutUnit = timeUnit; - return this; - } - - @Override - public RestClientBuilder readTimeout(long time, TimeUnit timeUnit) { - readTimeout = time; - readTimeoutUnit = timeUnit; - return this; - } - - @Override - public RestClientBuilder sslContext(SSLContext sslContext) { - this.sslContext = sslContext; - return this; - } - - @Override - public RestClientBuilder trustStore(KeyStore trustStore) { - this.trustStore = trustStore; - return this; - } - - @Override - public RestClientBuilder keyStore(KeyStore keyStore, String keystorePassword) { - this.keyStore = keyStore; - this.keystorePassword = keystorePassword; - return this; - } - - @Override - public RestClientBuilder hostnameVerifier(HostnameVerifier hostnameVerifier) { - this.hostnameVerifier = hostnameVerifier; - return this; - } - - @Override - public RestClientBuilder executorService(ExecutorService executor) { - if (executor == null) { - throw new IllegalArgumentException("ExecutorService must not be null"); - } - executorService = ContextualExecutors.wrap(executor); - return this; - } - - public T build(Class aClass, ClientHttpEngine httpEngine) - throws IllegalStateException, RestClientDefinitionException { - - RestClientListeners.get().forEach(listener -> listener.onNewClient(aClass, this)); - - // Interface validity - verifyInterface(aClass); - - if (baseURI == null) { - throw new IllegalStateException("Neither baseUri nor baseUrl was specified"); - } - - // Provider annotations - RegisterProvider[] providers = aClass.getAnnotationsByType(RegisterProvider.class); - - for (RegisterProvider provider : providers) { - register(provider.value(), provider.priority()); - } - - // Default exception mapper - if (!isMapperDisabled()) { - register(DefaultResponseExceptionMapper.class); - } - - builderDelegate.register(new ExceptionMapping(localProviderInstances), 1); - - ClassLoader classLoader = aClass.getClassLoader(); - - T actualClient; - ResteasyClient client; - - ResteasyClientBuilder resteasyClientBuilder = builderDelegate; - - if (this.proxyHost != null) { - resteasyClientBuilder.defaultProxy(proxyHost, this.proxyPort); - } else { - String userProxyHost = Optional.ofNullable(getConfiguration().getProperty(PROPERTY_PROXY_HOST)) - .filter(String.class::isInstance).map(String.class::cast).orElse(null); - - Integer userProxyPort = Optional.ofNullable(getConfiguration().getProperty(PROPERTY_PROXY_PORT)) - .filter(Integer.class::isInstance).map(Integer.class::cast).orElse(null); - - // configuration of the builder has precedence over environment variables - if (userProxyHost != null && userProxyPort != null) { - String userProxyScheme = Optional.ofNullable(getConfiguration().getProperty(PROPERTY_PROXY_SCHEME)) - .filter(String.class::isInstance).map(String.class::cast).orElse(null); - - resteasyClientBuilder.defaultProxy(userProxyHost, userProxyPort, userProxyScheme); - } else { - selectHttpProxy().ifPresent( - proxyAddress -> resteasyClientBuilder.defaultProxy(proxyAddress.getHostString(), - proxyAddress.getPort())); - } - } - - if (this.executorService != null) { - resteasyClientBuilder.executorService(this.executorService); - } else { - this.executorService = ContextualExecutors.threadPool(); - resteasyClientBuilder.executorService(executorService, !executorService.isManaged()); - } - resteasyClientBuilder.register(DEFAULT_MEDIA_TYPE_FILTER); - resteasyClientBuilder.register(METHOD_INJECTION_FILTER); - resteasyClientBuilder.register(HEADERS_REQUEST_FILTER); - register(new MpPublisherMessageBodyReader(executorService)); - resteasyClientBuilder.sslContext(sslContext); - resteasyClientBuilder.trustStore(trustStore); - resteasyClientBuilder.keyStore(keyStore, keystorePassword); - - resteasyClientBuilder.hostnameVerifier(hostnameVerifier); - resteasyClientBuilder.setIsTrustSelfSignedCertificates(false); - checkQueryParamStyleProperty(aClass); - checkFollowRedirectProperty(aClass); - resteasyClientBuilder.setFollowRedirects(followRedirect); - - if (readTimeout != null) { - resteasyClientBuilder.readTimeout(readTimeout, readTimeoutUnit); - } - if (connectTimeout != null) { - resteasyClientBuilder.connectTimeout(connectTimeout, connectTimeoutUnit); - } - - if (httpEngine != null) { - resteasyClientBuilder.httpEngine(httpEngine); - } else { - boolean registerEngine = false; - for (Object p : getBuilderDelegate().getProviderFactory().getProviderInstances()) { - if (p instanceof ClientHttpEngine) { - resteasyClientBuilder.httpEngine((ClientHttpEngine) p); - registerEngine = true; - break; - } - } - if (!registerEngine && useURLConnection()) { - resteasyClientBuilder - .httpEngine(new URLConnectionClientEngineBuilder().resteasyClientBuilder(resteasyClientBuilder) - .build()); - resteasyClientBuilder.sslContext(null); - resteasyClientBuilder.trustStore(null); - resteasyClientBuilder.keyStore(null, ""); - } - } - - configureTrustAll(resteasyClientBuilder); - // we need to push a disabled SSL context when SSL has been disabled - // because otherwise Apache HTTP Client will try to initialize one and will fail - if (ImageMode.current() == ImageMode.NATIVE_RUN && !SslContextConfiguration.isSslNativeEnabled()) { - resteasyClientBuilder.sslContext(new DisabledSSLContext()); - } - - if (!invocationInterceptorFactories.isEmpty()) { - resteasyClientBuilder.register(new AsyncInvocationInterceptorThreadContext(invocationInterceptorFactories)); - } - - client = resteasyClientBuilder - .build(); - ((MpClient) client).setQueryParamStyle(queryParamStyle); - client.register(AsyncInterceptorRxInvokerProvider.class); - actualClient = client.target(baseURI) - .proxyBuilder(aClass) - .classloader(classLoader) - .defaultConsumes(MediaType.APPLICATION_JSON) - .defaultProduces(MediaType.APPLICATION_JSON).build(); - - Class[] interfaces = new Class[3]; - interfaces[0] = aClass; - interfaces[1] = RestClientProxy.class; - interfaces[2] = Closeable.class; - - final BeanManager beanManager = getBeanManager(); - T proxy = (T) Proxy.newProxyInstance(classLoader, interfaces, - new ProxyInvocationHandler(aClass, actualClient, getLocalProviderInstances(), client, beanManager)); - ClientHeaderProviders.registerForClass(aClass, proxy, beanManager); - return proxy; - } - - private void configureTrustAll(ResteasyClientBuilder clientBuilder) { - if (config == null) { - return; - } - Optional trustAll = config.getOptionalValue(TLS_TRUST_ALL, Boolean.class); - if (trustAll.isPresent() && trustAll.get()) { - clientBuilder.hostnameVerifier(new NoopHostnameVerifier()); - try { - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(null, new TrustManager[] { new PassthroughTrustManager() }, - new SecureRandom()); - clientBuilder.sslContext(sslContext); - } catch (NoSuchAlgorithmException | KeyManagementException e) { - throw new RuntimeException("Failed to initialized SSL context", e); - } - } - } - - @SuppressWarnings("unchecked") - @Override - public T build(Class aClass) throws IllegalStateException, RestClientDefinitionException { - return build(aClass, null); - } - - /** - * Get the users list of proxy hosts. Translate list to regex format - * - * @return list of proxy hosts - */ - private List getProxyHostsAsRegex() { - String noProxyHostsSysProps = getSystemProperty("http.nonProxyHosts", null); - if (noProxyHostsSysProps == null) { - noProxyHostsSysProps = "localhost|127.*|[::1]"; - } else { - String src2 = noProxyHostsSysProps.replace(".", "\\."); - noProxyHostsSysProps = src2.replace("*", "[A-Za-z0-9-]*"); - } - return Arrays.asList(noProxyHostsSysProps.split("\\|")); - } - - /** - * Determines whether or not to default to using the URLConnection instead of the Apache HTTP Client. - * If the {@code org.jboss.resteasy.microprofile.defaultToURLConnectionHttpClient} system property is {@code true}, - * then this method returns {@code true}. In all other cases it returns {@code false} - */ - private boolean useURLConnection() { - if (useURLConnection == null) { - String defaultToURLConnection = getSystemProperty( - "org.jboss.resteasy.microprofile.defaultToURLConnectionHttpClient", "false"); - useURLConnection = defaultToURLConnection.equalsIgnoreCase("true"); - } - return useURLConnection; - } - - private Optional selectHttpProxy() { - return ProxySelector.getDefault().select(baseURI).stream() - .filter(proxy -> proxy.type() == java.net.Proxy.Type.HTTP) - .map(java.net.Proxy::address) - .map(InetSocketAddress.class::cast) - .findFirst(); - } - - private void checkQueryParamStyleProperty(Class aClass) { - // User's programmatic setting takes precedence over - // microprofile-config.properties. - if (queryParamStyle == null) { - if (config != null) { - // property using fully-qualified class name takes precedence - Optional prop = config.getOptionalValue( - aClass.getName() + "/mp-rest/queryParamStyle", String.class); - if (prop.isPresent()) { - queryParamStyle(QueryParamStyle.valueOf( - prop.get().trim().toUpperCase())); - - } else { - RegisterRestClient registerRestClient = aClass.getAnnotation(RegisterRestClient.class); - if (registerRestClient != null && - registerRestClient.configKey() != null && - !registerRestClient.configKey().isEmpty()) { - - //property using configKey - prop = config.getOptionalValue(registerRestClient.configKey() - + "/mp-rest/queryParamStyle", String.class); - if (prop.isPresent()) { - queryParamStyle(QueryParamStyle.valueOf( - prop.get().trim().toUpperCase())); - } - } - } - } - } - if (queryParamStyle == null) { - queryParamStyle = QueryParamStyle.MULTI_PAIRS; - } - } - - private void checkFollowRedirectProperty(Class aClass) { - // User's programmatic setting takes precedence over - // microprofile-config.properties. - if (!followRedirect) { - if (config != null) { - // property using fully-qualified class name takes precedence - Optional prop = config.getOptionalValue( - aClass.getName() + "/mp-rest/followRedirects", Boolean.class); - if (prop.isPresent()) { - if (prop.get() != followRedirect) { - followRedirects(prop.get()); - } - } else { - RegisterRestClient registerRestClient = aClass.getAnnotation(RegisterRestClient.class); - if (registerRestClient != null && - registerRestClient.configKey() != null && - !registerRestClient.configKey().isEmpty()) { - - //property using configKey - prop = config.getOptionalValue( - registerRestClient.configKey() + "/mp-rest/followRedirects", Boolean.class); - if (prop.isPresent()) { - if (prop.get() != followRedirect) { - followRedirects(prop.get()); - } - } - } - } - } - } - } - - private boolean isMapperDisabled() { - boolean disabled = false; - Optional defaultMapperProp = config == null ? Optional.empty() - : config.getOptionalValue(DEFAULT_MAPPER_PROP, Boolean.class); - - // disabled through config api - if (defaultMapperProp.isPresent() && defaultMapperProp.get().equals(Boolean.TRUE)) { - disabled = true; - } else if (!defaultMapperProp.isPresent()) { - - // disabled through jaxrs property - try { - Object property = builderDelegate.getConfiguration().getProperty(DEFAULT_MAPPER_PROP); - if (property != null) { - disabled = (Boolean) property; - } - } catch (Throwable e) { - // ignore cast exception - } - } - return disabled; - } - - private String getReflectName(AnnotatedElement element) { - if (element instanceof Parameter) { - return ((Parameter) element).getName(); - } else if (element instanceof Field) { - return ((Field) element).getName(); - } else if (element instanceof Method) { - Method m = (Method) element; - if (!m.getName().startsWith("get")) - return null; - return Character.toLowerCase(m.getName().charAt(3)) + m.getName().substring(4); - } - return null; - } - - private String getPathParamName(AnnotatedElement element) { - if (element.isAnnotationPresent(PathParam.class)) { - PathParam pp = element.getAnnotation(PathParam.class); - return pp.value(); - } else if (element.isAnnotationPresent(org.jboss.resteasy.annotations.jaxrs.PathParam.class)) { - org.jboss.resteasy.annotations.jaxrs.PathParam pp = element - .getAnnotation(org.jboss.resteasy.annotations.jaxrs.PathParam.class); - if (pp.value().length() > 0) - return pp.value(); - return getReflectName(element); - } - return null; - } - - private void verifyBeanPathParam(Class beanType, Map paramMap) { - for (Field field : beanType.getDeclaredFields()) { - String name = getPathParamName(field); - if (name != null) { - paramMap.put(name, "foobar"); - } - } - - for (Method m : beanType.getDeclaredMethods()) { - String name = getPathParamName(m); - if (name != null) { - paramMap.put(name, "foobar"); - } - - } - } - - private void verifyInterface(Class typeDef) { - - Method[] methods = typeDef.getMethods(); - - // multiple verbs - for (Method method : methods) { - boolean hasHttpMethod = false; - for (Annotation annotation : method.getAnnotations()) { - boolean isHttpMethod = (annotation.annotationType().getAnnotation(HttpMethod.class) != null); - if (!hasHttpMethod && isHttpMethod) { - hasHttpMethod = true; - } else if (hasHttpMethod && isHttpMethod) { - throw new RestClientDefinitionException("Ambiguous @HttpMethod definition on type " + typeDef); - } - } - } - - // invalid parameter - Path classPathAnno = typeDef.getAnnotation(Path.class); - - ResteasyUriBuilder template = null; - for (Method method : methods) { - Path methodPathAnno = method.getAnnotation(Path.class); - if (methodPathAnno != null) { - template = classPathAnno == null ? (ResteasyUriBuilder) new ResteasyUriBuilderImpl().uri(methodPathAnno.value()) - : (ResteasyUriBuilder) new ResteasyUriBuilderImpl() - .uri(classPathAnno.value() + "/" + methodPathAnno.value()); - } else if (classPathAnno != null) { - template = (ResteasyUriBuilder) new ResteasyUriBuilderImpl().uri(classPathAnno.value()); - } else { - template = null; - } - - if (template == null) { - continue; - } - - // it's not executed, so this can be anything - but a hostname needs to present - template.host("localhost"); - - Set allVariables = new HashSet<>(template.getPathParamNamesInDeclarationOrder()); - Map paramMap = new HashMap<>(); - for (Parameter p : method.getParameters()) { - PathParam pathParam = p.getAnnotation(PathParam.class); - if (pathParam != null) { - paramMap.put(pathParam.value(), "foobar"); - } else if (p.isAnnotationPresent(org.jboss.resteasy.annotations.jaxrs.PathParam.class)) { - org.jboss.resteasy.annotations.jaxrs.PathParam rePathParam = p - .getAnnotation(org.jboss.resteasy.annotations.jaxrs.PathParam.class); - String name = rePathParam.value() == null || rePathParam.value() - .length() == 0 ? p.getName() : rePathParam.value(); - paramMap.put(name, "foobar"); - } else if (p.isAnnotationPresent(BeanParam.class)) { - verifyBeanPathParam(p.getType(), paramMap); - } - } - - if (allVariables.size() != paramMap.size()) { - throw new RestClientDefinitionException( - "Parameters and variables don't match on " + typeDef + "::" + method.getName()); - } - - try { - template.resolveTemplates(paramMap, false).build(); - } catch (IllegalArgumentException ex) { - throw new RestClientDefinitionException( - "Parameter names don't match variable names on " + typeDef + "::" + method.getName(), ex); - } - - } - } - - @Override - public Configuration getConfiguration() { - return getConfigurationWrapper(); - } - - @Override - public RestClientBuilder property(String name, Object value) { - if (name.startsWith(RESTEASY_PROPERTY_PREFIX)) { - // Makes it possible to configure some of the ResteasyClientBuilder delegate properties - String builderMethodName = name.substring(RESTEASY_PROPERTY_PREFIX.length()); - Method builderMethod = Arrays.stream(ResteasyClientBuilder.class.getMethods()) - .filter(m -> builderMethodName.equals(m.getName()) && m.getParameterCount() >= 1) - .findFirst() - .orElse(null); - if (builderMethod == null) { - throw new IllegalArgumentException("ResteasyClientBuilder setter method not found: " + builderMethodName); - } - Object[] arguments; - if (builderMethod.getParameterCount() > 1) { - if (value instanceof List) { - arguments = ((List) value).toArray(); - } else { - throw new IllegalArgumentException( - "Value must be an instance of List<> for ResteasyClientBuilder setter method: " - + builderMethodName); - } - } else { - arguments = new Object[] { value }; - } - try { - builderMethod.invoke(builderDelegate, arguments); - } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { - throw new IllegalStateException("Unable to invoke ResteasyClientBuilder method: " + builderMethodName, e); - } - } - builderDelegate.property(name, value); - return this; - } - - private Object newInstanceOf(Class clazz) { - if (PROVIDER_FACTORY != null) { - return PROVIDER_FACTORY.injectedInstance(clazz); - } - return this.getBuilderDelegate().getProviderFactory().injectedInstance(clazz); - } - - @Override - public RestClientBuilder register(Class aClass) { - register(newInstanceOf(aClass)); - return this; - } - - @Override - public RestClientBuilder register(Class aClass, int i) { - - register(newInstanceOf(aClass), i); - return this; - } - - @Override - public RestClientBuilder register(Class aClass, Class[] classes) { - register(newInstanceOf(aClass), classes); - return this; - } - - @Override - public RestClientBuilder register(Class aClass, Map, Integer> map) { - register(newInstanceOf(aClass), map); - return this; - } - - @Override - public RestClientBuilder register(Object o) { - if (o instanceof ResponseExceptionMapper) { - ResponseExceptionMapper mapper = (ResponseExceptionMapper) o; - register(mapper, mapper.getPriority()); - } else if (o instanceof ParamConverterProvider) { - register(o, Priorities.USER); - } else if (o instanceof AsyncInvocationInterceptorFactory) { - invocationInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); - } else { - builderDelegate.register(o); - } - return this; - } - - @Override - public RestClientBuilder register(Object o, int i) { - if (o instanceof ResponseExceptionMapper) { - - // local - ResponseExceptionMapper mapper = (ResponseExceptionMapper) o; - HashMap, Integer> contracts = new HashMap<>(); - contracts.put(ResponseExceptionMapper.class, i); - registerLocalProviderInstance(mapper, contracts); - - // delegate - builderDelegate.register(mapper, i); - - } else if (o instanceof ParamConverterProvider) { - - // local - ParamConverterProvider converter = (ParamConverterProvider) o; - HashMap, Integer> contracts = new HashMap<>(); - contracts.put(ParamConverterProvider.class, i); - registerLocalProviderInstance(converter, contracts); - - // delegate - builderDelegate.register(converter, i); - - } else if (o instanceof AsyncInvocationInterceptorFactory) { - invocationInterceptorFactories.add((AsyncInvocationInterceptorFactory) o); - } else { - builderDelegate.register(o, i); - } - return this; - } - - @Override - public RestClientBuilder register(Object o, Class[] classes) { - - // local - for (Class aClass : classes) { - if (aClass.isAssignableFrom(ResponseExceptionMapper.class)) { - register(o); - } - } - - // other - builderDelegate.register(o, classes); - return this; - } - - @Override - public RestClientBuilder register(Object o, Map, Integer> map) { - - if (o instanceof ResponseExceptionMapper) { - - // local - ResponseExceptionMapper mapper = (ResponseExceptionMapper) o; - HashMap, Integer> contracts = new HashMap<>(); - contracts.put(ResponseExceptionMapper.class, map.get(ResponseExceptionMapper.class)); - registerLocalProviderInstance(mapper, contracts); - - // other - builderDelegate.register(o, map); - - } else { - builderDelegate.register(o, map); - } - - return this; - } - - public Set getLocalProviderInstances() { - return localProviderInstances; - } - - public void registerLocalProviderInstance(Object provider, Map, Integer> contracts) { - for (Object registered : getLocalProviderInstances()) { - if (registered == provider) { - // System.out.println("Provider already registered " + provider.getClass().getName()); - return; - } - } - - localProviderInstances.add(provider); - configurationWrapper.registerLocalContract(provider.getClass(), contracts); - } - - ResteasyClientBuilder getBuilderDelegate() { - return builderDelegate; - } - - private static BeanManager getBeanManager() { - try { - CDI current = CDI.current(); - return current != null ? current.getBeanManager() : null; - } catch (IllegalStateException e) { - LOGGER.warnf("CDI container is not available"); - return null; - } - } - - private String getSystemProperty(String key, String def) { - if (System.getSecurityManager() == null) { - return System.getProperty(key, def); - } - return AccessController.doPrivileged((PrivilegedAction) () -> System.getProperty(key, def)); - } - - private final MpClientBuilderImpl builderDelegate; - - private final ConfigurationWrapper configurationWrapper; - - private Config config; - - private ContextualExecutorService executorService; - - private URI baseURI; - - private Long connectTimeout; - private TimeUnit connectTimeoutUnit; - - private Long readTimeout; - private TimeUnit readTimeoutUnit; - - private String proxyHost; - private Integer proxyPort = null; - - private SSLContext sslContext; - private KeyStore trustStore; - private KeyStore keyStore; - private String keystorePassword; - private HostnameVerifier hostnameVerifier; - private Boolean useURLConnection; - private boolean followRedirect; - private QueryParamStyle queryParamStyle = null; - - private final Set localProviderInstances = new HashSet<>(); - private final Collection invocationInterceptorFactories = new ArrayList<>(); -} diff --git a/jakarta/prepare.sh b/jakarta/prepare.sh deleted file mode 100755 index 5881745067a7d..0000000000000 --- a/jakarta/prepare.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -set -e -u -o pipefail -shopt -s failglob - -# Use `export REWRITE_OFFLINE=true` to avoid building components from external repositories -# Use `export REWRITE_NO_TESTS=true` to avoid running the tests (useful when you just want a quick transformation) - -# Each transformed module/project is expected to: -# a) execute Eclipse Transformer command to transform relevant directory -# b) update dependencies to their respective EE 9 versions -# c) add a build and test command that will verify the functionality - -if [ ! -f dco.txt ]; then - echo "ERROR: This script has to be run from the root of the Quarkus project" - exit 1 -fi - -#if [ "${REWRITE_OFFLINE-false}" != "true" ]; then - # Build SmallRye Config (temporary) - #rm -rf target/smallrye-config - #git clone https://github.com/smallrye/smallrye-config.git target/smallrye-config - #pushd target/smallrye-config - #git checkout jakarta - #mvn clean install -DskipTests -DskipITs - #popd - - # Build Narayana (temporary) - #rm -rf target/narayana - #git clone -b JBTM-3595-martin --depth 1 https://github.com/mmusgrov/narayana.git target/narayana - #pushd target/narayana - #./build.sh clean install -DskipTests -DskipITs -Pcommunity - #popd -#fi diff --git a/jakarta/rewrite.yml b/jakarta/rewrite.yml deleted file mode 100644 index 43396b5b0140e..0000000000000 --- a/jakarta/rewrite.yml +++ /dev/null @@ -1,841 +0,0 @@ ---- -type: specs.openrewrite.org/v1beta/style -name: io.quarkus.style.maven -styleConfigs: - - org.openrewrite.xml.style.TabsAndIndentsStyle: - useTabCharacter: false - tabSize: 1 - indentSize: 4 ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.parent -displayName: Adjust versions in parent -recipeList: - # TestNG update, needed for the MicroProfile TCKs - - org.openrewrite.maven.ChangePropertyValue: - key: testng.version - newValue: '7.4.0' ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-versions -displayName: Adjust Jakarta versions -recipeList: - # Activation - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: com.sun.activation - oldArtifactId: jakarta.activation - newGroupId: org.eclipse.angus - newArtifactId: angus-activation - newVersion: "${angus-activation.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.activation.version - newValue: '2.1.0' - - org.openrewrite.maven.ChangePropertyValue: - key: angus-activation.version - newValue: '1.0.0' - addIfMissing: true - # Annotation - - org.openrewrite.maven.ChangePropertyValue: - key: version.jakarta-annotation - newValue: '2.1.1' - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.annotation-api.version - newValue: '2.1.1' - # EL - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.glassfish - oldArtifactId: jakarta.el - newGroupId: org.glassfish.expressly - newArtifactId: expressly - newVersion: "${expressly.version}" - - org.openrewrite.maven.RemoveProperty: - propertyName: jakarta.el-impl.version - - org.openrewrite.maven.ChangePropertyValue: - key: expressly.version - newValue: '5.0.0' - addIfMissing: true - # CDI - - org.openrewrite.maven.ChangePropertyValue: - key: version.cdi - newValue: '4.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.enterprise.cdi-api.version - newValue: '4.0.1' - # Inject - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.inject-api.version - newValue: '2.0.1' - # Interceptor - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.interceptor-api.version - newValue: '2.1.0' - # JAX-RS - See below for the specs - - org.openrewrite.maven.ChangePropertyValue: - key: resteasy.version - newValue: '6.2.1.Final' - # JAXB - See below - # JSON - See below - # JSON Bind - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.json.bind-api.version - newValue: '3.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: yasson.version - newValue: '3.0.2' - # JPA - - org.openrewrite.maven.ChangePropertyValue: - key: version.jpa - newValue: '3.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.persistence-api.version - newValue: '3.0.0' - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-core - newGroupId: org.hibernate - newArtifactId: hibernate-core-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-envers - newGroupId: org.hibernate - newArtifactId: hibernate-envers-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-jpamodelgen - newGroupId: org.hibernate - newArtifactId: hibernate-jpamodelgen-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.search - oldArtifactId: hibernate-search-mapper-orm-coordination-outbox-polling - newGroupId: org.hibernate.search - newArtifactId: hibernate-search-mapper-orm-coordination-outbox-polling-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.search - oldArtifactId: hibernate-search-mapper-orm - newGroupId: org.hibernate.search - newArtifactId: hibernate-search-mapper-orm-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.reactive - oldArtifactId: hibernate-reactive-core - newGroupId: org.hibernate.reactive - newArtifactId: hibernate-reactive-core-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: quarkus-local-cache - newGroupId: org.hibernate - newArtifactId: quarkus-local-cache-jakarta - # Mail - # TODO At some point we should move to the Angus artifacts BUT - # the only thing using Jakarta Mail is subethasmtp - # so let's wait for it to switch to Angus Mail. - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.mail.version - newValue: '2.0.1' - # Security - See below - - org.openrewrite.maven.ChangePropertyValue: - key: quarkus-security.version - newValue: '2.0.0.Alpha2' - # Servlet - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.servlet-api.version - newValue: '6.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: quarkus-http.version - newValue: '5.0.0.Alpha3' - # Transaction - - org.openrewrite.maven.ChangePropertyValue: - key: version.jta - newValue: '2.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.transaction-api.version - newValue: '2.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: agroal.version - newValue: '2.0' - - org.openrewrite.maven.ChangePropertyValue: - key: narayana.version - newValue: 6.0.0.CR1 - # Validation - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.validation-api.version - newValue: '3.0.2' - - org.openrewrite.maven.ChangePropertyValue: - key: hibernate-validator.version - newValue: '8.0.0.Final' - # Websockets - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.websocket-api.version - newValue: '2.1.0' - # XML Bind - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.xml.bind-api.version - newValue: '4.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: jaxb-runtime.version - newValue: '4.0.1' - # WildFly Security - - org.openrewrite.maven.ChangePropertyValue: - key: wildfly-elytron.version - newValue: '2.0.0.Final' ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-el -displayName: Add Jakarta EL management -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.el - artifactId: jakarta.el-api - version: "${jakarta.el-api.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.el-api.version - newValue: '5.0.1' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-jaxrs-jaxb -displayName: Adjust JAX-RS/JAXB dependencies -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.xml.bind - artifactId: jakarta.xml.bind-api - version: "${jakarta.xml.bind-api.version}" - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.ws.rs - artifactId: jakarta.ws.rs-api - version: "${jakarta.ws.rs-api.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.xml.bind-api.version - newValue: '4.0.0' - addIfMissing: true - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.ws.rs-api.version - newValue: '3.1.0' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-jaxrs-jaxb-cleanup -displayName: Adjust JAX-RS/JAXB dependencies -recipeList: - - org.openrewrite.maven.RemoveManagedDependency: - groupId: org.jboss.spec.javax.xml.bind - artifactId: jboss-jaxb-api_2.3_spec - - org.openrewrite.maven.RemoveManagedDependency: - groupId: org.jboss.spec.javax.ws.rs - artifactId: jboss-jaxrs-api_2.1_spec - - org.openrewrite.maven.RemoveProperty: - propertyName: jboss-jaxrs-api_2.1_spec.version - - org.openrewrite.maven.RemoveProperty: - propertyName: jboss-jaxb-api_2.3_spec.version ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-jaxrs-switch -displayName: Switch JAX-RS version -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.spec.javax.ws.rs - oldArtifactId: jboss-jaxrs-api_2.1_spec - newGroupId: jakarta.ws.rs - newArtifactId: jakarta.ws.rs-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.exclude-javax-jaxrs -displayName: Exclude Javax JAX-RS version -recipeList: - - org.openrewrite.maven.ExcludeDependency: - groupId: org.jboss.spec.javax.ws.rs - artifactId: jboss-jaxrs-api_2.1_spec - - org.openrewrite.maven.ExcludeDependency: - groupId: org.jboss.spec.javax.ws.rs - artifactId: jboss-jaxrs-api_3.0_spec ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-jaxb-switch -displayName: Switch JAXB version -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.spec.javax.xml.bind - oldArtifactId: jboss-jaxb-api_2.3_spec - newGroupId: jakarta.xml.bind - newArtifactId: jakarta.xml.bind-api - - org.openrewrite.maven.RemoveExclusion: - groupId: jakarta.xml.bind - artifactId: jakarta.xml.bind-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-el-switch -displayName: Switch JAX-RS version -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.glassfish - oldArtifactId: jakarta.el - newGroupId: org.glassfish.expressly - newArtifactId: expressly ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-angus-activation-switch -displayName: Switch JAX-RS version -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: com.sun.activation - oldArtifactId: jakarta.activation - newGroupId: org.eclipse.angus - newArtifactId: angus-activation - ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-angus-activation-exclude-add -displayName: Switch JAX-RS version -recipeList: - - org.openrewrite.maven.ExcludeDependency: - groupId: com.sun.activation - artifactId: jakarta.activation - - org.openrewrite.maven.AddDependencyNoQuestionsAsked: - groupId: org.eclipse.angus - artifactId: angus-activation ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-json-cleanup -displayName: Clean up Jakarta JSON dependencies -recipeList: - - org.openrewrite.maven.RemoveManagedDependency: - groupId: org.glassfish - artifactId: jakarta.json - - org.openrewrite.maven.RemoveProperty: - propertyName: jakarta.json.version - - org.openrewrite.maven.RemoveExclusion: - groupId: io.smallrye - artifactId: smallrye-health - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.eclipse - artifactId: yasson - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.jboss.resteasy - artifactId: resteasy-json-binding-provider - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.jboss.resteasy - artifactId: resteasy-json-p-provider - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.activemq - artifactId: artemis-server - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.activemq - artifactId: artemis-amqp-protocol - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.eclipse - artifactId: yasson - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.eclipse - artifactId: yasson - exclusionGroupId: org.glassfish - exclusionArtifactId: jakarta.json - - org.openrewrite.maven.RemoveExclusion: - groupId: jakarta.json.bind - artifactId: jakarta.json.bind-api - exclusionGroupId: jakarta.json - exclusionArtifactId: jakarta.json-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-json -displayName: Adjust Jakarta JSON dependencies -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: org.eclipse.parsson - artifactId: parsson - version: "${parsson.version}" - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.json - artifactId: jakarta.json-api - version: "${jakarta.json-api.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: parsson.version - newValue: '1.1.1' - addIfMissing: true - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.json-api.version - newValue: '2.1.1' - addIfMissing: true - - org.openrewrite.maven.ChangePropertyValue: - key: jboss-logmanager.version - newValue: '1.1.1' ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-json-switch -displayName: Switch Jakarta JSON version -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.glassfish - oldArtifactId: jakarta.json - newGroupId: org.eclipse.parsson - newArtifactId: parsson ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.build-parent -displayName: Adjust build-parent -recipeList: - - org.openrewrite.maven.ChangePropertyValue: - key: subethasmtp.version - newValue: '6.0.1' ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-security -displayName: Adjust Javax security dependencies -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.authorization - artifactId: jakarta.authorization-api - version: "${jakarta.authorization-api.version}" - - org.openrewrite.maven.AddManagedDependency: - groupId: jakarta.authentication - artifactId: jakarta.authentication-api - version: "${jakarta.authentication-api}" - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.authorization-api.version - newValue: '2.1.0' - addIfMissing: true - - org.openrewrite.maven.ChangePropertyValue: - key: jakarta.authentication-api - newValue: '3.0.0' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-security-cleanup -displayName: Adjust Javax security dependencies -recipeList: - - org.openrewrite.maven.RemoveManagedDependency: - groupId: jakarta.security.jacc - artifactId: jakarta.security.jacc-api - - org.openrewrite.maven.RemoveManagedDependency: - groupId: jakarta.security.auth.message - artifactId: jakarta.security.auth.message-api - - org.openrewrite.maven.RemoveProperty: - propertyName: jakarta.security.jacc-api.version - - org.openrewrite.maven.RemoveProperty: - propertyName: jakarta.security.auth.message-api.version ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.jakarta-security-switch -displayName: Switch Javax security dependencies -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: jakarta.security.jacc - oldArtifactId: jakarta.security.jacc-api - newGroupId: jakarta.authorization - newArtifactId: jakarta.authorization-api - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: jakarta.security.auth.message - oldArtifactId: jakarta.security.auth.message-api - newGroupId: jakarta.authentication - newArtifactId: jakarta.authentication-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.hibernate-orm-narayana-switch -displayName: Switch Hibernate ORM/Narayana dependencies -recipeList: - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate - artifactId: hibernate-core - exclusionGroupId: javax.persistence - exclusionArtifactId: javax.persistence-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate - artifactId: hibernate-core - exclusionGroupId: org.jboss.spec.javax.transaction - exclusionArtifactId: jboss-transaction-api_1.2_spec - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate - artifactId: hibernate-core - exclusionGroupId: javax.xml.bind - exclusionArtifactId: jaxb-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate - artifactId: hibernate-core - exclusionGroupId: javax.activation - exclusionArtifactId: javax.activation-api - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-core - newGroupId: org.hibernate - newArtifactId: hibernate-core-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-envers - newGroupId: org.hibernate - newArtifactId: hibernate-envers-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: hibernate-jpamodelgen - newGroupId: org.hibernate - newArtifactId: hibernate-jpamodelgen-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.reactive - oldArtifactId: hibernate-reactive-core - newGroupId: org.hibernate.reactive - newArtifactId: hibernate-reactive-core-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate - oldArtifactId: quarkus-local-cache - newGroupId: org.hibernate - newArtifactId: quarkus-local-cache-jakarta ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.hibernate-search-switch -displayName: Switch Hibernate Search dependencies -recipeList: - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate.search - artifactId: hibernate-search-mapper-orm-coordination-outbox-polling - exclusionGroupId: javax.persistence - exclusionArtifactId: javax.persistence-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.hibernate.search - artifactId: hibernate-search-mapper-orm - exclusionGroupId: javax.persistence - exclusionArtifactId: javax.persistence-api - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.search - oldArtifactId: hibernate-search-mapper-orm-coordination-outbox-polling - newGroupId: org.hibernate.search - newArtifactId: hibernate-search-mapper-orm-coordination-outbox-polling-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.hibernate.search - oldArtifactId: hibernate-search-mapper-orm - newGroupId: org.hibernate.search - newArtifactId: hibernate-search-mapper-orm-jakarta ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.smallrye -displayName: Adjust SmallRye dependencies -recipeList: - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-common.version - newValue: '2.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-context-propagation.version - newValue: '1.3' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-context-propagation.version - newValue: '2.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-config-api.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-config.version - newValue: '3.1.2' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-fault-tolerance.version - newValue: '6.1.0' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-graphql.version - newValue: '2.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-health.version - newValue: '4.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-jwt.version - newValue: '2.0' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-jwt.version - newValue: '4.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-lra.version - newValue: '2.0-RC1' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-metrics-api.version - newValue: '4.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-metrics.version - newValue: '4.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-openapi.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-opentracing-api.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-opentracing.version - newValue: '3.0.0' - - org.openrewrite.maven.ChangePropertyValue: - key: smallrye-reactive-messaging.version - newValue: '4.2.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-rest-client.version - newValue: '3.0' -# TODO, these ones probably still need a change: -# 1.0.1 -# 1.0.13 -# 2.6.0 -# 2.19.0 -# 3.15.0 ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.microprofile-tck-versions -displayName: Adjust MicroProfile TCK versions -recipeList: - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-config-tck.version - newValue: '3.0.1' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-context-propagation-tck.version - newValue: '1.3' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-fault-tolerance-tck.version - newValue: '4.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-graphql-tck.version - newValue: '2.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-health-tck.version - newValue: '4.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-jwt-auth-tck.version - newValue: '2.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-lra-tck.version - newValue: '2.0-RC1' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-metrics-tck.version - newValue: '4.0.1' - # TODO: update to 3.1 once SmallRye passes it - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-openapi-tck.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-opentracing-tck.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-reactive-messaging-tck.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: microprofile-rest-client-tck.version - newValue: '3.0' - - org.openrewrite.maven.ChangePropertyValue: - key: resteasy-reactive-testsuite.repo.ref - newValue: 4116f1a0c5605ad00d7779367dac8002af8c6882 ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.maven.javax.managed -displayName: Adjust inject dependencies for Maven -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: javax.inject - artifactId: javax.inject - version: "${javax.inject.version}" - - org.openrewrite.maven.AddManagedDependency: - groupId: javax.annotation - artifactId: javax.annotation-api - version: "${javax.annotation-api.version}" ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.maven.javax.allow -displayName: Adjust inject dependencies for Maven -recipeList: - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-plugin-api - exclusionGroupId: javax.inject - exclusionArtifactId: javax.inject - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-plugin-api - exclusionGroupId: javax.annotation - exclusionArtifactId: javax.annotation-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-core - exclusionGroupId: javax.inject - exclusionArtifactId: javax.inject - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-embedder - exclusionGroupId: javax.inject - exclusionArtifactId: javax.inject - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-embedder - exclusionGroupId: javax.annotation - exclusionArtifactId: javax.annotation-api - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-resolver-provider - exclusionGroupId: javax.inject - exclusionArtifactId: javax.inject - - org.openrewrite.maven.RemoveExclusion: - groupId: org.apache.maven - artifactId: maven-settings-builder - exclusionGroupId: javax.inject - exclusionArtifactId: javax.inject ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.maven.javax.versions -displayName: Adjust bootstrap -recipeList: - - org.openrewrite.maven.ChangePropertyValue: - key: javax.inject.version - newValue: '1' - addIfMissing: true - - org.openrewrite.maven.ChangePropertyValue: - key: javax.annotation-api.version - newValue: '1.3.2' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.extensions.arc -displayName: Adjust ArC extension -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.spec.javax.ejb - oldArtifactId: jboss-ejb-api_3.1_spec - newGroupId: jakarta.ejb - newArtifactId: jakarta.ejb-api - newVersion: '4.0.1' ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.bom.resteasy-microprofile -displayName: Add RESTEasy MicroProfile Config to BOM -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: org.jboss.resteasy.microprofile - artifactId: microprofile-config - version: "${resteasy-microprofile.version}" - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.resteasy - oldArtifactId: resteasy-client-microprofile - newGroupId: org.jboss.resteasy.microprofile - newArtifactId: microprofile-rest-client - newVersion: "${resteasy-microprofile.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: resteasy-microprofile.version - newValue: '2.0.0.Final' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.bom.resteasy-cdi -displayName: Add RESTEasy CDI to BOM -recipeList: - - org.openrewrite.maven.AddManagedDependency: - groupId: org.jboss.resteasy - artifactId: resteasy-cdi - version: "${resteasy.version}" ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.resteasy-common -displayName: Add RESTEasy CDI and MicroProfile Config to RESTEasy Common -recipeList: - - org.openrewrite.maven.AddDependencyNoQuestionsAsked: - groupId: org.jboss.resteasy.microprofile - artifactId: microprofile-config - - org.openrewrite.maven.AddDependencyNoQuestionsAsked: - groupId: org.jboss.resteasy - artifactId: resteasy-cdi - - org.openrewrite.maven.ExcludeDependency: - groupId: org.jboss.spec.javax.ws.rs - artifactId: jboss-jaxrs-api_3.0_spec - - org.openrewrite.maven.AddDependencyNoQuestionsAsked: - groupId: jakarta.ws.rs - artifactId: jakarta.ws.rs-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.bom.resteasy-spring-web -displayName: Add RESTEasy Spring Web to BOM -recipeList: - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.resteasy - oldArtifactId: resteasy-spring-web - newGroupId: org.jboss.resteasy.spring - newArtifactId: resteasy-spring-web - newVersion: "${resteasy-spring-web.version}" - - org.openrewrite.maven.ChangePropertyValue: - key: resteasy-spring-web.version - newValue: '3.0.0.Beta3' - addIfMissing: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.resteasy-spring-web -displayName: Adjust RESTEasy Spring Web -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.resteasy - oldArtifactId: resteasy-spring-web - newGroupId: org.jboss.resteasy.spring - newArtifactId: resteasy-spring-web ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.rest-client -displayName: Add RESTEasy MicroProfile Config to RESTEasy Common -recipeList: - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.jboss.resteasy - oldArtifactId: resteasy-client-microprofile - newGroupId: org.jboss.resteasy.microprofile - newArtifactId: microprofile-rest-client - - org.openrewrite.maven.ExcludeDependency: - groupId: org.jboss.spec.javax.ws.rs - artifactId: jboss-jaxrs-api_3.0_spec - - org.openrewrite.maven.AddDependencyNoQuestionsAsked: - groupId: jakarta.ws.rs - artifactId: jakarta.ws.rs-api ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.keycloak-admin-client -displayName: Adjust Keycloak Admin Client -recipeList: - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.keycloak - oldArtifactId: keycloak-admin-client - newGroupId: org.keycloak - newArtifactId: keycloak-admin-client-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.keycloak - oldArtifactId: keycloak-admin-client - newGroupId: org.keycloak - newArtifactId: keycloak-admin-client-jakarta ---- -type: specs.openrewrite.org/v1beta/recipe -name: io.quarkus.infinispan -displayName: Adjust Infinispan version and dependencies -recipeList: - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-core - newGroupId: org.infinispan - newArtifactId: infinispan-core - newClassifier: jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-client-hotrod - newGroupId: org.infinispan - newArtifactId: infinispan-client-hotrod-jakarta - - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-commons - newGroupId: org.infinispan - newArtifactId: infinispan-commons-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-core - newGroupId: org.infinispan - newArtifactId: infinispan-core-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-client-hotrod - newGroupId: org.infinispan - newArtifactId: infinispan-client-hotrod-jakarta - - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId: - oldGroupId: org.infinispan - oldArtifactId: infinispan-commons - newGroupId: org.infinispan - newArtifactId: infinispan-commons-jakarta diff --git a/jakarta/transform.sh b/jakarta/transform.sh deleted file mode 100755 index 5e762f2a868a6..0000000000000 --- a/jakarta/transform.sh +++ /dev/null @@ -1,399 +0,0 @@ -#!/bin/bash - -set -x -e -u -o pipefail -shopt -s failglob - -# Use `export REWRITE_OFFLINE=true` to avoid building components from external repositories -# Use `export REWRITE_NO_TESTS=true` to avoid running the tests (useful when you just want a quick transformation) - -# Each transformed module/project is expected to: -# a) execute Eclipse Transformer command to transform relevant directory -# b) update dependencies to their respective EE 9 versions -# c) add a build and test command that will verify the functionality - -if [ ! -f dco.txt ]; then - echo "ERROR: This script has to be run from the root of the Quarkus project" - exit 1 -fi - -if [ "${REWRITE_OFFLINE-false}" != "true" ]; then - # Prepare OpenRewrite - we temporarily build a local version as we need a patch - rm -rf target/rewrite - git clone https://github.com/gsmet/rewrite.git target/rewrite - pushd target/rewrite - git checkout jakarta - ./gradlew -x test -x javadoc publishToMavenLocal - popd - - rm -rf target/rewrite-maven-plugin - git clone -b jakarta --depth 1 https://github.com/gsmet/rewrite-maven-plugin.git target/rewrite-maven-plugin - pushd target/rewrite-maven-plugin - ./mvnw -B clean install -DskipTests -DskipITs - popd - - # Build Kotlin Maven Plugin to allow skipping main compilation - # (skipping test compilation is supported but not main) - rm -rf target/kotlin - git clone -b v1.8.10-jakarta --depth 1 https://github.com/gsmet/kotlin.git target/kotlin - pushd target/kotlin/libraries/tools/kotlin-maven-plugin - mvn -B clean install -DskipTests -DskipITs - popd -fi - -./jakarta/prepare.sh - -# Set up jbang alias, we are using latest released transformer version -jbang alias add --name transform org.eclipse.transformer:org.eclipse.transformer.cli:0.4.0 - -start_module () { - echo "# $1" -} - -clean_project () { - find . -name 'target' -exec rm -rf {} + -} - -clean_maven_repository () { - if [ -d ~/.m2/repository/io/quarkus ]; then - find ~/.m2/repository/io/quarkus -name '999-jakarta-SNAPSHOT' -exec rm -rf {} + - find ~/.m2/repository/io/quarkus -name '999-SNAPSHOT' -exec rm -rf {} + - fi -} - -# Function to help transform a particular Maven module using Eclipse Transformer -transform_module () { - local modulePath="$1" - local transformationTemp="JAKARTA_TEMP" - rm -Rf $transformationTemp - mkdir $transformationTemp - echo " - Transforming $modulePath" - jbang transform -o $modulePath $transformationTemp - rm -Rf "$modulePath" - mv "$transformationTemp" "$modulePath" - echo " > Transformation done" -} - -transform_kotlin_module () { - # this is very ad hoc but hopefully it will be good enough - for package in javax.inject. javax.enterprise. javax.ws.rs. javax.annotation. javax.persistence. javax.json. javax.websocket. javax.xml.bind. javax.transaction.Transactional javax.validation.; do - local newPackage=${package/javax/jakarta} - find $1 -name '*.kt' | xargs --no-run-if-empty sed -i "s@import ${package}@import ${newPackage}@g" - find $1 -name '*.kts' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" - find $1 -name 'build*.gradle' | xargs --no-run-if-empty sed -i "s@annotation(\"${package}@annotation(\"${newPackage}@g" - find $1 -name 'pom*.xml' | grep -v 'integration-tests/simple' | xargs --no-run-if-empty sed -i "s@annotation=${package}@annotation=${newPackage}@g" - done -} - -transform_java_module () { - # this is very ad hoc but hopefully it will be good enough - for package in javax.inject. javax.enterprise. javax.ws.rs. javax.annotation. javax.persistence. javax.json. javax.websocket. javax.xml.bind. javax.transaction.Transactional; do - local newPackage=${package/javax/jakarta} - find $1 -name '*.java' | xargs --no-run-if-empty sed -i "s@import ${package}@import ${newPackage}@g" - done -} - -transform_scala_module () { - # this is very ad hoc but hopefully it will be good enough - for package in javax.inject. javax.enterprise. javax.ws.rs. javax.annotation. javax.persistence. javax.json. javax.websocket. javax.xml.bind. javax.transaction.Transactional; do - local newPackage=${package/javax/jakarta} - find $1 -name '*.scala' | xargs --no-run-if-empty sed -i "s@import ${package}@import ${newPackage}@g" - done -} - -transform_documentation () { - local transformationTemp="JAKARTA_TEMP" - rm -Rf $transformationTemp - mkdir $transformationTemp - jbang transform -tf jakarta/jakarta-text-adoc.properties -o docs/ $transformationTemp - rm -Rf "docs/" - mv "$transformationTemp" "docs" -} - -update_scope_in_test_properties () { - sed -i "s@javax.enterprise@jakarta.enterprise@g" $1 -} - -convert_service_file () { - local newName=${1/javax/jakarta} - mv $1 $newName -} - -# Rewrite a module with OpenRewrite -rewrite_module () { - local modulePath="$1" - echo " - Rewriting $modulePath" - ./mvnw -B rewrite:run -f "${modulePath}/pom.xml" -N -Djakarta-rewrite - echo " > Rewriting done" -} - -# Rewrite a module with OpenRewrite but with the rewrite-cleanup profile -rewrite_module_cleanup () { - local modulePath="$1" - echo " - Rewriting $modulePath" - ./mvnw -B rewrite:run -f "${modulePath}/pom.xml" -N -Djakarta-rewrite-cleanup - echo " > Rewriting done" -} - -# Remove a banned dependency -remove_banned_dependency () { - sed -i "s@$2@@g" $1 -} - -# Update a banned dependency -update_banned_dependency () { - sed -i "s@$2@$3@g" $1 -} - -update_banned_dependency_advanced () { - sed -i "s@$2@$3@g" $1 -} - -# Build, test and install a particular maven module (chosen by relative path) -build_module () { - local pomPath="$1/pom.xml" - if [ "${REWRITE_TESTS_CONTAINERS-false}" == "true" ]; then - ./mvnw -B clean install -f "$pomPath" -Dstart-containers -Dtest-containers - elif [ "${REWRITE_NO_TESTS-false}" != "true" ]; then - ./mvnw -B clean install -f "$pomPath" - else - ./mvnw -B clean install -f "$pomPath" -DskipTests -DskipITs - fi - echo " - Installed newly built $pomPath" -} - -# Build module without testing it -build_module_no_tests () { - local pomPath="$1/pom.xml" - ./mvnw -B clean install -f "$pomPath" -DskipTests -DskipITs -Dinvoker.skip - echo " - Installed newly built $pomPath" -} - -build_module_only_no_tests () { - local pomPath="$1/pom.xml" - ./mvnw -B clean install -f "$pomPath" -DskipTests -DskipITs -Dinvoker.skip -N - echo " - Installed newly built $pomPath" -} - -# Sets the EDITING variable to the file being edited by set_property -edit_begin () { - EDITING="$1" -} - -# Finds a particular property and replaces its value -set_property () { - if [ "$#" -ne 2 ]; then - echo "Requires two parameters" - fi - local propName=$1 - local propValue=$2 - sed -i "s/<$propName>.*<\/$propName>/<$propName>$propValue<\/$propName>/g" "$EDITING" -} - -############################### -############################### - -# OpenRewrite phase - we rewrite the whole repository in one go -clean_maven_repository -# Note for future me: we cannot use ./mvnw clean here -clean_project - -## let's build what's required to be able to run the rewrite -./mvnw -B -pl :quarkus-bootstrap-maven-plugin -pl :quarkus-extension-maven-plugin -pl :quarkus-enforcer-rules -pl :quarkus-maven-plugin -pl :quarkus-bom-test -am clean install -DskipTests -DskipITs -Dinvoker.skip - -## we cannot rewrite some of the modules for various reasons but we rewrite most of them -./mvnw -B -e rewrite:run -Dtcks -Denforcer.skip -Dprotoc.skip -Dmaven.main.skip -Dmaven.test.skip -Dforbiddenapis.skip -Dinvoker.skip -Dquarkus.generate-code.skip -Dquarkus.build.skip -Dbytebuddy.skip -DskipExtensionValidation -DskipCodestartValidation -Pbom-descriptor-json-hollow -pl '!:io.quarkus.gradle.plugin' -pl '!:io.quarkus.extension.gradle.plugin' -pl '!:quarkus-integration-test-gradle-plugin' -pl '!:quarkus-documentation' -Drewrite.pomCacheEnabled=false -Djakarta-rewrite - -## remove banned dependencies -remove_banned_dependency "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'javax.inject:javax.inject' 'we allow javax.inject for Maven' -remove_banned_dependency "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'javax.annotation:javax.annotation-api' 'we allow javax.annotation-api for Maven' -update_banned_dependency "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'jakarta.xml.bind:jakarta.xml.bind-api' 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec' -update_banned_dependency_advanced "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'jakarta.ws.rs:jakarta.ws.rs-api' "org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_3.0_spec\n org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec" -sed -i '//d' 'independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml' -update_banned_dependency_advanced "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'jakarta.json:jakarta.json-api' "org.glassfish:jakarta.json\n org.eclipse.parsson:jakarta.json" -update_banned_dependency_advanced "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'org.glassfish:javax.el' "org.glassfish:javax.el\n org.glassfish:jakarta.el" -sed -i 's@@@g' 'independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml' -update_banned_dependency "independent-projects/enforcer-rules/src/main/resources/enforcer-rules/quarkus-banned-dependencies.xml" 'jakarta.activation:jakarta.activation-api' 'com.sun.activation:jakarta.activation' - -## some additional wild changes to clean up at some point -sed -i 's@FilterConfigSourceImpl@FilterConfigSource@g' extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java -sed -i 's@ServletConfigSourceImpl@ServletConfigSource@g' extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java -sed -i 's@ServletContextConfigSourceImpl@ServletContextConfigSource@g' extensions/resteasy-classic/resteasy-common/deployment/src/main/java/io/quarkus/resteasy/common/deployment/ResteasyCommonProcessor.java -# Unfortunately, this file has been copied from RESTEasy with some adjustments and it is not compatible with the new RESTEasy MicroProfile -# I started some discussions with James Perkins about how to contribute back our changes -# For now, this will have to do -cp "jakarta/overrides/rest-client/QuarkusRestClientBuilder.java" "extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/" -cp "jakarta/overrides/jaxb/JAXBSubstitutions.java" "extensions/jaxb/runtime/src/main/java/io/quarkus/jaxb/runtime/graal/" -sed -i 's@com.sun.xml.bind.v2.model.annotation.Locatable@org.glassfish.jaxb.core.v2.model.annotation.Locatable@g' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java -sed -i 's@com.sun.xml.bind.marshaller.CharacterEscapeHandler@org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler@g' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java -sed -i 's@com.sun.xml.bind.v2.schemagen.episode@org.glassfish.jaxb.core.v2.schemagen.episode@g' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java -sed -i 's@com.sun.xml.bind.v2.schemagen.xmlschema@org.glassfish.jaxb.runtime.v2.schemagen.xmlschema@g' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java -sed -i 's@com.sun.xml.bind.v2.ContextFactory@org.glassfish.jaxb.runtime.v2.ContextFactory@g' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java -sed -i '/com.sun.xml.internal.bind.v2.ContextFactory/d' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java - -## JSON-P implementation switch -sed -i 's@org.glassfish:jakarta.json@org.eclipse.parsson:parsson\n jakarta.json:jakarta.json-api@g' extensions/logging-json/runtime/pom.xml -sed -i 's@org.glassfish:jakarta.json@org.eclipse.parsson:parsson@g' extensions/jsonp/runtime/pom.xml -sed -i 's@org.glassfish:javax.json@org.glassfish:javax.json\n org.glassfish:jakarta.json\n org.eclipse.parsson:jakarta.json@g' extensions/jsonp/runtime/pom.xml -sed -i 's@import org.glassfish.json.JsonProviderImpl;@import org.eclipse.parsson.JsonProviderImpl;@g' extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java - -## cleanup phase - needs to be done once everything has been rewritten -rewrite_module_cleanup "bom/application" -rewrite_module_cleanup "independent-projects/resteasy-reactive" - -## we get rid of everything that has been built previously, we want to start clean -clean_maven_repository - -# Tranformation phase - -transform_module "independent-projects/arc" -transform_module "independent-projects/resteasy-reactive" -transform_module "independent-projects/tools" -transform_kotlin_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_java_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_scala_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_kotlin_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_java_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_scala_module "independent-projects/tools/base-codestarts/src/main/resources/codestarts" -transform_kotlin_module "independent-projects/tools/devtools-testing/" -transform_java_module "independent-projects/tools/devtools-testing/" -transform_scala_module "independent-projects/tools/devtools-testing/" -transform_kotlin_module "independent-projects/tools/codestarts" -transform_java_module "independent-projects/tools/codestarts" -transform_scala_module "independent-projects/tools/codestarts" -#convert_service_file independent-projects/resteasy-reactive/common/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.RuntimeDelegate -#convert_service_file 'independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.sse.SseEventSource$Builder' -#convert_service_file independent-projects/resteasy-reactive/client/runtime/src/main/resources/META-INF/services/javax.ws.rs.client.ClientBuilder -transform_module "core" -transform_module "test-framework" -transform_module "extensions" -#convert_service_file "extensions/resteasy-classic/resteasy-multipart/runtime/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers" -transform_kotlin_module "extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin" -transform_kotlin_module "extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization" -transform_kotlin_module "extensions/resteasy-reactive/quarkus-resteasy-reactive-kotlin-serialization-common" -transform_kotlin_module "extensions/resteasy-reactive/rest-client-reactive-kotlin-serialization" -update_scope_in_test_properties "extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-configkey-scope-test-application.properties" -update_scope_in_test_properties "extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-classname-scope-test-application.properties" -update_scope_in_test_properties "extensions/resteasy-reactive/rest-client-reactive/deployment/src/test/resources/mp-global-scope-test-application.properties" -transform_kotlin_module "extensions/panache/hibernate-orm-panache-kotlin" -transform_kotlin_module "extensions/panache/hibernate-reactive-panache-kotlin" -transform_kotlin_module "extensions/panache/mongodb-panache-kotlin" -sed -i "s@javax/xml/bind/annotation/@jakarta/xml/bind/annotation/@g" ./extensions/panache/panache-common/deployment/src/main/java/io/quarkus/panache/common/deployment/PanacheConstants.java -transform_kotlin_module "extensions/scheduler/kotlin" -transform_kotlin_module "extensions/smallrye-reactive-messaging/kotlin" -transform_module "devtools" -transform_kotlin_module "devtools/project-core-extension-codestarts/src/main/resources/codestarts/" -transform_java_module "devtools/project-core-extension-codestarts/src/main/resources/codestarts/" -transform_scala_module "devtools/project-core-extension-codestarts/src/main/resources/codestarts/" -transform_module "integration-tests" -transform_scala_module "integration-tests/scala" -transform_kotlin_module "integration-tests" -transform_module "tcks" - -sed -i 's/@javax.annotation.Generated/@jakarta.annotation.Generated/g' extensions/grpc/protoc/src/main/resources/*.mustache -sed -i 's/javax.ws.rs.core.Application/jakarta.ws.rs.core.Application/g' integration-tests/elytron-undertow/src/main/resources/META-INF/web.xml -sed -i 's/javax.inject.Singleton/jakarta.inject.Singleton/g' integration-tests/main/src/main/resources/application.properties -sed -i 's@jakarta.xml.bind:jakarta.xml.bind-api@org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec@g' extensions/jaxb/runtime/pom.xml -sed -i 's@jakarta.ws.rs:jakarta.ws.rs-api@org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_3.0_spec\n org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec@g' extensions/resteasy-classic/resteasy-common/runtime/pom.xml -rm extensions/resteasy-classic/resteasy-common/runtime/src/main/java/io/quarkus/resteasy/common/runtime/graal/{Target_org_jboss_resteasy_microprofile_config_FilterConfigSource.java,Target_org_jboss_resteasy_microprofile_config_ServletConfigSource.java,Target_org_jboss_resteasy_microprofile_config_ServletContextConfigSource.java,ServletMissing.java} -sed -i 's@javax.enterprise.context.Dependent@jakarta.enterprise.context.Dependent@g' tcks/microprofile-rest-client-reactive/pom.xml -sed -i '/public SSLContext getSSLContext() {/i \ \ \ \ @Override' extensions/websockets/client/runtime/src/main/java/io/quarkus/websockets/BearerTokenClientEndpointConfigurator.java - -sed -i 's@org.jboss.narayana.rts:narayana-lra@org.jboss.narayana.rts:narayana-lra-jakarta@g' extensions/narayana-lra/runtime/pom.xml -sed -i 's@org.jboss.narayana.rts:lra-client@org.jboss.narayana.rts:lra-client-jakarta@g' extensions/narayana-lra/runtime/pom.xml -sed -i 's@META-INF/services/javax.ws.rs.client.ClientBuilder@META-INF/services/jakarta.ws.rs.client.ClientBuilder@g' extensions/narayana-lra/runtime/pom.xml - -# Disable REST Client TCK timeout tests that are not working -sed -i 's@ @ \n org.eclipse.microprofile.rest.client.tck.timeout.TimeoutBuilderIndependentOfMPConfigTest\n org.eclipse.microprofile.rest.client.tck.timeout.TimeoutTest\n org.eclipse.microprofile.rest.client.tck.timeout.TimeoutViaMPConfigTest\n org.eclipse.microprofile.rest.client.tck.timeout.TimeoutViaMPConfigWithConfigKeyTest\n @' tcks/microprofile-rest-client/pom.xml - -find integration-tests/gradle -name build.gradle | xargs sed -i 's/javax.enterprise.context.ApplicationScoped/jakarta.enterprise.context.ApplicationScoped/g' -find integration-tests/gradle -name build.gradle | xargs sed -i 's/javax.ws.rs.Path/jakarta.ws.rs.Path/g' - -transform_documentation -sed -i 's@javax/ws/rs@jakarta/ws/rs@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@javax/json@jakarta/json@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@javax/inject@jakarta/inject@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/2.1.1@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/3.1.0@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@https://javadoc.io/doc/io.smallrye.reactive/mutiny/1.6.0@https://javadoc.io/doc/io.smallrye.reactive/mutiny/2.1.0@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@https://javadoc.io/doc/javax.json/javax.json-api/1.1.4@https://javadoc.io/doc/jakarta.json/jakarta.json-api/2.1.1@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@https://javadoc.io/static/jakarta.inject/jakarta.inject/1@https://javadoc.io/static/jakarta.inject/jakarta.inject-api/2.0.1@g' docs/src/main/asciidoc/resteasy-reactive.adoc -sed -i 's@/specs/jaxrs/2.1/index.html@https://jakarta.ee/specifications/restful-ws/3.1/jakarta-restful-ws-spec-3.1.html@g' docs/src/main/asciidoc/resteasy-reactive.adoc - -# Clean some Transformer issues -git checkout -- devtools/gradle/gradle-application-plugin/src/main/java -git checkout -- devtools/gradle/gradle-extension-plugin/src/main/java -git checkout -- devtools/gradle/gradle/wrapper/ -git checkout -- integration-tests/gradle/gradle/wrapper/gradle-wrapper.jar -git checkout -- independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/gradle-wrapper/base/gradle/wrapper/gradle-wrapper.jar -git checkout -- extensions/kubernetes-service-binding/runtime/src/test/resources/k8s/test-k8s/ - -# Format source code (cannot use mvn process-sources unfortunately) -./mvnw -B -pl :quarkus-bootstrap-maven-plugin -pl :quarkus-extension-maven-plugin -pl :quarkus-enforcer-rules -pl :quarkus-maven-plugin -pl :quarkus-bom-test -am clean install -DskipTests -DskipITs -Dinvoker.skip - -./mvnw -f independent-projects/arc formatter:format impsort:sort -./mvnw -f independent-projects/bootstrap formatter:format impsort:sort -./mvnw -f independent-projects/enforcer-rules formatter:format impsort:sort -./mvnw -f independent-projects/extension-maven-plugin formatter:format impsort:sort -./mvnw -f independent-projects/qute formatter:format impsort:sort -./mvnw -f independent-projects/resteasy-reactive formatter:format impsort:sort -./mvnw -f independent-projects/tools formatter:format impsort:sort - -./mvnw -f core formatter:format impsort:sort -./mvnw -f extensions formatter:format impsort:sort -./mvnw -f coverage-report formatter:format impsort:sort -./mvnw -f devtools formatter:format impsort:sort -./mvnw -f tcks formatter:format impsort:sort -./mvnw -f docs formatter:format impsort:sort -./mvnw -f integration-tests formatter:format impsort:sort -./mvnw -f test-framework formatter:format impsort:sort - -for kotlin_project in `find . -name kotlin | grep -E 'src/main/kotlin$' | grep -v codestart | sed 's@src/main/kotlin@@g' | grep -v '/resources/'`; do mvn spotless:apply -f $kotlin_project; done - -# Disable non-compilable ITs -# - Confluent registry client doesn't have a version supporting Jakarta packages - -# Commit what we have before cherry-picking stuff -git add . -git commit -m 'Transform sources to Jakarta' - -# Remove integration-tests/kafka-avro as it's testing old versions -# We have a new module for newer versions that work with Jakarta -sed -i '/kafka-avro<\/module>/d' integration-tests/pom.xml -rm -rf integration-tests/kafka-avro -git add . -git commit -m 'Remove integration-tests/kafka-avro - see kafka-avro-apicurio2 instead' - -# Apply EE 10 updates - -## CDI/ArC -git fetch origin jakarta-10-cdi -JAKARTA_10_CDI_HASH=$(git rev-parse origin/jakarta-10-cdi) -git cherry-pick -x ${JAKARTA_10_CDI_HASH} - -## JAX-RS/RESTEasy Reactive -git fetch origin jakarta-10-jaxrs -git rev-list 0608f5eeaf4109214a40d9342d2b89405f831155..origin/jakarta-10-jaxrs | tac | xargs git cherry-pick -x - -## Kotlin not parent first -git fetch origin jakarta-10-misc -git rev-list 241a38a3001d470cc8c938a0a7e68c6f3318cc4c..origin/jakarta-10-misc | tac | xargs git cherry-pick -x - -## Mutiny 2, Flow API -git fetch origin jakarta-10-mutiny-2-flow -JAKARTA_10_MUTINY_HASH=$(git rev-parse origin/jakarta-10-mutiny-2-flow) -git cherry-pick -x ${JAKARTA_10_MUTINY_HASH} - -# Build phase - -if [ "${REWRITE_TESTS_CONTAINERS-false}" == "true" ]; then - ./mvnw -B clean install -Dno-test-modules -Dstart-containers -Dtest-containers -elif [ "${REWRITE_NO_TESTS-false}" != "true" ]; then - ./mvnw -B clean install -Dno-test-modules -else - ./mvnw -B clean install -Dno-test-modules -DskipTests -DskipITs -fi - -./mvnw -B clean install -f integration-tests -DskipTests -DskipITs -./mvnw -B clean install -f tcks -DskipTests -DskipITs - -exit 0 - diff --git a/pom.xml b/pom.xml index 119b891c23e3e..5c53f71f5f84e 100644 --- a/pom.xml +++ b/pom.xml @@ -354,47 +354,6 @@ - - jakarta-rewrite - - - jakarta-rewrite - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - - - - - - org.openrewrite.maven - rewrite-maven-plugin - 4.21.0-SNAPSHOT - - ${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml - - - - - io.quarkus.parent - - - - - - diff --git a/tcks/microprofile-metrics/optional/pom.xml b/tcks/microprofile-metrics/optional/pom.xml index 24b5627b4e5fe..96ba425f4029b 100644 --- a/tcks/microprofile-metrics/optional/pom.xml +++ b/tcks/microprofile-metrics/optional/pom.xml @@ -100,30 +100,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.microprofile-tck-versions - io.quarkus.jakarta-jaxb-switch - - - - - - - - diff --git a/tcks/microprofile-metrics/rest/pom.xml b/tcks/microprofile-metrics/rest/pom.xml index 2a300f5294483..4e8c657d7c74c 100644 --- a/tcks/microprofile-metrics/rest/pom.xml +++ b/tcks/microprofile-metrics/rest/pom.xml @@ -81,29 +81,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.microprofile-tck-versions - io.quarkus.jakarta-jaxb-switch - - - - - - - diff --git a/tcks/microprofile-openapi/pom.xml b/tcks/microprofile-openapi/pom.xml index 6603cdeb1addd..c868351631c53 100644 --- a/tcks/microprofile-openapi/pom.xml +++ b/tcks/microprofile-openapi/pom.xml @@ -122,30 +122,4 @@ - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.microprofile-tck-versions - io.quarkus.jakarta-jaxb-switch - io.quarkus.jakarta-jaxrs-switch - - - - - - - diff --git a/tcks/pom.xml b/tcks/pom.xml index 25c4625576c18..23bae9e2d6003 100644 --- a/tcks/pom.xml +++ b/tcks/pom.xml @@ -113,26 +113,5 @@ resteasy-reactive - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.microprofile-tck-versions - - - - - - diff --git a/test-framework/keycloak-server/pom.xml b/test-framework/keycloak-server/pom.xml index 406071e7fa18b..6e6bceb661fb9 100644 --- a/test-framework/keycloak-server/pom.xml +++ b/test-framework/keycloak-server/pom.xml @@ -54,29 +54,4 @@ quarkus-junit5 - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-angus-activation-exclude-add - - - - - - - - diff --git a/test-framework/kubernetes-client/pom.xml b/test-framework/kubernetes-client/pom.xml index f05ef9e662662..5a4b0331f54f2 100644 --- a/test-framework/kubernetes-client/pom.xml +++ b/test-framework/kubernetes-client/pom.xml @@ -66,29 +66,4 @@ jakarta.xml.bind-api - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - - diff --git a/test-framework/openshift-client/pom.xml b/test-framework/openshift-client/pom.xml index a17483675c3e6..f24732fa1fb0c 100644 --- a/test-framework/openshift-client/pom.xml +++ b/test-framework/openshift-client/pom.xml @@ -56,29 +56,4 @@ jakarta.xml.bind-api - - - - jakarta-rewrite - - - jakarta-rewrite - - - - - - org.openrewrite.maven - rewrite-maven-plugin - - - io.quarkus.jakarta-jaxb-switch - - - - - - - - From 3e418c2e5526b51e7a173b212b1d683e7f88b1b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Wed, 1 Feb 2023 12:39:50 +0100 Subject: [PATCH 233/250] Enable MongoDB tests on Windows --- .../src/test/java/io/quarkus/it/mongodb/BookResourceTest.java | 3 --- .../it/mongodb/BookResourceWithParameterInjectionTest.java | 3 --- .../src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java | 3 --- .../test/java/io/quarkus/it/mongodb/VehicleResourceTest.java | 3 --- .../io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt | 3 --- .../quarkus/it/mongodb/panache/MongodbPanacheResourceTest.kt | 3 --- .../panache/reactive/ReactiveMongodbPanacheResourceTest.kt | 3 --- .../quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java | 3 --- .../quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java | 3 --- .../panache/reactive/ReactiveMongodbPanacheMockingTest.java | 3 --- .../panache/reactive/ReactiveMongodbPanacheResourceTest.java | 3 --- .../panache/transaction/MongodbPanacheTransactionTest.java | 3 --- .../mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java | 3 --- 13 files changed, 39 deletions(-) diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java index 5c0bb32106da1..17567c229c7a9 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceTest.java @@ -10,8 +10,6 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.mongodb.health.MongoHealthCheck; import io.quarkus.test.common.QuarkusTestResource; @@ -22,7 +20,6 @@ @QuarkusTest @QuarkusTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = "version", value = "V4_2")) -@DisabledOnOs(OS.WINDOWS) public class BookResourceTest { private static Jsonb jsonb; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java index 62f40c048aec7..607704ce1c847 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/BookResourceWithParameterInjectionTest.java @@ -5,13 +5,10 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.test.junit.QuarkusTest; @QuarkusTest -@DisabledOnOs(OS.WINDOWS) public class BookResourceWithParameterInjectionTest { private static Jsonb jsonb; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java index 3c3a232409333..861a877e31156 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/PojoResourceTest.java @@ -12,8 +12,6 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.it.mongodb.pojo.Pojo; import io.quarkus.test.junit.QuarkusTest; @@ -21,7 +19,6 @@ import io.restassured.response.Response; @QuarkusTest -@DisabledOnOs(OS.WINDOWS) public class PojoResourceTest { private static Jsonb jsonb; diff --git a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/VehicleResourceTest.java b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/VehicleResourceTest.java index d7d44c91d7f5a..3a2b76fb286f9 100644 --- a/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/VehicleResourceTest.java +++ b/integration-tests/mongodb-client/src/test/java/io/quarkus/it/mongodb/VehicleResourceTest.java @@ -6,8 +6,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.it.mongodb.discriminator.Car; import io.quarkus.it.mongodb.discriminator.Moto; @@ -16,7 +14,6 @@ import io.restassured.response.Response; @QuarkusTest -@DisabledOnOs(OS.WINDOWS) public class VehicleResourceTest { @BeforeEach public void clearCollection() { diff --git a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt index 755366649616a..107041db1af88 100644 --- a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt +++ b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.kt @@ -11,13 +11,10 @@ import jakarta.inject.Inject import jakarta.ws.rs.WebApplicationException import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test -import org.junit.jupiter.api.condition.DisabledOnOs -import org.junit.jupiter.api.condition.OS import org.mockito.Mockito import java.util.Collections @QuarkusTest -@DisabledOnOs(OS.WINDOWS) class MongodbPanacheMockingTest { @Inject lateinit var realPersonRepository: PersonRepository diff --git a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.kt b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.kt index 523527e2bc6b1..737d26c6bf861 100644 --- a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.kt +++ b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.kt @@ -18,8 +18,6 @@ import io.restassured.response.Response import org.hamcrest.Matchers.`is` import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test -import org.junit.jupiter.api.condition.DisabledOnOs -import org.junit.jupiter.api.condition.OS import java.util.Calendar import java.util.Collections import java.util.Date @@ -27,7 +25,6 @@ import java.util.GregorianCalendar @QuarkusTest @QuarkusTestResource(MongoTestResource::class) -@DisabledOnOs(OS.WINDOWS) open class MongodbPanacheResourceTest { @Test fun testBookEntity() { diff --git a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt index a1933ff98170b..455777e42ea28 100644 --- a/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt +++ b/integration-tests/mongodb-panache-kotlin/src/test/kotlin/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.kt @@ -25,8 +25,6 @@ import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Assertions.assertNotNull import org.junit.jupiter.api.Test -import org.junit.jupiter.api.condition.DisabledOnOs -import org.junit.jupiter.api.condition.OS import java.io.IOException import java.time.Duration import java.util.Calendar @@ -37,7 +35,6 @@ import java.util.concurrent.atomic.LongAdder @QuarkusTest @QuarkusTestResource(MongoTestResource::class) -@DisabledOnOs(OS.WINDOWS) internal open class ReactiveMongodbPanacheResourceTest { companion object { private val LIST_OF_BOOK_TYPE_REF: TypeRef> = object : TypeRef>() {} diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java index 7000625e4c6d7..b7aab689ca697 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheMockingTest.java @@ -9,8 +9,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import org.mockito.Mockito; import io.quarkus.it.mongodb.panache.person.MockablePersonRepository; @@ -25,7 +23,6 @@ @QuarkusTest @QuarkusTestResource(MongoReplicaSetTestResource.class) -@DisabledOnOs(OS.WINDOWS) public class MongodbPanacheMockingTest { @Test diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java index b6bfc702e3040..63d5d0aa5dd92 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java @@ -15,8 +15,6 @@ import org.hamcrest.CoreMatchers; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @@ -36,7 +34,6 @@ @QuarkusTest @QuarkusTestResource(MongoReplicaSetTestResource.class) -@DisabledOnOs(OS.WINDOWS) class MongodbPanacheResourceTest { private static final TypeRef> LIST_OF_BOOK_TYPE_REF = new TypeRef>() { }; diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java index cfa5996b0b9a7..0fcb061923e2e 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheMockingTest.java @@ -9,8 +9,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import org.mockito.Mockito; import io.quarkus.it.mongodb.panache.reactive.person.MockableReactivePersonRepository; @@ -24,7 +22,6 @@ @QuarkusTest @QuarkusTestResource(MongoReplicaSetTestResource.class) -@DisabledOnOs(OS.WINDOWS) public class ReactiveMongodbPanacheMockingTest { private static final Duration timeout = Duration.ofSeconds(2); diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java index 91eed8103c5c4..6c9949572f75b 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/reactive/ReactiveMongodbPanacheResourceTest.java @@ -23,8 +23,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @@ -45,7 +43,6 @@ @QuarkusTest @QuarkusTestResource(MongoReplicaSetTestResource.class) -@DisabledOnOs(OS.WINDOWS) class ReactiveMongodbPanacheResourceTest { private static final TypeRef> LIST_OF_BOOK_TYPE_REF = new TypeRef>() { }; diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/transaction/MongodbPanacheTransactionTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/transaction/MongodbPanacheTransactionTest.java index 4b4fa97dd3a72..12e76f909e873 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/transaction/MongodbPanacheTransactionTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/transaction/MongodbPanacheTransactionTest.java @@ -6,8 +6,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @@ -25,7 +23,6 @@ @QuarkusTest @QuarkusTestResource(MongoReplicaSetTestResource.class) -@DisabledOnOs(OS.WINDOWS) class MongodbPanacheTransactionTest { private static final TypeRef> LIST_OF_PERSON_TYPE_REF = new TypeRef>() { }; diff --git a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java index e2bd73c7c5ca0..46deec581d1cb 100644 --- a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java +++ b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java @@ -12,8 +12,6 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.common.ResourceArg; @@ -22,7 +20,6 @@ import io.restassured.response.Response; @QuarkusTest -@DisabledOnOs(OS.WINDOWS) @QuarkusTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.PORT, value = "37017")) class MongoDbRestDataPanacheTest { From cda8d9ed80eca8ec779d3e97ef263e42ab2a2f92 Mon Sep 17 00:00:00 2001 From: Zheng Feng Date: Thu, 8 Dec 2022 17:49:33 +0800 Subject: [PATCH 234/250] Introduce jms-spi with ConnectionFactoryWrapperBuildItem --- build-parent/pom.xml | 8 ++++++ extensions/jms-spi/deployment/pom.xml | 27 +++++++++++++++++++ .../ConnectionFactoryWrapperBuildItem.java | 25 +++++++++++++++++ extensions/jms-spi/pom.xml | 20 ++++++++++++++ extensions/pom.xml | 3 +++ 5 files changed, 83 insertions(+) create mode 100644 extensions/jms-spi/deployment/pom.xml create mode 100644 extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java create mode 100644 extensions/jms-spi/pom.xml diff --git a/build-parent/pom.xml b/build-parent/pom.xml index d1d12aba0a97e..ca2882a1c6734 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -175,6 +175,9 @@ 1.1.1 7.4.4 + + + 2.0.3 @@ -348,6 +351,11 @@ mermaid ${webjar.mermaid.version} + + jakarta.jms + jakarta.jms-api + ${jakarta.jms-api.version} + com.github.davidmoten subethasmtp diff --git a/extensions/jms-spi/deployment/pom.xml b/extensions/jms-spi/deployment/pom.xml new file mode 100644 index 0000000000000..98a1c8c187193 --- /dev/null +++ b/extensions/jms-spi/deployment/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + + io.quarkus + quarkus-jms-spi-parent + 999-SNAPSHOT + + + quarkus-jms-spi-deployment + Quarkus - JMS - SPI - Deployment + + + + io.quarkus + quarkus-core-deployment + + + jakarta.jms + jakarta.jms-api + + + + diff --git a/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java new file mode 100644 index 0000000000000..bc7ccc951f6c4 --- /dev/null +++ b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java @@ -0,0 +1,25 @@ +package io.quarkus.jms.spi.deployment; + +import java.util.function.Function; + +import javax.jms.ConnectionFactory; + +import io.quarkus.builder.item.SimpleBuildItem; + +/** + * A build item that can be used to wrap the JMS ConnectionFactory + */ +public final class ConnectionFactoryWrapperBuildItem extends SimpleBuildItem { + private final Function wrapper; + + public ConnectionFactoryWrapperBuildItem(Function wrapper) { + if (wrapper == null) { + throw new AssertionError("wrapper is required"); + } + this.wrapper = wrapper; + } + + public Function getWrapper() { + return wrapper; + } +} diff --git a/extensions/jms-spi/pom.xml b/extensions/jms-spi/pom.xml new file mode 100644 index 0000000000000..ed967c17f6814 --- /dev/null +++ b/extensions/jms-spi/pom.xml @@ -0,0 +1,20 @@ + + + + quarkus-extensions-parent + io.quarkus + 999-SNAPSHOT + ../pom.xml + + 4.0.0 + + quarkus-jms-spi-parent + Quarkus - JMS SPI - Parent + pom + + deployment + + + diff --git a/extensions/pom.xml b/extensions/pom.xml index 39f767d438f5c..e443cd5dffe96 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -200,6 +200,9 @@ awt + + jms-spi + From 70497481803bba7cb40609fb3fa327cb65d1e578 Mon Sep 17 00:00:00 2001 From: Zheng Feng Date: Mon, 6 Feb 2023 20:23:07 +0800 Subject: [PATCH 235/250] Update jakarta jms-api --- build-parent/pom.xml | 2 +- .../jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index ca2882a1c6734..304e3dd07d0de 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -177,7 +177,7 @@ 7.4.4 - 2.0.3 + 3.1.0 diff --git a/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java index bc7ccc951f6c4..2266bec3ebc6e 100644 --- a/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java +++ b/extensions/jms-spi/deployment/src/main/java/io/quarkus/jms/spi/deployment/ConnectionFactoryWrapperBuildItem.java @@ -2,7 +2,7 @@ import java.util.function.Function; -import javax.jms.ConnectionFactory; +import jakarta.jms.ConnectionFactory; import io.quarkus.builder.item.SimpleBuildItem; From c36d7ff469a76b952242fcabcfeae81d451a4cf4 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 6 Feb 2023 12:17:43 +0200 Subject: [PATCH 236/250] Add AppCDS documentation The AppCDS generation feature has been part of Quarkus for many releases (and has been made more effective and more usable through various revisions), but until now was not documented. Closes: #30821 Co-authored-by: Guillaume Smet Co-authored-by: Foivos --- docs/src/main/asciidoc/appcds.adoc | 95 +++++++++++++++++++++ docs/src/main/asciidoc/container-image.adoc | 5 ++ 2 files changed, 100 insertions(+) create mode 100644 docs/src/main/asciidoc/appcds.adoc diff --git a/docs/src/main/asciidoc/appcds.adoc b/docs/src/main/asciidoc/appcds.adoc new file mode 100644 index 0000000000000..25486c848647a --- /dev/null +++ b/docs/src/main/asciidoc/appcds.adoc @@ -0,0 +1,95 @@ +//// +This guide is maintained in the main Quarkus repository +and pull requests should be submitted there: +https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc +//// += AppCDS +include::_attributes.adoc[] +:categories: core, cloud +:summary: This reference guide explains how to enable AppCDS with Quarkus. + +This reference guide explains how to enable Application Class Data Sharing in your Quarkus applications. + +== What is Application Class Data Sharing (AppCDS)? + +link:https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#application-class-data-sharing[Application Class Data Sharing] is a JVM feature that helps reduce the startup time and memory footprint of a JVM application. +This is achieved by having the JVM create a pre-processed shared archived of classes that are loaded at startup time. As these classes +are loaded every time the application starts, AppCDS is a conceptually simple way of improving the application startup time, +without the application itself having to be coded or configured in a specific way. How much of an improvement depends on many factors, such as the number of classes loaded, the underlying hardware etc. + +== Vanilla AppCDS generation + +The main downside of creating AppCDS manually for an application is that their generation requires launching the application with special flags and obtaining the archive in a step before the application is deployed to production. + +NOTE: The exact process depends on the JVM version being used as newer JVM have incrementally made the process easier. + +This fact makes the use of AppCDS difficult to use for real world deployments where a CI pipeline is responsible for building and deploying applications. + +== AppCDS in Quarkus + +=== Creating the archive + +Quarkus makes AppCDS generation as simple as setting the `quarkus.package.create-appcds` configuration property to `true`. +For an example Quarkus application using Maven (assuming it is located in `/tmp/code-with-quarkus`), the AppCDS archive can be generated by simply building the application like so: + +[source,bash] +---- +./mvnw package -Dquarkus.package.create-appcds=true +---- + +When the build completes, the output will contain (among other things) the following: + +[source] +---- +[INFO] [io.quarkus.deployment.pkg.steps.AppCDSBuildStep] Launching AppCDS creation process. +[INFO] [io.quarkus.deployment.pkg.steps.AppCDSBuildStep] AppCDS successfully created at: '/tmp/code-with-quarkus/target/quarkus-app/app-cds.jsa'. +[INFO] [io.quarkus.deployment.pkg.steps.AppCDSBuildStep] To ensure they are loaded properly, run the application jar from its directory and also add the '-XX:SharedArchiveFile=app-cds.jsa' JVM flag. +Moreover, make sure to use the exact same Java version (x.y.z) to run the application as was used to build it. +---- + +If we take a look at `/tmp/code-with-quarkus/target/quarkus-app`, among the other files, we see `app-cds.jsa`, which is the generated AppCDS archive. + +=== Using the archive + +Using the archive is done by using the `-XX:SharedArchiveFile` flag. However, a few caveats apply: + +* The paths to the Quarkus jar file and the AppCDS archive need to be exactly the same as those Quarkus used to build the archive +* The version of the JVM used to run the application must be **exactly** the same as the one used to build the Quarkus application. + +Assuming we are using the same JVM to run the application as we used to build the application, we can launch the application like so: + +[source,bash] +---- +cd target/quarkus-app +java -XX:SharedArchiveFile=app-cds.jsa -jar quarkus-run.jar +---- + +[TIP] +==== +The JVM is resilient. Faced with a situation where the archive file is not usable (for whatever reason) it will simply disable the AppCDS feature. + +If it is desirable to simply halt the execution when the archive is not usable, the following command line invocation can be used: + +[source,bash] +---- +java -Xshare:on -XX:SharedArchiveFile=app-cds.jsa -jar quarkus-run.jar +---- +==== + +[NOTE] +==== +Given what was mentioned above about how the application needs to be launched in order for the archive to be built, the question arises of how Quarkus deals with this situation. + +The answer is that at application build time, right after the application archive is built, Quarkus launches the application, but only the parts of the launch process that are safe are run. +More specifically, the application is run up until the steps that actually open sockets or run application logic. + +This results in an archive generation process that on one hand is completely safe, but on the other hand is unable to archive every single class that the application might need at boot time. +As a result, users are expected to get a slightly more effective archive if they manually go through the hoops of generating the AppCDS archive. +==== + +=== Usage in containers + +When building container images using the `quarkus-container-image-jib` extension, Quarkus automatically takes care of all the steps needed to generate the archive +and make it usable at runtime in the container. + +This way, by simply setting `quarkus.package.create-appcds` to `true` the generated container can benefit from a slight reduction in startup time and memory usage. diff --git a/docs/src/main/asciidoc/container-image.adoc b/docs/src/main/asciidoc/container-image.adoc index 4cedf318a0d6c..754caaf679fa4 100644 --- a/docs/src/main/asciidoc/container-image.adoc +++ b/docs/src/main/asciidoc/container-image.adoc @@ -99,6 +99,11 @@ To enable this feature, the property `quarkus.bootstrap.workspace-discovery` nee when invoking the build tool, either as a build tool property. Setting this property in `application.properties` will **not** work because this property needs to be known very early on in the build process. +==== AppCDS + +Quarkus supports generating and including an link:https://docs.oracle.com/en/java/javase/17/docs/specs/man/java.html#application-class-data-sharing[Application Class Data Sharing] archive when generating a container image using Jib. +See the xref:appcds.adoc[AppCDS documentation] for more details. + [#docker] === Docker From daa8cfeb7bcfbb1ea011850ebc6dc0f4e1015842 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 6 Feb 2023 17:42:35 +0100 Subject: [PATCH 237/250] Restore jakarta-renames.properties I will use it in the migration script to migrate the documentation. --- jakarta/jakarta-renames.properties | 158 +++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 jakarta/jakarta-renames.properties diff --git a/jakarta/jakarta-renames.properties b/jakarta/jakarta-renames.properties new file mode 100644 index 0000000000000..5a84f1fe33d02 --- /dev/null +++ b/jakarta/jakarta-renames.properties @@ -0,0 +1,158 @@ +# Default jakarta configuration for package renames. +# +# Format: +# currentPackageName=newPackageName +# +# The current package name may contain a ".*" suffix. The suffix indicates +# that sub-packages are to be matched. For example: +# +# javax.servlet.*=jakartax.servlet +# +# This will cause sub-packages like javax.servlet.annotation +# to be replaced with jakartax.servlet.annotation +# +# By default, sub-packages are not updated. +# +# Package renames apply in several ways: +# Class references in .class files are updated. +# Qualified class names which appear in java string constants in .class files are updated. +# Qualified resource references which appear in java string constants in .class files are updated. +# Package references in manifest (MANIFEST.MF) and feature manifest (featureName.mf) files are updated. +# + +javax.activation=jakarta.activation +javax.annotation.security=jakarta.annotation.security +javax.annotation.sql=jakarta.annotation.sql +javax.annotation=jakarta.annotation +javax.batch.api.chunk.listener=jakarta.batch.api.chunk.listener +javax.batch.api.chunk=jakarta.batch.api.chunk +javax.batch.api.listener=jakarta.batch.api.listener +javax.batch.api.partition=jakarta.batch.api.partition +javax.batch.api=jakarta.batch.api +javax.batch.operations=jakarta.batch.operations +javax.batch.runtime.context=jakarta.batch.runtime.context +javax.batch.runtime=jakarta.batch.runtime +javax.decorator=jakarta.decorator +javax.ejb.embeddable=jakarta.ejb.embeddable +javax.ejb.spi=jakarta.ejb.spi +javax.ejb=jakarta.ejb +javax.el=jakarta.el +javax.enterprise.concurrent=jakarta.enterprise.concurrent +javax.enterprise.context.control=jakarta.enterprise.context.control +javax.enterprise.context.spi=jakarta.enterprise.context.spi +javax.enterprise.context=jakarta.enterprise.context +javax.enterprise.event=jakarta.enterprise.event +javax.enterprise.inject.literal=jakarta.enterprise.inject.literal +javax.enterprise.inject.se=jakarta.enterprise.inject.se +javax.enterprise.inject.spi.configurator=jakarta.enterprise.inject.spi.configurator +javax.enterprise.inject.spi=jakarta.enterprise.inject.spi +javax.enterprise.inject=jakarta.enterprise.inject +javax.enterprise.util=jakarta.enterprise.util +javax.faces.annotation=jakarta.faces.annotation +javax.faces.application=jakarta.faces.application +javax.faces.bean=jakarta.faces.bean +javax.faces.component.behavior=jakarta.faces.component.behavior +javax.faces.component.html=jakarta.faces.component.html +javax.faces.component.search=jakarta.faces.component.search +javax.faces.component.visit=jakarta.faces.component.visit +javax.faces.component=jakarta.faces.component +javax.faces.context=jakarta.faces.context +javax.faces.convert=jakarta.faces.convert +javax.faces.el=jakarta.faces.el +javax.faces.event=jakarta.faces.event +javax.faces.flow.builder=jakarta.faces.flow.builder +javax.faces.flow=jakarta.faces.flow +javax.faces.lifecycle=jakarta.faces.lifecycle +javax.faces.model=jakarta.faces.model +javax.faces.push=jakarta.faces.push +javax.faces.render=jakarta.faces.render +javax.faces.validator=jakarta.faces.validator +javax.faces.view.facelets=jakarta.faces.view.facelets +javax.faces.view=jakarta.faces.view +javax.faces.webapp=jakarta.faces.webapp +javax.faces=jakarta.faces +javax.inject=jakarta.inject +javax.interceptor=jakarta.interceptor +javax.jms=jakarta.jms +javax.json.bind.adapter=jakarta.json.bind.adapter +javax.json.bind.annotation=jakarta.json.bind.annotation +javax.json.bind.config=jakarta.json.bind.config +javax.json.bind.serializer=jakarta.json.bind.serializer +javax.json.bind.spi=jakarta.json.bind.spi +javax.json.bind=jakarta.json.bind +javax.json.spi=jakarta.json.spi +javax.json.stream=jakarta.json.stream +javax.json=jakarta.json +javax.jws.soap=jakarta.jws.soap +javax.jws=jakarta.jws +javax.mail.event=jakarta.mail.event +javax.mail.internet=jakarta.mail.internet +javax.mail.search=jakarta.mail.search +javax.mail.util=jakarta.mail.util +javax.mail=jakarta.mail +javax.persistence.criteria=jakarta.persistence.criteria +javax.persistence.metamodel=jakarta.persistence.metamodel +javax.persistence.spi=jakarta.persistence.spi +javax.persistence=jakarta.persistence +javax.resource.cci=jakarta.resource.cci +javax.resource.spi.endpoint=jakarta.resource.spi.endpoint +javax.resource.spi.security=jakarta.resource.spi.security +javax.resource.spi.work=jakarta.resource.spi.work +javax.resource.spi=jakarta.resource.spi +javax.resource=jakarta.resource +javax.security.auth.message.callback=jakarta.security.auth.message.callback +javax.security.auth.message.config=jakarta.security.auth.message.config +javax.security.auth.message.module=jakarta.security.auth.message.module +javax.security.auth.message=jakarta.security.auth.message +javax.security.enterprise.authentication.mechanism.http=jakarta.security.enterprise.authentication.mechanism.http +javax.security.enterprise.credential=jakarta.security.enterprise.credential +javax.security.enterprise.identitystore=jakarta.security.enterprise.identitystore +javax.security.enterprise=jakarta.security.enterprise +javax.security.jacc=jakarta.security.jacc +javax.servlet.annotation=jakarta.servlet.annotation +javax.servlet.descriptor=jakarta.servlet.descriptor +javax.servlet.http=jakarta.servlet.http +javax.servlet.jsp.el=jakarta.servlet.jsp.el +javax.servlet.jsp.jstl.core=jakarta.servlet.jsp.jstl.core +javax.servlet.jsp.jstl.fmt=jakarta.servlet.jsp.jstl.fmt +javax.servlet.jsp.jstl.sql=jakarta.servlet.jsp.jstl.sql +javax.servlet.jsp.jstl.tlv=jakarta.servlet.jsp.jstl.tlv +javax.servlet.jsp.jstl=jakarta.servlet.jsp.jstl +javax.servlet.jsp.resources=jakarta.servlet.jsp.resources +javax.servlet.jsp.tagext=jakarta.servlet.jsp.tagext +javax.servlet.jsp=jakarta.servlet.jsp +javax.servlet.resources=jakarta.servlet.resources +javax.servlet=jakarta.servlet +javax.transaction=jakarta.transaction +javax.validation.bootstrap=jakarta.validation.bootstrap +javax.validation.constraints=jakarta.validation.constraints +javax.validation.constraintvalidation=jakarta.validation.constraintvalidation +javax.validation.executable=jakarta.validation.executable +javax.validation.groups=jakarta.validation.groups +javax.validation.metadata=jakarta.validation.metadata +javax.validation.spi=jakarta.validation.spi +javax.validation.valueextraction=jakarta.validation.valueextraction +javax.validation=jakarta.validation +javax.websocket.server=jakarta.websocket.server +javax.websocket=jakarta.websocket +javax.ws.rs.client=jakarta.ws.rs.client +javax.ws.rs.container=jakarta.ws.rs.container +javax.ws.rs.core=jakarta.ws.rs.core +javax.ws.rs.ext=jakarta.ws.rs.ext +javax.ws.rs.sse=jakarta.ws.rs.sse +javax.ws.rs=jakarta.ws.rs +javax.xml.bind.annotation.adapters=jakarta.xml.bind.annotation.adapters +javax.xml.bind.annotation=jakarta.xml.bind.annotation +javax.xml.bind.attachment=jakarta.xml.bind.attachment +javax.xml.bind.helpers=jakarta.xml.bind.helpers +javax.xml.bind.util=jakarta.xml.bind.util +javax.xml.bind=jakarta.xml.bind +javax.xml.soap=jakarta.xml.soap +javax.xml.ws.handler.soap=jakarta.xml.ws.handler.soap +javax.xml.ws.handler=jakarta.xml.ws.handler +javax.xml.ws.http=jakarta.xml.ws.http +javax.xml.ws.soap=jakarta.xml.ws.soap +javax.xml.ws.spi.http=jakarta.xml.ws.spi.http +javax.xml.ws.spi=jakarta.xml.ws.spi +javax.xml.ws.wsaddressing=jakarta.xml.ws.wsaddressing +javax.xml.ws=jakarta.xml.ws From 0bc09e788b4f40341b98e90b89c051df1e9d936c Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 7 Feb 2023 07:17:42 +0100 Subject: [PATCH 238/250] Use SchemaType.ARRAY instead of "ARRAY" for native support While "ARRAY" works in JVM, it does not in Native. Fix https://github.com/quarkusio/quarkus/issues/30919 --- .../deployment/methods/StandardMethodImplementor.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java index c46aadc3c26b1..d12d3a9eb279e 100644 --- a/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java +++ b/extensions/panache/rest-data-panache/deployment/src/main/java/io/quarkus/rest/data/panache/deployment/methods/StandardMethodImplementor.java @@ -41,6 +41,7 @@ public abstract class StandardMethodImplementor implements MethodImplementor { private static final String OPENAPI_RESPONSE_ANNOTATION = OPENAPI_PACKAGE + ".responses.APIResponse"; private static final String OPENAPI_CONTENT_ANNOTATION = OPENAPI_PACKAGE + ".media.Content"; private static final String OPENAPI_SCHEMA_ANNOTATION = OPENAPI_PACKAGE + ".media.Schema"; + private static final String SCHEMA_TYPE_CLASS_NAME = "org.eclipse.microprofile.openapi.annotations.enums.SchemaType"; private static final String SCHEMA_TYPE_ARRAY = "ARRAY"; private static final String ROLES_ALLOWED_ANNOTATION = "jakarta.annotation.security.RolesAllowed"; private static final Logger LOGGER = Logger.getLogger(StandardMethodImplementor.class); @@ -197,7 +198,7 @@ protected void addOpenApiResponseAnnotation(AnnotatedElement element, Response.S .add("implementation", clazz); if (isList) { - schemaAnnotation.add("type", SCHEMA_TYPE_ARRAY); + schemaAnnotation.add("type", schemaTypeArray()); } element.addAnnotation(OPENAPI_RESPONSE_ANNOTATION) @@ -235,6 +236,11 @@ protected boolean isNotReactivePanache() { return !capabilities.isPresent(Capability.HIBERNATE_REACTIVE); } + private static Enum schemaTypeArray() { + Class schemaTypeClass = toClass(SCHEMA_TYPE_CLASS_NAME); + return Enum.valueOf((Class) schemaTypeClass, SCHEMA_TYPE_ARRAY); + } + private static Class toClass(String className) { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); try { From 1053989b0b5e52487c54633f4f64f3e1b4ad26f9 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Tue, 7 Feb 2023 07:45:52 +0100 Subject: [PATCH 239/250] SmallRye GraphQL 2.1.0 --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 5899d69819804..cd3e3c6e3ac75 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -59,7 +59,7 @@ 4.0.1 4.0.0 3.1.2 - 2.1.0.Beta1 + 2.1.0 3.0.3 6.1.0 4.2.0 From cc4a8b79b2dc7f8fdac66e5bee0d978ee03f280f Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Mon, 6 Feb 2023 14:16:17 +0100 Subject: [PATCH 240/250] Keep 2.x extensions codestarts embeded in tooling and mark them legacy --- .../quarkus/legacy-extensions-codestarts/README.md | 2 ++ .../resteasy-codestart/base/README.tpl.qute.md | 0 .../resources/META-INF/resources/index.entry.qute.html | 0 .../resteasy-codestart/codestart.yml | 0 .../java/org/acme/{resource.class-name}.tpl.qute.java | 10 +++++----- .../org/acme/{resource.class-name}IT.tpl.qute.java | 0 .../org/acme/{resource.class-name}Test.tpl.qute.java | 0 .../kotlin/org/acme/{resource.class-name}.tpl.qute.kt | 8 ++++---- .../org/acme/{resource.class-name}IT.tpl.qute.kt | 0 .../org/acme/{resource.class-name}Test.tpl.qute.kt | 0 .../org/acme/{resource.class-name}.tpl.qute.scala | 4 ++-- .../org/acme/{resource.class-name}IT.tpl.qute.scala | 0 .../org/acme/{resource.class-name}Test.tpl.qute.scala | 0 .../base/README.tpl.qute.md | 0 .../resources/META-INF/resources/index.entry.qute.html | 0 .../resteasy-reactive-codestart/codestart.yml | 0 .../java/org/acme/{resource.class-name}.tpl.qute.java | 10 +++++----- .../org/acme/{resource.class-name}IT.tpl.qute.java | 0 .../org/acme/{resource.class-name}Test.tpl.qute.java | 0 .../kotlin/org/acme/{resource.class-name}.tpl.qute.kt | 8 ++++---- .../org/acme/{resource.class-name}IT.tpl.qute.kt | 0 .../org/acme/{resource.class-name}Test.tpl.qute.kt | 0 .../org/acme/{resource.class-name}.tpl.qute.scala | 4 ++-- .../org/acme/{resource.class-name}IT.tpl.qute.scala | 0 .../org/acme/{resource.class-name}Test.tpl.qute.scala | 0 .../spring-web-codestart/base/README.tpl.qute.md | 0 .../resources/META-INF/resources/index.entry.qute.html | 0 .../spring-web-codestart/codestart.yml | 0 .../java/org/acme/{resource.class-name}.tpl.qute.java | 0 .../org/acme/{resource.class-name}IT.tpl.qute.java | 0 .../org/acme/{resource.class-name}Test.tpl.qute.java | 0 .../kotlin/org/acme/{resource.class-name}.tpl.qute.kt | 0 .../org/acme/{resource.class-name}IT.tpl.qute.kt | 0 .../org/acme/{resource.class-name}Test.tpl.qute.kt | 0 .../org/acme/{resource.class-name}.tpl.qute.scala | 0 .../org/acme/{resource.class-name}IT.tpl.qute.scala | 0 .../org/acme/{resource.class-name}Test.tpl.qute.scala | 0 .../src_main_java_org_acme_GreetingResource.java | 10 +++++----- .../src_main_java_org_acme_GreetingResource.java | 10 +++++----- .../src_main_java_com_andy_BonjourResource.java | 10 +++++----- .../src_main_kotlin_com_andy_BonjourResource.kt | 8 ++++---- .../src_main_scala_com_andy_BonjourResource.scala | 4 ++-- .../src_main_java_ilove_quark_us_GreetingResource.java | 10 +++++----- .../src_main_kotlin_ilove_quark_us_GreetingResource.kt | 8 ++++---- ...rc_main_scala_ilove_quark_us_GreetingResource.scala | 4 ++-- .../src_main_java_ilove_quark_us_GreetingResource.java | 10 +++++----- .../src_main_kotlin_ilove_quark_us_GreetingResource.kt | 8 ++++---- ...rc_main_scala_ilove_quark_us_GreetingResource.scala | 4 ++-- 48 files changed, 67 insertions(+), 65 deletions(-) create mode 100644 independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/README.md rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/base/README.tpl.qute.md (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/codestart.yml (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java (61%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts/resteasy-reactive-codestart => legacy-extensions-codestarts/resteasy-codestart}/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt (57%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala (68%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/base/README.tpl.qute.md (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/codestart.yml (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java (61%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts/resteasy-codestart => legacy-extensions-codestarts/resteasy-reactive-codestart}/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt (57%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala (68%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/resteasy-reactive-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/base/README.tpl.qute.md (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/codestart.yml (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala (100%) rename independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/{extension-codestarts => legacy-extensions-codestarts}/spring-web-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala (100%) diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/README.md b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/README.md new file mode 100644 index 0000000000000..d4c1dd2591cdc --- /dev/null +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/README.md @@ -0,0 +1,2 @@ +Those extensions codestarts are used with Quarkus platform 2.10 and below. +From 2.11 and onward, they are provided by the platform. \ No newline at end of file diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/base/README.tpl.qute.md b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/base/README.tpl.qute.md similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/base/README.tpl.qute.md rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/base/README.tpl.qute.md diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/codestart.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/codestart.yml similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/codestart.yml rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/codestart.yml diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java similarity index 61% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 720033d91c9f2..769ac7eccf80a 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt similarity index 57% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index c406ce55ca1f1..6cf3f82e70791 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -import jakarta.ws.rs.GET -import jakarta.ws.rs.Path -import jakarta.ws.rs.Produces -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.GET +import javax.ws.rs.Path +import javax.ws.rs.Produces +import javax.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala similarity index 68% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index dc1b6cda15acb..9c1d477333e38 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import jakarta.ws.rs.\{GET, Path, Produces} -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.\{GET, Path, Produces} +import javax.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/base/README.tpl.qute.md b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/base/README.tpl.qute.md similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/base/README.tpl.qute.md rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/base/README.tpl.qute.md diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/codestart.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/codestart.yml similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/codestart.yml rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/codestart.yml diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java similarity index 61% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java index 720033d91c9f2..769ac7eccf80a 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java @@ -1,9 +1,9 @@ package org.acme; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("{resource.path}") public class {resource.class-name} { @@ -13,4 +13,4 @@ public class {resource.class-name} { public String hello() { return "{resource.response}"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt similarity index 57% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt index c406ce55ca1f1..6cf3f82e70791 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt @@ -1,9 +1,9 @@ package org.acme -import jakarta.ws.rs.GET -import jakarta.ws.rs.Path -import jakarta.ws.rs.Produces -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.GET +import javax.ws.rs.Path +import javax.ws.rs.Produces +import javax.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala similarity index 68% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala index dc1b6cda15acb..9c1d477333e38 100644 --- a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala +++ b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala @@ -1,7 +1,7 @@ package org.acme -import jakarta.ws.rs.\{GET, Path, Produces} -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.\{GET, Path, Produces} +import javax.ws.rs.core.MediaType @Path("{resource.path}") class {resource.class-name} { diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/resteasy-reactive-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/base/README.tpl.qute.md b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/base/README.tpl.qute.md similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/base/README.tpl.qute.md rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/base/README.tpl.qute.md diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/base/src/main/resources/META-INF/resources/index.entry.qute.html diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/codestart.yml b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/codestart.yml similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/codestart.yml rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/codestart.yml diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/main/java/org/acme/{resource.class-name}.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/main/kotlin/org/acme/{resource.class-name}.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/native-test/kotlin/org/acme/{resource.class-name}IT.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/kotlin/src/test/kotlin/org/acme/{resource.class-name}Test.tpl.qute.kt diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/main/scala/org/acme/{resource.class-name}.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/native-test/scala/org/acme/{resource.class-name}IT.tpl.qute.scala diff --git a/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala b/independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala similarity index 100% rename from independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala rename to independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/legacy-extensions-codestarts/spring-web-codestart/scala/src/test/scala/org/acme/{resource.class-name}Test.tpl.qute.scala diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java index 6938062ec8ff7..2a175fd5de8df 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenDefaultJava/src_main_java_org_acme_GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello from RESTEasy Reactive"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java index f9eea334cb1e1..055f53c6fe033 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateMavenResteasyJava/src_main_java_org_acme_GreetingResource.java @@ -1,9 +1,9 @@ package org.acme; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello RESTEasy"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java index 830a8f41aaade..b9958edbb5b23 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyJavaCustom/src_main_java_com_andy_BonjourResource.java @@ -1,9 +1,9 @@ package com.andy; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/bonjour") public class BonjourResource { @@ -13,4 +13,4 @@ public class BonjourResource { public String hello() { return "Hello RESTEasy"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt index 81e6f54370526..8ec4180e042ff 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyKotlinCustom/src_main_kotlin_com_andy_BonjourResource.kt @@ -1,9 +1,9 @@ package com.andy -import jakarta.ws.rs.GET -import jakarta.ws.rs.Path -import jakarta.ws.rs.Produces -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.GET +import javax.ws.rs.Path +import javax.ws.rs.Produces +import javax.ws.rs.core.MediaType @Path("/bonjour") class BonjourResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala index 7adb6da83ba38..57cdbdd8c7829 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/QuarkusCodestartGenerationTest/generateRESTEasyScalaCustom/src_main_scala_com_andy_BonjourResource.scala @@ -1,7 +1,7 @@ package com.andy -import jakarta.ws.rs.{GET, Path, Produces} -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.{GET, Path, Produces} +import javax.ws.rs.core.MediaType @Path("/bonjour") class BonjourResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java index a2e055db4a534..ff566718859d8 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java @@ -1,9 +1,9 @@ package ilove.quark.us; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello RESTEasy"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt index 7887add443d06..b014bba668107 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt @@ -1,9 +1,9 @@ package ilove.quark.us -import jakarta.ws.rs.GET -import jakarta.ws.rs.Path -import jakarta.ws.rs.Produces -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.GET +import javax.ws.rs.Path +import javax.ws.rs.Produces +import javax.ws.rs.core.MediaType @Path("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala index 6810956e6c2c0..7d287aeb54226 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala @@ -1,7 +1,7 @@ package ilove.quark.us -import jakarta.ws.rs.{GET, Path, Produces} -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.{GET, Path, Produces} +import javax.ws.rs.core.MediaType @Path("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java index 382f19a13488c..c65c013da3d95 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_java_ilove_quark_us_GreetingResource.java @@ -1,9 +1,9 @@ package ilove.quark.us; -import jakarta.ws.rs.GET; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.Produces; -import jakarta.ws.rs.core.MediaType; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; @Path("/hello") public class GreetingResource { @@ -13,4 +13,4 @@ public class GreetingResource { public String hello() { return "Hello from RESTEasy Reactive"; } -} +} \ No newline at end of file diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt index 14985fe82c9f0..142f19634d0b4 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_kotlin_ilove_quark_us_GreetingResource.kt @@ -1,9 +1,9 @@ package ilove.quark.us -import jakarta.ws.rs.GET -import jakarta.ws.rs.Path -import jakarta.ws.rs.Produces -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.GET +import javax.ws.rs.Path +import javax.ws.rs.Produces +import javax.ws.rs.core.MediaType @Path("/hello") class GreetingResource { diff --git a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala index 0977b35dab1ce..138be700d17be 100644 --- a/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala +++ b/independent-projects/tools/devtools-testing/src/test/resources/__snapshots__/RESTEasyReactiveCodestartTest/testContent/src_main_scala_ilove_quark_us_GreetingResource.scala @@ -1,7 +1,7 @@ package ilove.quark.us -import jakarta.ws.rs.{GET, Path, Produces} -import jakarta.ws.rs.core.MediaType +import javax.ws.rs.{GET, Path, Produces} +import javax.ws.rs.core.MediaType @Path("/hello") class GreetingResource { From fcf25a04e9eb16a1de88b4ba24d20e4324459c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Tue, 7 Feb 2023 09:40:33 +0100 Subject: [PATCH 241/250] Revert "Fix automatic module name of the change agent (fixes #29719)" This reverts commit fe95e5f02fc1e73610f09dd36cbffbd63eccbc24. --- bom/application/pom.xml | 2 +- core/class-change-agent/pom.xml | 3 +-- core/deployment/pom.xml | 2 +- core/runtime/pom.xml | 2 +- .../src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java | 2 +- devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 832e7719c58be..7be7c47d1891c 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -471,7 +471,7 @@ io.quarkus - quarkus-klass-change-agent + quarkus-class-change-agent ${project.version} diff --git a/core/class-change-agent/pom.xml b/core/class-change-agent/pom.xml index c06c2d3d25cb2..5b57062f854b3 100644 --- a/core/class-change-agent/pom.xml +++ b/core/class-change-agent/pom.xml @@ -11,8 +11,7 @@ ../../build-parent/pom.xml - - quarkus-klass-change-agent + quarkus-class-change-agent Quarkus - Core - Class Change Agent A Java Agent that exposes the instrumentation API. This allows for super fast diff --git a/core/deployment/pom.xml b/core/deployment/pom.xml index 85b957e574dc8..27d1b159ef07c 100644 --- a/core/deployment/pom.xml +++ b/core/deployment/pom.xml @@ -52,7 +52,7 @@ io.quarkus - quarkus-klass-change-agent + quarkus-class-change-agent io.quarkus diff --git a/core/runtime/pom.xml b/core/runtime/pom.xml index 68676bbf45c2f..120b022ae85c2 100644 --- a/core/runtime/pom.xml +++ b/core/runtime/pom.xml @@ -177,7 +177,7 @@ org.junit.jupiter:junit-jupiter-params org.junit.platform:junit-platform-commons org.junit.platform:junit-platform-engine - io.quarkus:quarkus-klass-change-agent + io.quarkus:quarkus-class-change-agent org.jacoco:org.jacoco.agent:runtime io.quarkus:quarkus-bootstrap-gradle-resolver io.quarkus:quarkus-junit5-mockito-config diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index f77b86fb8cec2..9a3ebcf051b5b 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -538,7 +538,7 @@ private void addQuarkusDevModeDeps(GradleDevModeLauncher.Builder builder, Applic if (!(artifactId.getGroup().equals("io.quarkus") && artifactId.getName().equals("quarkus-ide-launcher"))) { if (artifactId.getGroup().equals("io.quarkus") - && artifactId.getName().equals("quarkus-klass-change-agent")) { + && artifactId.getName().equals("quarkus-class-change-agent")) { builder.jvmArgs("-javaagent:" + appDep.getFile().getAbsolutePath()); } else { builder.classpathEntry(ArtifactKey.of(appDep.getModuleVersion().getId().getGroup(), appDep.getName(), diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index 7c2eb6d49707a..c57a75a2c501f 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -1293,7 +1293,7 @@ private void addQuarkusDevModeDeps(MavenDevModeLauncher.Builder builder, Applica final org.eclipse.aether.artifact.Artifact a = appDep.getArtifact(); if (!(a.getArtifactId().equals("quarkus-ide-launcher") && a.getGroupId().equals("io.quarkus"))) { - if (a.getArtifactId().equals("quarkus-klass-change-agent") + if (a.getArtifactId().equals("quarkus-class-change-agent") && a.getGroupId().equals("io.quarkus")) { builder.jvmArgs("-javaagent:" + a.getFile().getAbsolutePath()); } else { From 528a312182f308224b5b9c6fe3ac549e240e7a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Petrovick=C3=BD?= Date: Tue, 7 Feb 2023 09:44:02 +0100 Subject: [PATCH 242/250] Fix automatic module name of the change agent (fixes #30868) --- core/class-change-agent/pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/class-change-agent/pom.xml b/core/class-change-agent/pom.xml index 5b57062f854b3..2285eb4e58290 100644 --- a/core/class-change-agent/pom.xml +++ b/core/class-change-agent/pom.xml @@ -31,6 +31,8 @@ io.quarkus.changeagent.ClassChangeAgent true + + quarkus.klass.change.agent From 599400162b1fa8a97d9cf5257533633641617192 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 7 Feb 2023 12:41:53 +0200 Subject: [PATCH 243/250] Add support for JAX-RS StreamingOutput Closes: #28385 --- .../server/core/ServerSerialisers.java | 4 ++ .../StreamingOutputMessageBodyWriter.java | 51 +++++++++++++++++ .../providers/StreamingOutputTestCase.java | 55 +++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/StreamingOutputMessageBodyWriter.java create mode 100644 independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/StreamingOutputTestCase.java diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java index bd093f5c242fd..fc482e22001fd 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/ServerSerialisers.java @@ -27,6 +27,7 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.MultivaluedMap; import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.StreamingOutput; import jakarta.ws.rs.core.Variant; import jakarta.ws.rs.ext.MessageBodyReader; import jakarta.ws.rs.ext.MessageBodyWriter; @@ -63,6 +64,7 @@ import org.jboss.resteasy.reactive.server.providers.serialisers.ServerPathPartBodyHandler; import org.jboss.resteasy.reactive.server.providers.serialisers.ServerReaderBodyHandler; import org.jboss.resteasy.reactive.server.providers.serialisers.ServerStringMessageBodyHandler; +import org.jboss.resteasy.reactive.server.providers.serialisers.StreamingOutputMessageBodyWriter; import org.jboss.resteasy.reactive.server.spi.ServerHttpRequest; import org.jboss.resteasy.reactive.server.spi.ServerHttpResponse; import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; @@ -130,6 +132,8 @@ public void accept(ResteasyReactiveRequestContext context) { MediaType.APPLICATION_FORM_URLENCODED), new Serialisers.BuiltinWriter(InputStream.class, ServerInputStreamMessageBodyHandler.class, MediaType.WILDCARD), + new Serialisers.BuiltinWriter(StreamingOutput.class, StreamingOutputMessageBodyWriter.class, + MediaType.WILDCARD), new Serialisers.BuiltinWriter(Reader.class, ServerReaderBodyHandler.class, MediaType.WILDCARD), new Serialisers.BuiltinWriter(File.class, ServerFileBodyHandler.class, diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/StreamingOutputMessageBodyWriter.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/StreamingOutputMessageBodyWriter.java new file mode 100644 index 0000000000000..9fa833eccaf5d --- /dev/null +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/providers/serialisers/StreamingOutputMessageBodyWriter.java @@ -0,0 +1,51 @@ +package org.jboss.resteasy.reactive.server.providers.serialisers; + +import java.io.IOException; +import java.io.OutputStream; +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; + +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.core.StreamingOutput; + +import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo; +import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter; +import org.jboss.resteasy.reactive.server.spi.ServerRequestContext; + +public class StreamingOutputMessageBodyWriter implements ServerMessageBodyWriter { + @Override + public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType) { + return doIsWriteable(type); + } + + @Override + public boolean isWriteable(Class type, Type genericType, ResteasyReactiveResourceInfo target, + MediaType mediaType) { + return doIsWriteable(type); + } + + private static boolean doIsWriteable(Class type) { + return StreamingOutput.class.isAssignableFrom(type); + } + + @Override + public long getSize(StreamingOutput streamingOutput, Class type, Type genericType, Annotation[] annotations, + MediaType mediaType) { + return -1; + } + + @Override + public void writeTo(StreamingOutput streamingOutput, Class type, Type genericType, Annotation[] annotations, + MediaType mediaType, MultivaluedMap httpHeaders, OutputStream entityStream) + throws IOException, WebApplicationException { + streamingOutput.write(entityStream); + } + + @Override + public void writeResponse(StreamingOutput o, Type genericType, ServerRequestContext context) + throws WebApplicationException, IOException { + o.write(context.getOrCreateOutputStream()); + } +} diff --git a/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/StreamingOutputTestCase.java b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/StreamingOutputTestCase.java new file mode 100644 index 0000000000000..0aa8818ec21f7 --- /dev/null +++ b/independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/providers/StreamingOutputTestCase.java @@ -0,0 +1,55 @@ +package org.jboss.resteasy.reactive.server.vertx.test.providers; + +import static io.restassured.RestAssured.get; +import static org.hamcrest.CoreMatchers.equalTo; + +import java.io.IOException; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.util.function.Supplier; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.StreamingOutput; + +import org.jboss.resteasy.reactive.server.vertx.test.framework.ResteasyReactiveUnitTest; +import org.jboss.shrinkwrap.api.ShrinkWrap; +import org.jboss.shrinkwrap.api.spec.JavaArchive; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; + +public class StreamingOutputTestCase { + + @RegisterExtension + static ResteasyReactiveUnitTest test = new ResteasyReactiveUnitTest() + .setArchiveProducer(new Supplier<>() { + @Override + public JavaArchive get() { + return ShrinkWrap.create(JavaArchive.class) + .addClasses(TestResource.class); + } + }); + + @Test + public void testWith() { + get("/test") + .then() + .statusCode(200) + .body(equalTo("hello world")); + } + + @Path("test") + public static class TestResource { + + @GET + public StreamingOutput with() { + return new StreamingOutput() { + @Override + public void write(OutputStream output) throws IOException, WebApplicationException { + output.write("hello world".getBytes(StandardCharsets.UTF_8)); + } + }; + } + } +} From bbbd2da2d01129d08377eeb5a856bd39e6b3e2e7 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 7 Feb 2023 12:59:48 +0200 Subject: [PATCH 244/250] Update revision of RR TCK This revision includes enabled StreamingOutput tests --- tcks/resteasy-reactive/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcks/resteasy-reactive/pom.xml b/tcks/resteasy-reactive/pom.xml index 53c51f2e962a0..189bc8a29f828 100644 --- a/tcks/resteasy-reactive/pom.xml +++ b/tcks/resteasy-reactive/pom.xml @@ -17,7 +17,7 @@ - 34795c1d2159c420298916d640df239f249f4935 + 8937bc59acc21658d1c9acf59dc3e8960fd98869 ${skipTests} ${exec.skip} From 999289a59e9befff6222d90027dcf4c33c3e9075 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 7 Feb 2023 12:28:45 +0100 Subject: [PATCH 245/250] Ignore interface/class without default constructs fields in SB config This should behave similarly that when the setter is private. In this case, the field is ignored and we write a warning saying that a field is going to be ignored. Fix https://github.com/quarkusio/quarkus/issues/30896 --- .../deployment/ClassConfigurationPropertiesUtil.java | 12 +++++------- .../io/quarkus/it/spring/boot/ClassProperties.java | 10 ++++++++++ .../it/spring/boot/ClassPropertiesResource.java | 6 ++++++ .../java/io/quarkus/it/spring/boot/Interface.java | 5 +++++ .../src/main/resources/application.properties | 2 +- .../quarkus/it/spring/boot/ClassPropertiesTest.java | 7 +++++++ 6 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/Interface.java diff --git a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java index c40ba364959aa..a9082db669ce8 100644 --- a/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java +++ b/extensions/spring-boot-properties/deployment/src/main/java/io/quarkus/spring/boot/properties/deployment/ClassConfigurationPropertiesUtil.java @@ -309,13 +309,7 @@ private ResultHandle populateConfigObject(ClassLoader classLoader, ClassInfo con break; } } - } else { - if (!fieldTypeClassInfo.hasNoArgsConstructor()) { - throw new IllegalArgumentException( - "Nested configuration class '" + fieldTypeClassInfo - + "' must contain a no-args constructor "); - } - + } else if (fieldTypeClassInfo.hasNoArgsConstructor()) { if (!Modifier.isPublic(fieldTypeClassInfo.flags())) { throw new IllegalArgumentException( "Nested configuration class '" + fieldTypeClassInfo + "' must be public "); @@ -325,6 +319,10 @@ private ResultHandle populateConfigObject(ClassLoader classLoader, ClassInfo con getFullConfigName(prefixStr, namingStrategy, field), namingStrategy, failOnMismatchingMember, null, methodCreator); createWriteValue(methodCreator, configObject, field, setter, useFieldAccess, nestedConfigObject); + } else { + LOGGER.warn("Nested configuration class '" + fieldTypeClassInfo + + "' declared in '" + currentClassInHierarchy.name() + "." + field.name() + "' is either an " + + "interface or does not have a non-args constructor, so this field will not be initialized"); } } else { String fullConfigName = getFullConfigName(prefixStr, namingStrategy, field); diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassProperties.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassProperties.java index 2ebf71240ef5e..1802d08864f5f 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassProperties.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassProperties.java @@ -9,6 +9,8 @@ public final class ClassProperties { private AnotherClass anotherClass; + private Interface anInterface; + public String getValue() { return value; } @@ -24,4 +26,12 @@ public AnotherClass getAnotherClass() { public void setAnotherClass(AnotherClass anotherClass) { this.anotherClass = anotherClass; } + + public Interface getAnInterface() { + return anInterface; + } + + public void setAnInterface(Interface anInterface) { + this.anInterface = anInterface; + } } diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java index 409d8ca39c7db..c49fa6d8ba4f3 100644 --- a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/ClassPropertiesResource.java @@ -21,4 +21,10 @@ public String getValue() { public boolean isAnotherClassValue() { return properties.getAnotherClass().isValue(); } + + @Path("/interface") + @GET + public boolean getUrlFromClassWithInterface() { + return properties.getAnInterface() == null; + } } diff --git a/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/Interface.java b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/Interface.java new file mode 100644 index 0000000000000..12aee2584ed58 --- /dev/null +++ b/integration-tests/spring-boot-properties/src/main/java/io/quarkus/it/spring/boot/Interface.java @@ -0,0 +1,5 @@ +package io.quarkus.it.spring.boot; + +public interface Interface { + String getUrl(); +} diff --git a/integration-tests/spring-boot-properties/src/main/resources/application.properties b/integration-tests/spring-boot-properties/src/main/resources/application.properties index 4842f056edd12..a5b57052bbfe1 100644 --- a/integration-tests/spring-boot-properties/src/main/resources/application.properties +++ b/integration-tests/spring-boot-properties/src/main/resources/application.properties @@ -2,4 +2,4 @@ cl.value=class-value cl.another-class.value=true bean.value=1 bean.inner-class.value=inner-class-value -interface.value=interface-value +interface.value=interface-value \ No newline at end of file diff --git a/integration-tests/spring-boot-properties/src/test/java/io/quarkus/it/spring/boot/ClassPropertiesTest.java b/integration-tests/spring-boot-properties/src/test/java/io/quarkus/it/spring/boot/ClassPropertiesTest.java index b3418599c71b1..dbc95936980a3 100644 --- a/integration-tests/spring-boot-properties/src/test/java/io/quarkus/it/spring/boot/ClassPropertiesTest.java +++ b/integration-tests/spring-boot-properties/src/test/java/io/quarkus/it/spring/boot/ClassPropertiesTest.java @@ -24,4 +24,11 @@ void shouldHaveAnotherClassValue() { .then() .body(is(equalTo("true"))); } + + @Test + void shouldInterfaceNotBePopulated() { + when().get("/class/interface") + .then() + .body(is(equalTo("true"))); + } } From f81045f4ac0dba979857758abe314cde052a538e Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 7 Feb 2023 13:29:42 +0200 Subject: [PATCH 246/250] Instruct GraalVM / Mandrel to keep more accurate debug information Instruct GraalVM / Mandrel to keep more accurate debug information about source locations when generating debug info for debugging and monitoring tools. This parameter may break compatibility with Truffle. Affected users should explicitly pass `-H:-TrackNodeSourcePosition` through `quarkus.native.additional-build-args` to override it. Closes: #30772 --- .../io/quarkus/deployment/pkg/steps/GraalVM.java | 1 + .../deployment/pkg/steps/NativeImageBuildStep.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java index c4a441876f141..49808129a70d6 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java @@ -25,6 +25,7 @@ public static final class Version implements Comparable { static final Version VERSION_21_3_0 = new Version("GraalVM 21.3.0", "21.3.0", Distribution.ORACLE); public static final Version VERSION_22_3_0 = new Version("GraalVM 22.3.0", "22.3.0", Distribution.ORACLE); public static final Version VERSION_22_2_0 = new Version("GraalVM 22.2.0", "22.2.0", Distribution.ORACLE); + public static final Version VERSION_23_0_0 = new Version("GraalVM 23.0.0", "23.0.0", Distribution.ORACLE); public static final Version MINIMUM = VERSION_22_2_0; public static final Version CURRENT = VERSION_22_3_0; diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 4d411fef2a028..8da849d81a4d7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -702,6 +702,18 @@ public NativeImageInvokerInfo build() { nativeImageArgs.add("-H:-ParseOnce"); } + if (nativeConfig.debug.enabled && graalVMVersion.compareTo(GraalVM.Version.VERSION_23_0_0) >= 0) { + /* + * Instruct GraalVM / Mandrel to keep more accurate information about source locations when generating + * debug info for debugging and monitoring tools. This parameter may break compatibility with Truffle. + * Affected users should explicitly pass {@code -H:-TrackNodeSourcePosition} through + * {@code quarkus.native.additional-build-args} to override it. + * + * See https://github.com/quarkusio/quarkus/issues/30772 for more details. + */ + nativeImageArgs.add("-H:+TrackNodeSourcePosition"); + } + /** * This makes sure the Kerberos integration module is made available in case any library * refers to it (e.g. the PostgreSQL JDBC requires it, seems plausible that many others will as well): From 6c5a52944e0a4ce53cd762e49a398625904fe9fb Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 7 Feb 2023 13:51:22 +0100 Subject: [PATCH 247/250] Revert "CI - Remove deprecated set-output calls" This reverts commit b2e1deb42b866807a28b1d292de4649c5b9e5205. --- .github/workflows/ci-actions-incremental.yml | 20 ++++++++++---------- .github/workflows/ci-fork-mvn-cache.yml | 2 +- .github/workflows/ci-istio.yml | 2 +- .github/workflows/deploy-snapshots.yml | 2 +- .github/workflows/doc-build.yml | 2 +- .github/workflows/jdk-early-access-build.yml | 2 +- .github/workflows/sonarcloud.yml | 2 +- .github/workflows/sonarcloud.yml.disabled | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 37e307f40ddeb..dcc427bfb4acc 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -115,7 +115,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache Maven Repository id: cache-maven @@ -152,7 +152,7 @@ jobs: GIB_ARGS+=" -Dgib.referenceBranch=refs/remotes/quarkusio/main -Dgib.fetchReferenceBranch -Dgib.disableIfBranchMatches='main|\d+\.\d+|.*backport.*'" fi echo "GIB_ARGS: $GIB_ARGS" - echo "gib_args=${GIB_ARGS}" >> $GITHUB_OUTPUT + echo "::set-output name=gib_args::${GIB_ARGS}" - name: Get GIB impacted modules id: get-gib-impacted # mvnw just for creating gib-impacted.log ("validate" should not waste much time if not incremental at all, e.g. on main) @@ -165,7 +165,7 @@ jobs: GIB_IMPACTED='' fi echo "GIB_IMPACTED: ${GIB_IMPACTED}" - echo "impacted_modules=${GIB_IMPACTED//$'\n'/'%0A'}" >> $GITHUB_OUTPUT + echo "::set-output name=impacted_modules::${GIB_IMPACTED//$'\n'/'%0A'}" - name: Tar Maven Repo shell: bash run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository @@ -212,13 +212,13 @@ jobs: echo "GIB_IMPACTED_MODULES: ${GIB_IMPACTED_MODULES}" json=$(.github/filter-native-tests-json.sh "${GIB_IMPACTED_MODULES}" | tr -d '\n') echo "${json}" - echo "matrix=${json}" >> $GITHUB_OUTPUT + echo "::set-output name=matrix::${json}" - name: Calculate matrix from matrix-jvm-tests.json id: calc-jvm-matrix run: | json=$(.github/filter-jvm-tests-json.sh) echo "${json}" - echo "matrix=${json}" >> $GITHUB_OUTPUT + echo "::set-output name=matrix::${json}" - name: Calculate run flags id: calc-run-flags run: | @@ -233,11 +233,11 @@ jobs: if ! echo -n "${GIB_IMPACTED_MODULES}" | grep -q 'tcks/.*'; then run_tcks=false; fi fi echo "run_jvm=${run_jvm}, run_devtools=${run_devtools}, run_gradle=${run_gradle}, run_maven=${run_maven}, run_tcks=${run_tcks}" - echo "run_jvm=${run_jvm}" >> $GITHUB_OUTPUT - echo "run_devtools=${run_devtools}" >> $GITHUB_OUTPUT - echo "run_gradle=${run_gradle}" >> $GITHUB_OUTPUT - echo "run_maven=${run_maven}" >> $GITHUB_OUTPUT - echo "run_tcks=${run_tcks}" >> $GITHUB_OUTPUT + echo "::set-output name=run_jvm::${run_jvm}" + echo "::set-output name=run_devtools::${run_devtools}" + echo "::set-output name=run_gradle::${run_gradle}" + echo "::set-output name=run_maven::${run_maven}" + echo "::set-output name=run_tcks::${run_tcks}" jvm-tests: name: JVM Tests - JDK ${{matrix.java.name}} diff --git a/.github/workflows/ci-fork-mvn-cache.yml b/.github/workflows/ci-fork-mvn-cache.yml index f9ea652dc6e31..7d25aa7f99454 100644 --- a/.github/workflows/ci-fork-mvn-cache.yml +++ b/.github/workflows/ci-fork-mvn-cache.yml @@ -45,7 +45,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/ci-istio.yml b/.github/workflows/ci-istio.yml index 56c80e6fa7cff..d6911db99f1ae 100644 --- a/.github/workflows/ci-istio.yml +++ b/.github/workflows/ci-istio.yml @@ -71,7 +71,7 @@ jobs: password: ${{ secrets.QUAY_QUARKUSCI_PASSWORD }} - name: Get kubeconfig id: kubeconfig - run: a="$(cat ~/.kube/config)"; a="${a//'%'/'%25'}"; a="${a//$'\n'/'%0A'}"; a="${a//$'\r'/'%0D'}"; echo "config=$a" >> $GITHUB_OUTPUT + run: a="$(cat ~/.kube/config)"; a="${a//'%'/'%25'}"; a="${a//$'\n'/'%0A'}"; a="${a//$'\r'/'%0D'}"; echo "::set-output name=config::$a" - name: Install Istio uses: huang195/actions-install-istio@v1.0.0 with: diff --git a/.github/workflows/deploy-snapshots.yml b/.github/workflows/deploy-snapshots.yml index d574e472d10b9..a334168533a17 100644 --- a/.github/workflows/deploy-snapshots.yml +++ b/.github/workflows/deploy-snapshots.yml @@ -28,7 +28,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 9d35ee6ceba75..c01b537470125 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -41,7 +41,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" - name: Cache Maven Repository id: cache-maven uses: actions/cache@v3 diff --git a/.github/workflows/jdk-early-access-build.yml b/.github/workflows/jdk-early-access-build.yml index f39c4fc100bd1..8ad76a1791a0c 100644 --- a/.github/workflows/jdk-early-access-build.yml +++ b/.github/workflows/jdk-early-access-build.yml @@ -82,7 +82,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache Maven Repository id: cache-maven diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index e903492fd3172..2cef27edafde7 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -22,7 +22,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache SonarCloud packages uses: actions/cache@v3 diff --git a/.github/workflows/sonarcloud.yml.disabled b/.github/workflows/sonarcloud.yml.disabled index 6badee103d86a..e86dfa4202da7 100644 --- a/.github/workflows/sonarcloud.yml.disabled +++ b/.github/workflows/sonarcloud.yml.disabled @@ -21,7 +21,7 @@ jobs: - name: Get Date id: get-date run: | - echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT + echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" shell: bash - name: Cache SonarCloud packages uses: actions/cache@v2 From c578479557b69090ebf6924b6eeda6ba396e9d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Tue, 7 Feb 2023 11:29:45 +0100 Subject: [PATCH 248/250] Upgrade to Hibernate ORM 5.6.15.Final Fixes #30234 --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 4f9252bbf2f6f..3c8ac034323cb 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -97,7 +97,7 @@ 3.12.0 1.15 1.5.1 - 5.6.14.Final + 5.6.15.Final 1.12.18 1.1.9.Final 8.0.0.Final From b189ead53c15f15f5408fcb97121c134782227c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 16 Jan 2023 13:34:38 +0100 Subject: [PATCH 249/250] Test updates of @Basic attributes with Hibernate ORM Reproducer for https://hibernate.atlassian.net/browse/HHH-16049 --- .../lazyloading/AbstractLazyBasicTest.java | 193 +++++++++++++++--- 1 file changed, 168 insertions(+), 25 deletions(-) diff --git a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java index 0efe1e06bdc0d..5e5db8f8c5acc 100644 --- a/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java +++ b/extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/lazyloading/AbstractLazyBasicTest.java @@ -1,13 +1,21 @@ package io.quarkus.hibernate.orm.lazyloading; import static io.quarkus.hibernate.orm.TransactionTestUtils.inTransaction; +import static org.assertj.core.api.Assertions.assertThat; + +import java.util.ArrayList; +import java.util.List; +import java.util.function.Consumer; import jakarta.inject.Inject; import jakarta.persistence.EntityManager; import jakarta.transaction.UserTransaction; +import org.hibernate.resource.jdbc.spi.StatementInspector; import org.junit.jupiter.api.Test; +import io.quarkus.hibernate.orm.PersistenceUnitExtension; + public abstract class AbstractLazyBasicTest { @Inject @@ -24,11 +32,61 @@ public AbstractLazyBasicTest(AccessDelegate delegate) { } @Test - public void update_all_nullToNonNull() { + public void update_all_nullToNull() { initNull(); + // Updating lazy properties always results in updates, even if the value didn't change, + // because we don't know of their previous value. + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllProperties(em, entityId, null, null, null); + })); inTransaction(transaction, () -> { - delegate.updateAllProperties(em, entityId, "updated1", "updated2", "updated3"); + delegate.testLazyLoadingAndPersistedValues(em, entityId, null, null, null); + }); + } + + @Test + public void update_allLazy_nullToNull() { + initNull(); + // Updating lazy properties always results in updates, even if the value didn't change, + // because we don't know of their previous value. + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllLazyProperties(em, entityId, null, null); + })); + inTransaction(transaction, () -> { + delegate.testLazyLoadingAndPersistedValues(em, entityId, null, null, null); }); + } + + @Test + public void update_oneEager_nullToNull() { + initNull(); + StatementSpy.checkNoUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneEagerProperty(em, entityId, null); + })); + inTransaction(transaction, () -> { + delegate.testLazyLoadingAndPersistedValues(em, entityId, null, null, null); + }); + } + + @Test + public void update_oneLazy_nullToNull() { + initNull(); + // Updating lazy properties always results in updates, even if the value didn't change, + // because we don't know of their previous value. + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneLazyProperty(em, entityId, null); + })); + inTransaction(transaction, () -> { + delegate.testLazyLoadingAndPersistedValues(em, entityId, null, null, null); + }); + } + + @Test + public void update_all_nullToNonNull() { + initNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllProperties(em, entityId, "updated1", "updated2", "updated3"); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "updated1", "updated2", "updated3"); }); @@ -37,9 +95,9 @@ public void update_all_nullToNonNull() { @Test public void update_allLazy_nullToNonNull() { initNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateAllLazyProperties(em, entityId, "updated1", "updated2"); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, null, "updated1", "updated2"); }); @@ -48,9 +106,9 @@ public void update_allLazy_nullToNonNull() { @Test public void update_oneEager_nullToNonNull() { initNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateOneEagerProperty(em, entityId, "updated1"); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "updated1", null, null); }); @@ -59,64 +117,112 @@ public void update_oneEager_nullToNonNull() { @Test public void update_oneLazy_nullToNonNull() { initNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateOneLazyProperty(em, entityId, "updated2"); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, null, "updated2", null); }); } @Test - public void update_all_nonNullToNonNull() { + public void update_all_nonNullToNonNull_differentValue() { initNonNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateAllProperties(em, entityId, "updated1", "updated2", "updated3"); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "updated1", "updated2", "updated3"); }); } @Test - public void update_allLazy_nonNullToNonNull() { + public void update_all_nonNullToNonNull_sameValue() { initNonNull(); + // Updating lazy properties always results in updates, even if the value didn't change, + // because we don't know of their previous value. + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllProperties(em, entityId, "initial1", "initial2", "initial3"); + })); inTransaction(transaction, () -> { - delegate.updateAllLazyProperties(em, entityId, "updated1", "updated2"); + delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "initial2", "initial3"); }); + } + + @Test + public void update_allLazy_nonNullToNonNull_differentValue() { + initNonNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllLazyProperties(em, entityId, "updated1", "updated2"); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "updated1", "updated2"); }); } @Test - public void update_oneEager_nonNullToNonNull() { + public void update_allLazy_nonNullToNonNull_sameValue() { initNonNull(); + // Updating lazy properties always results in updates, even if the value didn't change, + // because we don't know of their previous value. + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllLazyProperties(em, entityId, "initial2", "initial3"); + })); inTransaction(transaction, () -> { - delegate.updateOneEagerProperty(em, entityId, "updated1"); + delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "initial2", "initial3"); }); + } + + @Test + public void update_oneEager_nonNullToNonNull_differentValue() { + initNonNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneEagerProperty(em, entityId, "updated1"); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "updated1", "initial2", "initial3"); }); } @Test - public void update_oneLazy_nonNullToNonNull() { + public void update_oneEager_nonNullToNonNull_sameValue() { initNonNull(); + StatementSpy.checkNoUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneEagerProperty(em, entityId, "initial1"); + })); inTransaction(transaction, () -> { - delegate.updateOneLazyProperty(em, entityId, "updated2"); + delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "initial2", "initial3"); }); + } + + @Test + public void update_oneLazy_nonNullToNonNull_differentValue() { + initNonNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneLazyProperty(em, entityId, "updated2"); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "updated2", "initial3"); }); } @Test - public void update_all_nonNullToNull() { + public void update_oneLazy_nonNullToNonNull_sameValue() { initNonNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateOneLazyProperty(em, entityId, "initial2"); + })); inTransaction(transaction, () -> { - delegate.updateAllProperties(em, entityId, null, null, null); + delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", "initial2", "initial3"); }); + } + + @Test + public void update_all_nonNullToNull() { + initNonNull(); + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { + delegate.updateAllProperties(em, entityId, null, null, null); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, null, null, null); }); @@ -125,9 +231,9 @@ public void update_all_nonNullToNull() { @Test public void update_allLazy_nonNullToNull() { initNonNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateAllLazyProperties(em, entityId, null, null); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", null, null); }); @@ -136,9 +242,9 @@ public void update_allLazy_nonNullToNull() { @Test public void update_oneEager_nonNullToNull() { initNonNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateOneEagerProperty(em, entityId, null); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, null, "initial2", "initial3"); }); @@ -147,9 +253,9 @@ public void update_oneEager_nonNullToNull() { @Test public void update_oneLazy_nonNullToNull() { initNonNull(); - inTransaction(transaction, () -> { + StatementSpy.checkAtLeastOneUpdate(() -> inTransaction(transaction, () -> { delegate.updateOneLazyProperty(em, entityId, null); - }); + })); inTransaction(transaction, () -> { delegate.testLazyLoadingAndPersistedValues(em, entityId, "initial1", null, "initial3"); }); @@ -197,4 +303,41 @@ void testLazyLoadingAndPersistedValues(EntityManager entityManager, long entityI String expectedLazyProperty1, String expectedLazyProperty2); } + + @PersistenceUnitExtension + public static class StatementSpy implements StatementInspector { + private static final ThreadLocal> statements = new ThreadLocal<>(); + + public static void checkAtLeastOneUpdate(Runnable runnable) { + check(runnable, list -> assertThat(list) + .isNotEmpty() // Something is wrong if we didn't even load an entity + .anySatisfy(sql -> assertThat(sql).containsIgnoringCase("update"))); + } + + public static void checkNoUpdate(Runnable runnable) { + check(runnable, list -> assertThat(list) + .isNotEmpty() // Something is wrong if we didn't even load an entity + .allSatisfy(sql -> assertThat(sql).doesNotContainIgnoringCase("update"))); + } + + public static void check(Runnable runnable, Consumer> assertion) { + List list = new ArrayList<>(); + if (statements.get() != null) { + throw new IllegalStateException("Cannot nest checkNoUpdate()"); + } + statements.set(list); + runnable.run(); + statements.remove(); + assertion.accept(list); + } + + @Override + public String inspect(String sql) { + List list = statements.get(); + if (list != null) { + list.add(sql); + } + return sql; + } + } } From 266c7efd4f1b514dc967af31d4707b0ff2206b2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 22:03:58 +0000 Subject: [PATCH 250/250] Bump azure-functions-java-library from 1.4.2 to 3.0.0 Bumps [azure-functions-java-library](https://github.com/Azure/azure-functions-java-worker) from 1.4.2 to 3.0.0. - [Release notes](https://github.com/Azure/azure-functions-java-worker/releases) - [Commits](https://github.com/Azure/azure-functions-java-worker/commits) --- updated-dependencies: - dependency-name: com.microsoft.azure.functions:azure-functions-java-library dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- bom/application/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 3c8ac034323cb..a494ed34b584d 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -156,7 +156,7 @@ 1.2.2 3.11.0 2.13.0 - 2.2.0 + 3.0.0 1.0.0 1.8.10 1.6.4